@font-face {
    font-family: "Noto Kufi Arabic";
    src: url("../fonts/NotoKufiArabic/NotoKufiArabic-Thin.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Noto Kufi Arabic";
    src: url("../fonts/NotoKufiArabic/NotoKufiArabic-ExtraLight.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Noto Kufi Arabic";
    src: url("../fonts/NotoKufiArabic/NotoKufiArabic-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Noto Kufi Arabic";
    src: url("../fonts/NotoKufiArabic/NotoKufiArabic-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Noto Kufi Arabic";
    src: url("../fonts/NotoKufiArabic/NotoKufiArabic-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Noto Kufi Arabic";
    src: url("../fonts/NotoKufiArabic/NotoKufiArabic-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Noto Kufi Arabic";
    src: url("../fonts/NotoKufiArabic/NotoKufiArabic-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Noto Kufi Arabic";
    src: url("../fonts/NotoKufiArabic/NotoKufiArabic-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Noto Kufi Arabic";
    src: url("../fonts/NotoKufiArabic/NotoKufiArabic-Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --bg: #f5f7fb;
    --bg-elevated: #ffffff;
    --surface: rgba(255, 255, 255, .82);
    --surface-strong: #ffffff;
    --surface-muted: #e9eef6;
    --text: #101620;
    --muted: #637083;
    --line: rgba(19, 32, 48, .12);
    --primary: #0667d8;
    --primary-strong: #044fb0;
    --cyan: #05a9d6;
    --emerald: #10a66d;
    --amber: #d88706;
    --rose: #c6426e;
    --shadow: 0 24px 70px rgba(14, 26, 43, .14);
    --shadow-soft: 0 16px 40px rgba(14, 26, 43, .09);
    --radius: 8px;
    --container: 1180px;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #080b10;
    --bg-elevated: #0e131b;
    --surface: rgba(18, 24, 34, .78);
    --surface-strong: #111824;
    --surface-muted: #182233;
    --text: #f4f7fb;
    --muted: #9aa8ba;
    --line: rgba(222, 233, 246, .14);
    --primary: #4ea8ff;
    --primary-strong: #78bdff;
    --cyan: #20d7f6;
    --emerald: #3ee3a0;
    --amber: #ffb84d;
    --rose: #ff6f9f;
    --shadow: 0 28px 90px rgba(0, 0, 0, .42);
    --shadow-soft: 0 18px 54px rgba(0, 0, 0, .28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(180deg, rgba(6, 103, 216, .06), transparent 420px),
        radial-gradient(circle at 82% 12%, rgba(16, 166, 109, .11), transparent 34vw),
        var(--bg);
    color: var(--text);
    font-family: "Noto Kufi Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
    line-height: 1.65;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin-inline: auto;
}

.site-shell {
    position: relative;
    overflow-x: clip;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 1.35rem;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: white;
    background:
        linear-gradient(135deg, rgba(32, 215, 246, .95), rgba(16, 166, 109, .95)),
        #0667d8;
    box-shadow: 0 14px 30px rgba(5, 169, 214, .28);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-strong) 76%, transparent);
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 999px;
    color: var(--muted);
    transition: color .18s ease, background .18s ease;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--surface-muted);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-btn {
    width: auto;
    min-width: 44px;
    padding-inline: 10px;
    font-size: .78rem;
    font-weight: 950;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    border: 0;
    background: rgba(16, 24, 39, .34);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.side-drawer {
    position: fixed;
    z-index: 80;
    inset-block: 0;
    inset-inline-start: 0;
    width: min(360px, calc(100vw - 34px));
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px;
    border-inline-end: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-strong) 96%, transparent);
    box-shadow: 28px 0 70px rgba(16, 24, 39, .18);
    transform: translateX(-122%);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

[dir="rtl"] .side-drawer {
    left: auto;
    right: 0;
    border-inline-end: 0;
    border-inline-start: 1px solid var(--line);
    box-shadow: -28px 0 70px rgba(16, 24, 39, .18);
    transform: translateX(122%);
}

.drawer-open .drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.side-drawer.is-open {
    transform: translateX(0);
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.drawer-nav,
.drawer-actions {
    display: grid;
    gap: 8px;
}

.drawer-nav a,
.drawer-action {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    font-weight: 900;
}

.drawer-nav a i,
.drawer-action i {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #061411;
    background: linear-gradient(135deg, #f6d85e, #24c779 58%, #17a8d9);
}

.drawer-actions {
    margin-top: auto;
}

.drawer-action {
    width: 100%;
    border: 1px solid var(--line);
    cursor: pointer;
    text-align: inherit;
    font: inherit;
}

.live-chat-float {
    position: fixed;
    z-index: 55;
    inset-inline-start: 22px;
    inset-block-end: 22px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, #20c872, #0ab2d3);
    box-shadow: 0 18px 42px rgba(6, 155, 104, .28);
    cursor: pointer;
    font-size: 1.35rem;
}

.live-chat-panel {
    position: fixed;
    z-index: 60;
    inset-inline-start: 22px;
    inset-block-end: 84px;
    width: min(350px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-strong);
    box-shadow: 0 24px 70px rgba(16, 24, 39, .18);
    opacity: 0;
    transform: translateY(18px) scale(.98);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.live-chat-panel.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
}

.chat-head strong,
.chat-head span {
    display: block;
}

.chat-head span {
    opacity: .82;
    font-size: .85rem;
}

.chat-body {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.chat-body p {
    margin: 0;
    color: var(--muted);
}

.auth-page {
    padding: clamp(34px, 7vw, 76px) 0;
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    gap: 22px;
    align-items: center;
}

.auth-visual,
.auth-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-strong);
    box-shadow: var(--shadow-soft);
}

.auth-visual {
    overflow: hidden;
}

.auth-visual img {
    width: 100%;
    min-height: 420px;
    object-fit: cover;
}

.auth-card {
    padding: clamp(20px, 4vw, 30px);
}

.auth-card h1 {
    margin: 14px 0 8px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.auth-card form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.field-error {
    display: block;
    margin-top: 6px;
    color: #e03131;
    font-size: .86rem;
    font-weight: 800;
}

.check-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

.auth-switch {
    margin: 18px 0 0;
    color: var(--muted);
}

.auth-switch a {
    color: var(--primary-strong);
    font-weight: 900;
}

@media (max-width: 980px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }
}

@media (max-width: 680px) {
    .nav-actions .nav-cta {
        display: none;
    }

    .side-drawer {
        width: min(286px, calc(100vw - 74px));
        padding: 12px;
        gap: 12px;
    }

    .drawer-nav a,
    .drawer-action {
        min-height: 38px;
        padding: 7px 9px;
        gap: 8px;
        border-radius: 10px;
        font-size: .9rem;
    }

    .drawer-nav a i,
    .drawer-action i {
        width: 26px;
        height: 26px;
        border-radius: 8px;
        font-size: .8rem;
    }

    .drawer-head .brand span:last-child {
        display: inline;
    }

    .drawer-head .brand-mark {
        width: 34px;
        height: 34px;
    }

    .live-chat-float {
        width: 46px;
        height: 46px;
        inset-inline-start: 14px;
        inset-block-end: 14px;
        font-size: 1.15rem;
    }

    .live-chat-panel {
        inset-inline: 12px;
        inset-block-end: 70px;
        width: auto;
        border-radius: 14px;
    }

    .auth-page {
        padding: 20px 0 44px;
    }

    .auth-card {
        padding: 18px;
        border-radius: 14px;
    }
}

.icon-btn,
.menu-btn {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    background: var(--surface);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.icon-btn:hover,
.menu-btn:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--primary) 42%, var(--line));
}

.menu-btn {
    display: grid;
}

.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--emerald));
    box-shadow: 0 18px 40px rgba(6, 103, 216, .22);
}

.btn-secondary {
    color: var(--text);
    border-color: var(--line);
    background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
}

.btn-ghost {
    color: var(--primary-strong);
    border-color: color-mix(in srgb, var(--primary) 28%, var(--line));
    background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.hero {
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - 76px);
    display: grid;
    align-items: center;
    padding: 56px 0 34px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--bg) 94%, transparent) 0%, color-mix(in srgb, var(--bg) 72%, transparent) 45%, transparent 100%),
        linear-gradient(180deg, transparent 70%, var(--bg) 100%),
        url("/images/ggora-hero-platform.png") center right / cover no-repeat;
}

.holo-webgl {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: .82;
    mix-blend-mode: screen;
}

.holo-webgl canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.holo-webgl::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 62% 38%, transparent 0 28%, color-mix(in srgb, var(--bg) 14%, transparent) 48%, color-mix(in srgb, var(--bg) 62%, transparent) 100%),
        linear-gradient(90deg, color-mix(in srgb, var(--bg) 90%, transparent), transparent 54%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(330px, .72fr);
    gap: 32px;
    align-items: center;
}

.eyebrow {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    color: var(--muted);
    font-size: .92rem;
    font-weight: 800;
}

.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--emerald) 16%, transparent);
}

.hero-title {
    max-width: 790px;
    margin: 24px 0 18px;
    font-size: clamp(3rem, 7vw, 6.6rem);
    line-height: .98;
    font-weight: 950;
    letter-spacing: 0;
}

.hero-title span {
    color: transparent;
    background: linear-gradient(135deg, var(--cyan), var(--emerald) 48%, var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-copy {
    max-width: 680px;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
    max-width: 720px;
}

.metric-mini,
.command-panel,
.category-tile,
.product-card,
.metric-tile,
.order-panel,
.steps-panel,
.trust-strip,
.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.metric-mini {
    padding: 16px;
    backdrop-filter: blur(16px);
}

.metric-mini strong {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
}

.metric-mini span {
    color: var(--muted);
    font-size: .92rem;
}

.command-panel {
    position: relative;
    overflow: hidden;
    padding: 18px;
    backdrop-filter: blur(18px);
    transform-style: preserve-3d;
}

.command-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 2px solid color-mix(in srgb, var(--cyan) 72%, transparent);
    pointer-events: none;
}

.panel-head,
.panel-row,
.product-top,
.section-head,
.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.panel-head {
    margin-bottom: 18px;
}

.panel-status {
    color: var(--emerald);
    font-weight: 900;
}

.scan-box {
    position: relative;
    min-height: 250px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--line) 36%, transparent) 1px, transparent 1px),
        linear-gradient(0deg, color-mix(in srgb, var(--line) 36%, transparent) 1px, transparent 1px),
        color-mix(in srgb, var(--surface-muted) 58%, transparent);
    background-size: 34px 34px;
}

.scan-box::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    height: 2px;
    top: 16%;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    animation: scan 4s ease-in-out infinite;
}

.scan-core {
    width: min(66%, 240px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--cyan) 44%, var(--line));
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--cyan) 16%, transparent), transparent 64%);
    color: var(--text);
    text-align: center;
}

.scan-core strong {
    font-size: 2.3rem;
}

.panel-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.panel-row {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface-strong) 54%, transparent);
}

.panel-row span {
    color: var(--muted);
}

.panel-row strong {
    color: var(--text);
}

.section {
    padding: 76px 0;
}

.section-alt {
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-muted) 38%, transparent), transparent);
}

.section-head {
    margin-bottom: 26px;
    align-items: end;
}

.section-title {
    max-width: 760px;
}

.section-title h2 {
    margin: 12px 0 8px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.12;
}

.section-title p,
.muted {
    color: var(--muted);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.category-tile {
    position: relative;
    min-height: 190px;
    padding: 20px;
    overflow: hidden;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset-inline: 18px;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--emerald), var(--amber));
    transform: scaleX(.34);
    transform-origin: right;
    transition: transform .22s ease;
}

.category-tile:hover,
.product-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--primary) 34%, var(--line));
    box-shadow: var(--shadow);
}

.category-tile:hover::after {
    transform: scaleX(1);
}

.category-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: var(--radius);
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--emerald));
    font-size: 1.35rem;
}

.category-tile h3,
.product-card h3,
.order-panel h1 {
    margin: 0;
}

.category-tile p {
    margin: 9px 0 18px;
}

.tag,
.price-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-strong) 58%, transparent);
    color: var(--muted);
    font-size: .86rem;
    font-weight: 800;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.product-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--surface-muted);
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.product-card:hover .product-media img {
    transform: scale(1.06);
}

.product-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .56));
}

.product-type {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-start: 14px;
    z-index: 1;
}

.price-pill {
    position: absolute;
    z-index: 1;
    inset-block-end: 14px;
    inset-inline-start: 14px;
    color: white;
    border-color: rgba(255, 255, 255, .24);
    background: rgba(8, 11, 16, .7);
    backdrop-filter: blur(12px);
}

.product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.product-body p {
    flex: 1;
    margin: 0;
    color: var(--muted);
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
}

.trust-item {
    min-height: 126px;
    padding: 20px;
    border-inline-start: 1px solid var(--line);
}

.trust-item:last-child {
    border-inline-start: 0;
}

.trust-item i {
    color: var(--cyan);
    font-size: 1.55rem;
}

.trust-item strong {
    display: block;
    margin-top: 10px;
}

.steps-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding: 24px;
}

.steps-list {
    display: grid;
    gap: 12px;
}

.step {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
}

.step-num {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--rose));
    font-weight: 900;
}

.step h3,
.step p {
    margin: 0;
}

