﻿@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #0b1220;
    --surface: #f8fafc;
    --surface-2: #eef2ff;
    --ink: #0f172a;
    --muted: #1f2937;
    --ink-light: #e2e8f0;
    --muted-light: #cbd5e1;
    --brand: #2563eb;
    --brand-2: #38bdf8;
    --accent: #f59e0b;
    --radius: 18px;
    --shadow: 0 18px 40px rgba(2, 6, 23, 0.2);
    --stroke: rgba(148, 163, 184, 0.25);
    --shadow-soft: 0 20px 45px rgba(2, 6, 23, 0.22);
    --ring: rgba(37, 99, 235, 0.25);
    --btn-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
    --btn-shadow-ghost: 0 10px 20px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Vazirmatn', 'Tahoma', 'Segoe UI', sans-serif;
    background: radial-gradient(circle at 15% 0%, rgba(37, 99, 235, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 85% 10%, rgba(56, 189, 248, 0.18) 0%, transparent 45%),
        var(--bg);
    color: var(--ink-light);
    line-height: 1.8;
    position: relative;
    direction: rtl;
    text-align: start;
}

body.nav-open {
    overflow: hidden;
}

body.modal-open {
    overflow: hidden;
}

::selection {
    background: var(--accent);
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

:where(h1, h2, h3, h4, h5, h6, p, li, blockquote, dd, dt, td, th, figcaption, label, small) {
    unicode-bidi: plaintext;
}

:where(input, textarea, select) {
    unicode-bidi: plaintext;
    text-align: start;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.topbar {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #e2e8f0;
    font-size: 0.9rem;
}

.topbar-inner {
    display: flex;
    gap: 16px;
    padding: 8px 0;
    justify-content: space-between;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 25px rgba(2, 6, 23, 0.32);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--ink-light);
}

.nav-wrap {
    padding: 12px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
}

.logo img {
    height: 40px;
}

.nav {
    display: flex;
    gap: 18px;
    font-weight: 500;
}

.nav a {
    position: relative;
    padding: 6px 2px;
    color: var(--ink-light);
}

.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav a:hover {
    color: #ffffff;
}

.nav a:hover::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    gap: 10px;
}

.nav-toggle {
    display: none;
    border: none;
    background: rgba(148, 163, 184, 0.15);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--ink-light);
}

.mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2000;
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-inner {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 86vw);
    height: 100vh;
    background: var(--surface);
    color: var(--ink);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: -10px 0 40px rgba(2, 6, 23, 0.3);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    border-left: 1px solid rgba(148, 163, 184, 0.2);
}

.mobile-nav.open .mobile-nav-inner {
    transform: translateX(0);
}

.mobile-close {
    align-self: flex-end;
    background: var(--surface-2);
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    padding: 6px 10px;
    cursor: pointer;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-links a {
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--ink);
    font-weight: 600;
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.btn {
    background: linear-gradient(135deg, #3b82f6, #22d3ee);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: var(--btn-shadow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
    filter: brightness(1.03);
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: var(--ink);
    box-shadow: var(--btn-shadow-ghost);
}

.site-header .btn.ghost,
.topbar .btn.ghost {
    color: #e2e8f0;
    border-color: rgba(226, 232, 240, 0.35);
    background: rgba(15, 23, 42, 0.6);
}

.btn.small {
    padding: 8px 14px;
    font-size: 0.78rem;
}

.notification-btn {
    position: relative;
}

.notification-btn .badge {
    margin-right: 8px;
    background: var(--accent);
    color: #0f172a;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.auth-card {
    padding: 18px;
    background: #f9fafb;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.auth-card-single {
    max-width: 560px;
    margin: 20px auto 0;
}

.auth-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-methods .btn.active,
.auth-methods .btn.ghost.active {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0b1220;
    border-color: rgba(14, 165, 233, 0.55);
}

.auth-divider {
    margin: 16px 0 10px;
    padding-top: 12px;
    border-top: 1px dashed rgba(148, 163, 184, 0.45);
    font-weight: 600;
    color: #0f172a;
}

.auth-panel {
    margin-top: 18px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #f8fafc;
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.12);
}

.auth-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.alert.warning {
    background: #fffbeb;
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #92400e;
}

.icon-btn {
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: var(--surface);
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .icon-sun {
    display: none;
}

.section {
    padding: 80px 0;
    position: relative;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.2));
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
    color: var(--ink-light);
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.35), transparent);
}

.section .container {
    position: relative;
    z-index: 1;
}

.section.muted {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.6));
}

.section.gradient {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(34, 211, 238, 0.14));
}

.section-title {
    margin-bottom: 30px;
}

.section-title h1,
.section-title h2 {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 2.2vw, 2.4rem);
    letter-spacing: -0.01em;
}

.section-title p {
    color: var(--muted-light);
    margin: 0;
    max-width: 640px;
}

.section-title h1::after,
.section-title h2::after {
    content: '';
    display: block;
    width: 54px;
    height: 3px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.hero {
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.25), rgba(15, 23, 42, 0.1) 45%, transparent 80%);
    padding: 90px 0 70px;
}

.shop-hero {
    background: linear-gradient(135deg, #0f172a 0%, #111827 55%, #0b1220 100%);
    padding: 100px 0 80px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.shop-hero-content p {
    color: #dbeafe;
}


.shop-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    align-items: center;
}

.shop-hero::before,
.shop-hero::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.28), transparent 65%);
    opacity: 0.6;
    z-index: 0;
}

.shop-hero::before {
    top: -120px;
    right: -120px;
}

.shop-hero::after {
    bottom: -140px;
    left: -120px;
}

.shop-hero-grid {
    position: relative;
    z-index: 1;
}

