:root {
    --bg: #dedfe3;
    --bg-soft: #9e9b9b;
    --surface: rgba(12, 18, 32, 0.9);
    --surface-2: rgba(17, 24, 39, 0.92);
    --surface-3: rgba(255, 255, 255, 0.04);
    --line: rgba(154, 176, 214, 0.16);
    --line-strong: rgba(115, 175, 255, 0.26);
    --text: #eff5ff;
    --muted: #9cabca;
    --muted-2: #c9d4eb;
    --brand: #58a6ff;
    --brand-2: #1f7dff;
    --brand-soft: rgba(88, 166, 255, 0.12);
    --accent: #6de7c8;
    --danger: #ff667d;
    --success: #18d59d;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(88, 166, 255, 0.2), transparent 28%),
        radial-gradient(circle at 90% 8%, rgba(109, 231, 200, 0.08), transparent 20%),
        linear-gradient(180deg, #050913 0%, #070b14 52%, #04070d 100%);
}

a {
    color: inherit;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: rgba(5, 9, 19, 0.78);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
}

.brand-mark {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 18px 32px rgba(31, 125, 255, 0.24);
}

.brand strong,
.admin-brand strong {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
}

.brand small,
.admin-brand span {
    display: block;
    margin-top: 0.12rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.nav-links a,
.footer-links a,
.admin-sidebar a {
    color: rgba(239, 245, 255, 0.84);
    text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover,
.admin-sidebar a:hover {
    color: #fff;
}

.btn-brand {
    border: none;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 18px 36px rgba(31, 125, 255, 0.28);
}

.btn-brand:hover {
    color: #fff;
    filter: brightness(1.05);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.18);
}

.btn-outline-light:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-glass,
.icon-pill {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    padding: 0.65rem 1rem;
    text-decoration: none;
}

.btn-glass:hover,
.icon-pill:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.icon-pill .badge {
    color: #0a101c;
}

.dropdown-menu {
    border: 1px solid var(--line);
    background: rgba(9, 13, 24, 0.96);
    box-shadow: var(--shadow);
}

.dropdown-item {
    color: var(--text);
}

.dropdown-item:hover {
    color: #fff;
    background: rgba(88, 166, 255, 0.12);
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #04101f;
    font-weight: 800;
    margin-right: 0.6rem;
}

.hero-section {
    padding: 1.5rem 0 1rem;
}

.hero-card,
.glass-card,
.panel-card,
.auth-panel,
.summary-card,
.content-panel,
.empty-state,
.experience-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.hero-card {
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero-card-refined {
    background:
        linear-gradient(135deg, rgba(88, 166, 255, 0.08), transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
        var(--surface);
}

.hero-backdrop-copy {
    position: absolute;
    inset: 1.25rem 1.25rem auto auto;
    display: grid;
    gap: 0.35rem;
    text-align: right;
    pointer-events: none;
}

.hero-backdrop-copy span {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.3rem, 2.8vw, 2.4rem);
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
    letter-spacing: 0.12em;
}

.hero-title,
.display-4,
h1,
h2,
h3,
h4 {
    font-family: 'Sora', sans-serif;
}

.hero-title {
    max-width: 12ch;
    font-size: clamp(2.1rem, 4vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin: 0.5rem 0 1rem;
}

.hero-copy {
    max-width: 58ch;
    font-size: 1.04rem;
    line-height: 1.75;
    color: var(--muted-2);
    margin-bottom: 1.4rem;
}

.text-white-75 {
    color: rgba(239, 245, 255, 0.76) !important;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: #88c6ff;
}

.home-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    padding: 0.9rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(115, 175, 255, 0.18);
    max-width: 760px;
}

.search-input-wrap {
    position: relative;
}

.search-input-wrap i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #90c8ff;
    font-size: 1rem;
}

.search-input-hero {
    min-height: 58px;
    padding-left: 2.9rem;
    border-radius: 18px;
    font-size: 1rem;
}

.hero-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.58rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: #d9e8ff;
    text-decoration: none;
}

.hero-chip:hover {
    background: rgba(88, 166, 255, 0.14);
    border-color: rgba(88, 166, 255, 0.24);
}

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

.hero-metrics div {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.hero-metrics strong {
    display: block;
    font-size: 1.4rem;
}

.hero-metrics span {
    display: block;
    color: var(--muted);
    margin-top: 0.2rem;
    font-size: 0.88rem;
}

.hero-visual-frame {
    padding: 0.85rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid var(--line);
}

.section-block {
    padding: 1.35rem 0 2rem;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.text-link {
    color: #8bc8ff;
    text-decoration: none;
}

.text-link:hover {
    color: #d0ebff;
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
}

.feature-strip div {
    padding: 0.35rem 0.1rem;
}

.feature-strip strong {
    display: block;
    margin-bottom: 0.28rem;
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
}

.feature-strip span {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.category-card,
.product-card {
    display: block;
    overflow: hidden;
    height: 100%;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 26px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
    box-shadow: 0 26px 52px rgba(0, 0, 0, 0.3);
}

.category-card img,
.product-card img {
    width: 100%;
    aspect-ratio: 1.1 / 1;
    object-fit: cover;
}

.category-card-copy,
.product-card .p-3 {
    padding: 1rem;
}

.category-card-copy h3,
.product-card h3 {
    margin-bottom: 0.42rem;
}

.category-card-copy p,
.product-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.category-card-refined {
    position: relative;
}

.category-count {
    display: inline-flex;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0.62rem;
    border-radius: 999px;
    background: var(--brand-soft);
    border: 1px solid rgba(88, 166, 255, 0.2);
    color: #b9dbff;
    font-size: 0.76rem;
}

.product-card-refined {
    position: relative;
}

.product-media-link {
    display: block;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: #c2e2ff;
    background: rgba(88, 166, 255, 0.12);
    border: 1px solid rgba(88, 166, 255, 0.16);
    border-radius: 999px;
    padding: 0.32rem 0.68rem;
}

.price {
    color: #fff;
    font-size: 1.18rem;
    font-weight: 800;
}

.stretched-link-reset {
    position: relative;
    z-index: 1;
}

.experience-panel {
    padding: 1.4rem;
}

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

.experience-grid article {
    padding: 1.1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
}

.experience-grid i {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    margin-bottom: 0.8rem;
    background: var(--brand-soft);
    color: #9cd0ff;
    font-size: 1.1rem;
}

.experience-grid h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.experience-grid p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

.product-showcase img {
    width: 100%;
    object-fit: cover;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.74rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    color: #dde8ff;
}

.content-panel,
.summary-card,
.form-panel,
.auth-panel {
    padding: 1.25rem;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 15px;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border-color: rgba(88, 166, 255, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(88, 166, 255, 0.1);
}

.form-control::placeholder {
    color: rgba(239, 245, 255, 0.42);
}

.form-label {
    color: #d3ddf2;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr auto;
    gap: 1rem;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}

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

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}

.cart-item img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 18px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.55rem;
}

.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
}

.divider-text {
    position: relative;
    text-align: center;
    color: var(--muted);
    margin: 1rem 0;
}

.divider-text::before,
.divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: var(--line);
}

.divider-text::before {
    left: 0;
}

.divider-text::after {
    right: 0;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.25rem;
}

.auth-aside img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    border: 1px solid var(--line);
}