.payment-terminal {
    min-height: 100%;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #071019;
    color: #dff8ff;
    direction: ltr;
    font-family: "Cascadia Mono", Consolas, monospace;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.terminal-line {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.terminal-line span {
    color: #72f2c0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.faq-item {
    padding: 20px;
}

.faq-item h3 {
    margin: 0 0 10px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
    padding: 28px 0;
}

.deal-strip {
    position: relative;
    z-index: 4;
    border-bottom: 1px solid color-mix(in srgb, var(--amber) 22%, var(--line));
    background: linear-gradient(90deg, #f04722, #f59f22 58%, #f5c052);
    color: #fff;
}

.deal-strip-inner {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.deal-strip span,
.deal-strip a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 900;
}

.deal-strip span {
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
}

.deal-strip a {
    min-height: 34px;
    padding: 6px 13px;
    border-radius: 999px;
    background: #fff;
    color: #d64f13;
    box-shadow: 0 10px 22px rgba(214, 79, 19, .22);
}

.contact-float {
    position: fixed;
    z-index: 55;
    inset-inline-start: 22px;
    inset-block-end: 22px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #20c872, #069b68);
    box-shadow: 0 16px 38px rgba(6, 155, 104, .34);
    font-weight: 900;
}

.contact-float i {
    font-size: 1.2rem;
}

.footer-grid {
    align-items: center;
}

.product-detail {
    padding: 54px 0 76px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: .92rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    gap: 22px;
    align-items: start;
}

.product-hero-image {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.order-panel {
    padding: 24px;
    position: sticky;
    top: 96px;
}

.order-panel h1 {
    margin-top: 12px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.1;
}

.price {
    color: var(--emerald);
    font-weight: 950;
}

.detail-price {
    font-size: 2.6rem;
    margin: 16px 0;
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-weight: 800;
}

.input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.metric-tile {
    padding: 22px;
}

.metric-tile i {
    color: var(--primary);
    font-size: 1.55rem;
}

.metric-value {
    margin: 14px 0 4px;
    font-size: 2rem;
    font-weight: 950;
}

@keyframes scan {
    0%, 100% {
        top: 16%;
        opacity: .45;
    }
    50% {
        top: 82%;
        opacity: 1;
    }
}

@media (max-width: 980px) {
    .menu-btn {
        display: grid;
    }

    .nav-links {
        position: fixed;
        inset: 76px 16px auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border-radius: var(--radius);
        padding: 10px;
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        border-radius: var(--radius);
    }

    .hero {
        min-height: auto;
        padding-top: 46px;
    }

    .hero::before {
        background:
            linear-gradient(180deg, color-mix(in srgb, var(--bg) 88%, transparent), color-mix(in srgb, var(--bg) 72%, transparent)),
            url("/images/ggora-hero-platform.png") center / cover no-repeat;
    }

    .hero-grid,
    .detail-grid,
    .steps-panel {
        grid-template-columns: 1fr;
    }

    .command-panel {
        max-width: 560px;
    }

    .category-grid,
    .product-grid,
    .trust-strip,
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-panel {
        position: static;
    }
}

@media (max-width: 680px) {
    .nav-wrap {
        min-height: 68px;
    }

    .brand span:last-child,
    .nav-actions .btn {
        display: none;
    }

    .hero-title {
        font-size: clamp(2.55rem, 14vw, 4rem);
    }

    .hero-metrics,
    .category-grid,
    .product-grid,
    .trust-strip,
    .faq-grid,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 54px 0;
    }

    .section-head,
    .footer-grid {
        align-items: stretch;
        flex-direction: column;
    }

    .trust-item {
        border-inline-start: 0;
        border-bottom: 1px solid var(--line);
    }

    .trust-item:last-child {
        border-bottom: 0;
    }
}

/* Image-only homepage hero */
.promo-banner {
    display: block;
}

.promo-banner::before {
    display: none !important;
}

.promo-media {
    min-height: clamp(210px, 32vw, 380px);
}

.promo-media img {
    min-height: clamp(210px, 32vw, 380px);
    max-height: 420px;
    object-position: center;
}

@media (max-width: 680px) {
    .promo-media {
        min-height: 210px;
    }

    .promo-media img {
        min-height: 210px;
        max-height: 240px;
    }
}

/* User polish: remove hero counters, animate category apps, app-style icons */
.promo-stats {
    display: none !important;
}

.shortcut-strip .shortcut-item {
    animation: category-float 5.6s ease-in-out infinite;
}

.shortcut-strip .shortcut-item:nth-child(2) {
    animation-delay: .24s;
}

.shortcut-strip .shortcut-item:nth-child(3) {
    animation-delay: .48s;
}

.shortcut-strip .shortcut-item:nth-child(4) {
    animation-delay: .72s;
}

.shortcut-strip .shortcut-item:nth-child(5) {
    animation-delay: .96s;
}

@keyframes category-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.shortcut-item span,
.category-title .category-icon,
.card-corner-icon,
.category-tabs a i {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .64);
    color: #061411;
    background:
        radial-gradient(circle at 24% 20%, rgba(255,255,255,.86), transparent 0 21%, transparent 22%),
        linear-gradient(135deg, #f6d85e 0%, #24c779 56%, #17a8d9 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .62),
        inset 0 -10px 22px rgba(0, 0, 0, .08),
        0 12px 24px rgba(18, 185, 129, .18);
}

.shortcut-item span::before,
.category-title .category-icon::before,
.card-corner-icon::before,
.category-tabs a i::before {
    position: relative;
    z-index: 2;
}

.shortcut-item span::after,
.category-title .category-icon::after,
.card-corner-icon::after,
.category-tabs a i::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset-block-start: -18%;
    inset-inline-end: -18%;
    width: 58%;
    aspect-ratio: 1;
    border-radius: 0 0 0 18px;
    background: rgba(4, 18, 14, .92);
    transform: rotate(10deg);
}

.shortcut-item:hover {
    animation-play-state: paused;
}

.category-tabs a i {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 24px;
    border-radius: 7px;
    font-size: .72rem;
}

@media (max-width: 680px) {
    .shortcut-strip .shortcut-item {
        animation-duration: 6.4s;
    }

    .shortcut-item span {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shortcut-strip .shortcut-item {
        animation: none;
    }
}

/* Mobile product cards: app-tile style, no awkward banner crops */
@media (max-width: 680px) {
    .catalog-card {
        grid-template-columns: 92px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        min-height: 116px;
        padding: 10px;
    }

    .catalog-media {
        width: 92px;
        height: 92px;
        min-height: 0;
        max-height: none;
        aspect-ratio: 1;
        border: 1px solid rgba(16, 24, 39, .08);
        border-radius: 16px;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
    }

    .catalog-media::after {
        display: none;
    }

    .catalog-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .product-type {
        display: none;
    }

    .price-pill {
        min-height: 23px;
        padding: 2px 7px;
        font-size: .74rem;
        inset-block-end: 6px;
        inset-inline-start: 6px;
        transform: none;
    }

    .catalog-card .product-body {
        min-height: 0;
        padding: 0;
        gap: 7px;
    }

    .catalog-card .product-top h3 {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .catalog-card .btn {
        width: 100%;
        max-width: 190px;
    }
}

/* Mobile storefront reset: compact app-store tiles */
@media (max-width: 680px) {
    body {
        background: #f7f9fb;
    }

    .deal-strip {
        display: none;
    }

    .storefront-hero {
        padding: 10px 0 12px;
    }

    .promo-banner {
        border-radius: 14px;
        box-shadow: 0 14px 38px rgba(16, 24, 39, .08);
    }

    .promo-media,
    .promo-media img {
        min-height: 168px;
        max-height: 188px;
    }

    .catalog-search {
        margin: 0 auto 14px;
        min-height: 46px;
        border-radius: 14px;
        background: #fff;
    }

    .section {
        padding: 18px 0 44px;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .catalog-card {
        display: flex;
        min-height: 0;
        padding: 0;
        border-radius: 14px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 12px 28px rgba(16, 24, 39, .08);
    }

    .catalog-media {
        order: 0;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / .78;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: #eefaf5;
    }

    .catalog-media img {
        border-radius: 0;
    }

    .price-pill {
        inset-inline-start: 8px;
        inset-block-end: 8px;
        min-height: 22px;
        padding: 2px 7px;
        font-size: .72rem;
    }

    .catalog-card .product-body {
        padding: 10px;
        gap: 7px;
    }

    .catalog-card .product-top {
        display: flex;
        align-items: flex-start;
        gap: 6px;
    }

    .card-corner-icon {
        flex: 0 0 22px;
        width: 22px;
        height: 22px;
        border-radius: 7px;
        font-size: .68rem;
    }

    .catalog-card .product-top h3 {
        font-size: .88rem;
        line-height: 1.35;
        min-height: 2.7em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .catalog-card .product-body p {
        display: none;
    }

    .catalog-card .btn {
        min-height: 34px;
        max-width: none;
        padding: 5px 8px;
        font-size: .82rem;
        border-radius: 10px;
    }

    .catalog-card .btn i {
        display: none;
    }

    .contact-float {
        opacity: .92;
    }
}

/* Mobile product detail polish */
@media (max-width: 680px) {
    .product-detail {
        padding: 16px 0 48px;
    }

    .breadcrumb {
        margin-bottom: 10px;
        font-size: .82rem;
    }

    .detail-grid {
        gap: 12px;
    }

    .product-hero-image {
        aspect-ratio: 16 / 8.5;
        border-radius: 14px;
        box-shadow: 0 12px 32px rgba(16, 24, 39, .08);
    }

    .order-panel {
        padding: 18px;
        border-radius: 14px;
        box-shadow: 0 14px 36px rgba(16, 24, 39, .09);
    }

    .order-panel h1 {
        margin-top: 12px;
        font-size: clamp(2rem, 10vw, 2.7rem);
    }

    .detail-price {
        margin: 10px 0 14px;
        font-size: 2.55rem;
    }

    .field {
        margin-bottom: 10px;
    }

    .field label {
        margin-bottom: 6px;
        font-size: .95rem;
    }

    .input {
        min-height: 46px;
        border-radius: 12px;
        background: #fff;
    }
}

/* Light-first premium marketplace direction */
:root {
    --bg: #f6f8fb;
    --bg-elevated: #ffffff;
    --surface: rgba(255, 255, 255, .9);
    --surface-strong: #ffffff;
    --surface-muted: #eef3f5;
    --text: #101827;
    --muted: #657383;
    --line: rgba(16, 24, 39, .1);
    --primary: #12b981;
    --primary-strong: #087f5b;
    --cyan: #19b6d2;
    --emerald: #18c77e;
    --amber: #f59e2f;
    --rose: #ef4d58;
    --shadow: 0 28px 80px rgba(16, 24, 39, .12);
    --shadow-soft: 0 14px 36px rgba(16, 24, 39, .08);
}

body {
    background:
        linear-gradient(180deg, #ffffff 0, #f6f8fb 260px, #f3f7f6 100%),
        repeating-linear-gradient(90deg, rgba(16, 24, 39, .025) 0 1px, transparent 1px 80px);
}

[data-theme="dark"] body {
    background:
        linear-gradient(180deg, #081014 0, #071013 280px, #060b0e 100%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 80px);
}

.topbar {
    background: color-mix(in srgb, var(--surface-strong) 90%, transparent);
    box-shadow: 0 10px 30px rgba(16, 24, 39, .05);
}

.nav-links {
    background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--primary-strong);
}

.deal-strip {
    background: linear-gradient(90deg, #f04438, #ff8a18 52%, #ffc43d);
}

.promo-banner {
    min-height: clamp(330px, 40vw, 500px);
    background: #fff;
    border-color: rgba(16, 24, 39, .08);
    box-shadow: 0 30px 90px rgba(16, 24, 39, .13);
}

.promo-banner::before {
    background:
        linear-gradient(90deg, transparent 0 43%, rgba(255, 255, 255, .38) 60%, rgba(255, 255, 255, .94) 100%),
        linear-gradient(180deg, transparent 58%, rgba(255, 255, 255, .72));
}

[data-theme="dark"] .promo-banner::before {
    background:
        linear-gradient(90deg, transparent 0 43%, rgba(8, 12, 15, .42) 60%, rgba(8, 12, 15, .95) 100%),
        linear-gradient(180deg, transparent 58%, rgba(8, 12, 15, .72));
}

.promo-media {
    background: #fff;
}

.promo-content h1 {
    max-width: 560px;
    color: var(--text);
}

.promo-stats span {
    background: rgba(16, 24, 39, .74);
}

.shortcut-item,
.category-title,
.catalog-card,
.order-panel,
.empty-state {
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 42px rgba(16, 24, 39, .08);
}

[data-theme="dark"] .shortcut-item,
[data-theme="dark"] .category-title,
[data-theme="dark"] .catalog-card,
[data-theme="dark"] .order-panel,
[data-theme="dark"] .empty-state {
    background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
}

.shortcut-item span,
.category-icon,
.card-corner-icon {
    background: linear-gradient(135deg, #ffe06b, #20d28f 58%, #15b8d4);
}

.catalog-card {
    border-color: rgba(16, 24, 39, .08);
}

.catalog-media {
    background: linear-gradient(135deg, #e9fff4, #fff7e5);
}

.catalog-search {
    background: rgba(255, 255, 255, .96);
}

.category-tabs a {
    background: rgba(255, 255, 255, .9);
}

.category-tabs a.is-active {
    color: #073b2c;
    background: linear-gradient(135deg, rgba(255, 224, 107, .45), rgba(32, 210, 143, .24));
}

.product-card:hover {
    box-shadow: 0 24px 60px rgba(16, 24, 39, .13);
}

@media (max-width: 680px) {
    .promo-banner {
        min-height: 0;
    }

    .promo-media {
        min-height: 224px;
    }

    .promo-media img {
        max-height: 276px;
        object-position: center;
    }

    .promo-content h1 {
        font-size: clamp(2.05rem, 10vw, 3.2rem);
    }

    .category-title,
    .catalog-card,
    .catalog-search,
    .category-tabs a {
        box-shadow: 0 12px 30px rgba(16, 24, 39, .08);
    }
}

.fx-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .34;
    mix-blend-mode: screen;
}

main,
.site-footer {
    position: relative;
    z-index: 1;
}

.full {
    width: 100%;
}

.hero-copy-block {
    will-change: transform;
}

.flow-title {
    margin: 14px 0 20px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
}

.product-trust {
    margin-top: 16px;
}

.admin-title {
    margin-top: 12px;
    font-size: clamp(2.6rem, 6vw, 5rem);
}

.animations-enabled body:not(.gsap-ready) .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .45s ease, transform .45s ease;
}

.animations-enabled body:not(.gsap-ready) .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@supports (animation-timeline: view()) {
    .product-card,
    .category-tile,
    .faq-item,
    .trust-strip {
        animation: scroll-pop both;
        animation-timeline: view();
        animation-range: entry 8% cover 28%;
    }

    @keyframes scroll-pop {
        from {
            opacity: .45;
            transform: translateY(28px) scale(.985);
        }
        to {
            opacity: 1;
            transform: none;
            filter: none;
        }
    }
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: .42s;
    animation-timing-function: cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }

    .fx-canvas {
        display: none;
    }
}

/* Responsive polish pass */
.hero {
    min-height: min(760px, calc(100svh - 76px));
    padding: clamp(44px, 7vw, 82px) 0 clamp(32px, 5vw, 64px);
    align-items: center;
}

.hero::before {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 66%, transparent) 50%, color-mix(in srgb, var(--bg) 18%, transparent) 100%),
        linear-gradient(180deg, transparent 66%, var(--bg) 100%),
        url("/images/ggora-hero-platform.png") center right / cover no-repeat;
}

.hero-grid {
    grid-template-columns: minmax(300px, .72fr) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 48px);
}

.hero-copy-block {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    max-width: 760px;
    justify-self: end;
}

.command-panel {
    grid-column: 1;
    grid-row: 1;
    max-width: 520px;
    justify-self: start;
}

.hero-title {
    max-width: 760px;
    font-size: clamp(2.65rem, 5.4vw, 4.8rem);
    line-height: 1.08;
    text-wrap: balance;
    overflow-wrap: normal;
}

.hero-copy {
    max-width: 610px;
    font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.hero-metrics {
    max-width: 610px;
}

.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
    gap: clamp(14px, 2vw, 20px);
}

.product-card {
    min-height: 100%;
}

.product-body {
    min-height: 196px;
}

.product-body h3 {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.section {
    padding: clamp(54px, 8vw, 86px) 0;
}

.section-head {
    gap: 20px;
}

@media (max-width: 980px) {
    .hero {
        min-height: auto;
        padding: 38px 0 42px;
    }

    .hero::before {
        background:
            linear-gradient(180deg, color-mix(in srgb, var(--bg) 86%, transparent) 0%, color-mix(in srgb, var(--bg) 74%, transparent) 52%, var(--bg) 100%),
            url("/images/ggora-hero-platform.png") center / cover no-repeat;
    }

    .hero-grid {
        display: block;
    }

    .hero-copy-block {
        max-width: 720px;
        margin-inline: auto;
        text-align: center;
    }

    .hero-copy,
    .hero-metrics,
    .hero-title {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .command-panel {
        display: none;
    }

    .section-head {
        display: block;
    }

    .section-head .btn,
    .section-head .tag {
        margin-top: 14px;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .topbar {
        position: sticky;
    }

    .nav-wrap {
        min-height: 64px;
    }

    .hero {
        padding-top: 34px;
    }

    .hero-title {
        font-size: clamp(2.25rem, 12vw, 3.35rem);
        line-height: 1.12;
        margin-top: 18px;
    }

    .hero-copy {
        font-size: 1rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 22px;
    }

    .metric-mini {
        padding: 13px 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .metric-mini strong {
        font-size: 1.25rem;
    }

    .product-media {
        aspect-ratio: 16 / 9;
    }

    .product-body {
        min-height: auto;
        padding: 15px;
    }

    .btn {
        min-height: 46px;
    }
}

/* Storefront redesign inspired by dense digital-service marketplaces */
:root {
    --primary: #137a4d;
    --primary-strong: #0d5f3b;
    --cyan: #25c7b7;
    --emerald: #16a66a;
    --amber: #f0b23d;
    --rose: #e34b5f;
}

[data-theme="dark"] {
    --bg: #080c0f;
    --bg-elevated: #0d1417;
    --surface: rgba(15, 22, 26, .82);
    --surface-strong: #111a1f;
    --surface-muted: #172329;
    --text: #f7faf8;
    --muted: #9eb1aa;
    --line: rgba(221, 235, 229, .13);
    --primary: #20b875;
    --primary-strong: #54d89c;
    --cyan: #27d1c2;
    --emerald: #35d28d;
    --amber: #f5c052;
    --shadow: 0 24px 60px rgba(0, 0, 0, .38);
    --shadow-soft: 0 16px 38px rgba(0, 0, 0, .26);
}

body {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface-muted) 32%, transparent), transparent 420px),
        radial-gradient(circle at 18% 8%, rgba(240, 178, 61, .09), transparent 24vw),
        radial-gradient(circle at 84% 18%, rgba(32, 184, 117, .12), transparent 28vw),
        var(--bg);
}

.fx-canvas {
    opacity: .2;
}

.topbar {
    background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
}

.nav-wrap {
    min-height: 70px;
}

.storefront-hero {
    position: relative;
    padding: clamp(22px, 4vw, 38px) 0 clamp(18px, 4vw, 34px);
    overflow: hidden;
}

.storefront-hero + .section {
    padding-top: clamp(22px, 4vw, 42px);
}

.section > .container > .catalog-search:first-child {
    margin-top: 0;
}

.promo-banner {
    position: relative;
    min-height: clamp(220px, 32vw, 390px);
    display: block;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(120deg, color-mix(in srgb, var(--surface-strong) 92%, transparent), color-mix(in srgb, var(--surface-muted) 76%, transparent)),
        var(--surface-strong);
    box-shadow: var(--shadow);
}

.promo-banner::before {
    display: none;
}

.promo-media {
    position: relative;
    min-width: 0;
    background: #dff4eb;
}

.promo-media img {
    width: 100%;
    height: 100%;
    min-height: clamp(220px, 32vw, 390px);
    object-fit: cover;
    object-position: center;
    filter: saturate(1.08) contrast(1.02);
}

.promo-content {
    position: relative;
    z-index: 2;
    align-self: center;
    padding: clamp(24px, 4vw, 48px);
}

.promo-content h1 {
    max-width: 620px;
    margin: 18px 0 12px;
    font-size: clamp(2.1rem, 4.5vw, 4.55rem);
    line-height: 1.08;
    letter-spacing: 0;
    text-wrap: balance;
}

.promo-content p {
    max-width: 540px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.45vw, 1.18rem);
}

.promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.promo-stats {
    position: absolute;
    z-index: 3;
    inset-inline-start: 18px;
    inset-block-end: 18px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.promo-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: #fff;
    background: rgba(6, 10, 13, .62);
    backdrop-filter: blur(14px);
    font-size: .88rem;
    font-weight: 800;
}

.shortcut-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.shortcut-item {
    min-width: 0;
    min-height: 92px;
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.shortcut-item:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--emerald) 42%, var(--line));
    background: color-mix(in srgb, var(--surface-strong) 94%, transparent);
}

.shortcut-item span {
    grid-row: 1 / 3;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: #08100d;
    background: linear-gradient(135deg, var(--amber), var(--emerald));
    font-size: 1.18rem;
}

.shortcut-item strong,
.shortcut-item small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shortcut-item small {
    color: var(--muted);
    font-weight: 800;
}

.market-head .section-title h2 {
    margin-top: 10px;
    font-size: clamp(1.9rem, 3vw, 3rem);
}

.catalog-search {
    width: min(680px, 100%);
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -6px auto 18px;
    padding: 0 16px;
    border: 1px solid color-mix(in srgb, var(--amber) 32%, var(--line));
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-strong) 90%, transparent);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
}

