/* =========================================================
   THEME-AWARE DESIGN INTERFACE STYLING
   Premium 3D preview + responsive layout
========================================================= */

/* DEFAULT THEME - Coffee & Bronze */
body.design-landing-body.theme-default {
    margin: 0 !important;
    min-height: 100vh !important;
    color: var(--text-main, #5C4335) !important;
    background:
        radial-gradient(circle at top, rgba(205, 154, 72, 0.08), transparent 28%),
        radial-gradient(circle at bottom, rgba(255, 255, 255, 0.06), transparent 18%),
        linear-gradient(180deg, #F8F4EE 0%, #F2E7DA 45%, #FFFDFC 100%) !important;
    overflow-x: hidden !important;
    font-family: var(--font-headings, 'Playfair Display', serif) !important;
}

/* LUXURY THEME - Dark Gold */
body.design-landing-body.theme-luxury {
    margin: 0 !important;
    min-height: 100vh !important;
    color: var(--text-main, #f4e9d3) !important;
    background:
        radial-gradient(circle at top, rgba(202, 151, 69, 0.12), transparent 28%),
        radial-gradient(circle at bottom, rgba(255, 255, 255, 0.08), transparent 18%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.96), rgba(8, 8, 8, 0.88)) !important;
    overflow-x: hidden !important;
    font-family: var(--font-headings, 'Outfit', serif) !important;
}

body.design-landing-body {
    margin: 0 !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
}

/* Background decorative elements */
body.design-landing-body.theme-default::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 25%, rgba(205, 154, 72, 0.08), transparent 22%),
        radial-gradient(circle at 85% 20%, rgba(61, 36, 28, 0.06), transparent 24%),
        radial-gradient(circle at 50% 90%, rgba(205, 154, 72, 0.06), transparent 28%);
    filter: blur(0.4px);
    z-index: 0;
}

body.design-landing-body.theme-luxury::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 25%, rgba(202, 151, 69, 0.16), transparent 22%),
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.08), transparent 24%),
        radial-gradient(circle at 50% 90%, rgba(121, 92, 52, 0.20), transparent 28%);
    filter: blur(0.4px);
    z-index: 0;
}

body.design-landing-body .design-main-shell--specific,
body.design-landing-body .design-main-shell {
    position: relative !important;
    z-index: 1 !important;
    max-width: 1380px !important;
    margin: 0 auto !important;
    padding: clamp(1rem, 3vw, 1.75rem) !important;
    background: none !important;
}

.design-main-shell {
    position: relative;
    z-index: 1;
    max-width: 1380px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 1.75rem);
}

.design-main-shell--specific .design-hero-panel,
body.design-landing-body.theme-luxury .design-hero-panel {
    display: grid !important;
    grid-template-columns: 1.15fr 0.85fr !important;
    gap: 1.3rem !important;
    align-items: center !important;
    padding: clamp(1.25rem, 3vw, 1.85rem) !important;
    margin-bottom: 1rem !important;
    border-radius: 30px !important;
    border: 1px solid rgba(202, 151, 69, 0.22) !important;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34) !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)),
        rgba(9, 9, 9, 0.78) !important;
    backdrop-filter: blur(10px) !important;
}

body.design-landing-body.theme-default .design-hero-panel {
    display: grid !important;
    grid-template-columns: 1.15fr 0.85fr !important;
    gap: 1.3rem !important;
    align-items: center !important;
    padding: clamp(1.25rem, 3vw, 1.85rem) !important;
    margin-bottom: 1rem !important;
    border-radius: 30px !important;
    border: 1px solid rgba(205, 154, 72, 0.15) !important;
    box-shadow: 0 28px 90px rgba(61, 36, 28, 0.08) !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.4)),
        rgba(255, 253, 252, 0.95) !important;
    backdrop-filter: blur(10px) !important;
}

.eyebrow-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.hero-eyebrow,
.hero-status-badge,
.status-highlight,
.highlight-pill,
.stage-live-text {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.4rem 0.72rem;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 800;
}