.shop-hero-content h1 {
    font-size: clamp(2rem, 3vw, 3.2rem);
    margin-bottom: 12px;
}

.shop-hero-content p {
    max-width: 540px;
    color: rgba(255, 255, 255, 0.85);
}

.shop-hero .badge {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.shop-hero-card {
    background: var(--surface);
    color: var(--ink);
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 25px 55px rgba(2, 6, 23, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.shop-hero-card p {
    color: var(--muted);
}

.shop-hero .btn.ghost {
    border-color: rgba(226, 232, 240, 0.4);
    color: #e2e8f0;
    background: rgba(226, 232, 240, 0.08);
}

.shop-hero .hero-highlights span {
    color: rgba(255, 255, 255, 0.75);
}

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

.category-card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--stroke);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(2, 6, 23, 0.28);
}

.category-card img,
.category-placeholder {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: rgba(148, 163, 184, 0.12);
}

.category-meta {
    padding: 14px 16px;
}

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

.product-card {
    background: var(--surface);
    border-radius: 18px;
    border: 1px solid var(--stroke);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(2, 6, 23, 0.35);
}

.product-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    min-height: 220px;
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    padding: 0;
    overflow: hidden;
}

.product-media img,
.media-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.25s ease;
}

.media-placeholder {
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(148, 163, 184, 0.18));
}

.product-card:hover .product-media img {
    transform: scale(1.02);
}

.product-body p,
.product-summary .lead,
.product-detail-sections p,
.product-detail-sections li {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.media-placeholder.tall {
    height: 320px;
}

.media-placeholder.small {
    width: 60px;
    height: 60px;
    border-radius: 10px;
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
}

.product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-body p {
    color: var(--muted);
    margin: 0;
}

.product-body h3 {
    margin: 0;
}

.product-body a {
    text-decoration: none;
    color: inherit;
}

.product-card.pro .product-body {
    gap: 12px;
}

.product-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.badge.sale {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    border: 1px solid rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.product-actions .btn,
.product-actions form {
    flex: 1 1 auto;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.compare {
    text-decoration: line-through;
    color: var(--muted);
    font-size: 0.85rem;
}

.shop-list-header {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.95));
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    box-shadow: 0 18px 35px rgba(2, 6, 23, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

@media (min-width: 1000px) {
    .shop-list-header {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }
}

.shop-list-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.25), transparent 45%),
        radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.22), transparent 40%);
    opacity: 0.6;
    pointer-events: none;
}

.shop-list-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.25), transparent);
    opacity: 0.25;
    pointer-events: none;
    transform: translateY(-40%);
}

.shop-list-header > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .shop-list-header {
        grid-template-columns: 1fr;
    }

    .shop-filter-panel {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
}

.shop-filter {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
    flex-wrap: wrap;
}

.shop-filter input,
.shop-filter select {
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    font-size: 0.85rem;
}

.shop-filter option {
    background: #0f172a;
    color: #e2e8f0;
}

.shop-list-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}

.shop-list-grid.single {
    grid-template-columns: 1fr;
}

.shop-category-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

@media (max-width: 900px) {
    .shop-category-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .shop-cta-inline {
        flex-direction: column;
        align-items: flex-start;
    }
}

.cat-pill {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: rgba(15, 23, 42, 0.6);
    color: rgba(226, 232, 240, 0.9);
    font-size: 0.82rem;
}

.cat-pill.sub {
    padding: 4px 10px;
    font-size: 0.76rem;
    color: rgba(226, 232, 240, 0.7);
    border-color: rgba(148, 163, 184, 0.25);
}

.cat-pill.active {
    background: rgba(37, 99, 235, 0.35);
    border-color: rgba(56, 189, 248, 0.45);
    color: #fff;
}

.shop-cta-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 14px 26px rgba(2, 6, 23, 0.18);
    color: #0f172a;
    margin-bottom: 16px;
}

.shop-cta-inline p {
    margin: 6px 0 0;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 500;
}

.shop-cta-inline h4 {
    margin: 0;
    color: #0f172a;
}

.shop-sidebar {
    background: var(--surface);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--stroke);
    height: fit-content;
    position: sticky;
    top: 110px;
}

.shop-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-tree ul {
    margin-right: 10px;
    padding-right: 10px;
    border-right: 2px solid rgba(148, 163, 184, 0.25);
    gap: 6px;
}

.category-tree ul a {
    font-size: 14px;
    opacity: 0.9;
}

.shop-sidebar a {
    text-decoration: none;
    color: inherit;
    padding: 6px 10px;
    border-radius: 10px;
    display: inline-flex;
}

.shop-sidebar a.active,
.shop-sidebar a:hover {
    background: #f6f4f0;
}

.sidebar-card {
    margin-top: 20px;
    padding: 12px;
    background: #f1f5ff;
    border-radius: 12px;
}

.cart-grid,
.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
    gap: 24px;
}

.custom-order-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

@media (min-width: 1024px) {
    .custom-order-grid {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.85fr);
        align-items: start;
    }
}

.cart-table {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #efece7;
    padding-bottom: 12px;
}

