/* Professional visual system ------------------------------------------------
   A restrained editorial layer loaded after the legacy styles. */

:root {
    --accent: #2f81f7;
    --accent-dark: #1f6feb;
    --accent-soft: rgba(47, 129, 247, .10);
    --accent-border: rgba(47, 129, 247, .28);
    --bg-primary: #07090c;
    --bg-secondary: #0b0e13;
    --bg-tertiary: #11151c;
    --card-bg: #0d1117;
    --surface-1: rgba(13, 17, 23, .96);
    --surface-2: rgba(255, 255, 255, .035);
    --surface-hover: rgba(255, 255, 255, .065);
    --text-primary: #f0f3f6;
    --text-secondary: #a5afbb;
    --text-muted: #6e7884;
    --border: rgba(255, 255, 255, .085);
    --border-hover: rgba(255, 255, 255, .16);
    --store-width: 1180px;
    --radius-professional: 16px;
}

[data-theme="light"] {
    --bg-primary: #f6f8fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef1f4;
    --card-bg: #ffffff;
    --surface-1: rgba(255, 255, 255, .97);
    --surface-2: rgba(15, 23, 42, .035);
    --surface-hover: rgba(15, 23, 42, .065);
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #788391;
    --border: rgba(15, 23, 42, .10);
    --border-hover: rgba(15, 23, 42, .18);
}

html {
    scroll-behavior: smooth;
    background: var(--bg-primary);
}

body {
    background:
        radial-gradient(circle at 82% 3%, rgba(47, 129, 247, .075), transparent 30rem),
        var(--bg-primary);
    color: var(--text-primary);
    letter-spacing: -.01em;
}

body::before {
    opacity: .32;
    background-size: 72px 72px;
}

button,
a,
input,
select,
textarea {
    -webkit-font-smoothing: antialiased;
}

::selection {
    color: #fff;
    background: rgba(47, 129, 247, .72);
}

.dashboard-btn,
.floating-menu {
    display: none !important;
}

/* Navigation */
.top-bar {
    height: 72px;
    padding: 0 clamp(22px, 4vw, 64px);
    border-bottom: 1px solid var(--border);
    background: rgba(7, 9, 12, .9);
    box-shadow: none;
}

.logo-small {
    gap: 10px;
    font-size: 18px;
    font-weight: 780;
    letter-spacing: -.55px;
}

.logo-small i {
    color: var(--accent);
    filter: none;
}

.top-icons { gap: 8px; }

.top-icons button,
.language-select {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,.025);
}

.language-select {
    width: auto;
    padding: 0 13px;
}

.store-nav {
    top: 72px;
    margin-top: 72px;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 9, 12, .86);
    box-shadow: none;
}

.store-nav-inner {
    width: min(var(--store-width), calc(100% - 44px));
    min-height: 60px;
    gap: 4px;
}

.store-nav-link {
    min-height: 36px;
    padding: 0 13px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 650;
}

.store-nav-link.active {
    border-color: transparent;
    color: var(--text-primary);
    background: rgba(255,255,255,.07);
}

.store-nav-link.active i { color: var(--accent); }

/* Hero */
.home-view { padding-bottom: 0; }

.storefront-hero {
    width: 100%;
    padding: clamp(74px, 9vw, 112px) 24px clamp(70px, 8vw, 100px);
    text-align: left;
}

.hero-layout {
    width: min(var(--store-width), 100%);
    margin: 0 auto;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, .68fr);
    justify-items: stretch;
    gap: clamp(50px, 7vw, 94px);
}

.hero-main {
    max-width: 720px;
    margin: 0;
    text-align: left;
}

.hero-main .hero-kicker {
    width: fit-content;
    margin: 0 0 30px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--accent);
    background: transparent;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.7px;
}

.hero-main .hero-kicker span {
    width: 18px;
    height: 2px;
    border-radius: 0;
    box-shadow: none;
}

.hero-main .subtitle {
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 3.6px;
}

.hero-main .shop-title {
    max-width: 760px;
    margin: 0;
    font-size: clamp(48px, 6.2vw, 78px);
    font-weight: 760;
    line-height: .99;
    letter-spacing: clamp(-4px, -.055em, -2px);
}