.auth-note {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    color: var(--muted-2);
    line-height: 1.65;
}

.alert {
    border: 1px solid transparent;
    border-radius: 20px;
}

.alert-success {
    color: #dffbef;
    background: rgba(24, 213, 157, 0.12);
    border-color: rgba(24, 213, 157, 0.24);
}

.alert-danger {
    color: #ffe2e7;
    background: rgba(255, 102, 125, 0.12);
    border-color: rgba(255, 102, 125, 0.22);
}

.alert-info {
    color: #d9efff;
    background: rgba(88, 166, 255, 0.12);
    border-color: rgba(88, 166, 255, 0.22);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(5, 8, 15, 0.88);
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-body {
    background:
        radial-gradient(circle at top left, rgba(88, 166, 255, 0.16), transparent 24%),
        linear-gradient(180deg, #06101c 0%, #04070d 100%);
}

.admin-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    border-right: 1px solid var(--line);
    background: rgba(7, 11, 20, 0.82);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.admin-brand img {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    object-fit: cover;
}

.admin-nav {
    display: grid;
    gap: 0.42rem;
}

.admin-nav a,
.admin-sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.admin-nav a:hover,
.admin-sidebar-footer a:hover {
    background: rgba(88, 166, 255, 0.12);
    border-color: rgba(88, 166, 255, 0.2);
}

.admin-sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 0.6rem;
}

.admin-main {
    padding: 1.25rem;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.admin-chip {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.admin-chip small {
    display: block;
    color: var(--muted);
}

.admin-content {
    display: grid;
    gap: 1rem;
}

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

.stat-card,
.panel-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 1.1rem;
    box-shadow: var(--shadow);
}

.stat-card span {
    display: block;
    color: var(--muted);
}

.stat-card strong {
    display: block;
    font-size: 1.9rem;
    margin: 0.25rem 0;
}

.stat-card small {
    color: #b9c7e0;
}

.list-stack {
    display: grid;
    gap: 0.8rem;
}

.list-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.list-row img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
}

.mini-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.mini-metrics div {
    padding: 0.9rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.mini-metrics span {
    display: block;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.mini-metrics strong {
    font-size: 1.4rem;
}

.badge-warning {
    background: #d8a63a;
}

.badge-info {
    background: #2e9ef6;
}

.badge-primary {
    background: #2957e4;
}

.badge-success {
    background: #12d6a8;
    color: #04101f;
}

.badge-danger {
    background: #ff5d73;
}

.badge-secondary {
    background: #6b778f;
}

@media (max-width: 1200px) {
    .feature-strip,
    .admin-grid,
    .experience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .auth-shell,
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .filter-bar,
    .section-heading,
    .home-search-panel {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hero-title {
        max-width: none;
    }

    .hero-metrics,
    .feature-strip,
    .experience-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero-card,
    .panel-card,
    .auth-panel,
    .summary-card,
    .content-panel,
    .glass-card,
    .experience-panel {
        border-radius: 22px;
    }

    .hero-card {
        padding: 1.2rem;
    }

    .hero-backdrop-copy {
        display: none;
    }

    .admin-main {
        padding: 0.8rem;
    }
}