.cart-product {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cart-product img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.cart-qty {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cart-qty input {
    width: 70px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.order-summary {
    height: fit-content;
    position: sticky;
    top: 110px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
}

.summary-row.total {
    border-top: 1px solid #efece7;
    padding-top: 10px;
    font-weight: 700;
}

.success-card {
    text-align: center;
    padding: 40px;
}

.info-card {
    background: #f6f4f0;
}

.empty-state {
    text-align: center;
    padding: 30px 20px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: 18px;
    background: var(--surface);
    color: var(--muted);
}

.product-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.product-gallery .main-image {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: cover;
    object-position: center;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.product-gallery {
    display: grid;
    gap: 12px;
}

.gallery-main {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid rgba(148, 163, 184, 0.22);
    padding: 0;
    aspect-ratio: 4 / 3;
}

.thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.thumbs img {
    width: 100%;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
}

.product-info .product-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0;
}

.add-cart-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
}

.add-cart-form.digital {
    flex-direction: column;
    align-items: flex-start;
}

.product-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.add-cart-form input {
    width: 80px;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.product-attrs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-order-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.custom-order-cta h3 {
    color: #0f172a;
    margin-bottom: 6px;
}

.custom-order-cta p {
    color: #475569;
    margin: 0;
}

.cart-btn {
    position: relative;
}

.cart-count {
    background: var(--brand);
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    margin-inline-start: 6px;
}

.eyebrow {
    display: inline-flex;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.shop-header-text h1 {
    margin-bottom: 4px;
    font-size: clamp(1.4rem, 2vw, 2.1rem);
    color: #f8fafc;
}

.shop-meta {
    display: flex;
    gap: 8px;
    color: rgba(226, 232, 240, 0.75);
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.shop-meta span {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 3px 8px;
    border-radius: 999px;
    color: #e2e8f0;
}

.shop-header-text p {
    margin: 0 0 8px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(226, 232, 240, 0.85);
}

.shop-header-text .eyebrow {
    margin-bottom: 4px;
    font-size: 0.7rem;
    color: rgba(56, 189, 248, 0.9);
}

.shop-filter .filter-field {
    flex: 0 0 auto;
    min-width: 130px;
}

.shop-filter-panel {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 14px;
    padding: 10px 12px;
    min-width: 260px;
    max-width: 520px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-title {
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.85);
    margin-bottom: 0;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.shop-filter-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    flex: 1 1 auto;
    overflow-x: auto;
    padding-bottom: 4px;
    align-items: center;
}

.shop-filter-row::-webkit-scrollbar {
    height: 6px;
}

.shop-filter-row::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.35);
    border-radius: 999px;
}

.filter-field label {
    display: inline-block;
    margin-bottom: 0;
    font-size: 0.72rem;
    color: rgba(226, 232, 240, 0.75);
    white-space: nowrap;
}

.filter-field input::placeholder {
    color: rgba(226, 232, 240, 0.7);
}

.filter-field input,
.filter-field select {
    width: 100%;
}

.filter-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 130px;
}

.filter-field input,
.filter-field select {
    min-width: 130px;
    height: 32px;
}

.filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-inline-start: auto;
}

.filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.filter-toggle input {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
}

.shop-filter .btn {
    padding: 6px 12px;
    font-size: 0.78rem;
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.18);
}

.filter-toggle span {
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.7);
}

.value-strip {
    padding-top: 0;
}

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

.value-card {
    background: var(--surface);
    border-radius: 18px;
    padding: 20px;
    border: 1px solid var(--stroke);
    box-shadow: 0 16px 32px rgba(2, 6, 23, 0.2);
}

.value-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6, #22d3ee);
    display: inline-flex;
    margin-bottom: 12px;
    position: relative;
}

.value-icon::after {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 6px;
    background: rgba(226, 232, 240, 0.85);
    position: absolute;
    top: 13px;
    right: 13px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--muted);
}

.product-meta .category {
    font-weight: 600;
}

.product-meta.subtle {
    color: var(--muted-light);
    font-size: 0.75rem;
}

.badge.digital {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.12);
    color: #38bdf8;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.06);
    font-size: 0.74rem;
    color: var(--muted);
}

.stock-badge {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    border: 1px solid transparent;
}

.stock-badge.in {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.35);
}

.stock-badge.out {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.35);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.price-stack {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-section {
    padding-top: 40px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 28px;
    align-items: start;
}

.gallery-main {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid rgba(148, 163, 184, 0.22);
    padding: 18px;
    aspect-ratio: 4 / 3;
}

.discount-chip {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f97316;
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
}

.product-summary {
    position: sticky;
    top: 120px;
}

.product-description {
    overflow-wrap: anywhere;
    word-break: break-word;
    color: #0f172a;
    line-height: 1.9;
}

.product-description p {
    margin-top: 0;
    margin-bottom: 12px;
}

.thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.thumb {
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #ffffff;
    padding: 6px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    outline: none;
}

.thumb img {
    width: 100%;
    height: 64px;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.thumb:hover img {
    transform: scale(1.04);
}

.thumb.active {
    box-shadow: 0 0 0 3px var(--ring);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 3000;
}

.gallery-lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.gallery-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: min(92vw, 980px);
    max-height: 80vh;
    padding: 0 10px;
}

.gallery-slide {
    min-width: 100%;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.gallery-nav,
.gallery-close {
    position: absolute;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 1.6rem;
}

.gallery-close {
    top: 20px;
    right: 20px;
}

.gallery-nav.prev {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-nav.next {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.summary-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.lead {
    color: var(--muted);
}

.price-main {
    font-size: 1.6rem;
}

.trust-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 16px 0;
    list-style: none;
    color: var(--muted);
}

.trust-list.compact {
    margin-top: 16px;
    font-size: 0.85rem;
}

.summary-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.download-panel {
    margin-top: 16px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-panel h3 {
    margin: 0;
    font-size: 1rem;
}

.update-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.update-list li {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.12);
}

.update-head-box {
    background: rgba(226, 232, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 8px 12px;
}

.update-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #0f172a;
}

.update-body {
    margin-top: 8px;
    color: #0f172a;
}

.product-detail-sections {
    margin-top: 26px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spec-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(148, 163, 184, 0.12);
    border-radius: 12px;
}

.cart-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.checkout-steps {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.step {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 0.8rem;
    color: var(--muted);
}

.step.active {
    background: var(--brand);
    color: #fff;
    border-color: transparent;
}

.step.done {
    background: rgba(45, 212, 191, 0.18);
    color: #5eead4;
    border-color: rgba(45, 212, 191, 0.35);
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cart-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.cart-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cart-price {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.cart-qty label {
    font-size: 0.8rem;
    color: var(--muted);
}

.form-card h2 {
    margin-top: 0;
}

.form-card-lg {
    padding: 30px 34px;
    border-radius: 20px;
    box-shadow: 0 24px 50px rgba(2, 6, 23, 0.12);
}

.custom-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.custom-order-highlight {
    background: var(--surface);
    border-radius: 18px;
    padding: 16px 20px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.32);
}

.custom-order-hero {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.22), rgba(11, 18, 32, 0.2));
}

.custom-order-hero .btn.ghost {
    color: #fff;
    border-color: rgba(226, 232, 240, 0.4);
    background: rgba(226, 232, 240, 0.08);
}

.custom-order-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
    align-items: center;
}

.custom-order-hero-content h1 {
    font-size: clamp(2rem, 3.2vw, 3rem);
    margin-bottom: 10px;
}

.custom-order-steps {
    display: grid;
    gap: 14px;
}

.step-card {
    background: var(--surface);
    border-radius: 18px;
    padding: 16px 18px;
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow-soft);
    color: var(--ink);
}

.step-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--brand);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.step-card h3 {
    margin: 0 0 6px;
}