.hero-main .hero-copy {
    max-width: 620px;
    margin: 28px 0 0;
    color: var(--text-secondary);
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.72;
}

.hero-actions {
    margin-top: 34px;
    justify-content: flex-start;
    gap: 10px;
}

.hero-primary,
.hero-secondary {
    min-height: 48px;
    padding: 0 19px;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 720;
    box-shadow: none;
}

.hero-primary {
    color: #fff;
    background: var(--accent);
}

.hero-secondary {
    border-color: var(--border-hover);
    background: transparent;
}

.hero-primary:hover,
.hero-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

.hero-primary:hover { background: #438df8; }
.hero-secondary:hover { border-color: var(--text-muted); background: var(--surface-2); }

.hero-main .hero-assurances {
    margin-top: 30px;
    justify-content: flex-start;
    gap: 22px;
}

.hero-assurances span {
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--text-muted);
    background: transparent;
    font-size: 10px;
}

.hero-assurances i { color: var(--text-secondary); }

.hero-info-card {
    min-height: 430px;
    padding: 28px;
    align-self: center;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255,255,255,.022);
    box-shadow: none;
}

.hero-info-card::before,
.hero-info-card::after { display: none; }

.hero-card-top {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.hero-card-icon {
    width: 54px;
    height: 54px;
    margin: 42px 0 24px;
    border: 1px solid var(--accent-border);
    border-radius: 14px;
    color: var(--accent);
    background: var(--accent-soft);
    box-shadow: none;
}

.hero-info-card h2 {
    max-width: 300px;
    font-size: 26px;
    line-height: 1.18;
    letter-spacing: -1px;
}

.hero-info-card p { margin-top: 13px; line-height: 1.65; }
.hero-info-card ul { margin-top: 28px; gap: 13px; }
.hero-info-card li { color: var(--text-secondary); font-size: 11px; }
.hero-info-card li i { color: var(--accent); }

/* Home sections */
.home-metrics,
.home-section,
.home-process,
.home-cta,
.catalog-hero {
    width: min(var(--store-width), calc(100% - 44px));
}

.home-metrics {
    padding: 27px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
}

.home-metrics article { padding: 0 28px; border-color: var(--border); }
.home-metrics strong { color: var(--text-primary); font-size: 22px; }
.home-metrics span { font-size: 10px; }

.home-section { padding: 108px 0 40px; }

.home-section-heading {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .55fr);
    gap: 80px;
    align-items: end;
}

.section-eyebrow {
    color: var(--accent);
    font-size: 9px;
    letter-spacing: 2px;
}

.home-section-heading h2,
.process-intro h2,
.home-cta h2,
.catalog-hero h1 {
    margin-top: 16px;
    font-size: clamp(34px, 4.5vw, 54px);
    font-weight: 720;
    line-height: 1.06;
    letter-spacing: -2.3px;
}

.home-section-heading p,
.process-intro p,
.home-cta p,
.catalog-hero p {
    color: var(--text-secondary);
    line-height: 1.75;
}

.home-service-grid {
    margin-top: 54px;
    gap: 16px;
}

.home-service-grid article {
    min-height: 258px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: transparent;
    box-shadow: none;
}

.home-service-grid article:hover {
    border-color: var(--border-hover);
    background: rgba(255,255,255,.018);
    transform: translateY(-3px);
}

.home-service-grid article > i {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    color: var(--accent);
    background: var(--accent-soft);
}

.service-number { color: var(--text-muted); }
.home-service-grid h3 { margin-top: 42px; font-size: 18px; }
.home-service-grid p { margin-top: 11px; line-height: 1.68; }

.home-process {
    margin-top: 84px;
    padding: 72px 0;
    grid-template-columns: .7fr 1.3fr;
    gap: 90px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
}

.process-steps { gap: 0; }
.process-steps article {
    padding: 22px 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
}
.process-steps article:last-child { border-bottom: 0; }
.process-steps article > span {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
    background: transparent;
}

.home-cta {
    margin: 80px auto 104px;
    padding: 40px 44px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: rgba(255,255,255,.018);
    box-shadow: none;
}

.home-cta::before { display: none; }

/* Catalog */
.products-view { padding-bottom: 96px; }