.catalog-search i {
    color: var(--amber);
    font-size: 1.1rem;
}

.catalog-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.catalog-search input::placeholder {
    color: var(--muted);
}

.catalog-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
    gap: 14px;
}

.catalog-card {
    background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
}

.catalog-media {
    display: block;
    aspect-ratio: 16 / 10.4;
}

.catalog-media img {
    object-position: center;
}

.catalog-card .product-body {
    position: relative;
    min-height: 178px;
    padding: 15px;
    gap: 10px;
}

.card-corner-icon {
    position: absolute;
    inset-block-start: -23px;
    inset-inline-start: 15px;
    inset-inline-end: auto;
    z-index: 2;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
    color: #07100c;
    background: linear-gradient(135deg, var(--amber), var(--emerald));
    box-shadow: 0 12px 26px rgba(0, 0, 0, .24);
    font-size: 1.2rem;
}

.catalog-card .product-top > i {
    display: none;
}

.catalog-card .product-top {
    align-items: start;
}

.catalog-card .product-top h3 {
    line-height: 1.35;
}

.catalog-card .product-body p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.catalog-card .btn {
    min-height: 42px;
    padding-block: 9px;
}

.category-page {
    padding: clamp(34px, 6vw, 64px) 0 clamp(60px, 8vw, 90px);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: var(--shadow-soft);
}

.category-title .category-icon {
    flex: 0 0 54px;
    margin: 0;
}

.category-title h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.15;
}

.category-title p {
    margin: 6px 0 0;
    color: var(--muted);
}

.empty-state {
    min-height: 180px;
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
    text-align: center;
}

.empty-state i {
    font-size: 2rem;
    color: var(--primary-strong);
}

.is-filtered-out {
    display: none !important;
}

.product-type {
    inset-inline-start: auto;
    inset-inline-end: 12px;
    inset-block-start: 12px;
}

.price-pill {
    inset-inline-start: 12px;
    inset-block-end: 12px;
    background: rgba(6, 10, 13, .78);
}

.section-alt {
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-muted) 30%, transparent), transparent);
}

@media (max-width: 980px) {
    .promo-banner {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .promo-banner::before {
        background:
            linear-gradient(180deg, transparent 0 34%, color-mix(in srgb, var(--bg) 76%, transparent) 68%, color-mix(in srgb, var(--bg) 95%, transparent));
    }

    .promo-media {
        min-height: 250px;
    }

    .promo-media img {
        min-height: 250px;
        max-height: 340px;
    }

    .promo-content {
        margin-top: -72px;
        padding-top: 0;
    }

    .promo-content h1 {
        max-width: 760px;
    }

    .shortcut-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .deal-strip-inner {
        justify-content: center;
        text-align: center;
    }

    .deal-strip strong {
        display: none;
    }
}

@media (max-width: 680px) {
    .storefront-hero {
        padding-top: 14px;
    }

    .promo-media {
        min-height: 210px;
    }

    .promo-media img {
        min-height: 210px;
        max-height: 260px;
    }

    .promo-content {
        margin-top: -54px;
        padding: 0 16px 76px;
    }

    .promo-content h1 {
        font-size: clamp(2rem, 10.5vw, 3rem);
        line-height: 1.12;
    }

    .promo-content p {
        font-size: .98rem;
    }

    .promo-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .promo-stats {
        inset-inline: 14px;
        inset-block-end: 14px;
    }

    .promo-stats span {
        flex: 1 1 auto;
        justify-content: center;
    }

    .shortcut-strip {
        grid-template-columns: 1fr;
    }

    .shortcut-item {
        min-height: 74px;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .deal-strip-inner {
        min-height: 44px;
        font-size: .9rem;
    }

    .deal-strip span {
        padding-inline: 9px;
    }

    .deal-strip a {
        min-height: 32px;
        padding-inline: 11px;
    }

    .contact-float {
        inset-inline-start: 14px;
        inset-block-end: 14px;
        min-height: 44px;
        padding: 9px 13px;
    }

    .catalog-search {
        min-height: 48px;
        margin-bottom: 14px;
        border-radius: var(--radius);
    }

    .catalog-media {
        aspect-ratio: 16 / 9;
    }

    .catalog-card .product-body {
        min-height: auto;
    }

    .category-title {
        align-items: flex-start;
        padding: 14px;
    }

    .category-title .category-icon {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
    }
}

/* Premium compact pass */
.brand-mark {
    width: 38px;
    height: 38px;
}

.nav-wrap {
    min-height: 64px;
}

.deal-strip-inner {
    min-height: 42px;
}

.deal-strip span {
    min-height: 28px;
}

.contact-float {
    min-height: 42px;
    padding: 8px 13px;
    box-shadow: 0 14px 30px rgba(6, 155, 104, .28);
}

.contact-float i {
    font-size: 1.05rem;
}

.catalog-search {
    min-height: 46px;
    border-color: color-mix(in srgb, var(--amber) 20%, var(--line));
    box-shadow: 0 12px 28px rgba(0, 0, 0, .1);
}

.catalog-card {
    container-type: inline-size;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface-strong) 96%, transparent), color-mix(in srgb, var(--surface-muted) 82%, transparent)),
        var(--surface-strong);
}

.catalog-media {
    max-height: 238px;
}

.catalog-card .product-body {
    min-height: 154px;
    padding: 14px;
}

.card-corner-icon {
    inset-block-start: -16px;
    width: 32px;
    height: 32px;
    font-size: .9rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .2);
}

.category-title {
    padding: 15px;
    gap: 13px;
}

.category-title .category-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
}

@container (max-width: 300px) {
    .catalog-card .product-body {
        min-height: 136px;
    }

    .catalog-card .product-top h3 {
        font-size: .98rem;
    }

    .catalog-card .product-body p {
        font-size: .92rem;
    }
}