.info-banner {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.15);
    color: #7dd3fc;
}

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

.order-card.is-clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-card.is-clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 38px rgba(2, 6, 23, 0.24);
}

.order-card.is-clickable:focus-within {
    box-shadow: 0 0 0 3px var(--ring);
}

.order-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--muted-light);
}

.order-links {
    margin-top: 10px;
}

.order-detail-hero {
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(238, 242, 255, 0.9));
}

.order-detail-hero h1 {
    font-size: 1.5rem;
    margin: 6px 0;
}

.order-detail-hero .eyebrow {
    margin-bottom: 2px;
}

.order-detail-hero p.muted {
    margin: 0;
}

.order-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.order-hero-status {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.status-pill.success {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.35);
    color: #15803d;
}

.status-pill.warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    color: #b45309;
}

.order-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.order-summary-tile {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--ink);
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.08);
}

.order-summary-tile span {
    font-size: 0.8rem;
    color: var(--muted);
}

.order-detail-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 20px;
    align-items: start;
}

.order-items-card .card-head,
.order-payment-card .card-head {
    margin-bottom: 14px;
}

.order-item-row {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 18px rgba(2, 6, 23, 0.06);
    margin-bottom: 10px;
}

.order-item-media img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
}

.order-item-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--ink);
}

.order-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--muted);
}

.order-item-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    color: var(--ink);
}

.order-items-footer {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.order-items-footer div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--ink);
}

.payment-proof-card {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #ffffff;
    display: grid;
    gap: 8px;
}

.receipt-preview {
    margin-top: 14px;
}

.receipt-preview img {
    max-width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    display: block;
}

@media (max-width: 900px) {
    .order-detail-grid {
        grid-template-columns: 1fr;
    }

    .order-item-row {
        grid-template-columns: 56px 1fr;
    }

    .order-item-price {
        grid-column: 1 / -1;
        align-items: flex-start;
    }
}

.order-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.order-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--muted);
}

.order-downloads {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
}

.download-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.success-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.spacer {
    height: 12px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.pagination a {
    padding: 8px 14px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.2);
    color: var(--ink);
}

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.error-card {
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 22px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(2, 6, 23, 0.35);
    max-width: 520px;
}

.error-code {
    font-size: 3rem;
    font-weight: 700;
    color: var(--brand);
    display: inline-flex;
    margin-bottom: 12px;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 16px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.hero-highlights {
    display: flex;
    gap: 20px;
}

.hero-highlights div {
    background: var(--surface);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    color: var(--ink);
}

.shop-hero .hero-highlights div {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.28);
    box-shadow: 0 12px 25px rgba(2, 6, 23, 0.3);
    color: #e2e8f0;
}

.shop-hero .hero-highlights div strong {
    color: #ffffff;
}

.shop-hero .hero-highlights div span {
    color: rgba(226, 232, 240, 0.9);
}

.hero-card {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius);
    color: var(--ink);
    box-shadow: var(--shadow-soft);
}

.hero-highlights {
    flex-wrap: wrap;
}

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

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

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

.auth-card h2 {
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.blog-list {
    display: grid;
    gap: 16px;
}

.blog-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 16px 32px rgba(2, 6, 23, 0.18);
}

.blog-thumb {
    display: block;
    width: 120px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.12);
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(148, 163, 184, 0.2));
}

.blog-body h3 {
    margin: 0 0 6px;
}

.blog-summary {
    margin: 6px 0 10px;
    color: var(--muted);
}

.blog-article {
    padding: 24px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 18px 35px rgba(2, 6, 23, 0.2);
}

.blog-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.blog-cover {
    width: 220px;
    height: 140px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #fff;
}

.blog-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    color: #0f172a;
    line-height: 1.9;
    white-space: pre-line;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    unicode-bidi: plaintext;
    direction: rtl;
    text-align: start;
}

.blog-content img {
    max-width: 100%;
    border-radius: 12px;
}

.blog-content a {
    color: #2563eb;
    text-decoration: underline;
}

