:root {
    --bg: #090711;
    --panel: #151124;
    --panel2: #1d1730;
    --text: #fbf7ff;
    --muted: #c8bedc;
    --purple: #8b5cf6;
    --teal: #16e0cf;
    --pink: #ff5ebc;
    --shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at top left, #24124a 0, #090711 36rem), var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, Segoe UI, Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--teal);
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-header,
.admin-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem clamp(1rem, 4vw, 4rem);
    background: rgba(9, 7, 17, .84);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(16px);
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
}

.logo span {
    color: var(--teal);
}

main {
    min-height: 55vh;
}

.hero,
.page-hero,
.project-detail,
.section {
    max-width: 1240px;
    padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 4vw, 4rem);
    margin: auto;
}

.hero {
    display: grid;
    min-height: 70vh;
    place-items: center;
}

.hero h1,
.page-hero h1,
.project-detail h1 {
    margin: .25rem 0;
    color: transparent;
    font-size: clamp(2.5rem, 7vw, 5.8rem);
    line-height: .95;
    background: linear-gradient(115deg, #fff, var(--teal), #c7a8ff);
    -webkit-background-clip: text;
}

.hero p,
.lead {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.25rem;
}

.eyebrow,
.pill {
    color: var(--teal);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .78rem 1.1rem;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, var(--purple), #6d28d9);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(139, 92, 246, .28);
}

.btn:hover,
button:hover {
    transform: translateY(-1px);
}

.btn-accent {
    color: #061114;
    background: linear-gradient(135deg, var(--teal), #078b95);
}

.btn-ghost {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: none;
}

.hero-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.project-card,
.services article,
.admin-card,
.stats article {
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.project-card img {
    width: 100%;
    height: 245px;
    object-fit: cover;
}

.card-body,
.services article,
.admin-card,
.stats article {
    padding: 1.25rem;
}

.services,
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.empty {
    padding: 2rem;
    color: var(--muted);
    background: rgba(255, 255, 255, .04);
    border: 1px dashed rgba(255, 255, 255, .22);
    border-radius: 24px;
}

.cta {
    padding: 4rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, .2), rgba(22, 224, 207, .12));
}

.site-footer {
    padding: 2rem;
    color: var(--muted);
    text-align: center;
}

.project-detail {
    display: grid;
    grid-template-columns: 1fr .8fr;
    gap: 2rem;
    align-items: center;
}

.project-detail img,
.gallery-grid img,
.mini-grid img,
.ba-pair img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.image-button {
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: none;
    border-radius: 22px;
    box-shadow: none;
}

.gallery-grid,
.mini-grid,
.admin-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.split-gallery,
.ba-pair > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.ba-pair {
    margin: 1.5rem 0;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin: 1rem 0;
}

.meta span {
    padding: .45rem .7rem;
    background: rgba(255, 255, 255, .08);
    border-radius: 999px;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    padding: 2rem;
    background: rgba(0, 0, 0, .86);
    place-items: center;
}

.lightbox.open {
    display: grid;
}

.lightbox img {
    max-height: 86vh;
    border-radius: 18px;
}

.lightbox button {
    position: absolute;
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.admin-main {
    padding: 2rem clamp(1rem, 4vw, 4rem);
}

label {
    display: grid;
    gap: .35rem;
    margin: .8rem 0;
    color: var(--muted);
}

input,
textarea,
select {
    width: 100%;
    padding: .75rem;
    color: #fff;
    background: #0f0b1a;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
}

textarea {
    min-height: 120px;
}

.admin-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 1rem;
}

.admin-form button,
.admin-form .check {
    grid-column: 1 / -1;
}

.admin-thumb {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
}

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    overflow: hidden;
    background: var(--panel);
    border-collapse: collapse;
    border-radius: 18px;
}