@supports selector(.catalog-card:has(.price-pill)) {
    .catalog-card:has(.price-pill) {
        border-color: color-mix(in srgb, var(--emerald) 12%, var(--line));
    }
}

@media (max-width: 680px) {
    .brand-mark,
    .icon-btn,
    .menu-btn {
        width: 38px;
        height: 38px;
    }

    .nav-wrap {
        min-height: 58px;
        gap: 10px;
    }

    .deal-strip-inner {
        min-height: 38px;
        font-size: .84rem;
    }

    .storefront-hero {
        padding-top: 10px;
    }

    .catalog-search {
        min-height: 44px;
        padding-inline: 13px;
    }

    .category-page {
        padding-top: 24px;
    }

    .category-title {
        padding: 12px;
        margin-bottom: 14px;
    }

    .category-title .category-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        font-size: .9rem;
    }

    .category-title h1 {
        font-size: clamp(1.55rem, 8vw, 2.25rem);
    }

    .category-title p {
        font-size: .92rem;
    }

    .catalog-media {
        aspect-ratio: 20 / 9;
        max-height: 188px;
    }

    .catalog-media img {
        object-position: center 44%;
    }

    .product-type,
    .price-pill {
        transform: scale(.9);
    }

    .product-type {
        transform-origin: top right;
        inset-block-start: 9px;
        inset-inline-end: 9px;
    }

    .price-pill {
        transform-origin: bottom left;
        inset-block-end: 9px;
        inset-inline-start: 9px;
    }

    .catalog-card .product-body {
        min-height: 132px;
        padding: 12px 13px 13px;
    }

    .card-corner-icon {
        inset-block-start: -14px;
        inset-inline-start: 13px;
        inset-inline-end: auto;
        width: 30px;
        height: 30px;
        font-size: .82rem;
    }

    .catalog-card .btn {
        min-height: 40px;
        padding-block: 7px;
    }

    .contact-float {
        width: 42px;
        height: 42px;
        min-height: 42px;
        justify-content: center;
        padding: 0;
    }

    .contact-float span {
        display: none;
    }
}

/* More visual-source pass: faster catalog scanning */
.category-tabs {
    display: flex;
    gap: 8px;
    margin: -8px 0 14px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tabs a {
    flex: 0 0 auto;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    font-weight: 900;
    transition: transform .16s ease, border-color .16s ease, color .16s ease, background .16s ease;
}

.category-tabs a:hover,
.category-tabs a.is-active {
    color: var(--text);
    border-color: color-mix(in srgb, var(--emerald) 42%, var(--line));
    background: color-mix(in srgb, var(--emerald) 13%, var(--surface));
}

.category-tabs a:hover {
    transform: translateY(-1px);
}

.catalog-card .product-top {
    padding-inline-start: 42px;
}

@media (max-width: 680px) {
    .category-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: -4px 0 12px;
        padding: 0;
        overflow: visible;
    }

    .category-tabs a {
        min-width: 0;
        min-height: 34px;
        justify-content: center;
        padding: 6px 10px;
        font-size: .86rem;
    }

    .category-tabs a span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .category-tabs a:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .catalog-grid {
        gap: 10px;
    }

    .catalog-card {
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
        min-height: 132px;
    }

    .catalog-media {
        height: 100%;
        min-height: 132px;
        max-height: none;
        aspect-ratio: auto;
    }

    .catalog-media img {
        object-position: center;
    }

    .catalog-card .product-body {
        min-height: 0;
        padding: 11px;
        gap: 7px;
    }

    .catalog-card .product-top {
        justify-content: flex-start;
        gap: 7px;
        padding-inline-start: 0;
    }

    .card-corner-icon {
        position: relative;
        inset: auto;
        flex: 0 0 24px;
        width: 24px;
        height: 24px;
        border-radius: 7px;
        box-shadow: none;
        font-size: .7rem;
    }

    .catalog-card .product-top h3 {
        min-width: 0;
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: .94rem;
        line-height: 1.3;
    }

    .catalog-card .product-body p {
        -webkit-line-clamp: 1;
        font-size: .86rem;
        line-height: 1.45;
    }

    .catalog-card .btn {
        min-height: 34px;
        padding: 5px 10px;
        font-size: .84rem;
    }

    .product-type {
        inset-block-start: 7px;
        inset-inline-end: 7px;
        transform: scale(.74);
    }

    .price-pill {
        inset-block-end: 7px;
        inset-inline-start: 7px;
        transform: scale(.82);
    }

    .catalog-card:hover {
        transform: translateY(-2px);
    }
}

/* Final mobile layout override */
@media (max-width: 680px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }

    .catalog-card {
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
        padding: 0 !important;
        border-radius: 14px !important;
        background: #fff !important;
    }

    .catalog-media {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 1 / 1 !important;
        border: 0 !important;
        border-radius: 0 !important;
    }

    .catalog-media img {
        object-position: center !important;
    }

    .catalog-card .product-body {
        min-height: 0 !important;
        padding: 8px !important;
        gap: 6px !important;
    }

    .catalog-card .product-top {
        padding-inline-start: 0 !important;
        gap: 5px !important;
        justify-content: flex-start !important;
    }

    .catalog-card .product-top h3 {
        white-space: normal !important;
        font-size: .72rem !important;
        min-height: 2.45em !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }

    .catalog-card .product-body p {
        display: none !important;
    }

    .card-corner-icon {
        position: relative !important;
        inset: auto !important;
        flex: 0 0 18px !important;
        width: 18px !important;
        height: 18px !important;
        border-radius: 6px !important;
        font-size: .56rem !important;
    }

    .catalog-card .btn {
        min-height: 28px !important;
        width: 100% !important;
        padding: 4px 5px !important;
        font-size: .68rem !important;
        border-radius: 8px !important;
    }

    .catalog-card .btn i,
    .product-type {
        display: none !important;
    }

    .price-pill {
        transform: none !important;
        min-height: 20px !important;
        padding: 2px 6px !important;
        font-size: .64rem !important;
        inset-inline-start: 6px !important;
        inset-block-end: 6px !important;
    }
}

/* Compact phone drawer */
@media (max-width: 680px) {
    .side-drawer {
        width: min(258px, calc(100vw - 104px)) !important;
        padding: 10px !important;
        gap: 9px !important;
    }

    .drawer-head {
        gap: 8px !important;
        margin-bottom: 2px !important;
    }

    .drawer-head .brand {
        gap: 7px !important;
        font-size: .95rem !important;
    }

    .drawer-head .brand span:last-child {
        display: none !important;
    }

    .drawer-head .brand-mark,
    .drawer-head .icon-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 10px !important;
        font-size: .9rem !important;
    }

    .drawer-nav,
    .drawer-actions {
        gap: 6px !important;
    }

    .drawer-nav a,
    .drawer-action {
        min-height: 35px !important;
        padding: 6px 8px !important;
        gap: 7px !important;
        border-radius: 10px !important;
        font-size: .82rem !important;
        line-height: 1.2 !important;
    }

    .drawer-nav a i,
    .drawer-action i {
        width: 24px !important;
        height: 24px !important;
        flex: 0 0 24px !important;
        border-radius: 8px !important;
        font-size: .72rem !important;
    }

    .drawer-actions {
        margin-top: 8px !important;
    }
}

/* Final phone polish: dark mode readability and product page density */
@media (max-width: 680px) {
    html:not([data-theme="dark"]) .catalog-card {
        background: #f8fafc !important;
        color: #101620 !important;
        border-color: rgba(16, 24, 39, .08) !important;
        box-shadow: 0 10px 26px rgba(16, 24, 39, .1) !important;
        overflow: hidden !important;
    }

    .catalog-card {
        overflow: hidden !important;
    }

    html:not([data-theme="dark"]) .catalog-card .product-top h3 {
        color: #101620 !important;
        opacity: 1 !important;
        text-shadow: none !important;
        font-weight: 950 !important;
    }

    html:not([data-theme="dark"]) .catalog-card .product-body {
        background: #f8fafc !important;
        color: #101620 !important;
    }

    .catalog-card .btn {
        background: #48515c !important;
        border-color: transparent !important;
        color: #fff !important;
        box-shadow: none !important;
        font-size: .62rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-weight: 950 !important;
    }

    .catalog-card .btn:hover {
        background: #323a44 !important;
    }

    .catalog-card .card-corner-icon {
        color: #071411 !important;
    }

    .product-detail {
        padding: 14px 0 92px !important;
    }

    .product-detail .breadcrumb {
        display: none !important;
    }

    .detail-grid {
        gap: 12px !important;
    }

    .product-hero-image {
        aspect-ratio: 16 / 8.8 !important;
        border-radius: 14px !important;
        box-shadow: 0 12px 28px rgba(16, 24, 39, .12) !important;
    }

    .order-panel {
        position: relative !important;
        top: auto !important;
        padding: 16px !important;
        border-radius: 14px !important;
    }

    .order-panel .tag {
        font-size: .76rem !important;
        padding: 5px 10px !important;
    }

    .order-panel h1 {
        margin: 10px 0 6px !important;
        font-size: clamp(1.78rem, 8.4vw, 2.25rem) !important;
        line-height: 1.12 !important;
    }

    .order-panel .muted {
        margin: 0 !important;
        font-size: .95rem !important;
        line-height: 1.5 !important;
    }

    .detail-price {
        margin: 8px 0 12px !important;
        font-size: 2.15rem !important;
        line-height: 1 !important;
    }

    .field {
        margin-bottom: 9px !important;
    }

    .field label {
        margin-bottom: 5px !important;
        font-size: .9rem !important;
    }

    .input {
        min-height: 43px !important;
        padding: 9px 12px !important;
        border-radius: 10px !important;
    }

    .order-panel .btn.full {
        min-height: 46px !important;
        border-radius: 11px !important;
    }

    .live-chat-float {
        width: 42px !important;
        height: 42px !important;
        font-size: 1rem !important;
        inset-block-end: 12px !important;
    }

    .live-chat-panel {
        inset-block-end: 62px !important;
    }
}

@media (max-width: 680px) {
    [data-theme="dark"] .catalog-card {
        background: #0d141c !important;
        color: #f4f7fb !important;
        border-color: rgba(222, 233, 246, .12) !important;
        box-shadow: 0 14px 34px rgba(0, 0, 0, .34) !important;
    }

    [data-theme="dark"] .catalog-card .product-body {
        background: linear-gradient(180deg, #101821, #0d141c) !important;
        color: #f4f7fb !important;
    }

    [data-theme="dark"] .catalog-card .product-top h3 {
        color: #f4f7fb !important;
        opacity: 1 !important;
        text-shadow: none !important;
    }

    [data-theme="dark"] .catalog-card .btn {
        background: #1b2633 !important;
        border-color: rgba(222, 233, 246, .14) !important;
        color: #f4f7fb !important;
    }

    [data-theme="dark"] .catalog-card .btn:hover {
        background: #253345 !important;
    }

    [data-theme="dark"] .product-detail .input {
        background: #0b1118 !important;
        border-color: rgba(222, 233, 246, .16) !important;
        color: #f4f7fb !important;
    }

    [data-theme="dark"] .product-detail .input:focus {
        border-color: var(--emerald) !important;
        box-shadow: 0 0 0 4px rgba(62, 227, 160, .14) !important;
    }
}

/* Admin console */
.admin-page {
    padding: 28px 0 76px;
}

.admin-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    overflow-x: auto;
    box-shadow: var(--shadow-soft);
}

.admin-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius);
    color: var(--muted);
    font-weight: 900;
    white-space: nowrap;
}

.admin-nav a.is-active,
.admin-nav a:hover {
    color: var(--text);
    background: color-mix(in srgb, var(--emerald) 16%, var(--surface-strong));
}

.admin-hero,
.admin-toolbar,
.admin-card,
.admin-table-wrap,
.admin-form {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
    box-shadow: var(--shadow-soft);
}

.admin-hero,
.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 20px;
}

.admin-hero h1,
.admin-toolbar h1 {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.15;
}

.admin-hero p {
    margin: 8px 0 0;
    color: var(--muted);
}

.admin-kicker {
    display: inline-flex;
    margin-bottom: 6px;
    color: var(--emerald);
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-metrics,
.admin-section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.admin-metric,
.admin-section-card {
    min-height: 120px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, border-color .18s ease;
}

.admin-metric:hover,
.admin-section-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--emerald) 42%, var(--line));
}

.admin-metric i,
.admin-section-card i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #101620;
    background: linear-gradient(135deg, #d8ef6b, #21c777 52%, #19b7d7);
    box-shadow: 0 10px 20px rgba(16, 166, 109, .2);
}

[data-theme="dark"] .admin-metric i,
[data-theme="dark"] .admin-section-card i {
    background: linear-gradient(135deg, #c9d84f, #1fb86a 52%, #14a5c4);
    box-shadow: 0 10px 20px rgba(16, 166, 109, .16);
}

.admin-metric strong {
    font-size: 1.7rem;
    line-height: 1;
}

.admin-metric span,
.admin-section-card span {
    color: var(--muted);
    font-weight: 800;
}

.admin-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(150px, .35fr) minmax(150px, .35fr) auto;
    gap: 10px;
    margin-bottom: 14px;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table-wrap.flat {
    box-shadow: none;
}

.admin-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: start;
    vertical-align: middle;
}

.admin-table th {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 950;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-table small {
    display: block;
    color: var(--muted);
    font-weight: 800;
}

.admin-entity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-entity img,
.admin-entity > span {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    object-fit: cover;
    color: #071411;
    background: linear-gradient(135deg, var(--amber), var(--emerald), var(--cyan));
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-actions form {
    margin: 0;
}

.icon-btn.danger {
    color: #ef4444;
}

.admin-small-btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: .82rem;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--text);
    background: color-mix(in srgb, var(--surface-muted) 82%, transparent);
    font-size: .78rem;
    font-weight: 950;
}