.blog-content pre,
.blog-content code {
    direction: ltr;
    unicode-bidi: plaintext;
    font-family: "Consolas", "Courier New", monospace;
}

.blog-content pre {
    background: #f1f5f9;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    padding: 42px 14px 12px;
    overflow: auto;
    color: #0f172a;
    position: relative;
}

.blog-content code {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 6px;
    color: #0f172a;
}

.blog-content figure,
.blog-content .image {
    margin: 16px 0;
}

.blog-content figure img,
.blog-content .image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.code-copy {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.code-copy.copied {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #166534;
}

.blog-article h1,
.blog-article h2,
.blog-article h3,
.blog-article h4 {
    color: #0f172a;
}

@media (max-width: 900px) {
    .blog-card {
        grid-template-columns: 1fr;
    }

    .blog-thumb {
        width: 100%;
        height: 160px;
    }

    .blog-hero {
        grid-template-columns: 1fr;
    }

    .blog-cover {
        width: 100%;
        height: 200px;
    }
}

.contact-section .container {
    max-width: 1100px;
}

.contact-title {
    text-align: right;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 22px;
    align-items: start;
}

.contact-form .card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-form .card-head h3 {
    margin: 0;
}

.contact-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info .card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.contact-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--ink);
}

.contact-list span {
    color: var(--muted);
    font-size: 0.85rem;
}

.contact-cta {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
    color: #e2e8f0;
    border: 1px solid rgba(59, 130, 246, 0.35);
    box-shadow: 0 16px 30px rgba(2, 6, 23, 0.28);
}

.contact-cta h4 {
    margin: 0 0 6px;
}

.contact-cta .muted {
    color: rgba(226, 232, 240, 0.7);
}

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

.card {
    background: var(--surface);
    padding: 22px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 16px 32px rgba(2, 6, 23, 0.18);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}

.card.pricing {
    border: 2px solid transparent;
}

.card.pricing.popular {
    border-color: var(--accent);
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    font-size: 0.8rem;
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: var(--brand);
}

.link {
    color: var(--brand);
    font-weight: 600;
}

.form input,
.form textarea,
.form select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    font-family: inherit;
    background: #f8fafc;
    color: var(--ink);
}

.form input:focus,
.form textarea:focus,
.form select:focus,
.shop-filter input:focus,
.shop-filter select:focus,
.add-cart-form input:focus,
.cart-qty input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--ring);
}

img,
video {
    max-width: 100%;
    height: auto;
}

.form p {
    margin-bottom: 14px;
}

.form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.radio-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.radio-group li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(248, 250, 252, 0.9);
}

.radio-group input[type='radio'] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

.payment-card-details {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.9);
}

.payment-card-details h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.payment-card-details ul {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    display: grid;
    gap: 6px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.table thead th {
    padding: 10px 12px;
    font-weight: 600;
    color: var(--ink);
    background: rgba(148, 163, 184, 0.12);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.table tbody td {
    padding: 10px 12px;
    color: var(--ink);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.table tbody tr:nth-child(even) {
    background: rgba(148, 163, 184, 0.06);
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.payment-choice {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(248, 250, 252, 0.9);
    color: #0f172a;
    min-width: 220px;
    cursor: pointer;
}

.payment-choice input {
    margin-left: 6px;
}

.payment-choice span {
    font-weight: 600;
}

.payment-choice small {
    color: #475569;
}

.payment-panel {
    margin-top: 12px;
}

.payment-panel.is-hidden {
    display: none;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(248, 250, 252, 0.85);
}

.checkbox-group input[type='checkbox'] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

.form-section {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed rgba(148, 163, 184, 0.35);
}

.form-section h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.form-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.form-card-tag {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--brand);
    font-size: 0.8rem;
    white-space: nowrap;
}

.payment-proof-form {
    margin-top: 12px;
    display: grid;
    gap: 12px;
}

.custom-order-form .btn {
    margin-top: 16px;
}

.custom-order-form select,
.custom-order-form input,
.custom-order-form textarea {
    background: #f8fafc;
}

.info-card {
    background: linear-gradient(150deg, #f8fafc, #eef2ff);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.info-card-compact {
    padding: 20px 22px;
    border-radius: 18px;
}

.info-card-compact .list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
}

.info-card-compact .list li {
    position: relative;
    padding-right: 16px;
    color: #1f2937;
    font-size: 0.95rem;
}

.info-card-compact .list li::before {
    content: '•';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--brand);
}

.info-card-compact .info-grid {
    margin: 10px 0 0;
}

.info-card-compact .info-grid div {
    padding: 8px 10px;
}

.info-card-compact .info-callout {
    margin-top: 12px;
    font-size: 0.92rem;
}

@media (max-width: 640px) {
    .info-card-compact .list {
        grid-template-columns: 1fr;
    }
}

.info-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.info-tile {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.08);
}

.tile-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #dbeafe;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.info-callout {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #1e3a8a;
}

.form-note {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    padding: 12px 14px;
}

.form-note .muted {
    color: var(--muted);
}

.errorlist {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    color: #b91c1c;
    font-size: 0.85rem;
}

.is-hidden {
    display: none !important;
}

.alert {
    padding: 10px 16px;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    margin: 12px 0;
    color: #0f172a;
}

.alert.success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #14532d;
}
.alert.password-set {
    background: linear-gradient(135deg, #16a34a, #15803d);
    border-color: rgba(20, 83, 45, 0.6);
    color: #fff;
}

.alert.info {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
    color: #1e3a8a;
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 3500;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.profile-notice {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border-bottom: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--ink);
}
.password-notice {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-bottom: 1px solid rgba(59, 130, 246, 0.35);
    color: #fff;
}
.password-notice .btn.ghost {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}
.password-notice .btn.ghost:hover {
    border-color: rgba(255, 255, 255, 0.7);
}

.notice-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
}