.hero-eyebrow {
    background: rgba(202, 151, 69, 0.16);
    color: var(--accent-bronze, #ca9745);
    border: 1px solid rgba(202, 151, 69, 0.32);
}

.hero-status-badge {
    background: rgba(255,255,255,0.08);
    color: var(--text-main, #f4e9d3);
    border: 1px solid rgba(255,255,255,0.16);
}

.design-hero-copy h1 {
    margin: 0;
    font-family: var(--font-headings, 'Outfit', sans-serif);
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    line-height: 0.95;
}

body.design-landing-body.theme-default .design-hero-copy h1 {
    color: var(--accent-bronze, #ca9745) !important;
}

body.design-landing-body.theme-luxury .design-hero-copy h1 {
    color: var(--accent-bronze, #ca9745) !important;
}

body.design-landing-body.theme-default .design-hero-copy-text {
    max-width: 740px;
    margin: 1rem 0 0;
    font-size: 1.04rem;
    line-height: 1.65;
    color: rgba(92, 67, 53, 0.82);
}

body.design-landing-body.theme-luxury .design-hero-copy-text {
    max-width: 740px;
    margin: 1rem 0 0;
    font-size: 1.04rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.78);
}

.design-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.1rem 0 1.2rem;
}

.highlight-pill {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.82);
    border: 1px solid rgba(255,255,255,0.12);
}

.design-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero-cta {
    border-radius: 999px;
    padding: 0.9rem 1.1rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero-cta.primary {
    background: linear-gradient(135deg, var(--accent-bronze, #ca9745), #f0cf88);
    color: #1a0f0a;
    box-shadow: 0 16px 40px rgba(202, 151, 69, 0.28);
}

.hero-cta.secondary {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.14);
}

.hero-cta:hover {
    transform: translateY(-2px);
}

.design-stage-panel {
    position: relative;
    min-height: 390px;
    border-radius: 30px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        radial-gradient(circle at center, rgba(202, 151, 69, 0.18), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 24px 80px rgba(0,0,0,0.35);
    transform-style: preserve-3d;
}

.stage-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.5px);
    opacity: 0.7;
    animation: floatOrb 8s ease-in-out infinite;
}

.stage-glow.orb-one {
    top: 10%;
    left: 8%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(202, 151, 69,0.76), rgba(202, 151, 69,0.12) 60%, transparent 72%);
}

.stage-glow.orb-two {
    right: 10%;
    bottom: 12%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255,255,255,0.62), rgba(255,255,255,0.14) 60%, transparent 72%);
    animation-duration: 10s;
}

.design-stage-card {
    position: relative;
    z-index: 2;
    width: min(100%, 380px);
    padding: 1rem;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(8, 8, 8, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 24px 60px rgba(0,0,0,0.34);
    backdrop-filter: blur(6px);
    transform: perspective(1200px) rotateX(9deg) rotateY(-12deg);
    animation: stageFloat 6s ease-in-out infinite;
}

.stage-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.stage-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #5cf79b;
    box-shadow: 0 0 0 4px rgba(92,247,155,0.16);
}

.stage-live-text {
    background: rgba(92,247,155,0.12);
    color: #6bffb1;
    border: 1px solid rgba(92,247,155,0.24);
}

.stage-figure {
    position: relative;
    margin: 0 auto;
    width: 230px;
    height: 230px;
    border-radius: 34% 34% 42% 42%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.22), rgba(255,255,255,0.06) 30%, rgba(0,0,0,0.2) 65%),
        linear-gradient(180deg, rgba(202, 151, 69,0.74), rgba(80,58,34,0.96));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.24),
        0 16px 36px rgba(0,0,0,0.28);
    transform: translateZ(18px);
}

.stage-figure::before {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: inherit;
    border: 1px dashed rgba(255,255,255,0.26);
}

.stage-shirt {
    position: absolute;
    width: 130px;
    height: 90px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(242,201,109,0.84));
    box-shadow: inset 0 -14px 0 rgba(167,123,49,0.68), 0 12px 24px rgba(0,0,0,0.26);
    transform: translateY(-8px);
}

.stage-sleeve {
    position: absolute;
    width: 34px;
    height: 72px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.68), rgba(202, 151, 69,0.88));
    top: 42px;
}

.stage-sleeve-left { left: 42px; transform: rotate(14deg); }
.stage-sleeve-right { right: 42px; transform: rotate(-14deg); }

.stage-neck {
    position: absolute;
    width: 38px;
    height: 20px;
    border-radius: 50% 50% 18% 18%;
    top: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(247,225,169,0.9));
    box-shadow: 0 6px 12px rgba(0,0,0,0.24);
}