.admin-badge-active,
.admin-badge-paid,
.admin-badge-approved,
.admin-badge-completed {
    color: #063d2a;
    background: rgba(62, 227, 160, .82);
}

.admin-badge-inactive,
.admin-badge-blocked,
.admin-badge-cancelled,
.admin-badge-rejected,
.admin-badge-failed {
    color: #5c1010;
    background: rgba(255, 125, 125, .72);
}

.admin-badge-pending,
.admin-badge-processing,
.admin-badge-unpaid {
    color: #513700;
    background: rgba(255, 210, 103, .78);
}

.admin-empty {
    padding: 32px !important;
    color: var(--muted);
    text-align: center !important;
    font-weight: 900;
}

.admin-form {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.admin-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 900;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-subhead {
    padding-top: 4px;
}

.admin-subhead h2,
.admin-card h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.admin-subhead p {
    margin: 0;
    color: var(--muted);
}

.admin-field-list {
    display: grid;
    gap: 10px;
}

.admin-field-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 74%, transparent);
}

.admin-submit {
    justify-self: start;
}

.admin-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 14px;
    margin-bottom: 14px;
}

.admin-card {
    padding: 18px;
}

.admin-dl {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 9px 14px;
    margin: 0 0 18px;
}

.admin-dl dt {
    color: var(--muted);
    font-weight: 900;
}

.admin-dl dd {
    margin: 0;
    font-weight: 900;
    word-break: break-word;
}

.muted-card {
    background: color-mix(in srgb, var(--surface-muted) 42%, transparent);
}

.admin-wallets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.admin-wallets span {
    padding: 6px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-strong) 80%, transparent);
    font-weight: 900;
}

.admin-settings-grid {
    display: grid;
    gap: 10px;
}

.admin-setting-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 120px 140px;
    gap: 10px;
}

.admin-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-weight: 900;
}

.admin-alert-success {
    color: #063d2a;
    background: rgba(62, 227, 160, .2);
}

.admin-alert-danger {
    color: #7a1616;
    background: rgba(255, 125, 125, .16);
}

[data-theme="dark"] .admin-page .input {
    background: #0b1118 !important;
    border-color: rgba(222, 233, 246, .16) !important;
    color: #f4f7fb !important;
}

[data-theme="dark"] .admin-page .input::placeholder {
    color: rgba(244, 247, 251, .54) !important;
}

@supports selector(body:has(.admin-page)) {
    body:has(.admin-page) .live-chat-float,
    body:has(.admin-page) .live-chat-panel {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .admin-metrics,
    .admin-section-grid,
    .admin-form-grid,
    .admin-two-col {
        grid-template-columns: 1fr;
    }

    .admin-filters {
        grid-template-columns: 1fr;
    }

    .admin-field-row,
    .admin-setting-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .admin-page {
        padding: 16px 0 64px;
    }

    .admin-nav {
        margin-inline: -4px;
        padding: 6px;
    }

    .admin-nav a {
        min-height: 34px;
        padding: 6px 9px;
        font-size: .82rem;
    }

    .admin-hero,
    .admin-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding: 14px;
    }

    .admin-metrics,
    .admin-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .admin-metric,
    .admin-section-card {
        min-height: 112px;
        padding: 12px;
    }

    .admin-section-card span {
        display: none;
    }

    .admin-table {
        min-width: 680px;
    }

    .admin-form,
    .admin-card {
        padding: 14px;
    }

    .admin-dl {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

/* User profile */
.profile-page {
    padding: 30px 0 82px;
}

.profile-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-weight: 900;
}

.profile-alert-success {
    color: #063d2a;
    background: rgba(62, 227, 160, .2);
}

.profile-alert-danger {
    color: #7a1616;
    background: rgba(255, 125, 125, .16);
}

.profile-hero,
.profile-panel,
.profile-metric,
.profile-quick-actions,
.profile-section-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
    box-shadow: var(--shadow-soft);
}

.profile-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: start;
    margin-bottom: 14px;
    padding: 24px;
    overflow: hidden;
}

.profile-hero::before {
    content: "";
    position: absolute;
    inset-inline-start: -90px;
    inset-block-start: -130px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(32, 215, 246, .24), transparent 68%);
    animation: profile-float 8s ease-in-out infinite;
    pointer-events: none;
}

.profile-hero::after {
    content: "";
    position: absolute;
    inset-inline-end: 260px;
    inset-block-end: -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 216, 94, .14), transparent 70%);
    pointer-events: none;
}

.profile-identity {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.profile-avatar {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    display: grid;
    place-items: center;
    border-radius: 26px;
    color: #071411;
    background:
        linear-gradient(135deg, rgba(255, 216, 94, .95), rgba(62, 227, 160, .95), rgba(32, 215, 246, .95));
    box-shadow: 0 18px 46px rgba(16, 166, 109, .22);
    animation: profile-pop 4.5s ease-in-out infinite;
}

.profile-avatar span {
    font-size: 2rem;
    font-weight: 1000;
}

.profile-kicker {
    display: inline-flex;
    margin-bottom: 6px;
    color: var(--emerald);
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.profile-identity h1,
.profile-panel h2 {
    margin: 0;
    line-height: 1.15;
}

.profile-identity h1 {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
}

.profile-identity p {
    margin: 6px 0 0;
    color: var(--muted);
    font-weight: 800;
}

.profile-badges,
.profile-feature-list,
.profile-wallets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-badges {
    margin-top: 12px;
}

.profile-badges span,
.profile-feature-list span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    font-size: .84rem;
    font-weight: 900;
}

/* Level badge accent colors */
.profile-badge-level[data-level="New"] {
    border-color: rgba(180, 180, 200, .4);
    color: var(--muted);
}

.profile-badge-level[data-level="Active"] {
    border-color: rgba(32, 215, 246, .42);
    color: #08a5c4;
    background: rgba(32, 215, 246, .1);
}

.profile-badge-level[data-level="Pro"] {
    border-color: rgba(62, 227, 160, .44);
    color: #0aa06e;
    background: rgba(62, 227, 160, .12);
}

.profile-badge-level[data-level="VIP"] {
    border-color: rgba(255, 216, 94, .52);
    color: #b07a00;
    background: rgba(255, 216, 94, .14);
}

[data-theme="dark"] .profile-badge-level[data-level="Active"] { color: #20d7f6; }
[data-theme="dark"] .profile-badge-level[data-level="Pro"] { color: #3ee3a0; }
[data-theme="dark"] .profile-badge-level[data-level="VIP"] { color: #ffd85e; }

/* Level progress bar */
.profile-level-progress {
    margin-top: 14px;
    display: grid;
    gap: 6px;
}

.profile-level-bar {
    height: 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--line) 70%, transparent);
    overflow: hidden;
}

.profile-level-fill {
    height: 100%;
    width: var(--lp, 0%);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--emerald), var(--cyan));
    transition: width 1s cubic-bezier(.22, 1, .36, 1);
}

.profile-level-hint {
    font-size: .78rem;
    font-weight: 900;
    color: var(--muted);
}

/* Score card */
.profile-score-card {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.profile-score-ring {
    margin: 0 auto;
    width: 128px;
    height: 128px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, var(--surface-strong) 0 54%, transparent 55%),
        conic-gradient(var(--emerald) var(--score, 0%), color-mix(in srgb, var(--line) 70%, transparent) 0);
    box-shadow: inset 0 0 0 1px var(--line), 0 18px 42px rgba(16, 166, 109, .16);
    animation: score-ring-in 1.2s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes score-ring-in {
    from {
        background:
            radial-gradient(circle at center, var(--surface-strong) 0 54%, transparent 55%),
            conic-gradient(var(--emerald) 0%, color-mix(in srgb, var(--line) 70%, transparent) 0);
    }
}

.profile-score-ring strong,
.profile-score-ring span {
    grid-area: 1 / 1;
}

.profile-score-ring strong {
    margin-top: -12px;
    font-size: 1.55rem;
    font-weight: 1000;
}

.profile-score-ring span {
    margin-top: 32px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 950;
}

/* Completion tips list */
.profile-completion-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px;
}

.profile-completion-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    font-weight: 900;
    color: var(--muted);
}

.profile-completion-list li i {
    flex-shrink: 0;
    font-size: .9rem;
    color: color-mix(in srgb, var(--muted) 60%, transparent);
}

.profile-completion-list li.done {
    color: var(--text);
    opacity: .72;
}

.profile-completion-list li.done i {
    color: var(--emerald);
}

.profile-completion-list li.pending {
    color: var(--text);
}

.profile-completion-list li.pending i {
    color: var(--amber);
}

/* Metrics */
.profile-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.profile-metric {
    min-height: 126px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 16px;
    transition: transform .18s ease, border-color .18s ease;
}

.profile-metric:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--emerald) 42%, var(--line));
}

.profile-metric i,
.profile-panel-head > i,
.profile-quick-actions i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: #071411;
    background: linear-gradient(135deg, var(--amber), var(--emerald), var(--cyan));
}

/* Per-card accent gradients for metric icons */
.profile-metric-1 i { background: linear-gradient(135deg, var(--emerald), var(--cyan)); }
.profile-metric-2 i { background: linear-gradient(135deg, var(--amber), #ff9a3c); }
.profile-metric-3 i { background: linear-gradient(135deg, var(--emerald), #00c875); }
.profile-metric-4 i { background: linear-gradient(135deg, var(--cyan), #7c5cfc); }

.profile-metric strong {
    font-size: 1.45rem;
    line-height: 1.05;
}

.profile-metric span {
    color: var(--muted);
    font-weight: 900;
}

.profile-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px;
}

.profile-quick-actions a {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--radius);
    color: var(--text);
    background: color-mix(in srgb, var(--surface) 74%, transparent);
    font-weight: 950;
    transition: transform .18s ease, background .18s ease;
}

.profile-quick-actions a:hover {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--emerald) 14%, var(--surface-strong));
}

.profile-grid,
.profile-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 14px;
    margin-bottom: 14px;
}

.profile-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.profile-panel {
    padding: 18px;
}

.profile-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.profile-panel-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-orders-count {
    font-size: .8rem;
    font-weight: 950;
    padding: 3px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--emerald) 14%, var(--surface));
    color: #0aa06e;
    border: 1px solid rgba(62, 227, 160, .28);
}

[data-theme="dark"] .profile-orders-count { color: #3ee3a0; }

.profile-timeline {
    display: grid;
    gap: 10px;
}

.profile-order-row {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 74%, transparent);
    transition: transform .18s ease, border-color .18s ease;
}

.profile-order-row:hover {
    transform: translateX(-3px);
    border-color: color-mix(in srgb, var(--emerald) 42%, var(--line));
}

.profile-order-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--emerald) 15%, transparent);
}

.profile-order-row strong {
    display: block;
}

.profile-order-row small {
    display: block;
    color: var(--muted);
    font-weight: 800;
}

.profile-order-meta {
    display: grid;
    justify-items: end;
    gap: 5px;
}

.profile-status {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-muted) 82%, transparent);
    font-size: .78rem;
    font-weight: 950;
}

.profile-status-completed,
.profile-status-paid {
    color: #063d2a;
    background: rgba(62, 227, 160, .82);
}

.profile-status-cancelled,
.profile-status-refunded {
    color: #5c1010;
    background: rgba(255, 125, 125, .72);
}

.profile-status-pending,
.profile-status-processing {
    color: #513700;
    background: rgba(255, 210, 103, .78);
}

.profile-empty {
    display: grid;
    justify-items: center;
    gap: 9px;
    padding: 26px 12px;
    color: var(--muted);
    text-align: center;
    font-weight: 900;
}

.profile-empty i {
    color: var(--emerald);
    font-size: 2rem;
}

.profile-wallet-card {
    position: relative;
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    padding: 18px;
    border-radius: var(--radius);
    color: white;
    background:
        linear-gradient(135deg, #101820, #0aa06e 55%, #20d7f6);
    overflow: hidden;
}

.profile-wallet-card::after {
    content: "";
    position: absolute;
    inset-inline-end: -35px;
    inset-block-start: -45px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .17);
}

.profile-wallet-card span,
.profile-wallet-card small,
.profile-wallet-card strong {
    position: relative;
    z-index: 1;
}

.profile-wallet-card strong {
    font-size: 2rem;
    line-height: 1;
}

.profile-wallet-card small {
    opacity: .82;
    font-weight: 800;
}

/* Level card in sidebar */
.profile-level-card {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 74%, transparent);
}

.profile-level-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.profile-level-next {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .8rem;
    font-weight: 950;
    color: var(--muted);
}

.profile-level-card p {
    margin: 0;
    font-size: .82rem;
    font-weight: 900;
    color: var(--muted);
}

.profile-feature-list {
    display: grid;
}

.profile-form {
    display: grid;
    gap: 13px;
}

.profile-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 900;
}

.profile-form-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

[data-theme="dark"] .profile-page .input {
    background: #0b1118 !important;
    border-color: rgba(222, 233, 246, .16) !important;
    color: #f4f7fb !important;
}

[data-theme="dark"] .profile-page .input::placeholder {
    color: rgba(244, 247, 251, .54) !important;
}

@keyframes profile-float {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(36px, 22px, 0) scale(1.05);
    }
}

@keyframes profile-pop {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-4px) rotate(-2deg);
    }
}