.accordion details {
    background: var(--surface);
    margin-bottom: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.cta {
    padding: 50px 0;
    background: linear-gradient(120deg, #1e3a8a, #2563eb);
    color: #fff;
}

.cta-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.site-footer {
    background: #0b0f14;
    color: #e2e8f0;
    padding-top: 50px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.site-footer .badge.placeholder {
    background: rgba(148, 163, 184, 0.15);
    color: var(--muted);
}

.site-footer a {
    color: inherit;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    background: #1f2937;
    padding: 8px;
    border-radius: 10px;
}

.badge img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.banner-grid {
    align-items: stretch;
}

.banner-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.banner-media {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.site-notification .banner-media {
    width: 100%;
    max-height: 50vh;
    object-fit: contain;
    background: #f8fafc;
}

.site-notification .notification-html * {
    color: #0f172a;
}

@media (max-width: 640px) {
    .site-notification {
        padding: 12px;
    }
    .site-notification .notification-card {
        width: 94vw;
        max-height: 85vh;
        padding: 16px;
    }
    .site-notification .notification-content {
        max-height: calc(85vh - 56px);
    }
}

.banner-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.placeholder {
    background: #1f2937;
    color: #cbd5f5;
    padding: 10px 14px;
    border-radius: 10px;
}

.dashboard {
    display: flex;
    flex-direction: row-reverse;
    gap: 24px;
    align-items: flex-start;
}

.dashboard-sidebar {
    background: var(--surface);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 96px;
    flex: 0 0 280px;
}

.user-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(120deg, #e0f2fe, #dbeafe);
}

.avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-group {
    margin-top: 14px;
    padding: 0 6px;
    font-size: 12px;
    letter-spacing: 0.2px;
    color: var(--muted);
    font-weight: 600;
}

.dashboard-nav .nav-group:first-child {
    margin-top: 0;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--surface-2);
    transition: all 0.2s ease;
    color: var(--ink);
}

.nav-link:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.nav-link.active {
    background: var(--brand);
    color: #fff;
}

.sidebar-actions .btn {
    width: 100%;
}

.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1 1 auto;
    min-width: 0;
}

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border-radius: var(--radius);
    background: linear-gradient(130deg, #dbeafe, #e0f2fe);
    box-shadow: var(--shadow);
}

.dashboard-hero.compact {
    padding: 16px 20px;
}

.dashboard-hero h1 {
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

.stat-card {
    background: #ffffff;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 14px 26px rgba(2, 6, 23, 0.14);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-card strong {
    font-size: 1.6rem;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 10px;
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.08);
}

.list-item > span:first-child {
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 10px;
}

.info-grid div {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.muted {
    color: var(--muted-light);
}

.card,
.product-card,
.category-card,
.shop-list-header,
.shop-sidebar,
.order-summary,
.value-card,
.custom-order-highlight,
.dashboard-sidebar,
.dashboard-content,
.dashboard-hero,
.stat-card,
.list-item,
.quick-item,
.cart-item,
.shop-hero-card,
.error-card {
    color: var(--ink);
}

.card .muted,
.product-card .muted,
.category-card .muted,
.shop-list-header .muted,
.shop-sidebar .muted,
.order-summary .muted,
.value-card .muted,
.custom-order-highlight .muted,
.dashboard-sidebar .muted,
.dashboard-content .muted,
.dashboard-hero .muted,
.stat-card .muted,
.list-item .muted,
.quick-item .label,
.cart-item .muted,
.shop-hero-card .muted,
.error-card .muted {
    color: var(--muted);
}

.sub-title {
    margin: 30px 0 12px;
}

@media (max-width: 900px) {
    .nav {
        display: none;
    }
    .nav-actions {
        display: none;
    }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .dashboard {
        flex-direction: column;
    }
    .dashboard-sidebar {
        position: static;
    }
    .footer-bottom-inner {
        flex-direction: column;
        gap: 8px;
    }
    .notice-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-highlights div {
        flex: 1 1 120px;
    }
    .shop-list-grid {
        grid-template-columns: 1fr;
    }
    .shop-filter {
        flex-direction: column;
        align-items: stretch;
    }
    .cart-grid,
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .admin-order-layout {
        grid-template-columns: 1fr;
    }
    .admin-aside {
        position: static;
        order: -1;
    }
    .order-summary {
        position: static;
        top: auto;
    }
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    .product-summary {
        position: static;
    }
    .product-detail-sections {
        grid-template-columns: 1fr;
    }
    .custom-order-hero-grid {
        grid-template-columns: 1fr;
    }
    .custom-order-grid .info-card {
        order: -1;
    }
    .custom-order-grid .form-card {
        order: 0;
    }
    .cart-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .checkout-steps {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .dashboard-sidebar {
        display: none;
    }
    .user-card {
        display: none;
    }
    .dashboard-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 6px;
    }
    .dashboard-nav::-webkit-scrollbar {
        display: none;
    }
    .nav-link {
        flex: 0 0 auto;
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    .dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-actions {
        width: 100%;
    }
    .hero-actions .btn,
    .hero-actions .btn.ghost {
        width: 100%;
        justify-content: center;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .card-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .mobile-dashboard-top {
        display: flex;
    }
    .mobile-quick-stats {
        display: grid;
    }
    .mobile-bottom-nav {
        display: flex;
    }
    .shop-hero {
        padding: 70px 0 50px;
    }
    .shop-list-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .cart-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .custom-order-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .cart-actions {
        width: 100%;
        justify-content: space-between;
    }
    .shop-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .topbar {
        display: none;
    }
    .hero {
        padding: 60px 0 40px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .container {
        width: min(1200px, 94%);
    }
    .cta-inner {
        align-items: flex-start;
    }
    .product-media {
        min-height: 180px;
        aspect-ratio: 4 / 3;
        padding: 10px;
    }
    .thumb img {
        height: 56px;
    }
    .price-main {
        font-size: 1.4rem;
    }
    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.service-detail,
.project-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.ticket-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticket-meta {
    margin-top: 10px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.9rem;
}

.ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-hero .hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
    gap: 24px;
    align-items: start;
}

.admin-card .section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.order-description {
    background: #f8fafc;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    padding: 12px 14px;
    border-radius: 12px;
    line-height: 1.9;
    color: #0f172a;
}

.status-pill {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(148, 163, 184, 0.2);
    color: #0f172a;
}

.status-pill.status-new {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}

.status-pill.status-review,
.status-pill.status-waiting_admin {
    background: rgba(245, 158, 11, 0.15);
    color: #92400e;
}

.status-pill.status-processing,
.status-pill.status-in_progress {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}

.status-pill.status-waiting_user,
.status-pill.status-countered {
    background: rgba(14, 165, 233, 0.15);
    color: #0c4a6e;
}

.status-pill.status-waiting_staff {
    background: rgba(14, 116, 144, 0.18);
    color: #155e75;
}

.status-pill.status-quoted,
.status-pill.status-awaiting_payment {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.status-pill.status-payment_submitted,
.status-pill.status-paid {
    background: rgba(16, 185, 129, 0.18);
    color: #065f46;
}

.status-pill.status-done,
.status-pill.status-resolved,
.status-pill.status-delivered {
    background: rgba(22, 163, 74, 0.18);
    color: #166534;
}

.status-pill.status-shipped {
    background: rgba(56, 189, 248, 0.2);
    color: #0369a1;
}

.status-pill.status-pending {
    background: rgba(37, 99, 235, 0.15);
    color: #1d4ed8;
}

.status-pill.status-confirmed {
    background: rgba(16, 185, 129, 0.18);
    color: #065f46;
}

.status-pill.status-expired,
.status-pill.status-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #991b1b;
}

.status-pill.status-cancelled {
    background: rgba(100, 116, 139, 0.2);
    color: #334155;
}

.status-pill.status-closed {
    background: rgba(100, 116, 139, 0.2);
    color: #334155;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid transparent;
    line-height: 1.2;
    background: #e2e8f0;
    color: #0f172a;
}

.status-chip.status-success {
    background: #bbf7d0;
    border-color: #86efac;
    color: #0f172a;
}

.status-chip.status-warning {
    background: #fde68a;
    border-color: #fcd34d;
    color: #0f172a;
}

.status-chip.status-danger {
    background: #fecaca;
    border-color: #fca5a5;
    color: #0f172a;
}

.status-chip.status-info {
    background: #bfdbfe;
    border-color: #93c5fd;
    color: #0f172a;
}

.status-chip.status-neutral {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #0f172a;
}

.offer-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.offer-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: var(--surface);
}

.offer-card.status-pending {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.12);
}

.offer-card.status-accepted {
    border-color: rgba(34, 197, 94, 0.45);
}

.offer-card.status-rejected {
    border-color: rgba(239, 68, 68, 0.4);
}

.offer-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.offer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.form-panel {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(148, 163, 184, 0.08);
}

.payment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(148, 163, 184, 0.08);
}

.payment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 110px;
    height: fit-content;
}

.admin-info div {
    background: #fff;
}

.ticket-message {
    padding: 14px;
    border-radius: 12px;
    background: #f8f5f2;
}

.ticket-message.mine {
    background: #e9f5ff;
}

.ticket-message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.ticket-attachments {
    margin-top: 8px;
    display: flex;
    gap: 10px;
}

.offer-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 12px 0 18px;
}

.deadline-box {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid rgba(234, 88, 12, 0.3);
    color: #9a3412;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.filter-row .pill.active {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(37, 99, 235, 0.4);
    color: var(--brand);
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: var(--surface);
}

.notification-item.unread {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
}

.notification-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    white-space: nowrap;
}

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