.stage-pants {
    position: absolute;
    bottom: 26px;
    width: 105px;
    height: 54px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(169,129,67,0.84));
    box-shadow: inset 0 8px 0 rgba(255,255,255,0.16), 0 10px 20px rgba(0,0,0,0.24);
}

.stage-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.stage-stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.7rem 0.8rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

.stage-stat-label {
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.54);
}

.stage-stat-value {
    font-size: 1.02rem;
    color: #fff;
}

.theme-validation-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: 0.95rem 1rem;
    border-radius: 999px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.22);
}

body.design-landing-body.theme-default .theme-validation-banner {
    border: 1px solid rgba(205, 154, 72, 0.2);
    background: rgba(255, 253, 252, 0.8);
}

body.design-landing-body.theme-luxury .theme-validation-banner {
    border: 1px solid rgba(202, 151, 69, 0.28);
    background: rgba(10, 10, 10, 0.72);
}

body.design-landing-body.theme-default .theme-validation-banner .status-highlight {
    background: rgba(205, 154, 72, 0.12);
    color: var(--accent-bronze, #ca9745);
    border: 1px solid rgba(205, 154, 72, 0.2);
}

body.design-landing-body.theme-luxury .theme-validation-banner .status-highlight {
    background: rgba(202, 151, 69, 0.17);
    color: var(--accent-bronze, #ca9745);
    border: 1px solid rgba(202, 151, 69, 0.25);
}

body.design-landing-body.theme-default .theme-validation-banner p {
    margin: 0;
    color: rgba(92, 67, 53, 0.8);
    font-size: 0.92rem;
}

body.design-landing-body.theme-luxury .theme-validation-banner p {
    margin: 0;
    color: rgba(255,255,255,0.74);
    font-size: 0.92rem;
}

.design-selection-section {
    padding: 1.2rem;
    border-radius: 30px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.28);
    backdrop-filter: blur(8px);
}

body.design-landing-body.theme-default .design-selection-section {
    border: 1px solid rgba(205, 154, 72, 0.1);
    background: rgba(255, 253, 252, 0.7);
}

body.design-landing-body.theme-luxury .design-selection-section {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(8, 8, 8, 0.66);
}

.design-selection-header h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
}

body.design-landing-body.theme-default .design-selection-header h2 {
    color: #3D241C !important;
}

body.design-landing-body.theme-luxury .design-selection-header h2 {
    color: #fff !important;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.design-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 26px;
    cursor: pointer;
    transform: perspective(1200px) translateY(0);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    overflow: hidden;
}

body.design-landing-body.theme-default .design-card {
    border: 1px solid rgba(205, 154, 72, 0.16) !important;
    background: linear-gradient(135deg, rgba(255, 253, 252, 0.95) 0%, rgba(246, 237, 226, 0.95) 100%) !important;
    box-shadow: 0 14px 34px rgba(61, 36, 28, 0.06) !important;
}

body.design-landing-body.theme-luxury .design-card {
    border: 1px solid rgba(202, 151, 69, 0.2) !important;
    background: linear-gradient(135deg, rgba(22, 19, 16, 0.95) 0%, rgba(10, 8, 7, 0.95) 100%) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35) !important;
}

body.design-landing-body.theme-default .design-card:hover,
body.design-landing-body.theme-default .design-card:focus-visible {
    transform: perspective(1200px) translateY(-8px);
    border-color: rgba(205, 154, 72, 0.45) !important;
    box-shadow: 0 20px 45px rgba(61, 36, 28, 0.1), 0 0 20px rgba(205, 154, 72, 0.22) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(249, 242, 232, 1) 100%) !important;
}

body.design-landing-body.theme-luxury .design-card:hover,
body.design-landing-body.theme-luxury .design-card:focus-visible {
    transform: perspective(1200px) translateY(-8px);
    border-color: rgba(202, 151, 69, 0.55) !important;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 25px rgba(202, 151, 69, 0.32) !important;
    background: linear-gradient(135deg, rgba(30, 26, 22, 0.98) 0%, rgba(16, 13, 11, 0.98) 100%) !important;
}

.design-card-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    border-radius: 22px;
    overflow: hidden;
}

body.design-landing-body.theme-default .design-card-visual {
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.3), rgba(255,255,255,0.1) 24%, rgba(61, 36, 28, 0.08) 70%),
        linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0.3));
}

body.design-landing-body.theme-luxury .design-card-visual {
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.2), rgba(255,255,255,0.06) 24%, rgba(0,0,0,0.14) 70%),
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
}