@media (max-width: 980px) {
    .profile-hero,
    .profile-grid,
    .profile-settings-grid {
        grid-template-columns: 1fr;
    }

    .profile-metrics,
    .profile-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .profile-page {
        padding: 16px 0 70px;
    }

    .profile-hero,
    .profile-panel {
        padding: 14px;
    }

    .profile-identity {
        align-items: flex-start;
    }

    .profile-avatar {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
        border-radius: 18px;
    }

    .profile-avatar span {
        font-size: 1.35rem;
    }

    .profile-badges span {
        min-height: 28px;
        font-size: .76rem;
    }

    .profile-score-card {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .profile-score-ring {
        width: 92px;
        height: 92px;
    }

    .profile-score-ring strong {
        font-size: 1.18rem;
    }

    .profile-score-ring span {
        margin-top: 26px;
        font-size: .68rem;
    }

    .profile-metrics {
        gap: 9px;
    }

    .profile-metric {
        min-height: 106px;
        padding: 12px;
    }

    .profile-metric strong {
        font-size: 1.08rem;
    }

    .profile-quick-actions {
        gap: 8px;
        padding: 8px;
    }

    .profile-quick-actions a {
        min-height: 48px;
        font-size: .82rem;
    }

    .profile-quick-actions i {
        width: 28px;
        height: 28px;
    }

    .profile-order-row {
        grid-template-columns: 14px minmax(0, 1fr);
    }

    .profile-order-meta {
        grid-column: 2;
        justify-items: start;
    }

    .profile-form-pair {
        grid-template-columns: 1fr;
    }
}

/* SGC-inspired user features */
.favorite-chip {
    position: absolute;
    z-index: 4;
    inset-block-start: 8px;
    inset-inline-start: 8px;
    margin: 0;
}

.favorite-chip button,
.product-favorite-btn {
    border: 1px solid var(--line);
    color: #fff;
    background: rgba(10, 16, 24, .68);
    backdrop-filter: blur(12px);
}

.favorite-chip button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    cursor: pointer;
}

.favorite-chip .bi-heart-fill,
.product-favorite-btn.is-active {
    color: #ff5f8f;
}

.card-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 900;
}

.card-rating i {
    color: var(--amber);
}

.card-rating small {
    opacity: .8;
}

.product-action-row,
.product-rating-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.product-action-row {
    justify-content: space-between;
}

.product-rating-summary {
    margin-top: 10px;
    color: var(--muted);
    font-weight: 900;
}

.product-rating-summary span {
    color: var(--text);
}

.product-rating-summary i,
.review-card span i {
    color: var(--amber);
}

.saved-id-strip {
    display: grid;
    gap: 8px;
    margin: 10px 0 14px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.saved-id-strip strong {
    font-size: .88rem;
}

.saved-id-strip button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
    font-weight: 900;
    cursor: pointer;
}

.product-extras-grid,
.profile-sgc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 14px;
    margin-top: 14px;
}

.product-extra-panel {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
    box-shadow: var(--shadow-soft);
}

.review-list,
.saved-id-list,
.favorite-list,
.point-feed {
    display: grid;
    gap: 10px;
}

.review-card,
.saved-id-item,
.point-feed > div,
.favorite-list a {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.review-card > div,
.saved-id-item,
.favorite-list a,
.point-feed > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.review-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-weight: 800;
}

.review-card small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    color: var(--emerald);
    font-weight: 900;
}

.profile-sgc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 14px;
}

.loyalty-card {
    display: grid;
    gap: 4px;
    padding: 18px;
    border-radius: var(--radius);
    color: white;
    background: linear-gradient(135deg, #121a25, #0ca56d 54%, #20d7f6);
}

.loyalty-card span {
    text-transform: uppercase;
    font-weight: 950;
    opacity: .82;
}

.loyalty-card strong {
    font-size: 2.1rem;
    line-height: 1;
}

.mini-stats,
.referral-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.mini-stats span,
.referral-box code {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    font-weight: 900;
}

.saved-id-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.saved-id-form button {
    grid-column: 1 / -1;
}

.saved-id-item small {
    display: block;
    color: var(--muted);
    font-weight: 800;
}

.favorite-list a {
    color: var(--text);
    font-weight: 950;
}

.favorite-list img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}

.favorite-list span {
    flex: 1;
}

.is-copied {
    border-color: color-mix(in srgb, var(--emerald) 60%, var(--line)) !important;
}

[data-theme="dark"] .product-extra-panel .input,
[data-theme="dark"] .saved-id-form .input {
    background: #0b1118 !important;
    border-color: rgba(222, 233, 246, .16) !important;
    color: #f4f7fb !important;
}

@media (max-width: 980px) {
    .product-extras-grid,
    .profile-sgc-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .favorite-chip button {
        width: 26px;
        height: 26px;
        font-size: .72rem;
    }

    .card-rating {
        font-size: .62rem;
        gap: 3px;
    }

    .card-rating small {
        display: none;
    }

    .product-extras-grid {
        margin-top: 10px;
    }

    .product-extra-panel {
        padding: 14px;
    }

    .saved-id-form {
        grid-template-columns: 1fr;
    }
}

/* SGC-style profile */
.sgc-profile-page {
    padding: 28px 0 92px;
}

.sgc-profile-shell {
    max-width: 1120px;
}

.sgc-profile-top,
.sgc-profile-main,
.sgc-settings-grid {
    display: grid;
    gap: 16px;
}

.sgc-profile-top {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    align-items: stretch;
}

.sgc-account-card,
.sgc-wallet-card,
.sgc-profile-menu,
.sgc-profile-section,
.profile-score-card {
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    border-radius: 22px;
    background: color-mix(in srgb, var(--surface-muted) 60%, var(--surface));
    box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .sgc-account-card,
[data-theme="dark"] .sgc-wallet-card,
[data-theme="dark"] .sgc-profile-menu,
[data-theme="dark"] .sgc-profile-section,
[data-theme="dark"] .profile-score-card {
    background:
        linear-gradient(145deg, rgba(17, 25, 34, .94), rgba(9, 15, 22, .92));
    border-color: rgba(222, 233, 246, .12);
}

.sgc-account-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 24px;
}

.sgc-account-card::before {
    content: "";
    position: absolute;
    inset-inline-end: -82px;
    inset-block-start: -94px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(62, 227, 160, .24), transparent 64%),
        radial-gradient(circle at 72% 28%, rgba(255, 184, 77, .16), transparent 52%);
    pointer-events: none;
}

.sgc-avatar-wrap {
    position: relative;
    width: 122px;
    height: 122px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        conic-gradient(from 180deg, #34d399, #20d7f6, #ffcf5d, #34d399);
    box-shadow: 0 20px 42px rgba(16, 166, 109, .24);
    animation: sgc-avatar-glow 3.8s ease-in-out infinite alternate;
}

.sgc-avatar-wrap::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: inherit;
    background: var(--surface-strong);
}

[data-theme="dark"] .sgc-avatar-wrap::after {
    background: #101821;
}

.sgc-avatar {
    position: relative;
    z-index: 1;
    width: 98px;
    height: 98px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(18, 24, 34, .92), rgba(31, 42, 55, .98)),
        #111827;
    font-size: 2.15rem;
    font-weight: 1000;
}

.sgc-avatar-status {
    position: absolute;
    z-index: 3;
    inset-inline-end: 9px;
    inset-block-end: 14px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #32d27b;
    border: 4px solid var(--surface-strong);
    box-shadow: 0 0 0 0 rgba(50, 210, 123, .48);
    animation: sgc-status-pulse 2.2s ease-out infinite;
}

[data-theme="dark"] .sgc-avatar-status {
    border-color: #101821;
}

.sgc-avatar-level {
    position: absolute;
    z-index: 3;
    inset-inline-start: -2px;
    inset-block-start: 12px;
    display: inline-flex;
    min-width: 40px;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 999px;
    color: #10201a;
    background: linear-gradient(135deg, #ffe083, #34d399);
    font-size: .72rem;
    font-weight: 1000;
    box-shadow: 0 10px 24px rgba(16, 166, 109, .25);
}

.sgc-account-info {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.sgc-account-info h1 {
    margin: 0;
    font-size: clamp(1.65rem, 4vw, 3.1rem);
    line-height: 1.15;
    font-weight: 1000;
}

.sgc-account-info p {
    margin: 7px 0 0;
    color: var(--muted);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.sgc-account-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.sgc-account-chips span,
.sgc-wallet-head span,
.sgc-muted-line {
    color: var(--muted);
    font-weight: 850;
}

.sgc-account-chips span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-muted) 58%, transparent);
    font-size: .78rem;
}

.sgc-wallet-card {
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: space-between;
    gap: 14px;
    min-height: 220px;
    padding: 22px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(8, 101, 74, .96), rgba(8, 144, 121, .92) 55%, rgba(15, 23, 42, .96)),
        #0f766e;
}

[data-theme="dark"] .sgc-wallet-card {
    background:
        linear-gradient(135deg, rgba(4, 78, 66, .98), rgba(11, 120, 106, .94) 52%, rgba(7, 16, 25, .98));
}

.sgc-wallet-card::after {
    content: "";
    position: absolute;
    inset-inline-end: -34px;
    inset-block-end: -46px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 207, 93, .34), transparent 66%);
}

.sgc-wallet-head,
.sgc-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.sgc-wallet-head i,
.sgc-section-head > i,
.sgc-profile-menu-item > i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 13px;
    color: #101620;
    background: linear-gradient(135deg, #d8ef6b, #21c777 52%, #19b7d7);
    box-shadow: 0 14px 26px rgba(16, 166, 109, .24);
}

.sgc-wallet-head span {
    color: rgba(255, 255, 255, .78);
}

.sgc-wallet-card strong {
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 5vw, 3.1rem);
    line-height: 1;
    font-weight: 1000;
}

.sgc-wallet-card strong em {
    font-size: .82rem;
    font-style: normal;
    opacity: .78;
}

.sgc-wallet-action {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    color: #10201a;
    background: #fff;
    font-weight: 1000;
    box-shadow: 0 18px 36px rgba(0, 0, 0, .18);
}

.sgc-wallet-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.sgc-wallet-stats span {
    display: grid;
    gap: 2px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .78);
    font-size: .75rem;
    font-weight: 850;
}

.sgc-wallet-stats b {
    color: #fff;
    font-size: 1rem;
    font-weight: 1000;
}

.sgc-profile-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
    padding: 12px;
}

.sgc-profile-menu-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 76px;
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-strong) 64%, transparent);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.sgc-profile-menu-item:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--emerald) 50%, var(--line));
    background: color-mix(in srgb, var(--emerald) 10%, var(--surface-strong));
}

.sgc-profile-menu-item span {
    min-width: 0;
}

.sgc-profile-menu-item strong,
.sgc-section-head h2,
.sgc-id-row strong,
.sgc-product-row strong,
.sgc-order-row strong,
.sgc-review-row strong {
    color: var(--text);
    font-weight: 1000;
}

.sgc-profile-menu-item strong,
.sgc-profile-menu-item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sgc-profile-menu-item small {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
}

.sgc-profile-menu-item b {
    min-width: 30px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #0c2f21;
    background: color-mix(in srgb, var(--emerald) 22%, white);
    text-align: center;
    font-size: .76rem;
    font-weight: 1000;
}

[data-theme="dark"] .sgc-profile-menu-item {
    background: rgba(8, 14, 20, .72);
}

[data-theme="dark"] .sgc-profile-menu-item b {
    color: #ddfff0;
    background: rgba(62, 227, 160, .16);
}

.sgc-profile-main {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    margin-top: 16px;
    align-items: start;
}

.sgc-profile-column {
    display: grid;
    gap: 16px;
}

.sgc-profile-section {
    padding: 18px;
}

.sgc-section-head {
    margin-bottom: 14px;
}

.sgc-section-head span {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 900;
}

.sgc-section-head h2 {
    margin: 2px 0 0;
    font-size: 1.22rem;
    line-height: 1.25;
}

.sgc-section-head h1 {
    margin: 2px 0 0;
    color: var(--text);
    font-size: clamp(1.45rem, 4vw, 2.25rem);
    line-height: 1.18;
    font-weight: 1000;
}

.sgc-icon-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Icon tile — vertical card style (clean circular icon + label) */
.sgc-icon-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 120px;
    padding: 18px 10px 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .07);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .05);
    grid-template-columns: unset;
    text-align: center;
}

[data-theme="dark"] .sgc-icon-tile {
    background: rgba(15, 22, 32, .92);
    border-color: rgba(255, 255, 255, .08);
    box-shadow: 0 2px 14px rgba(0, 0, 0, .28);
}

.sgc-icon-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1), 0 2px 6px rgba(0, 0, 0, .07);
    border-color: rgba(0, 0, 0, .12);
}

[data-theme="dark"] .sgc-icon-tile:hover {
    border-color: rgba(255, 255, 255, .18);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .38);
}

.sgc-icon-tile > i {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    font-size: 1.35rem;
}

