:root {
    --bg: #0b0b0f;
    --card: #16161d;
    --card-2: #1d1d26;
    --text: #ffffff;
    --muted: #a1a1aa;
    --accent: #8b5cf6;
    --accent-2: #c084fc;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --line: rgba(255, 255, 255, 0.09);
}

* { box-sizing: border-box; }

html {
    background: var(--bg);
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 80% -10%, rgba(139, 92, 246, 0.15), transparent 32rem),
        var(--bg);
    color: var(--text);
    font-family: "DM Sans", sans-serif;
}

body.has-bottom-nav { padding-bottom: 6.5rem; }

h1, h2, h3, .brand, .display {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.035em;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; }

.ambient {
    position: fixed;
    z-index: -1;
    width: 20rem;
    height: 20rem;
    border-radius: 999px;
    filter: blur(100px);
    opacity: 0.08;
    pointer-events: none;
}
.ambient-one { top: 22%; left: -12rem; background: var(--accent); }
.ambient-two { right: -12rem; bottom: 8%; background: #2563eb; }

.app-shell, .public-shell, .admin-shell {
    width: min(calc(100% - 2rem), 72rem);
    margin: 0 auto;
}
.app-shell { padding: 1.5rem 0 2rem; }
.public-shell { width: min(calc(100% - 2rem), 76rem); }
.admin-shell { padding: 2rem 0 4rem; }

.app-header, .admin-header {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.75rem;
    padding: env(safe-area-inset-top) max(1rem, calc((100% - 72rem) / 2)) 0;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 11, 15, 0.84);
    backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-weight: 700; }
.brand-mark {
    display: grid;
    width: 2.1rem;
    height: 2.1rem;
    place-items: center;
    border-radius: 0.7rem;
    background: transparent;
    font-size: 0.75rem;
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.28);
}
.brand small { color: var(--accent-2); font-family: "DM Sans"; font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; }