.design-card-visual .card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(255,255,255,0.25), transparent 32%, transparent 68%, rgba(255,255,255,0.08));
    opacity: 0.58;
    transform: translateX(-100%);
    transition: transform 0.55s ease;
}

.design-card:hover .card-shine {
    transform: translateX(100%);
}

.design-card img {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: gentleFloat 5.5s ease-in-out infinite;
}

.card-copy {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1 1 auto;
}

body.design-landing-body.theme-default .card-copy p {
    color: #5C4335 !important;
}

body.design-landing-body.theme-default .card-copy .design-card-kicker {
    color: #ca9745 !important;
}

body.design-landing-body.theme-default .card-copy h3 {
    color: #3D241C !important;
}

body.design-landing-body.theme-luxury .card-copy p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.design-card-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: auto;
}

.design-card-cta {
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0,0,0,0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

body.design-landing-body.theme-default .design-card-cta {
    border: 1px solid rgba(205, 154, 72, 0.5);
    background: rgba(205, 154, 72, 0.15);
    color: #5C4335;
}

body.design-landing-body.theme-default .design-card-cta:hover,
body.design-landing-body.theme-default .design-card-cta:focus-visible {
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(205, 154, 72, 0.9), rgba(230, 190, 120, 1));
    color: #FFFFFF;
    border-color: rgba(205, 154, 72, 0.8);
}

body.design-landing-body.theme-luxury .design-card-cta {
    border: 1px solid rgba(202, 151, 69,0.48);
    background: rgba(202, 151, 69,0.14);
    color: #fff;
}

body.design-landing-body.theme-luxury .design-card-cta:hover,
body.design-landing-body.theme-luxury .design-card-cta:focus-visible {
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(202, 151, 69,0.85), rgba(247,210,118,0.92));
    color: #1a0f0a;
    border-color: rgba(247,210,118,0.7);
    box-shadow: 0 16px 30px rgba(202, 151, 69,0.28);
}