/* Per-tile accent colors (nth-child) */
.sgc-icon-tile:nth-child(1) > i { color: #ea7c1e; background: rgba(255, 162, 60, .14); }
.sgc-icon-tile:nth-child(2) > i { color: #7c5cfc; background: rgba(124, 92, 252, .12); }
.sgc-icon-tile:nth-child(3) > i { color: #0891b2; background: rgba(32, 215, 246, .12); }
.sgc-icon-tile:nth-child(4) > i { color: #e5536a; background: rgba(255, 100, 130, .12); }
.sgc-icon-tile:nth-child(5) > i { color: #c28b00; background: rgba(255, 216, 94, .14); }
.sgc-icon-tile:nth-child(6) > i { color: #0aa06e; background: rgba(62, 227, 160, .12); }
.sgc-icon-tile:nth-child(7) > i { color: #3b82f6; background: rgba(59, 130, 246, .12); }
.sgc-icon-tile:nth-child(8) > i { color: #0d9488; background: rgba(20, 184, 166, .12); }

.sgc-icon-tile > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: unset;
}

.sgc-icon-tile > span strong {
    font-size: .88rem;
    font-weight: 950;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
}

/* Hide subtitle in icon-tile mode for cleaner look */
.sgc-icon-tile > span small {
    display: none;
}

/* Value badge — small pill top-right */
.sgc-icon-tile > b {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    min-width: 22px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 1000;
}

.sgc-level-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sgc-level-card > div {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--surface-muted) 70%, transparent), color-mix(in srgb, var(--surface-strong) 72%, transparent));
}

.sgc-level-card span {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 850;
}

.sgc-level-card strong {
    display: block;
    margin-top: 4px;
    font-size: 1.65rem;
    line-height: 1;
    font-weight: 1000;
}

.sgc-progress-line {
    height: 10px;
    overflow: hidden;
    margin-top: 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-muted) 76%, transparent);
}

.sgc-progress-line span {
    display: block;
    width: var(--progress);
    max-width: 100%;
    min-height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #21c777, #20d7f6, #ffcf5d);
    animation: sgc-progress-shine 2.8s ease-in-out infinite;
}

.sgc-muted-line {
    margin: 8px 0 0;
    font-size: .82rem;
}

.sgc-activity-list,
.sgc-id-list,
.sgc-order-list,
.sgc-product-list,
.sgc-review-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.sgc-activity-row,
.sgc-id-row,
.sgc-order-row,
.sgc-product-row,
.sgc-review-row {
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    border-radius: 15px;
    background: color-mix(in srgb, var(--surface-strong) 68%, transparent);
}

[data-theme="dark"] .sgc-activity-row,
[data-theme="dark"] .sgc-id-row,
[data-theme="dark"] .sgc-order-row,
[data-theme="dark"] .sgc-product-row,
[data-theme="dark"] .sgc-review-row,
[data-theme="dark"] .sgc-level-card > div {
    background: rgba(7, 13, 19, .76);
    border-color: rgba(222, 233, 246, .1);
}

.sgc-activity-row,
.sgc-id-row,
.sgc-order-row,
.sgc-product-row {
    display: grid;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.sgc-activity-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
}

.sgc-id-row {
    grid-template-columns: 38px minmax(0, 1fr) 38px 38px;
}

.sgc-order-row {
    grid-template-columns: 14px minmax(0, 1fr) auto;
}

.sgc-product-row {
    grid-template-columns: 58px minmax(0, 1fr) auto;
}

.sgc-activity-row > i,
.sgc-id-row > i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #10201a;
    background: linear-gradient(135deg, #d8ef6b, #21c777 58%, #20d7f6);
}

.sgc-activity-row span,
.sgc-id-row span,
.sgc-product-row span,
.sgc-order-row small,
.sgc-review-row p {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
}

.sgc-activity-row b {
    color: var(--emerald);
    font-weight: 1000;
}

.sgc-id-row form {
    margin: 0;
}

.sgc-copy-btn,
.sgc-delete-btn {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    background: color-mix(in srgb, var(--surface-muted) 64%, transparent);
    cursor: pointer;
}

.sgc-delete-btn {
    color: var(--rose);
}

.sgc-saved-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sgc-saved-form button {
    grid-column: 1 / -1;
}

.sgc-referral-card {
    display: grid;
    gap: 10px;
}

.sgc-referral-card code {
    display: block;
    overflow: hidden;
    padding: 12px;
    border: 1px dashed color-mix(in srgb, var(--emerald) 52%, var(--line));
    border-radius: 14px;
    color: var(--text);
    background: color-mix(in srgb, var(--surface-muted) 62%, transparent);
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr;
}

.sgc-order-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--emerald) 14%, transparent);
}

.sgc-product-row img {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
}

.sgc-review-row {
    padding: 12px;
}

.sgc-review-row span {
    display: inline-flex;
    gap: 2px;
    margin-top: 3px;
    color: #f2aa22;
    font-size: .78rem;
}

.sgc-review-row p {
    margin: 8px 0 0;
}

.sgc-empty {
    padding: 16px;
    border: 1px dashed var(--line);
    border-radius: 15px;
    color: var(--muted);
    text-align: center;
    font-weight: 900;
}

.sgc-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.sgc-form-card {
    display: grid;
    gap: 12px;
}

.sgc-form-card label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 900;
}

.sgc-profile-page .input,
.sgc-profile-page select.input {
    min-height: 50px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
}

[data-theme="dark"] .sgc-profile-page .input,
[data-theme="dark"] .sgc-profile-page select.input {
    background: #081018 !important;
    border-color: rgba(222, 233, 246, .12) !important;
    color: #f4f7fb !important;
}

html[dir="ltr"] .sgc-product-row > .bi-chevron-left {
    transform: rotate(180deg);
}

@keyframes sgc-avatar-glow {
    from {
        filter: saturate(1);
        transform: translateY(0);
    }
    to {
        filter: saturate(1.25);
        transform: translateY(-3px);
    }
}

@keyframes sgc-status-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(50, 210, 123, .48);
    }
    72% {
        box-shadow: 0 0 0 9px rgba(50, 210, 123, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(50, 210, 123, 0);
    }
}

@keyframes sgc-progress-shine {
    0% {
        filter: saturate(1);
    }
    50% {
        filter: saturate(1.45) brightness(1.08);
    }
    100% {
        filter: saturate(1);
    }
}

@media (max-width: 980px) {
    .sgc-profile-top,
    .sgc-profile-main,
    .sgc-settings-grid {
        grid-template-columns: 1fr;
    }

    .sgc-profile-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sgc-icon-menu {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .sgc-profile-page {
        padding-top: 16px;
    }

    .sgc-profile-shell {
        width: min(100% - 24px, 1120px);
    }

    .sgc-account-card {
        min-height: 0;
        align-items: center;
        padding: 18px;
        border-radius: 20px;
    }

    .sgc-avatar-wrap {
        width: 88px;
        height: 88px;
    }

    .sgc-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.45rem;
    }

    .sgc-avatar-level {
        inset-block-start: 4px;
        font-size: .62rem;
        min-width: 32px;
        padding: 3px 7px;
    }

    .sgc-avatar-status {
        width: 15px;
        height: 15px;
        border-width: 3px;
    }

    .sgc-account-info h1 {
        font-size: 1.45rem;
    }

    .sgc-account-info p {
        font-size: .82rem;
    }

    .sgc-account-chips span {
        font-size: .68rem;
        padding: 5px 8px;
    }

    .sgc-wallet-card,
    .sgc-profile-section {
        border-radius: 18px;
        padding: 15px;
    }

    .sgc-wallet-card {
        min-height: 186px;
    }

    .sgc-wallet-card strong {
        font-size: 2.1rem;
    }

    .sgc-profile-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 8px;
        gap: 8px;
        border-radius: 18px;
    }

    .sgc-profile-menu-item {
        grid-template-columns: 34px minmax(0, 1fr);
        min-height: 68px;
        padding: 9px;
    }

    .sgc-profile-menu-item > i {
        width: 34px;
        height: 34px;
        border-radius: 11px;
        font-size: .92rem;
    }

    .sgc-profile-menu-item b {
        grid-column: 2;
        justify-self: start;
        margin-top: -2px;
        font-size: .65rem;
    }

    .sgc-profile-menu-item strong {
        font-size: .82rem;
    }

    .sgc-profile-menu-item small {
        display: none;
    }

    .sgc-icon-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sgc-level-card,
    .sgc-saved-form {
        grid-template-columns: 1fr;
    }

    .sgc-id-row {
        grid-template-columns: 34px minmax(0, 1fr) 34px 34px;
        padding: 9px;
    }

    .sgc-copy-btn,
    .sgc-delete-btn {
        width: 34px;
        height: 34px;
    }

    .sgc-order-row {
        grid-template-columns: 12px minmax(0, 1fr);
    }

    .sgc-order-row .profile-status {
        grid-column: 2;
        justify-self: start;
    }

    .sgc-product-row {
        grid-template-columns: 52px minmax(0, 1fr) auto;
    }

    .sgc-product-row img {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 390px) {
    .sgc-account-card {
        gap: 12px;
    }

    .sgc-profile-menu-item strong {
        font-size: .76rem;
    }

    .sgc-wallet-stats {
        grid-template-columns: 1fr;
    }
}

.sgc-form-page {
    min-height: calc(100vh - 76px);
}

.sgc-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
    font-size: .86rem;
    font-weight: 950;
}

html[dir="ltr"] .sgc-back-link i {
    transform: rotate(180deg);
}

.sgc-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 16px;
    align-items: start;
}

.sgc-editor-card {
    min-height: 520px;
    padding: 22px;
}

.sgc-editor-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 150px;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--emerald) 30%, var(--line));
    border-radius: 20px;
    background:
        radial-gradient(circle at 12% 14%, rgba(32, 215, 246, .14), transparent 32%),
        linear-gradient(135deg, color-mix(in srgb, var(--emerald) 12%, var(--surface-strong)), color-mix(in srgb, var(--surface-muted) 70%, transparent));
}

[data-theme="dark"] .sgc-editor-hero {
    background:
        radial-gradient(circle at 12% 14%, rgba(32, 215, 246, .12), transparent 34%),
        linear-gradient(135deg, rgba(22, 87, 69, .28), rgba(7, 13, 19, .86));
}

.sgc-security-hero {
    border-color: color-mix(in srgb, var(--amber) 36%, var(--line));
    background:
        radial-gradient(circle at 12% 14%, rgba(255, 184, 77, .18), transparent 32%),
        linear-gradient(135deg, color-mix(in srgb, var(--amber) 13%, var(--surface-strong)), color-mix(in srgb, var(--surface-muted) 70%, transparent));
}

[data-theme="dark"] .sgc-security-hero {
    background:
        radial-gradient(circle at 12% 14%, rgba(255, 184, 77, .16), transparent 34%),
        linear-gradient(135deg, rgba(102, 73, 16, .28), rgba(7, 13, 19, .86));
}

.sgc-editor-hero > i {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 18px;
    color: #10201a;
    background: linear-gradient(135deg, #d8ef6b, #21c777 52%, #20d7f6);
    box-shadow: 0 18px 36px rgba(16, 166, 109, .22);
    font-size: 1.45rem;
}

.sgc-security-hero > i {
    background: linear-gradient(135deg, #ffe083, #ffb84d 55%, #20d7f6);
}

.sgc-editor-hero span {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 950;
}

.sgc-editor-hero h1 {
    margin: 2px 0 0;
    color: var(--text);
    font-size: clamp(1.75rem, 5vw, 3rem);
    line-height: 1.12;
    font-weight: 1000;
}

.sgc-editor-hero p {
    margin: 8px 0 0;
    color: var(--muted);
    font-weight: 850;
}

.sgc-editor-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sgc-editor-fields label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 950;
}

.sgc-editor-side {
    display: grid;
    gap: 14px;
}

.sgc-side-list {
    display: grid;
    gap: 10px;
}

.sgc-side-list > div {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: color-mix(in srgb, var(--surface-muted) 58%, transparent);
}

[data-theme="dark"] .sgc-side-list > div {
    background: rgba(7, 13, 19, .72);
}

.sgc-side-list i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    grid-row: span 2;
    border-radius: 12px;
    color: #10201a;
    background: linear-gradient(135deg, #d8ef6b, #21c777 58%, #20d7f6);
}

.sgc-side-list span,
.sgc-side-list strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sgc-side-list span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 850;
}

.sgc-side-list strong {
    color: var(--text);
    font-size: .92rem;
    font-weight: 1000;
}

.sgc-side-action {
    margin-top: 4px;
}

@media (max-width: 980px) {
    .sgc-editor-layout {
        grid-template-columns: 1fr;
    }

    .sgc-editor-card {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .sgc-back-link {
        margin-bottom: 10px;
    }

    .sgc-editor-card {
        padding: 15px;
    }

    .sgc-editor-hero {
        min-height: 126px;
        padding: 14px;
        border-radius: 18px;
    }

    .sgc-editor-hero > i {
        width: 52px;
        height: 52px;
        border-radius: 15px;
        font-size: 1.18rem;
    }

    .sgc-editor-hero h1 {
        font-size: 1.65rem;
    }

    .sgc-editor-hero p {
        font-size: .82rem;
    }

    .sgc-editor-fields {
        grid-template-columns: 1fr;
    }
}

/* Product order packages and quantity pricing */
.product-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.product-option-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 72px;
    margin: 0;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-strong) 74%, transparent);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.product-option-card:hover,
.product-option-card:has(input:checked) {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--emerald) 54%, var(--line));
    background:
        radial-gradient(circle at 12% 18%, rgba(62, 227, 160, .18), transparent 38%),
        color-mix(in srgb, var(--surface-strong) 86%, transparent);
    box-shadow: 0 16px 36px rgba(16, 166, 109, .12);
}

.product-option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-option-card strong,
.product-option-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-option-card strong {
    color: var(--text);
    font-size: .9rem;
    font-weight: 1000;
}

.product-option-card small {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 850;
}

.product-option-card b {
    padding: 5px 8px;
    border-radius: 999px;
    color: #0d2d21;
    background: linear-gradient(135deg, #d8ef6b, #21c777);
    font-size: .78rem;
    font-weight: 1000;
}

.order-help {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 850;
}

.order-total-card,
.order-review-unlocked {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--emerald) 28%, var(--line));
    border-radius: 16px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--emerald) 10%, transparent), color-mix(in srgb, var(--cyan) 7%, transparent)),
        color-mix(in srgb, var(--surface-strong) 76%, transparent);
}

.order-total-card span {
    color: var(--muted);
    font-weight: 900;
}

.order-total-card strong {
    color: var(--emerald);
    font-size: 1.35rem;
    font-weight: 1000;
}