.file-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: var(--surface);
}

.file-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 700;
    overflow: hidden;
}

.file-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-ext {
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.file-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.file-card.file-archive .file-icon {
    background: #fff7ed;
    color: #c2410c;
}

.file-card.file-code .file-icon {
    background: #e0f2fe;
    color: #0369a1;
}

.file-card.file-image .file-icon {
    background: #f1f5f9;
}

.file-card.file-video .file-icon {
    background: #fee2e2;
    color: #b91c1c;
}

.file-card.file-audio .file-icon {
    background: #ecfccb;
    color: #3f6212;
}

.file-card.file-doc .file-icon {
    background: #e0e7ff;
    color: #3730a3;
}

.file-card.file-sheet .file-icon {
    background: #dcfce7;
    color: #166534;
}

.file-card.file-pdf .file-icon {
    background: #fee2e2;
    color: #991b1b;
}

.file-card.file-text .file-icon {
    background: #f8fafc;
    color: #0f172a;
}

.file-card.file-unknown .file-icon {
    background: #e2e8f0;
    color: #1e293b;
}

.site-notification {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    display: grid;
    place-items: center;
    z-index: 200;
    padding: 20px;
}

.notification-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    max-width: 720px;
    width: min(720px, 92vw);
    padding: 24px;
    position: relative;
}