th,
td {
    padding: .8rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.inline {
    display: inline;
}

.danger {
    background: #d11a4b !important;
}

.flash {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 16px;
}

.success {
    background: rgba(22, 224, 207, .14);
}

.error,
.error-text {
    color: #ffb4c8;
}

.helper,
.muted,
small {
    color: var(--muted);
}

@media (max-width: 900px) {
    .grid,
    .services,
    .stats,
    .gallery-grid,
    .mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-detail,
    .split-gallery,
    .ba-pair > div,
    .admin-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .grid,
    .services,
    .stats,
    .gallery-grid,
    .mini-grid {
        grid-template-columns: 1fr;
    }

    .site-header,
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero,
    .page-hero,
    .section,
    .project-detail {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2.6rem;
    }
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item,
.services-detail article,
.request-band,
.form-fieldset {
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.faq-item summary {
    font-weight: 900;
    cursor: pointer;
}

.services-detail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.request-band {
    text-align: center;
}

.form-fieldset {
    display: grid;
    grid-column: 1 / -1;
    gap: .5rem;
    margin: .8rem 0;
}

.form-fieldset legend {
    color: var(--muted);
    font-weight: 800;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.success-message {
    border-color: rgba(22, 224, 207, .45);
}

@media (max-width: 900px) {
    .services-detail,
    .detail-list {
        grid-template-columns: 1fr;
    }
}

/* Phase 2.1 admin product form cleanup */
.admin-product-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.admin-product-form > label {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0;
    min-width: 0;
}

.admin-product-form textarea {
    min-height: 130px;
    resize: vertical;
}

.admin-product-form .check {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin: 0;
}

.admin-product-form .check input {
    width: auto;
}

.admin-product-form .form-full,
.admin-product-form > button {
    grid-column: 1 / -1;
}

.admin-product-form > button {
    justify-self: start;
}

.product-image-create-card {
    margin: 0;
}

@media (max-width: 800px) {
    .admin-product-form {
        grid-template-columns: 1fr;
    }
}

/* Phase 2.1 category product cards */
.category-hero {
    padding-bottom: 2rem;
}

.category-block {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

.product-service-card .product-card-thumb {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

/* Phase 2.1 product detail spacing */
.product-page-hero {
    padding-bottom: 1rem;
}

.product-section {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
}

.demo-label {
    color: var(--teal);
    margin-right: .35rem;
}

/* Phase 2.1 admin product alignment fixes */
.admin-product-form > label.check {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: .55rem;
    grid-column: 1 / -1;
}

.admin-product-form > label.check input {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
}

.admin-product-form > label.form-full {
    grid-column: 1 / -1;
}

.admin-product-form input,
.admin-product-form select {
    min-height: 52px;
}

.admin-product-form > button {
    width: auto;
    justify-self: start;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
}

.table-actions .inline {
    display: inline-flex;
}

/* Phase 2.1 product image manager and checkbox fix */
.admin-product-form > label.feature-check {
    display: inline-flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: .6rem;
    grid-column: 1 / -1;
    width: fit-content;
    margin: 0;
    justify-self: start;
}

.admin-product-form > label.feature-check input {
    flex: 0 0 auto;
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin: 0;
}

.product-images-panel {
    margin-top: 1.5rem;
}

.product-image-upload-form {
    margin-bottom: 1.5rem;
}

.product-image-manager {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.product-image-admin-card {
    display: grid;
    gap: 1rem;
}

.product-image-admin-card.is-thumbnail {
    border-color: rgba(22, 224, 207, .7);
}

.product-image-preview-wrap {
    position: relative;
}

.product-image-admin-preview {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 18px;
}

.thumbnail-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    padding: .35rem .65rem;
    color: #061114;
    font-size: .8rem;
    font-weight: 900;
    background: var(--teal);
    border-radius: 999px;
}

.product-image-meta-form {
    display: grid;
    gap: .75rem;
}

.product-image-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.product-image-actions form {
    margin: 0;
}

button:disabled,
.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

@media (max-width: 800px) {
    .product-image-manager {
        grid-template-columns: 1fr;
    }
}

/* Phase 2.1 order form helper text */
.request-form small {
    color: var(--teal);
    font-weight: 800;
}

/* Phase 2.1 admin order upload display */
.order-upload-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.order-upload-card {
    padding: .85rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: rgba(255,255,255,.04);
}

@media (max-width: 800px) {
    .order-upload-list {
        grid-template-columns: 1fr;
    }
}

/* Phase 2.1 single-column purchase/order form */
.request-form {
    grid-template-columns: 1fr !important;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.request-form > label,
.request-form > .notice,
.request-form > button,
.request-form > .honeypot {
    grid-column: 1 / -1;
}

.request-form .notice {
    margin: 0 0 .5rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(22, 224, 207, .28);
    border-radius: 18px;
    background: rgba(22, 224, 207, .06);
}

.request-form label {
    gap: .45rem;
}

/* Phase 2.1 purchase form spacing and helper cleanup */
.purchase-page-hero {
    padding-top: clamp(2rem, 4vw, 3.5rem);
    padding-bottom: .75rem;
}

.purchase-page-hero h1 {
    margin-bottom: .5rem;
}

.purchase-section {
    padding-top: 0;
}

.request-form {
    grid-template-columns: 1fr !important;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.request-form > label,
.request-form > .notice,
.request-form > button,
.request-form > .honeypot {
    grid-column: 1 / -1;
}

.request-form small {
    display: block;
    color: var(--teal);
    font-weight: 400 !important;
    line-height: 1.45;
    margin: .3rem 0 .4rem;
}

.request-form .notice {
    margin: 0;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(22, 224, 207, .28);
    border-radius: 18px;
    background: rgba(22, 224, 207, .06);
}

/* Phase 2.1 Shopify intake question highlights */
.request-form .question-highlight {
    color: var(--teal);
    font-weight: inherit;
}

/* Phase 2.1 keep highlighted question text inline */
.request-form .question-label,
.request-form .question-highlight {
    display: inline;
}

/* Phase 2.1 contract display and signing form cleanup */
.contract-sign-hero {
    padding-bottom: 1rem;
}

.contract-sign-card {
    max-width: 960px;
    margin: 0 auto 1.5rem;
}

.contract-body {
    white-space: pre-line;
    line-height: 1.65;
    font-size: 1rem;
}

.contract-sign-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 960px;
    margin: 1.25rem auto 0;
}

.contract-sign-form > label:not(.sign-check) {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.contract-sign-form > .sign-check {
    grid-column: 1 / -1;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    gap: .7rem;
    width: fit-content;
    margin: 0;
}

.contract-sign-form > .sign-check input {
    flex: 0 0 auto;
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin: 0;
}

.contract-sign-form > .sign-check span {
    display: inline;
}

.contract-sign-form > button {
    grid-column: 1 / -1;
}

@media (max-width: 800px) {
    .contract-sign-form {
        grid-template-columns: 1fr !important;
    }
}