.catalog-hero {
    padding: 84px 0 56px;
    grid-template-columns: minmax(0, 1fr) minmax(340px, .62fr);
    gap: 80px;
    border-bottom: 1px solid var(--border);
}

.catalog-hero .search-box,
.search-box {
    min-height: 52px;
    border-radius: 12px;
    background: rgba(255,255,255,.025);
    box-shadow: none;
}

.search-shortcut {
    border-radius: 7px;
    color: var(--text-muted);
    background: rgba(255,255,255,.04);
}

.catalog-controls {
    width: min(var(--store-width), calc(100% - 44px));
    margin: 0 auto;
    padding: 52px 0 26px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.filter-tabs { gap: 6px; }
.filter-btn {
    min-height: 38px;
    padding: 0 13px;
    border-radius: 9px;
    font-size: 11px;
    background: transparent;
}
.filter-btn.active {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--surface-2);
    box-shadow: none;
}

.store-benefits {
    width: min(var(--store-width), calc(100% - 44px));
    margin: 0 auto 42px;
    padding: 22px 0;
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
}

.store-benefits article { padding: 0 26px; border-right: 1px solid var(--border); }
.store-benefits article:last-child { border-right: 0; }
.store-benefits article > i {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: var(--text-secondary);
    background: var(--surface-2);
}

.catalog {
    width: min(var(--store-width), calc(100% - 44px));
    margin: 0 auto;
}

.category-section { margin-bottom: 62px; }
.category-header { margin-bottom: 20px; }
.category-header h2 { font-size: 21px; }
.category-header h2 i { color: var(--accent); }
.category-count { border-radius: 7px; }
.category-grid { gap: 16px; }

.product-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card-bg);
    box-shadow: none;
}

.product-card::before,
.product-card::after { display: none; }
.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0,0,0,.22);
}
.product-img-container { border-radius: 15px 15px 0 0; }
.product-info { padding: 20px; }
.product-info h3 { font-size: 17px; }
.product-info p { margin-top: 8px; line-height: 1.6; }
.category-badge,
.vip-badge { border-radius: 7px; }
.product-actions button,
.buy-btn,
.review-btn { border-radius: 10px; }

/* Account surfaces */
.menu-box.account-menu,
.dashboard-content,
.modal-content,
.my-reviews-content,
.reviews-content {
    border-radius: 18px;
    background: #0b0f14;
    box-shadow: 0 32px 90px rgba(0,0,0,.62);
}

.account-dashboard-overview,
.account-menu-group,
#panelDashboard .profile-hero,
#panelDashboard .stat-box,
#panelDashboard .tab-content,
.rank-card,
.rank-benefits,
.transfer-section,
.contact-card,
.info-card,
.edit-form {
    border-radius: 13px;
    box-shadow: none;
}

.account-dashboard-overview {
    border-color: var(--border);
    background: rgba(255,255,255,.025);
}
.account-menu-group { background: transparent; }
.menu-box .account-menu-item,
.menu-box .account-menu-item + .account-menu-item {
    border-radius: 10px;
}
.menu-box .account-menu-item:hover { transform: none; }

.dashboard-header,
.reviews-header,
.stepper-header {
    background: rgba(11, 15, 20, .94);
}

.dashboard-title i,
.step-info h2 i { color: var(--accent); }

#panelDashboard .tabs-container { border-radius: 11px; }
#panelDashboard .tab-btn { border-radius: 8px; }
#panelDashboard .tab-btn.active {
    color: #fff;
    background: var(--accent);
}

/* Auth */
.auth-container {
    background:
        radial-gradient(circle at 10% 10%, rgba(47,129,247,.09), transparent 28rem),
        #07090c;
}
.auth-shell {
    border-radius: 20px;
    background: #0b0f14;
    box-shadow: 0 35px 90px rgba(0,0,0,.52);
}
.auth-showcase { background: linear-gradient(145deg, rgba(47,129,247,.10), transparent 60%); }
.auth-brand-mark,
.auth-form .input-group > input,
.auth-form .input-group > select,
.auth-btn,
.auth-tabs { border-radius: 11px; }
.auth-btn { color: #fff; background: var(--accent); box-shadow: none; }
.auth-step,
.auth-eyebrow { color: var(--accent); }

/* Footer */
.footer {
    position: relative;
    padding: 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
    background: #07090c;
    text-align: left;
}

.footer > :not(.professional-footer-shell) { display: none !important; }

.professional-footer-shell {
    width: min(var(--store-width), calc(100% - 44px));
    margin: 0 auto;
}

.professional-footer-main {
    padding: 64px 0 54px;
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(420px, 1.1fr);
    gap: 90px;
}

.professional-footer-brand { max-width: 380px; }
.professional-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 760;
    letter-spacing: -.5px;
}
.professional-footer-logo i { color: var(--accent); }
.professional-footer-brand p {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.75;
}
.professional-footer-status {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.professional-footer-status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
}