.card-kicker {
    margin: 0;
    color: var(--accent-bronze, #ca9745);
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 800;
}

.card-title {
    margin: 0;
    color: #fff !important;
    font-family: var(--font-headings, 'Outfit', sans-serif);
    font-size: 1.17rem;
}

body.design-landing-body.theme-default .card-title {
    color: #3D241C !important;
}

.card-desc {
    margin: 0;
    color: rgba(255,255,255,0.7);
    line-height: 1.45;
    font-size: 0.9rem;
}

body.design-landing-body.theme-default .card-desc {
    color: #5C4335 !important;
}

.design-page-card {
    margin: 2.5rem 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    position: relative !important;
    z-index: 2 !important;
    animation: fadeIn 1.1s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible !important;
    max-width: 100% !important;
}

.design-page-card::before {
    display: none !important;
}

.design-page-card iframe {
    width: 100% !important;
    min-height: 62vh !important;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 auto 0 auto !important;
    display: block !important;
    position: relative !important;
    z-index: 2 !important;
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-default .design-page-card iframe {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-luxury .design-page-card iframe {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.design-page-copy {
    margin-bottom: 2rem !important;
    position: relative;
    z-index: 2;
    text-align: center !important;
}

.design-page-copy h1 {
    margin: 0 auto 0.5rem auto !important;
    font-size: clamp(2.1rem, 5vw, 3.2rem) !important;
    font-family: var(--font-headings, 'Outfit', serif) !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
    text-align: center !important;
}

body.theme-default .design-page-copy h1 {
    background: linear-gradient(135deg, #3d241c 20%, #ca9745 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
}

body.theme-luxury .design-page-copy h1 {
    background: linear-gradient(135deg, #ffffff 30%, #ca9745 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 0 2px 15px rgba(202, 151, 69, 0.15) !important;
}

.design-page-text {
    margin: 0.6rem auto 0 auto !important;
    max-width: 780px !important;
    font-size: 1.08rem !important;
    line-height: 1.65 !important;
    letter-spacing: 0.2px !important;
    text-align: center !important;
}

body.theme-default .design-page-text {
    color: rgba(92, 67, 53, 0.85) !important;
}

body.theme-luxury .design-page-text {
    color: rgba(255,255,255,0.82) !important;
}


.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2rem !important;
    margin-top: 0 !important;
    padding: 0.7rem 1.4rem !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: none !important;
    font-family: 'Outfit', 'Inter', sans-serif !important;
}

body.theme-default .back-btn {
    background: linear-gradient(135deg, var(--accent-bronze, #ca9745), #f0cf88) !important;
    border: 1px solid rgba(205, 154, 72, 0.3) !important;
    color: #1a0f0a !important;
    box-shadow: 0 4px 14px rgba(202, 151, 69, 0.2) !important;
}

body.theme-default .back-btn:hover {
    background: linear-gradient(135deg, #ca9745, #f5dba1) !important;
    color: #000000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(202, 151, 69, 0.35) !important;
    border-color: rgba(205, 154, 72, 0.5) !important;
}

body.theme-luxury .back-btn {
    background: linear-gradient(135deg, var(--accent-bronze, #ca9745), #f0cf88) !important;
    color: #1a0f0a !important;
    border: 1px solid rgba(205, 154, 72, 0.3) !important;
    box-shadow: 0 4px 18px rgba(202, 151, 69, 0.25) !important;
}

body.theme-luxury .back-btn:hover {
    background: linear-gradient(135deg, #ca9745, #f5dba1) !important;
    color: #000000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 26px rgba(202, 151, 69, 0.4) !important;
    border-color: rgba(205, 154, 72, 0.5) !important;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: editorEntrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger entrance for selection cards */
.design-card {
    opacity: 0;
    animation: premiumFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.design-card:nth-child(1) { animation-delay: 0.1s; }
.design-card:nth-child(2) { animation-delay: 0.2s; }
.design-card:nth-child(3) { animation-delay: 0.3s; }
.design-card:nth-child(4) { animation-delay: 0.4s; }

/* Entrances for primary layout panels */
.design-hero-panel {
    animation: premiumFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.theme-validation-banner {
    animation: premiumFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.15s;
}

.design-selection-section {
    animation: premiumFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.25s;
}

@keyframes premiumFadeUp {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.985);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes editorEntrance {
    0% {
        opacity: 0;
        transform: scale(0.97) translateY(35px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes stageFloat {
    0%, 100% { transform: perspective(1200px) rotateX(9deg) rotateY(-12deg) translateY(0px); }
    50% { transform: perspective(1200px) rotateX(8deg) rotateY(-12deg) translateY(-7px); }
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.06); }
}

@media (max-width: 900px) {
    .design-hero-panel {
        grid-template-columns: 1fr;
    }

    .design-selection-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .design-main-shell {
        padding: 0.8rem;
    }

    .theme-validation-banner {
        border-radius: 22px;
        align-items: flex-start;
        flex-direction: column;
    }

    .design-page-card iframe {
        min-height: 56vh;
    }
}

/* =========================================================
   GENERIC CUSTOMIZER MODAL
========================================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.generic-modal-content {
    background: #fff;
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    position: relative;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
}

body.theme-luxury .generic-modal-content {
    background: #111;
    color: #fff;
    border: 1px solid rgba(202, 151, 69, 0.3);
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

body.theme-luxury .close-modal-btn {
    color: #ccc;
}

.generic-modal-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .generic-modal-layout {
        grid-template-columns: 1fr;
    }
}

.generic-preview-area h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

body.theme-luxury .generic-preview-area h2 {
    color: var(--accent-bronze, #ca9745);
}

.gc-image-container {
    position: relative;
    width: 100%;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

body.theme-luxury .gc-image-container {
    background: #222;
}

#gc-product-image {
    max-width: 100%;
    max-height: 400px;
    position: relative;
    z-index: 1;
}

#gc-color-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
    mix-blend-mode: multiply;
    pointer-events: none;
    transition: background-color 0.3s ease;
}

#gc-logo-overlay {
    position: absolute;
    z-index: 3;
    width: 100px;
    height: auto;
    cursor: pointer; /* In future, can make this draggable */
}

.generic-controls-area h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

body.theme-luxury .generic-controls-area h3 {
    color: var(--accent-bronze, #ca9745);
}

.gc-control-group {
    margin-bottom: 1.5rem;
}

.gc-control-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gc-color-picker {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gc-color-picker input[type="color"] {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.gc-help-text {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

body.theme-luxury .gc-help-text {
    color: #999;
}

#gc-notes {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
}

body.theme-luxury #gc-notes {
    background: #333;
    border-color: #444;
    color: #fff;
}

.gc-submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-bronze, #ca9745), #f0cf88);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gc-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(202, 151, 69, 0.3);
}

.gc-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}