.credit-pill, .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #e4e4e7;
    font-size: 0.78rem;
    font-weight: 700;
}
.credit-pill { padding: 0.55rem 0.8rem; }
.credit-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent); }
.app-header-actions { display: flex; align-items: center; gap: 0.45rem; }
.header-profile-link {
    display: grid;
    width: 2.55rem;
    height: 2.55rem;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    color: #a1a1aa;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.header-profile-link:hover,
.page-profile .header-profile-link {
    border-color: rgba(168, 85, 247, 0.45);
    background: rgba(139, 92, 246, 0.16);
    color: #ddd6fe;
}
.header-profile-link svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.header-profile-link .profile-icon-fill {
    fill: currentColor;
    stroke: none;
}
.install-button {
    min-height: 2.55rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 0.8rem;
    background: rgba(139, 92, 246, 0.14);
    color: #ddd6fe;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 800;
}

.page-heading { margin-bottom: 1.5rem; }
.eyebrow {
    display: inline-block;
    margin-bottom: 0.55rem;
    color: var(--accent-2);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.page-heading h1 { max-width: 42rem; margin: 0; font-size: clamp(2rem, 9vw, 3.7rem); line-height: 0.98; }
.page-heading p { max-width: 38rem; margin: 0.85rem 0 0; color: var(--muted); line-height: 1.65; }

.card {
    border: 1px solid var(--line);
    border-radius: 1.35rem;
    background: linear-gradient(145deg, rgba(29, 29, 38, 0.92), rgba(22, 22, 29, 0.96));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}
.card-pad { padding: 1.2rem; }
.card-title { margin: 0; font-size: 1.1rem; }
.card-copy { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

.btn {
    display: inline-flex;
    min-height: 3.35rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 1rem;
    cursor: pointer;
    font-weight: 800;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { cursor: not-allowed; opacity: 0.5; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #6d28d9); color: white; box-shadow: 0 12px 30px rgba(139, 92, 246, 0.24); }
.btn-secondary { border-color: var(--line); background: rgba(255, 255, 255, 0.055); color: white; }
.btn-danger { border-color: rgba(239, 68, 68, 0.25); background: rgba(239, 68, 68, 0.1); color: #fca5a5; }
.btn-small { min-height: 2.5rem; padding: 0.55rem 0.8rem; border-radius: 0.75rem; font-size: 0.8rem; }
.btn-block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.form-card { padding: 1.25rem; }
.form-grid { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.5rem; }
.field label, .label { color: #e4e4e7; font-size: 0.85rem; font-weight: 700; }
.field-help { color: var(--muted); font-size: 0.76rem; line-height: 1.4; }
.input, .textarea, .select {
    width: 100%;
    min-height: 3.2rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    outline: none;
    border-radius: 0.9rem;
    background: #101016;
    color: white;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.textarea { min-height: 8rem; resize: vertical; line-height: 1.55; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14); }
.input::placeholder, .textarea::placeholder { color: #65656f; }
.file-input { padding: 0.75rem; }
.file-input::file-selector-button {
    margin-right: 0.75rem;
    padding: 0.55rem 0.75rem;
    border: 0;
    border-radius: 0.65rem;
    background: rgba(139, 92, 246, 0.18);
    color: #ddd6fe;
    font-weight: 700;
}

.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.choice-card { position: relative; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; }
.choice-content {
    display: flex;
    min-height: 4.2rem;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 160ms ease, background 160ms ease;
}
.choice-card input:checked + .choice-content { border-color: var(--accent); background: rgba(139, 92, 246, 0.12); box-shadow: inset 0 0 0 1px var(--accent); }
.choice-content strong { display: block; font-size: 0.86rem; }
.choice-content small { color: var(--muted); font-size: 0.72rem; }
.style-swatch {
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 auto;
    border-radius: 0.75rem;
    background: transparent;
    outline: 1px solid rgba(255, 255, 255, 0.55);
    outline-offset: 2px;
}

.stats-grid, .dashboard-grid, .design-grid, .admin-grid { display: grid; gap: 1rem; }
.stats-grid { grid-template-columns: repeat(2, 1fr); }
.stat { padding: 1.1rem; }
.stat-value { display: block; margin-top: 0.25rem; font-family: "Space Grotesk"; font-size: 1.8rem; font-weight: 700; }
.stat-label { color: var(--muted); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

.hero-action {
    position: relative;
    overflow: hidden;
    padding: 1.4rem;
    background: linear-gradient(135deg, #4c1d95, #7c3aed 60%, #a855f7);
}
.hero-action::after {
    position: absolute;
    right: -2rem;
    bottom: -4rem;
    width: 11rem;
    height: 11rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    box-shadow: 0 0 0 2rem rgba(255, 255, 255, 0.04), 0 0 0 4rem rgba(255, 255, 255, 0.025);
    content: "";
}
.hero-action h2 { position: relative; z-index: 1; max-width: 18rem; margin: 0 0 0.55rem; font-size: 1.7rem; line-height: 1.05; }
.hero-action p { position: relative; z-index: 1; max-width: 24rem; margin: 0 0 1rem; color: #ede9fe; font-size: 0.9rem; }
.hero-action .btn { position: relative; z-index: 1; background: white; color: #4c1d95; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.6rem 0 0.85rem; }
.section-head h2 { margin: 0; font-size: 1.15rem; }
.text-link { color: #c4b5fd; font-size: 0.82rem; font-weight: 700; }
.muted { color: var(--muted); }

.design-card { overflow: hidden; }
.design-thumb { position: relative; display: grid; aspect-ratio: 1 / 1; place-items: center; overflow: hidden; background: #ededed; }
.design-thumb img { width: 80%; height: 80%; object-fit: contain; transition: transform 240ms ease; }
.design-card:hover .design-thumb img { transform: scale(1.04); }
.design-info { padding: 0.9rem; }
.design-info h3 { margin: 0; font-size: 0.95rem; }
.design-meta { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 0.5rem; color: var(--muted); font-size: 0.72rem; }

.brand-mark img { width: 100%; height: 100%; border-radius: inherit; object-fit: contain; }
.brand-copy { display: grid; gap: 0.08rem; line-height: 1.05; }
.brand-copy strong { font-size: 1rem; }

.page-dashboard {
    background:
        radial-gradient(circle at 78% 18%, rgba(139, 92, 246, 0.22), transparent 28rem),
        radial-gradient(circle at 18% 8%, rgba(76, 29, 149, 0.16), transparent 18rem),
        #07070b;
}
.page-dashboard .ambient { opacity: 0.12; }
.page-dashboard .app-header {
    min-height: 5.5rem;
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: rgba(7, 7, 11, 0.78);
}
.page-dashboard .brand { gap: 0.9rem; }
.page-dashboard .brand-mark {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1.05rem;
    background: transparent;
    box-shadow: 0 14px 34px rgba(139, 92, 246, 0.28);
}
.page-dashboard .brand-copy strong {
    color: white;
    font-size: 1.7rem;
    letter-spacing: -0.055em;
}
.page-dashboard .brand-copy small {
    color: #a1a1aa;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    text-transform: none;
}
.page-dashboard .install-button {
    min-height: 3.8rem;
    padding: 0.8rem 1.6rem;
    border-color: rgba(168, 85, 247, 0.85);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.34), rgba(76, 29, 149, 0.7));
    color: white;
    font-size: 1rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 18px 35px rgba(76,29,149,.26);
}
.page-dashboard .credit-pill {
    min-height: 3.8rem;
    padding: 0.75rem 1.35rem;
    border-radius: 1.4rem;
    background: linear-gradient(145deg, rgba(29,29,38,.94), rgba(18,18,26,.96));
    color: white;
    font-size: 1rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 14px 35px rgba(0,0,0,.25);
}
.page-dashboard .header-profile-link {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1.15rem;
    background: linear-gradient(145deg, rgba(29,29,38,.94), rgba(18,18,26,.96));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 14px 35px rgba(0,0,0,.25);
}
.page-dashboard .header-profile-link svg {
    width: 1.5rem;
    height: 1.5rem;
}
.dashboard-shell {
    width: min(calc(100% - 2rem), 72rem);
    padding-top: 1.6rem;
}
.dashboard-studio-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 31rem);
    align-items: center;
    min-height: 24rem;
    overflow: hidden;
    margin-top: 0;
    padding: clamp(1.8rem, 4vw, 3rem);
    border: 2px solid rgba(192, 132, 252, 0.72);
    border-radius: 1.7rem;
    background:
        radial-gradient(circle at 76% 70%, rgba(168,85,247,.68), transparent 16rem),
        radial-gradient(circle at 60% 34%, rgba(76,29,149,.62), transparent 18rem),
        linear-gradient(135deg, rgba(25,17,40,.98), rgba(43,13,91,.92));
    box-shadow: inset 0 0 80px rgba(124,58,237,.16), 0 22px 60px rgba(0,0,0,.34);
}
.dashboard-studio-card::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 3rem 3rem;
    mask-image: linear-gradient(90deg, black, transparent 75%);
    content: "";
}
.dashboard-studio-copy {
    position: relative;
    z-index: 1;
}
.dashboard-studio-copy .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #f5f3ff;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}
.dashboard-studio-copy .eyebrow::before {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 0.25rem;
    background: #a855f7;
    box-shadow: 0 0 26px rgba(168,85,247,.9);
    transform: rotate(45deg);
    content: "";
}
.dashboard-studio-copy h2 {
    max-width: 29rem;
    margin: 1.6rem 0 1rem;
    font-size: clamp(2.2rem, 5vw, 3.45rem);
    line-height: 1.08;
    letter-spacing: -0.06em;
}
.dashboard-studio-copy p {
    max-width: 28rem;
    margin: 0;
    color: #c7c1d6;
    font-size: 1.25rem;
    line-height: 1.5;
}
.dashboard-create-button {
    display: inline-flex;
    min-height: 4.8rem;
    align-items: center;
    gap: 1.1rem;
    margin-top: 2.2rem;
    padding: 0.95rem 1.6rem;
    border-radius: 1.2rem;
    background: white;
    color: #5b21b6;
    font-size: 1.15rem;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 20px 45px rgba(0,0,0,.22);
}
.button-star {
    display: inline-block;
    width: 1.55rem;
    height: 1.55rem;
    background: #a855f7;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.button-arrow {
    display: inline-flex;
    margin-left: 0.6rem;
}
.button-arrow .dashboard-link-arrow {
    width: 1.25rem;
    height: 1.25rem;
    color: #5b21b6;
    opacity: 1;
}
.dashboard-studio-art {
    position: relative;
    display: grid;
    place-items: center;
    z-index: 1;
    min-height: 21rem;
    overflow: visible;
}
.dashboard-studio-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.dashboard-studio-art::before {
    position: absolute;
    left: 50%;
    top: 14%;
    width: 17rem;
    height: 16rem;
    border-radius: 26% 26% 18% 18%;
    background:
        radial-gradient(circle at 50% 56%, rgba(168,85,247,.28), transparent 3.4rem),
        linear-gradient(145deg, #111018, #07070b 68%);
    box-shadow: inset 0 0 40px rgba(255,255,255,.06), 0 30px 70px rgba(0,0,0,.5);
    transform: translateX(-50%);
    content: "";
}
.dashboard-studio-art::after {
    display: none;
    content: none;
}
.dashboard-studio-art::before {
    display: none;
}
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0;
}
.dashboard-stat-card {
    display: flex;
    min-height: 6.2rem;
    flex-direction: column;
    justify-content: center;
    padding: 0.9rem 1.1rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 1.35rem;
    background: linear-gradient(145deg, rgba(26,26,36,.95), rgba(13,13,20,.97));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 18px 45px rgba(0,0,0,.22);
    transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.dashboard-stat-card:hover,
.dashboard-stat-card:focus-visible {
    border-color: rgba(192,132,252,.55);
    background: linear-gradient(145deg, rgba(34,28,48,.97), rgba(16,14,25,.98));
    transform: translateY(-2px);
}
.dashboard-stats-grid + .dashboard-studio-card { margin-top: 1.4rem; }
.dashboard-stat-icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 0.85rem;
    box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.dashboard-stat-icon::before {
    display: none;
    content: none;
}
.dashboard-stat-icon svg {
    display: block;
    width: 1.45rem;
    height: 1.45rem;
    fill: none;
    stroke: white;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.stat-icon-purple { background: linear-gradient(135deg, #a855f7, #6d28d9); }
.stat-icon-purple svg {
    fill: white;
    stroke: none;
}
.stat-icon-blue { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.stat-icon-green { background: linear-gradient(135deg, #4ade80, #16a34a); }
.dashboard-stat-label {
    display: block;
    margin: 0;
    color: #b8b4c4;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
}
.dashboard-stat-value {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.65rem;
}
.dashboard-stat-card strong {
    display: block;
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.65rem, 4vw, 2.15rem);
    line-height: 1;
    white-space: nowrap;
}
.dashboard-link-arrow {
    display: inline-block;
    width: 0.95rem;
    height: 0.95rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.72;
    transition: opacity .18s ease, transform .18s ease;
}
.dashboard-section-head .text-link:hover .dashboard-link-arrow,
.dashboard-create-button:hover .dashboard-link-arrow {
    opacity: 1;
    transform: translateX(2px);
}
.dashboard-section-head {
    margin-top: 2.4rem;
}
.dashboard-section-head h2 {
    font-size: 1.55rem;
    letter-spacing: -0.035em;
}
.dashboard-section-head .text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #c084fc;
    font-size: 1rem;
}
.dashboard-design-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
}
.dashboard-design-card {
    overflow: hidden;
    border-color: rgba(255,255,255,.11);
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgba(24,24,32,.96), rgba(14,14,21,.98));
}
.dashboard-design-card .design-thumb {
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(circle at 50% 36%, rgba(168,85,247,.22), transparent 6rem),
        #111119;
}
.dashboard-design-card .design-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.design-menu-dot {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background: rgba(20,20,26,.78);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.design-menu-dot::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.28rem;
    height: 0.28rem;
    border-radius: 999px;
    background: white;
    box-shadow: -0.48rem 0 0 white, 0.48rem 0 0 white;
    transform: translate(-50%, -50%);
    content: "";
}
.dashboard-design-card .design-info {
    padding: 0.85rem 1rem 1rem;
}
.dashboard-design-card .design-info h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.98rem;
}
.dashboard-design-card .design-info h3::before {
    width: 0.48rem;
    height: 0.48rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #4ade80;
    content: "";
}
.dashboard-design-card .badge { display: none; }
.page-dashboard .empty-state {
    border-radius: 1.4rem;
    background: linear-gradient(145deg, rgba(24,24,32,.96), rgba(14,14,21,.98));
}

@media (min-width: 760px) {
    .page-dashboard .phone-input-row .btn { grid-column: auto; }
}

@media (max-width: 820px) {
    .page-dashboard .app-header {
        min-height: 4.9rem;
        padding-right: 1rem;
        padding-left: 1rem;
    }
    .page-dashboard .brand-mark { width: 2.75rem; height: 2.75rem; border-radius: 0.9rem; }
    .page-dashboard .brand-copy strong { font-size: 1rem; }
    .page-dashboard .brand-copy small { display: none; }
    .dashboard-shell { width: min(calc(100% - 1.5rem), 40rem); padding-top: 0.8rem; }
    .dashboard-studio-card {
        grid-template-columns: minmax(0, 1.05fr) minmax(8rem, 0.95fr);
        min-height: 17rem;
        padding: 1.15rem;
        border-radius: 1.35rem;
    }
    .dashboard-studio-copy {
        grid-column: 1;
        grid-row: 1;
    }
    .dashboard-studio-copy .eyebrow {
        gap: 0.45rem;
        font-size: 0.72rem;
    }
    .dashboard-studio-copy .eyebrow::before {
        width: 0.9rem;
        height: 0.9rem;
    }
    .dashboard-studio-copy h2 {
        margin: 1rem 0 0.65rem;
        font-size: clamp(1.45rem, 6vw, 2.1rem);
        line-height: 1.08;
    }
    .dashboard-studio-copy p {
        font-size: 0.82rem;
        line-height: 1.45;
    }
    .dashboard-create-button {
        width: min(100%, 14rem);
        min-height: 3.45rem;
        justify-content: center;
        gap: 0.65rem;
        margin-top: 1rem;
        padding: 0.7rem 0.9rem;
        border-radius: 0.9rem;
        font-size: 0.85rem;
    }
    .button-star {
        width: 1rem;
        height: 1rem;
    }
    .button-arrow {
        margin-left: 0.3rem;
    }
    .button-arrow .dashboard-link-arrow {
        width: 1rem;
        height: 1rem;
    }
    .dashboard-studio-art {
        grid-column: 2;
        grid-row: 1;
        align-self: stretch;
        min-height: 13.5rem;
        margin-top: 0;
    }
    .dashboard-studio-art img {
        object-position: center right;
    }
    .dashboard-studio-art::before { width: 12rem; height: 12rem; }
    .dashboard-studio-art::after { display: none; content: none; }
    .dashboard-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
    }
    .dashboard-stat-card {
        min-height: 4.9rem;
        padding: 0.55rem 0.65rem;
        border-radius: 0.85rem;
    }
    .dashboard-stat-icon { width: 1.9rem; height: 1.9rem; border-radius: 0.55rem; }
    .dashboard-stat-icon svg { width: 1.05rem; height: 1.05rem; stroke-width: 2; }
    .dashboard-stat-label { font-size: 0.66rem; letter-spacing: 0.04em; }
    .dashboard-stat-value { gap: 0.45rem; margin-top: 0.38rem; }
    .dashboard-stat-card strong { font-size: 1.4rem; }
    .dashboard-design-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 460px) {
    .page-dashboard .credit-pill {
        min-height: 2.7rem;
        padding: 0.55rem 0.75rem;
        font-size: 0.78rem;
    }
    .page-dashboard .header-profile-link {
        width: 2.7rem;
        height: 2.7rem;
        border-radius: 0.95rem;
    }
    .page-dashboard .header-profile-link svg {
        width: 1.22rem;
        height: 1.22rem;
    }
    .page-dashboard .install-button {
        min-height: 2.7rem;
        padding: 0.55rem 0.85rem;
        font-size: 0.78rem;
    }
    .dashboard-studio-card {
        grid-template-columns: minmax(0, 1.08fr) minmax(7.4rem, 0.92fr);
        min-height: 15.8rem;
        padding: 0.9rem;
    }
    .dashboard-studio-copy .eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.06em;
    }
    .dashboard-studio-copy h2 {
        margin: 0.85rem 0 0.55rem;
        font-size: clamp(1.25rem, 7vw, 1.75rem);
    }
    .dashboard-studio-copy p {
        font-size: 0.74rem;
        line-height: 1.45;
    }
    .dashboard-create-button {
        width: min(100%, 12.4rem);
        min-height: 3rem;
        margin-top: 0.85rem;
        padding: 0.55rem 0.85rem;
        font-size: 0.74rem;
    }
    .button-arrow .dashboard-link-arrow {
        width: 0.9rem;
        height: 0.9rem;
    }
    .dashboard-studio-art {
        min-height: 12.5rem;
    }
    .dashboard-studio-art img {
        object-position: center right;
    }
    .dashboard-studio-art::after {
        display: none;
        content: none;
    }
    .dashboard-stats-grid {
        gap: 0.45rem;
    }
    .dashboard-stat-card {
        min-height: 4.55rem;
        padding: 0.48rem 0.5rem;
    }
    .dashboard-stat-icon {
        width: 1.6rem;
        height: 1.6rem;
    }
    .dashboard-stat-icon svg {
        width: 0.88rem;
        height: 0.88rem;
    }
    .dashboard-stat-value {
        gap: 0.32rem;
        margin-top: 0.5rem;
    }
    .dashboard-stat-card strong {
        font-size: 1.2rem;
    }
    .dashboard-stat-label {
        font-size: 0.6rem;
        line-height: 1.15;
    }
    .dashboard-section-head {
        align-items: flex-end;
    }
    .dashboard-section-head h2 {
        font-size: 1.35rem;
    }
    .dashboard-design-grid {
        gap: 0.7rem;
    }
    .dashboard-design-card { border-radius: 0.95rem; }
    .dashboard-design-card .design-info { padding: 0.55rem 0.55rem 0.65rem; }
    .dashboard-design-card .design-info h3 { gap: 0.32rem; font-size: 0.68rem; }
    .dashboard-design-card .design-meta { margin-top: 0.25rem; font-size: 0.56rem; }
    .design-menu-dot {
        top: 0.38rem;
        right: 0.38rem;
        width: 1.45rem;
        height: 1.45rem;
    }
}

.badge { padding: 0.35rem 0.55rem; font-size: 0.68rem; text-transform: capitalize; }
.badge-success { border-color: rgba(34, 197, 94, 0.18); background: rgba(34, 197, 94, 0.1); color: #86efac; }
.badge-warning { border-color: rgba(245, 158, 11, 0.18); background: rgba(245, 158, 11, 0.1); color: #fcd34d; }
.badge-muted { color: #d4d4d8; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 1rem; }
.data-table { width: 100%; min-width: 45rem; border-collapse: collapse; background: rgba(22, 22, 29, 0.8); }
.data-table th, .data-table td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 0.82rem; }
.data-table th { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table a:not(.btn) { color: #c4b5fd; font-weight: 700; }

.bottom-nav {
    position: fixed;
    z-index: 40;
    right: 0.75rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    left: 0.75rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-width: 34rem;
    margin: auto;
    padding: 0.52rem 0.62rem;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 1.35rem;
    background:
        radial-gradient(circle at 14% 0%, rgba(139, 92, 246, 0.14), transparent 38%),
        linear-gradient(180deg, rgba(24, 24, 35, 0.97), rgba(17, 17, 25, 0.97));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        0 18px 55px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}
.bottom-nav a {
    display: flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.24rem;
    border-radius: 0.92rem;
    color: #8f8a9b;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}
.bottom-nav a.active {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.27), rgba(88, 45, 166, 0.22));
    color: #c084fc;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
}
.bottom-nav a:active { transform: translateY(1px); }
.nav-icon {
    display: grid;
    width: 1.55rem;
    height: 1.55rem;
    place-items: center;
    color: currentColor;
    line-height: 1;
}
.nav-icon svg {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.nav-icon .nav-icon-fill {
    fill: currentColor;
    stroke: none;
}

.pwa-install-banner {
    position: fixed;
    z-index: 55;
    right: 0.75rem;
    bottom: 6.5rem;
    left: 0.75rem;
    display: grid;
    grid-template-columns: 2.8rem minmax(0, 1fr) auto auto;
    max-width: 34rem;
    align-items: center;
    gap: 0.7rem;
    margin: auto;
    padding: 0.75rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 1.1rem;
    background: rgba(24, 24, 31, 0.97);
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
    backdrop-filter: blur(18px);
}
.pwa-install-banner[hidden], .pwa-modal[hidden], .install-button[hidden] { display: none; }
.pwa-install-banner img { width: 2.8rem; height: 2.8rem; border-radius: 0.75rem; }
.pwa-install-banner div { display: grid; min-width: 0; gap: 0.12rem; }
.pwa-install-banner strong { font-size: 0.83rem; }
.pwa-install-banner span { color: var(--muted); font-size: 0.68rem; line-height: 1.3; }
.pwa-banner-close, .pwa-modal-close {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.35rem;
}
.pwa-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: end center; padding: 1rem; }
.pwa-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.pwa-modal-card { position: relative; z-index: 1; width: min(100%, 28rem); padding: 1.3rem; }
.pwa-modal-card>img { width: 4rem; height: 4rem; margin-bottom: 1rem; border-radius: 1rem; }
.pwa-modal-card h2 { margin: 0 0 0.8rem; font-size: 1.45rem; }
.pwa-modal-card ol { display: grid; gap: 0.75rem; margin: 0 0 1.2rem; padding-left: 1.3rem; color: #e4e4e7; font-size: 0.9rem; line-height: 1.5; }
.pwa-modal-card p { margin: 0 0 1.2rem; color: var(--muted); line-height: 1.6; }
.pwa-modal-close { position: absolute; top: 0.75rem; right: 0.8rem; }

@media (max-width: 390px) {
    .bottom-nav {
        right: 0.55rem;
        left: 0.55rem;
        padding: 0.45rem 0.5rem;
    }
    .bottom-nav a { min-height: 3.1rem; font-size: 0.66rem; }
    .nav-icon { width: 1.42rem; height: 1.42rem; }
    .nav-icon svg { width: 1.36rem; height: 1.36rem; }
    .credit-pill { padding: 0.5rem 0.6rem; font-size: 0.7rem; }
    .install-button { padding: 0.5rem 0.6rem; font-size: 0.7rem; }
    .header-profile-link { width: 2.35rem; height: 2.35rem; border-radius: 0.78rem; }
    .header-profile-link svg { width: 1.08rem; height: 1.08rem; }
    .pwa-install-banner { grid-template-columns: 2.5rem minmax(0, 1fr) auto; }
    .pwa-install-banner img { width: 2.5rem; height: 2.5rem; }
    .pwa-install-banner .btn { grid-column: 2/4; width: 100%; }
    .pwa-banner-close { position: absolute; top: 0.35rem; right: 0.45rem; }
}

.flash {
    position: fixed;
    z-index: 80;
    top: 5.25rem;
    right: 1rem;
    left: 1rem;
    display: flex;
    max-width: 26rem;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #202029;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
    font-size: 0.85rem;
}
.flash-success { border-color: rgba(34, 197, 94, 0.25); }
.flash-error { border-color: rgba(239, 68, 68, 0.3); }
.flash-icon { display: grid; width: 1.5rem; height: 1.5rem; flex: 0 0 auto; place-items: center; border-radius: 50%; background: rgba(139, 92, 246, 0.18); font-weight: 800; }
.flash button { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.25rem; }

.empty-state { display: grid; justify-items: center; padding: 2.5rem 1.25rem; text-align: center; }
.empty-icon { display: grid; width: 3.5rem; height: 3.5rem; place-items: center; border-radius: 1.1rem; background: rgba(139, 92, 246, 0.15); color: #c4b5fd; font-size: 1.5rem; }
.empty-state h2 { margin: 1rem 0 0.4rem; }
.empty-state p { max-width: 26rem; margin: 0 0 1.25rem; color: var(--muted); }

.auth-page { display: grid; min-height: 100vh; align-items: center; padding: 2rem 0; }
.auth-wrap { width: min(calc(100% - 2rem), 28rem); margin: auto; }
.auth-brand { margin-bottom: 2rem; }
.language-switcher { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.2rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); }
.language-switcher a { padding: 0.35rem 0.65rem; border-radius: 999px; color: var(--muted); font-size: 0.72rem; font-weight: 800; line-height: 1; }
.language-switcher a.active { background: rgba(139,92,246,.22); color: #fff; box-shadow: inset 0 0 0 1px rgba(139,92,246,.22); }
.auth-language-switcher { display: flex; width: max-content; margin: 0 0 0.85rem auto; }
.header-language-switcher { display: none; }
.admin-language-switcher { margin: 0.25rem 0.5rem; }
.auth-hero-image { position: relative; overflow: hidden; margin: -0.85rem 0 1.15rem; border: 1px solid rgba(255,255,255,.1); border-radius: 1.25rem; background: linear-gradient(135deg, rgba(139,92,246,.14), rgba(15,23,42,.25)); box-shadow: 0 20px 50px rgba(0,0,0,.24); }
.auth-hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,11,15,.22)); pointer-events: none; }
.auth-hero-image img { display: block; width: 100%; height: clamp(5rem, 24vw, 8.5rem); object-fit: cover; }
.auth-card { padding: 1.4rem; }
.auth-card h1 { margin: 0; font-size: clamp(1.7rem, 6vw, 2rem); line-height: 1.12; }
.auth-card > p { margin: 0.5rem 0 1.4rem; color: var(--muted); }
.auth-footer { margin-top: 1.25rem; color: var(--muted); text-align: center; font-size: 0.85rem; }
.auth-footer a { color: #c4b5fd; font-weight: 700; }
.google-login-button { display: flex; min-height: 3.55rem; align-items: center; justify-content: center; gap: 0.8rem; padding: 0.8rem 1rem; border: 1px solid rgba(255,255,255,.82); border-radius: 0.9rem; background: white; color: #171717; font-weight: 800; box-shadow: 0 12px 26px rgba(0,0,0,.22); transition: transform .18s ease, box-shadow .18s ease; }
.google-login-button:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(0,0,0,.3); }
.google-login-button svg { width: 1.4rem; height: 1.4rem; flex: 0 0 auto; }
.auth-method-note { margin: 0.7rem 0 0 !important; text-align: center; color: var(--muted); font-size: 0.74rem; font-weight: 700; line-height: 1.35; }
.auth-method-note .bonus-highlight { color: #d8b4fe; font-weight: 900; }
.auth-divider { display: flex; align-items: center; gap: 0.8rem; margin: 1.25rem 0; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.phone-login-preview { padding: 1rem; border: 1px dashed rgba(255,255,255,.18); border-radius: 1rem; background: rgba(255,255,255,.025); }
.phone-login-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.phone-login-heading div { display: grid; gap: 0.2rem; }
.phone-login-heading strong { font-size: 0.9rem; }
.phone-login-heading span:not(.coming-soon) { color: var(--muted); font-size: 0.75rem; }
.coming-soon { padding: 0.3rem 0.5rem; border: 1px solid rgba(139,92,246,.3); border-radius: 999px; background: rgba(139,92,246,.1); color: #c4b5fd; font-size: 0.65rem; font-weight: 800; white-space: nowrap; }
.mobile-login-form, .mobile-code-form { display: grid; gap: 0.7rem; }
.mobile-code-form { margin-top: 0.7rem; }
.phone-input-row { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem; }
.phone-code-row { grid-template-columns: 1fr; }
.phone-input-row .btn { grid-column: 1 / -1; }
.phone-input-row .input::placeholder { color: rgba(255, 255, 255, 0.18); }
.phone-prefix { display: grid; min-width: 3.5rem; place-items: center; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--input); color: var(--muted); font-weight: 700; }
.phone-prefix-select { min-width: 4.65rem; padding: 0 0.65rem; color: #e4e4e7; cursor: pointer; font: inherit; font-weight: 800; }
.phone-prefix-select:focus { border-color: var(--accent); outline: 2px solid rgba(139, 92, 246, 0.16); outline-offset: 1px; }
.legacy-login { margin-top: 1rem; border-top: 1px solid var(--line); }
.legacy-login summary { padding: 1rem 0 0; color: var(--muted); cursor: pointer; font-size: 0.78rem; text-align: center; }
.legacy-login[open] summary { margin-bottom: 1rem; color: #c4b5fd; }
.legacy-login summary::marker { color: var(--accent); }

.admin-header { padding-right: max(1rem, calc((100% - 72rem) / 2)); padding-left: max(1rem, calc((100% - 72rem) / 2)); }
.admin-menu-button { padding: 0.55rem 0.8rem; border: 1px solid var(--line); border-radius: 0.7rem; background: var(--card); color: white; }
.admin-nav { position: absolute; top: 4.8rem; right: 1rem; display: none; min-width: 13rem; padding: 0.5rem; border: 1px solid var(--line); border-radius: 1rem; background: #18181f; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.admin-nav.open { display: grid; }
.admin-nav a { padding: 0.7rem 0.8rem; border-radius: 0.65rem; color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.admin-nav a.active, .admin-nav a:hover { background: rgba(139, 92, 246, 0.12); color: white; }

.preview-stage { position: relative; display: grid; min-height: 27rem; place-items: center; overflow: hidden; border-radius: 1.35rem; background: radial-gradient(circle, #2b2b37, #111117 70%); }
.preview-shirt { width: min(83%, 25.2rem); filter: drop-shadow(0 30px 35px rgba(0, 0, 0, 0.35)); }
.preview-design { position: absolute; top: 28%; left: 50%; width: 45.6%; height: 52.8%; transform: translateX(-50%); object-fit: contain; }
.order-summary { display: grid; gap: 0.8rem; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); }
.summary-row strong { color: white; }
.summary-total { padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 1.1rem; }

@media (min-width: 640px) {
    .choice-grid { grid-template-columns: repeat(3, 1fr); }
    .design-grid { grid-template-columns: repeat(3, 1fr); }
    .design-grid.dashboard-design-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .form-grid.two { grid-template-columns: repeat(2, 1fr); }
    .card-pad, .form-card { padding: 1.5rem; }
    .phone-input-row { grid-template-columns: auto 1fr auto; }
    .phone-code-row { grid-template-columns: 1fr auto; }
    .phone-input-row .btn { grid-column: auto; }
}

@media (min-width: 900px) {
    .dashboard-grid { grid-template-columns: 1.15fr 0.85fr; }
    .design-grid { grid-template-columns: repeat(4, 1fr); }
    .design-grid.dashboard-design-grid { grid-template-columns: repeat(3, 1fr); }
    .admin-grid { grid-template-columns: repeat(4, 1fr); }
    .builder-grid, .checkout-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr); gap: 1.25rem; align-items: start; }
    .admin-menu-button { display: none; }
    .admin-nav { position: static; display: flex; align-items: center; padding: 0; border: 0; background: transparent; box-shadow: none; }
    .admin-nav a { padding: 0.6rem 0.7rem; }
    .header-language-switcher { display: inline-flex; }
    .admin-language-switcher { margin: 0 0.35rem; }
}