.professional-footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px;
}
.professional-footer-nav > div { display: grid; align-content: start; gap: 13px; }
.professional-footer-nav strong {
    margin-bottom: 5px;
    color: var(--text-primary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.3px;
}
.professional-footer-nav a {
    width: fit-content;
    color: var(--text-muted);
    font-size: 12px;
}
.professional-footer-nav a:hover { color: var(--text-primary); }

.professional-footer-bottom {
    padding: 22px 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 10px;
}
.professional-footer-bottom i { margin-right: 5px; color: var(--text-secondary); }

@media (max-width: 980px) {
    .hero-layout,
    .home-section-heading,
    .home-process,
    .catalog-hero {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero-info-card { min-height: 0; }
    .home-process { gap: 30px; }
    .professional-footer-main { gap: 50px; }
}

@media (max-width: 767px) {
    .top-bar {
        height: calc(60px + env(safe-area-inset-top));
        padding: env(safe-area-inset-top) 13px 0;
    }

    .top-icons button { border-radius: 10px; }
    .store-nav {
        top: calc(60px + env(safe-area-inset-top));
        margin-top: calc(60px + env(safe-area-inset-top));
    }
    .store-nav-inner { width: 100%; padding: 0 9px; }

    .storefront-hero {
        padding: 56px 18px 58px;
    }

    .hero-main .hero-kicker { margin-bottom: 22px; }
    .hero-main .shop-title {
        font-size: clamp(42px, 13vw, 62px);
        letter-spacing: -2.8px;
    }
    .hero-main .hero-copy { margin-top: 22px; font-size: 14px; }
    .hero-actions { display: grid; margin-top: 28px; }
    .hero-primary,
    .hero-secondary { width: 100%; }
    .hero-main .hero-assurances { gap: 12px 18px; }
    .hero-info-card { padding: 22px; border-radius: 15px; }
    .hero-card-icon { margin: 28px 0 20px; }

    .home-metrics,
    .home-section,
    .home-process,
    .home-cta,
    .catalog-hero,
    .catalog-controls,
    .store-benefits,
    .catalog,
    .professional-footer-shell {
        width: calc(100% - 30px);
    }

    .home-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 10px 0;
    }
    .home-metrics article { padding: 18px 12px; border-bottom: 1px solid var(--border); }
    .home-metrics article:nth-child(2) { border-right: 0; }
    .home-metrics article:nth-child(n+3) { border-bottom: 0; }

    .home-section { padding-top: 76px; }
    .home-section-heading { gap: 20px; }
    .home-service-grid { margin-top: 34px; gap: 12px; }
    .home-service-grid article { min-height: 215px; padding: 22px; }
    .home-service-grid h3 { margin-top: 28px; }
    .home-process { margin-top: 56px; padding: 50px 0; }
    .home-cta { margin: 56px auto 72px; padding: 28px 22px; }

    .catalog-hero { padding: 56px 0 40px; gap: 28px; }
    .catalog-controls { padding-top: 38px; }
    .catalog-controls-copy { margin-bottom: 20px; }
    .store-benefits { display: grid; padding: 5px 0; }
    .store-benefits article { padding: 16px 4px; border-right: 0; border-bottom: 1px solid var(--border); }
    .store-benefits article:last-child { border-bottom: 0; }
    .category-grid { gap: 12px; }

    .professional-footer-main {
        padding: 48px 0 38px;
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .professional-footer-nav { gap: 18px; }
    .professional-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-main .hero-assurances { display: grid; }
    .professional-footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