.site-notification .notification-card {
    width: min(560px, 92vw);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.site-notification .notification-content {
    color: #0f172a;
    overflow: auto;
    max-height: calc(85vh - 64px);
}

.site-notification .notification-content p,
.site-notification .notification-content h3,
.site-notification .notification-content span,
.site-notification .notification-content li {
    color: #0f172a;
}

.site-notification .notification-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.notification-close {
    position: absolute;
    top: 12px;
    left: 12px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.site-notification .notification-close {
    background: #f1f5f9;
    color: #0f172a;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
}

.notification-content h3 {
    margin-top: 0;
}

.site-notification.hidden {
    display: none;
}

}

.dashboard-page {
    padding-bottom: 96px;
    background: var(--bg);
    color: var(--ink-light);
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border-radius: 20px;
    padding: 10px 12px;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.25);
    z-index: 140;
    gap: 8px;
    width: min(520px, 94vw);
    justify-content: space-between;
}

.bottom-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    background: var(--surface-2);
    flex-direction: column;
    flex: 1 1 auto;
    text-decoration: none;
    color: var(--ink);
}

.bottom-link.active {
    background: var(--brand);
    color: #fff;
}

.bottom-link .label {
    font-size: 0.62rem;
    font-weight: 600;
}

.bottom-icon {
    width: 22px;
    height: 22px;
    display: block;
}

.mobile-dashboard-top,
.mobile-quick-stats {
    display: none;
}

.mobile-dashboard-top {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    padding: 14px 16px;
    border-radius: 18px;
    margin-bottom: 12px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.mobile-dashboard-top .btn.ghost {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.mobile-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mobile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.mobile-user-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-user-meta .eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.75);
}

.mobile-top-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mobile-quick-stats {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
}

.quick-item {
    background: #ffffff;
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.12);
}

.quick-item .label {
    font-size: 0.65rem;
    color: var(--muted);
}
}

@media (prefers-color-scheme: dark) {
    .dashboard-page {
        background: var(--bg);
        color: var(--ink-light);
    }
    .card,
    .stat-card {
        background: var(--surface);
        border-color: rgba(148, 163, 184, 0.25);
        color: var(--ink);
    }
    .list-item,
    .info-grid div {
        background: var(--surface-2);
        border-color: rgba(148, 163, 184, 0.25);
    }
    .dashboard-hero {
        background: linear-gradient(130deg, #dbeafe, #e0f2fe);
        color: var(--ink);
    }
    .mobile-dashboard-top {
        background: linear-gradient(135deg, #1e3a8a, #2563eb);
    }
    .quick-item {
        background: var(--surface-2);
        border-color: rgba(148, 163, 184, 0.25);
        color: var(--ink);
    }
    .icon-btn {
        background: var(--surface);
        border-color: rgba(148, 163, 184, 0.25);
        color: var(--ink);
    }
    .mobile-bottom-nav {
        background: var(--surface);
        border-color: rgba(148, 163, 184, 0.25);
    }
    .bottom-link {
        background: var(--surface-2);
        color: var(--ink);
    }
    .bottom-link.active {
        background: var(--brand);
        color: #fff;
    }
}

@media (max-width: 720px) {
    html[data-dashboard-theme="dark"] .dashboard-page {
        background: var(--bg);
        color: var(--ink-light);
    }
    html[data-dashboard-theme="dark"] .card,
    html[data-dashboard-theme="dark"] .stat-card {
        background: var(--surface);
        border-color: rgba(148, 163, 184, 0.25);
        color: var(--ink);
    }
    html[data-dashboard-theme="dark"] .list-item,
    html[data-dashboard-theme="dark"] .info-grid div {
        background: var(--surface-2);
        border-color: rgba(148, 163, 184, 0.25);
    }
    html[data-dashboard-theme="dark"] .dashboard-hero {
        background: linear-gradient(130deg, #dbeafe, #e0f2fe);
        color: var(--ink);
    }
    html[data-dashboard-theme="dark"] .mobile-dashboard-top {
        background: linear-gradient(135deg, #1e3a8a, #2563eb);
    }
    html[data-dashboard-theme="dark"] .quick-item {
        background: var(--surface-2);
        border-color: rgba(148, 163, 184, 0.25);
        color: var(--ink);
    }
    html[data-dashboard-theme="dark"] .icon-btn {
        background: var(--surface);
        border-color: rgba(148, 163, 184, 0.25);
        color: var(--ink);
    }
    html[data-dashboard-theme="dark"] .mobile-bottom-nav {
        background: var(--surface);
        border-color: rgba(148, 163, 184, 0.25);
    }
    html[data-dashboard-theme="dark"] .bottom-link {
        background: var(--surface-2);
        color: var(--ink);
    }
    html[data-dashboard-theme="dark"] .bottom-link.active {
        background: var(--brand);
        color: #fff;
    }
    html[data-dashboard-theme="dark"] .theme-toggle .icon-sun {
        display: block;
    }
    html[data-dashboard-theme="dark"] .theme-toggle .icon-moon {
        display: none;
    }
}
/* Final project files card */
.final-files-card {
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 55%, #e0f2fe 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: hidden;
}

.final-files-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(37, 99, 235, 0.12);
  pointer-events: none;
}

.final-files-card h3 {
  color: #0f172a;
}

.final-files-card .muted {
  color: #334155;
}

.final-files-card .file-card {
  background: #ffffff;
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.install-option {
  margin-top: 10px;
  padding: 8px 10px;
  background: #eef2ff;
  border-radius: 10px;
  display: inline-flex;
}

.install-option label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1e293b;
}

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

.download-card {
  background: #ffffff;
  border: 1px solid rgba(59, 130, 246, 0.16);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.download-card strong {
  color: #0f172a;
}

.download-card .muted {
  color: #475569;
  margin: 4px 0 0;
}