.order-review-unlocked {
    justify-content: flex-start;
    color: var(--emerald);
    font-weight: 950;
}

.review-locked .profile-panel-head > i {
    background: linear-gradient(135deg, var(--amber), #ffd86b);
}

[data-theme="dark"] .product-option-card,
[data-theme="dark"] .order-total-card,
[data-theme="dark"] .order-review-unlocked {
    background-color: rgba(8, 14, 20, .76);
    border-color: rgba(222, 233, 246, .12);
}

[data-theme="dark"] .product-option-card:hover,
[data-theme="dark"] .product-option-card:has(input:checked) {
    background:
        radial-gradient(circle at 12% 18%, rgba(62, 227, 160, .16), transparent 38%),
        rgba(7, 13, 19, .92);
}

.admin-option-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 680px) {
    .product-option-grid,
    .admin-option-row {
        grid-template-columns: 1fr;
    }

    .product-option-card {
        min-height: 64px;
        border-radius: 14px;
    }
}


/* =============================================
   CLEAN CARD REDESIGN � Drawer + Shortcuts + Products
   ============================================= */

/* ?? Side drawer nav ? 2-column vertical card grid ?? */
.drawer-nav {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
}

.drawer-nav a {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 86px !important;
    padding: 14px 8px 12px !important;
    border-radius: 16px !important;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, .07) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06) !important;
    text-align: center !important;
    font-size: .82rem !important;
    font-weight: 950 !important;
    color: var(--text) !important;
    transition: transform .18s ease, box-shadow .18s ease !important;
}

.drawer-nav a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .1) !important;
}

/* Single last item in odd-count grid ? full width */
.drawer-nav a:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    min-height: 52px !important;
    padding: 10px 14px !important;
    text-align: start !important;
    gap: 12px !important;
}

/* Circular icons for drawer nav */
.drawer-nav a i {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    color: inherit !important;
    background: none !important;
    box-shadow: none !important;
    font-size: 1.2rem !important;
    display: grid !important;
    place-items: center !important;
}

/* Per-link accent colors */
.drawer-nav a:nth-child(1) i { color: #3b82f6; background: rgba(59, 130, 246, .12) !important; }
.drawer-nav a:nth-child(2) i { color: #ea7c1e; background: rgba(255, 162, 60, .13) !important; }
.drawer-nav a:nth-child(3) i { color: #0aa06e; background: rgba(62, 227, 160, .12) !important; }
.drawer-nav a:nth-child(4) i { color: #e5536a; background: rgba(255, 100, 130, .11) !important; }
.drawer-nav a:nth-child(5) i { color: #7c5cfc; background: rgba(124, 92, 252, .11) !important; }
.drawer-nav a:nth-child(6) i { color: #c28b00; background: rgba(255, 216, 94, .14) !important; }
.drawer-nav a:nth-child(7) i { color: #0891b2; background: rgba(32, 215, 246, .11) !important; }
.drawer-nav a:nth-child(8) i { color: #0d9488; background: rgba(20, 184, 166, .11) !important; }

[data-theme="dark"] .drawer-nav a {
    background: rgba(15, 22, 32, .92) !important;
    border-color: rgba(255, 255, 255, .08) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .28) !important;
}

[data-theme="dark"] .drawer-nav a:hover {
    border-color: rgba(255, 255, 255, .16) !important;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .38) !important;
}

/* Drawer actions keep row layout */
.drawer-action {
    flex-direction: row !important;
    align-items: center !important;
    min-height: 46px !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    gap: 10px !important;
    font-size: .88rem !important;
}

.drawer-action i {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(62, 227, 160, .12) !important;
    color: #0aa06e !important;
    box-shadow: none !important;
}

[data-theme="dark"] .drawer-action i {
    color: #3ee3a0 !important;
}

/* ?? Shortcut items ? vertical card tiles ?? */
.shortcut-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    min-height: 100px !important;
    padding: 16px 10px 14px !important;
    border-radius: 18px !important;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, .07) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06) !important;
    text-align: center !important;
    grid-template-columns: unset !important;
    column-gap: unset !important;
    transition: transform .18s ease, box-shadow .18s ease !important;
}

.shortcut-item:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .1) !important;
    border-color: rgba(0, 0, 0, .12) !important;
    background: #fff !important;
}

.shortcut-item span {
    grid-row: unset !important;
    width: 54px !important;
    height: 54px !important;
    border-radius: 50% !important;
    font-size: 1.3rem !important;
    border: 0 !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, rgba(255, 224, 107, .3), rgba(32, 210, 143, .22)) !important;
    color: #0aa06e !important;
    flex-shrink: 0 !important;
}

.shortcut-item:nth-child(1) span { background: rgba(59, 130, 246, .12) !important; color: #3b82f6 !important; }
.shortcut-item:nth-child(2) span { background: rgba(124, 92, 252, .12) !important; color: #7c5cfc !important; }
.shortcut-item:nth-child(3) span { background: rgba(255, 162, 60, .13) !important; color: #ea7c1e !important; }
.shortcut-item:nth-child(4) span { background: rgba(62, 227, 160, .12) !important; color: #0aa06e !important; }
.shortcut-item:nth-child(5) span { background: rgba(255, 216, 94, .14) !important; color: #c28b00 !important; }

.shortcut-item strong {
    font-size: .84rem !important;
    font-weight: 950 !important;
    white-space: normal !important;
    line-height: 1.25 !important;
}

.shortcut-item small {
    display: none !important;
}

[data-theme="dark"] .shortcut-item {
    background: rgba(12, 18, 28, .92) !important;
    border-color: rgba(255, 255, 255, .08) !important;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .28) !important;
}

[data-theme="dark"] .shortcut-item:hover {
    border-color: rgba(255, 255, 255, .15) !important;
    background: rgba(15, 22, 32, .96) !important;
}

/* ?? Catalog/product cards ? cleaner white card ?? */
.catalog-card {
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, .07) !important;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .07), 0 1px 3px rgba(0, 0, 0, .05) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
}

.catalog-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .11), 0 3px 8px rgba(0, 0, 0, .07) !important;
    border-color: rgba(0, 0, 0, .11) !important;
}

.catalog-media {
    aspect-ratio: 1 / 1 !important;
    background: linear-gradient(135deg, #f0fff8, #fff8ec) !important;
}

.catalog-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.catalog-card .product-body {
    background: #fff !important;
    padding: 12px 14px 14px !important;
    gap: 8px !important;
    min-height: unset !important;
}

.catalog-card .product-top h3 {
    font-size: .95rem !important;
    font-weight: 1000 !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

.catalog-card .product-body p {
    font-size: .8rem !important;
    line-height: 1.45 !important;
    color: var(--muted) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.catalog-card .btn {
    background: #f4f6f8 !important;
    border: 0 !important;
    color: #202a35 !important;
    border-radius: 10px !important;
    font-weight: 950 !important;
    font-size: .84rem !important;
    min-height: 40px !important;
    box-shadow: none !important;
}

.catalog-card .btn:hover {
    background: #e8edf1 !important;
}

.card-corner-icon {
    background: linear-gradient(135deg, rgba(255, 224, 107, .85), rgba(32, 210, 143, .85)) !important;
    border: 0 !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .14) !important;
    color: #071411 !important;
}

[data-theme="dark"] .catalog-card {
    background: #0d141c !important;
    border-color: rgba(255, 255, 255, .09) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .32) !important;
}

[data-theme="dark"] .catalog-card:hover {
    border-color: rgba(255, 255, 255, .16) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .4) !important;
}

[data-theme="dark"] .catalog-card .product-body {
    background: #0d141c !important;
    color: #f4f7fb !important;
}

[data-theme="dark"] .catalog-card .product-top h3 {
    color: #f4f7fb !important;
}

[data-theme="dark"] .catalog-card .btn {
    background: #1b2633 !important;
    color: #e8f0fb !important;
    border: 1px solid rgba(255, 255, 255, .1) !important;
}

[data-theme="dark"] .catalog-card .btn:hover {
    background: #243247 !important;
}

[data-theme="dark"] .catalog-media {
    background: linear-gradient(135deg, #0a1520, #111e2c) !important;
}


/* =============================================
   LOGO IMAGE + INTRO SPLASH SCREEN
   ============================================= */

/* ?? Brand logo image ?? */
.brand-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    display: block;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.brand-logo-text {
    font-size: 1.18rem;
    font-weight: 1000;
    letter-spacing: -.02em;
    background: linear-gradient(135deg, #20d7f6, #3ee3a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Remove old brand-mark icon if still present */
.brand-mark { display: none !important; }

/* ?? Intro splash screen ?? */
#ggora-intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    transition: opacity .6s ease;
}

#ggora-intro.intro-fade-out {
    opacity: 0;
    pointer-events: none;
}

#ggora-intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

#ggora-intro-skip {
    position: absolute;
    bottom: 28px;
    inset-inline-end: 24px;
}

#ggora-intro-skip button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .88);
    font-size: .82rem;
    font-weight: 900;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background .18s ease;
}

#ggora-intro-skip button:hover {
    background: rgba(255, 255, 255, .22);
}

/* Prevent scroll while intro is active */
body.intro-active {
    overflow: hidden;
}

/* ╔══════════════════════════════════════════════════════════════╗
   ║  GGORA SVG LOGO + CSS INTRO  (v2)                           ║
   ╚══════════════════════════════════════════════════════════════╝ */

/* ── Brand mark (inline SVG G logo) ──────────────────────────── */
.brand-mark-svg {
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(32,215,246,.35));
    transition: filter .25s;
}
.brand:hover .brand-mark-svg,
.brand:focus-visible .brand-mark-svg {
    filter: drop-shadow(0 0 12px rgba(32,215,246,.65));
}

/* ── Brand name text (GG + ora) ──────────────────────────────── */
.brand-name {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -.01em;
    line-height: 1;
}
.brand-gg  { color: #20d7f6; }
.brand-ora { color: var(--text, #0f172a); }

[data-theme="dark"] .brand-ora { color: #f1f5f9; }

/* Remove old logo image styles (safety) */
.brand-logo-img  { display: none !important; }
.brand-logo-text { display: none !important; }

/* ── Intro splash screen ─────────────────────────────────────── */
#ggora-intro {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 40%, #0d2240 0%, #060e1a 100%);
    overflow: hidden;
    transition: opacity .5s ease, transform .5s ease;
}

body:not(.intro-active) #ggora-intro { display: none; }

#ggora-intro.intro-fade-out {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
}

/* Ambient glow blob */
.intro-glow {
    position: absolute;
    width: 360px; height: 360px;
    top: 50%; left: 50%;
    translate: -50% -55%;
    background: radial-gradient(circle, rgba(32,215,246,.18) 0%, transparent 70%);
    animation: intro-pulse 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes intro-pulse {
    0%, 100% { transform: scale(1);   opacity: .7; }
    50%       { transform: scale(1.2); opacity: 1;  }
}

/* Dot grid texture */
.intro-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* Center group */
.intro-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

/* Logomark container with rings */
.intro-logomark {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px; height: 140px;
    animation: intro-pop .6s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes intro-pop {
    0%   { transform: scale(0.4) rotate(-8deg); opacity: 0; }
    100% { transform: scale(1)   rotate(0deg);  opacity: 1; }
}
.intro-logomark > svg {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 18px rgba(32,215,246,.5));
}

/* Ripple rings */
.intro-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(32,215,246,.35);
    pointer-events: none;
    animation: intro-ring-expand 2.2s ease-out infinite;
}
.intro-ring-1 { width: 130px; height: 130px; animation-delay: 0s; }
.intro-ring-2 { width: 160px; height: 160px; animation-delay: .6s; border-color: rgba(62,227,160,.25); }

@keyframes intro-ring-expand {
    0%   { transform: scale(.7); opacity: .9; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Wordmark */
.intro-wordmark {
    font-family: 'Cairo', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1;
    animation: intro-rise .5s .35s cubic-bezier(.22,1,.36,1) both;
}
.intro-gg  { color: #20d7f6; }
.intro-ora { color: #ffffff; }

@keyframes intro-rise {
    0%   { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0);    opacity: 1; }
}

/* Tagline */
.intro-tagline {
    font-size: .88rem;
    color: rgba(255,255,255,.5);
    letter-spacing: .03em;
    text-transform: uppercase;
    margin: 0;
    animation: intro-rise .5s .5s cubic-bezier(.22,1,.36,1) both;
}

/* Skip button */
.intro-skip-btn {
    position: absolute;
    bottom: 28px;
    inset-inline-end: 24px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.7);
    border-radius: 50px;
    padding: 7px 18px;
    font-size: .82rem;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background .2s, color .2s;
    animation: intro-rise .4s .7s both;
    z-index: 2;
}
.intro-skip-btn:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}

/* ── Icon container utility — profile-style gradient box ── */
.icn {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 13px;
    color: #101620;
    background: linear-gradient(135deg, #d8ef6b, #21c777 52%, #19b7d7);
    box-shadow: 0 14px 26px rgba(16, 166, 109, .24);
    font-size: 1.1rem;
    flex: 0 0 auto;
}

[data-theme="dark"] .icn {
    background: linear-gradient(135deg, #c9d84f, #1fb86a 52%, #14a5c4);
    box-shadow: 0 14px 26px rgba(16, 166, 109, .18);
}

/* ── Admin nav icons ── */
.admin-nav a i {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 9px;
    color: #101620;
    background: linear-gradient(135deg, #d8ef6b, #21c777 52%, #19b7d7);
    font-size: .9rem;
    flex: 0 0 auto;
}

[data-theme="dark"] .admin-nav a i {
    background: linear-gradient(135deg, #c9d84f, #1fb86a 52%, #14a5c4);
}
