@import url("/static/vendor/bootstrap-icons/bootstrap-icons.css");

/* Local fallback for icon font in case external CSS/font loading is blocked */
@font-face {
    font-family: "bootstrap-icons";
    src: url("/static/vendor/bootstrap-icons/fonts/bootstrap-icons.woff2") format("woff2"),
         url("/static/vendor/bootstrap-icons/fonts/bootstrap-icons.woff") format("woff");
    font-display: block;
}

.bi::before,
[class^="bi-"]::before,
[class*=" bi-"]::before {
    display: inline-block;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bi-shop-window::before { content: "\f542"; }
.bi-house-door::before { content: "\f423"; }
.bi-grid::before { content: "\f3fc"; }
.bi-chat-dots::before { content: "\f24a"; }
.bi-cart3::before { content: "\f244"; }
.bi-credit-card-2-front::before { content: "\f2da"; }
.bi-person-circle::before { content: "\f4d7"; }
.bi-box-arrow-right::before { content: "\f1c3"; }
.bi-box-arrow-in-left::before { content: "\f1bd"; }
.bi-person-plus::before { content: "\f4dd"; }
.bi-headset::before { content: "\f414"; }
.bi-box-seam::before { content: "\f1c7"; }
.bi-shield-lock::before { content: "\f538"; }
.bi-speedometer2::before { content: "\f580"; }
.bi-diagram-3::before { content: "\f2ee"; }
.bi-people::before { content: "\f4d0"; }
.bi-chat-left-text::before { content: "\f252"; }
.bi-receipt::before { content: "\f50f"; }
.bi-sliders::before { content: "\f56b"; }
.bi-palette::before { content: "\f4b6"; }
.bi-search::before { content: "\f52a"; }
.bi-eye::before { content: "\f341"; }
.bi-eye-slash::before { content: "\f343"; }
.bi-cart-plus::before { content: "\f23f"; }
.bi-x-circle::before { content: "\f623"; }
.bi-arrow-right::before { content: "\f138"; }
.bi-trash::before { content: "\f5de"; }
.bi-save::before { content: "\f525"; }
.bi-key::before { content: "\f44f"; }
.bi-geo-alt::before { content: "\f3e8"; }
.bi-send::before { content: "\f6c0"; }

:root {
    --blue-900: #10254f;
    --blue-800: #17306b;
    --blue-700: #2148a8;
    --blue-600: #2b63df;
    --blue-100: #edf3ff;

    --red-700: #a5163b;
    --red-600: #d21f52;
    --red-100: #ffeaf0;

    --text: #10213f;
    --muted: #5f6f87;
    --line: #dbe4f3;
    --bg: #f7f9fd;
    --card: #ffffff;
    --radius: 16px;
    --radius-sm: 11px;
    --container-width: 1180px;
    --section-padding: 2.2rem;
    --card-padding: 1rem;
    --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    --font: "Vazirmatn", "Noto Sans Arabic", Tahoma, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 15.5px;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: clip;
}

body {
    direction: rtl;
    font-family: var(--font);
    color: var(--text);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0) 340px),
        linear-gradient(135deg, color-mix(in srgb, var(--blue-600) 5%, var(--bg)), var(--bg) 46%, color-mix(in srgb, var(--red-600) 4%, var(--bg)));
}

body.has-mobile-nav {
    padding-bottom: 78px;
}

a {
    color: inherit;
}

img,
iframe,
video,
svg {
    max-width: 100%;
}

.bi {
    display: inline-block;
    margin-left: 0.35rem;
    vertical-align: -0.08em;
    line-height: 1;
}

.container {
    width: min(var(--container-width), calc(100% - 2rem));
    margin: 0 auto;
}

.main {
    min-height: 68vh;
}

.header {
    position: sticky;
    top: 38px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 110;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.98));
    color: #fff;
    font-size: 0.86rem;
}

.topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.topbar-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    white-space: nowrap;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topbar-links a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.95;
}

.topbar-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.header-solid .header {
    background: #fff;
    backdrop-filter: none;
}

.header-premium .header {
    background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
    border-bottom-color: rgba(255, 255, 255, 0.14);
}

.header-premium .logo,
.header-premium .nav a,
.header-premium .menu-btn {
    color: #fff !important;
}

.header-premium .nav a:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
}

.header::after {
    content: "";
    display: block;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-700), var(--red-600));
    opacity: 0.35;
}

.header .container {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    font-size: 1.32rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: var(--blue-800);
    flex-shrink: 0;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 12px;
    background: transparent;
    border: 0;
    box-shadow: 0 8px 18px rgba(15, 31, 77, 0.1);
}

.nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
}

.nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.93rem;
    color: var(--text);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.38rem 0.72rem;
    transition: 0.2s ease;
}

.nav a:hover {
    color: var(--blue-800);
    border-color: #d4def3;
    background: #f4f7ff;
}

.cart-link {
    position: relative;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    margin-right: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: var(--red-600);
}

.user-link,
.login-link,
.register-link {
    color: var(--blue-700) !important;
}

.logout-link {
    color: var(--red-700) !important;
    border-color: #ffd1dd !important;
    background: #fff5f8;
}

.menu-btn {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--blue-700);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1.15rem;
    cursor: pointer;
}

.flash-messages {
    width: min(1120px, calc(100% - 2rem));
    margin: 0.8rem auto 0;
}

.flash {
    margin: 0.4rem 0;
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.flash:not(.error) {
    color: #0c5a2f;
    background: #ecfbf1;
    border-color: #c3edd0;
}

.flash.error {
    color: #8f1234;
    background: #fff0f4;
    border-color: #ffd0dc;
}

.hero {
    margin-top: 0.8rem;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 2px);
    min-height: 300px;
    padding: 2.8rem 1rem;
    display: grid;
    align-items: center;
    text-align: center;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--blue-600) 12%, #fff), #fff 58%, color-mix(in srgb, var(--red-600) 9%, #fff));
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.topbar {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.98));
    color: #fff;
    font-size: 0.86rem;
}

.topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.topbar-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    white-space: nowrap;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topbar-links a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.95;
}

.topbar-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.hero-showcase {
    padding: 1.6rem 0 1rem;
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
    justify-items: center;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0)),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.3) 0 1px, transparent 1px 18px);
    opacity: 0.48;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 780px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 30px;
    padding: 0.14rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(216, 226, 250, 0.9);
    color: var(--blue-800);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(15, 31, 77, 0.05);
}

.hero h1 {
    margin: 0.78rem 0 0;
    font-size: clamp(1.9rem, 3.65vw, 3.05rem);
    line-height: 1.18;
    color: var(--blue-900);
}

.hero-subtitle {
    margin: 0.95rem 0 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 0.98rem;
}

.hero-showcase .hero-subtitle {
    display: none;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.4rem;
}

.hero-actions .btn {
    min-width: 170px;
    justify-content: center;
}

.hero-minimal .hero {
    min-height: 280px;
    background: #fff;
    box-shadow: none;
}

.hero-premium .hero {
    color: #fff;
    border-color: color-mix(in srgb, var(--blue-600) 45%, #fff);
    background: linear-gradient(135deg, var(--blue-900), var(--blue-700) 62%, var(--red-700));
}

.hero-premium .hero h1,
.hero-premium .hero p {
    color: #fff;
}

.product-slider-section {
    padding: 1rem 0 0.5rem;
}

.product-slider {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 2px);
    background:
        radial-gradient(circle at 14% 20%, rgba(215, 25, 76, 0.12), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f6f9ff 46%, #eef4ff 100%);
    box-shadow: var(--shadow);
}

.product-slider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem 0.2rem;
}

.product-slider-head strong {
    color: var(--blue-900);
    font-size: 1rem;
}

.product-slider-track {
    position: relative;
    min-height: 0;
    overflow: hidden;
    width: 100%;
}

.product-slide {
    position: absolute;
    inset: 0;
    direction: rtl;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1rem 1.25rem;
    opacity: 0;
    transform: translate3d(18px, 0, 0);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.product-slide.active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
    z-index: 1;
}

.product-slide-copy {
    min-width: 0;
}

.product-slide-kicker {
    display: none;
}

.product-slide h2 {
    margin: 0.45rem 0 0.35rem;
    color: var(--blue-900);
    font-size: 1.34rem;
    line-height: 1.45;
}

.product-slide p {
    margin: 0 0 0.65rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 620px;
}

.product-slide-lists {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0;
}

.product-slide-list {
    min-width: 0;
    padding: 0.55rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid #dfe8fb;
}

.product-slide-list h3 {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    color: var(--blue-900);
}

.product-slide-list ul {
    display: grid;
    gap: 0.26rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-slide-list li {
    display: flex;
    align-items: center;
    gap: 0.36rem;
    color: var(--blue-900);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.6;
}

.product-slide-list .bi {
    flex: 0 0 auto;
    color: var(--red-600);
    margin-left: 0;
}

.product-slide-list.pros .bi {
    color: #0c6b39;
}

.product-slide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.product-slide-actions .btn {
    min-width: 172px;
    justify-content: center;
}

.product-slide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.65rem;
    font-weight: 800;
    color: var(--blue-800);
}

.product-slide-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 30px;
    padding: 0.18rem 0.62rem;
    border-radius: 999px;
    background: #f7faff;
    border: 1px solid #dce6fb;
}

.product-slide-meta .in-stock {
    color: #0c6b39;
    background: #ecfbf2;
    border-color: #c2efd0;
}

.product-slide-meta .out-stock {
    color: var(--red-700);
    background: var(--red-100);
    border-color: #ffc8d5;
}

.product-slide-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(234, 240, 255, 0.7)),
        radial-gradient(circle at center, rgba(42, 98, 224, 0.14), transparent 58%);
    border: 1px solid rgba(216, 226, 250, 0.9);
    text-decoration: none;
    overflow: hidden;
}

.product-slide-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    filter: drop-shadow(0 14px 18px rgba(15, 31, 77, 0.14));
    transition: transform 0.3s ease;
}

.product-slide-image:hover img {
    transform: scale(1.035);
}

.product-slider-dots {
    position: absolute;
    right: 1rem;
    bottom: 0.65rem;
    display: flex;
    gap: 0.34rem;
    z-index: 2;
}

.product-slider-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: #b7c6e8;
    padding: 0;
    cursor: pointer;
}

.product-slider-dot.active {
    width: 22px;
    background: var(--red-600);
}

.product-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 1px solid #d8e3fa;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--blue-900);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 18px rgba(15, 31, 77, 0.08);
    cursor: pointer;
}

.product-slider-nav.prev {
    right: 0.9rem;
}

.product-slider-nav.next {
    left: 0.9rem;
}

@keyframes productSlide {
    0%, 26% {
        transform: translateX(0);
    }
    34%, 60% {
        transform: translateX(-100%);
    }
    68%, 94% {
        transform: translateX(-200%);
    }
    100% {
        transform: translateX(0);
    }
}

.section {
    padding: var(--section-padding) 0;
}

.section-title {
    margin: 0 0 1.25rem;
    text-align: center;
    color: var(--blue-900);
    font-size: 1.46rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: var(--card-padding);
}

.services-grid,
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.04rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.service-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 0.85rem;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-700), var(--red-600));
    box-shadow: 0 12px 20px rgba(15, 31, 77, 0.14);
    font-size: 1.15rem;
}

.service-card h3 {
    margin-top: 0;
}

.service-card .btn {
    margin-top: auto !important;
    align-self: flex-start;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.95rem;
    align-items: stretch;
    margin-top: 0.15rem;
}

.product-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid rgba(216, 226, 250, 0.95);
    border-radius: calc(var(--radius) + 3px);
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(18, 36, 72, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    min-width: 0;
}

.cards-clean .product-card {
    box-shadow: none;
}

.cards-bordered .product-card {
    box-shadow: none;
    border-width: 2px;
}

.cards-elevated .product-card {
    box-shadow: 0 14px 34px rgba(18, 36, 72, 0.12);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(18, 36, 72, 0.12);
    border-color: rgba(176, 193, 233, 1);
}

.product-image {
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 52%),
        linear-gradient(135deg, #f4f7ff, #fff);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0.7rem 0.7rem 0;
    border-radius: 14px;
    border: 1px solid #dfe8fb;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.product-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0.65rem;
}

.stock-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #fff;
    background: var(--red-600);
}

.out-of-stock {
    opacity: 0.6;
}

.out-of-stock:hover {
    opacity: 0.75;
}

.product-info {
    padding: 0.76rem 0.85rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.product-cat {
    color: var(--blue-700);
    font-size: 0.8rem;
    font-weight: 700;
}

.product-info h3 {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.45;
    min-height: 2.7rem;
}

.product-desc {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    flex: 1;
    line-height: 1.6;
    min-height: 2.5rem;
}

.product-price {
    margin: 0.12rem 0 0;
    color: var(--blue-900);
    font-weight: 800;
}

.product-actions {
    display: flex;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 0.1rem;
}

.product-actions .btn {
    width: 100%;
}

.order-status-box {
    margin-top: 0.9rem;
    padding: 0.85rem;
    border: 1px solid #dbe5f7;
    border-radius: calc(var(--radius) + 2px);
    background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.order-status-box h2 {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
}

.order-status-box p {
    margin: 0;
    color: var(--muted);
}

.order-status-box.is-paid {
    background: linear-gradient(180deg, #f3fff8, #ffffff);
    border-color: #cdeed8;
}

.order-status-box.is-paid h2 {
    color: #0d7a3b;
}

.order-status-box.is-failed {
    background: linear-gradient(180deg, #fff4f4, #ffffff);
    border-color: #f0c9c9;
}

.order-status-box.is-failed h2 {
    color: #b11e3d;
}

.order-status-box.is-pending {
    background: linear-gradient(180deg, #fff9ee, #ffffff);
    border-color: #f0dfb2;
}

.order-status-box.is-pending h2 {
    color: #8b5b00;
}

.invoice-card {
    padding: 0.9rem;
}

.invoice-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.7rem;
}

.invoice-kicker {
    margin: 0 0 0.2rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--blue-700);
}

.invoice-head h2 {
    margin: 0;
    font-size: 1.08rem;
}

.invoice-status {
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.invoice-status.paid {
    color: #0d7a3b;
    background: #e8fbef;
}

.invoice-status.pending {
    color: #8b5b00;
    background: #fff6de;
}

.invoice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.invoice-block {
    padding: 0.62rem 0.7rem;
    border: 1px solid #e1e9f8;
    border-radius: 12px;
    background: #fbfcff;
}

.invoice-block span {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.18rem;
}

.invoice-block strong {
    font-size: 0.92rem;
}

.invoice-total-block {
    background: linear-gradient(180deg, #f3f7ff, #ffffff);
    border-color: #d6e2fb;
}

.invoice-total-block strong {
    color: var(--blue-900);
    font-size: 1rem;
}

.invoice-items {
    margin-top: 0.65rem;
    display: grid;
    gap: 0.45rem;
}

.invoice-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.6rem 0.72rem;
    border: 1px solid #e3ebf8;
    border-radius: 12px;
    background: #fff;
}

.invoice-item strong {
    display: block;
    font-size: 0.92rem;
}

.invoice-item small {
    display: block;
    margin-top: 0.18rem;
    color: var(--muted);
}

.invoice-item-name {
    min-width: 0;
}

.invoice-item-price {
    text-align: left;
    white-space: nowrap;
    color: var(--blue-900);
    font-weight: 700;
}

.invoice-total {
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px solid #dfe7f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.invoice-total span {
    color: var(--muted);
    font-weight: 700;
}

.invoice-total strong {
    color: var(--blue-900);
    font-size: 1.06rem;
}

.invoice-meta-row {
    margin-top: 0.7rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.invoice-meta-pill {
    flex: 1 1 220px;
    padding: 0.6rem 0.7rem;
    border-radius: 12px;
    background: #fbfcff;
    border: 1px solid #e3ebf8;
}

.invoice-meta-pill span {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.15rem;
}

.invoice-meta-pill strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text);
    word-break: break-word;
}

.invoice-actions {
    margin-top: 0.85rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.invoice-actions .btn {
    min-width: 160px;
}

.zoomable-image {
    cursor: zoom-in;
}

body.lightbox-open {
    overflow: hidden;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 15, 34, 0.82);
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 1000;
}

.lightbox-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-image {
    max-width: min(92vw, 920px);
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
    background: #fff;
}

.lightbox-caption {
    margin: 0.75rem 0 0;
    color: #fff;
    text-align: center;
    font-size: 0.95rem;
    max-width: min(92vw, 920px);
}

.lightbox-close {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #cad9fd;
    border-radius: 999px;
    padding: 0.56rem 1rem;
    font-family: var(--font);
    font-weight: 700;
    background: #f2f6ff;
    color: var(--blue-800);
    transition: 0.2s ease;
}

.btn:hover {
    background: #e8f0ff;
}

.btn-small {
    font-size: 0.86rem;
    padding: 0.4rem 0.8rem;
}

.btn-primary {
    color: #fff;
    border-color: #2551c7;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
    box-shadow: 0 8px 18px rgba(32, 75, 183, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
}

.btn-ghost {
    color: var(--blue-900);
    border-color: #d9e3f5;
    background: #fff;
}

.btn-ghost:hover {
    color: var(--blue-900);
    background: #f7f9ff;
}

.btn-danger {
    color: #fff;
    border-color: #b9133f;
    background: linear-gradient(135deg, var(--red-700), var(--red-600));
}

.page-header {
    padding: 1.5rem 0 1rem;
}

.page-header h1 {
    margin: 0 0 0.8rem;
    color: var(--blue-900);
}

.categories-filter {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.chip {
    text-decoration: none;
    border: 1px solid #cddafd;
    background: #f2f6ff;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    font-size: 0.86rem;
}

.chip:hover {
    background: var(--blue-700);
    border-color: var(--blue-700);
    color: #fff;
}

.empty-state {
    margin: 1.4rem 0;
    color: var(--muted);
}

.text-center {
    text-align: center;
}

.product-detail {
    padding: 2rem 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
}

.product-detail-image {
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #f4f7ff, #fff);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
}

.product-detail-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 0.7rem;
}

.product-detail-info {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.product-detail-info h1 {
    margin: 0;
    color: var(--blue-900);
}

.product-detail-info .description {
    margin: 0.8rem 0 0;
    color: var(--muted);
}

.product-highlights {
    margin: 0.7rem 0 0.2rem;
    padding: 0 1rem 0 0;
}

.product-highlights li {
    margin: 0.25rem 0;
}

.product-price.big {
    font-size: 1.22rem;
}

.product-options {
    margin: 1rem 0;
}

.option-group {
    margin-bottom: 0.9rem;
}

.option-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.35rem;
}

.option-label {
    display: block;
    font-weight: 700;
}

.option-selected {
    color: var(--blue-700);
    background: #eef3ff;
    border: 1px solid #d6e2ff;
    border-radius: 999px;
    padding: 0.18rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.option-values {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.option-value-label {
    position: relative;
}

.option-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-value-text {
    display: inline-block;
    border: 1px solid #cddafd;
    background: #f5f8ff;
    border-radius: 999px;
    padding: 0.36rem 0.8rem;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
}

.option-value-text.disabled {
    opacity: 0.55;
    text-decoration: line-through;
    cursor: not-allowed;
}

.option-check {
    display: none;
    margin-right: 0.35rem;
}

.option-input:checked + .option-value-text {
    background: var(--blue-700);
    border-color: var(--blue-700);
    color: #fff;
}

.stock-text.out {
    color: var(--red-700);
    font-weight: 700;
    margin: 0.2rem 0 0.8rem;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem;
}

.spec-item {
    border: 1px solid #dce7ff;
    background: #f8fbff;
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    display: grid;
    gap: 0.2rem;
}

.faq-item {
    border-top: 1px solid #e6eeff;
    padding: 0.6rem 0;
}

.faq-item:first-of-type {
    border-top: 0;
}

.faq-item p {
    margin: 0.25rem 0 0;
    color: var(--muted);
}

.option-input:checked + .option-value-text .option-check,
.option-input:checked ~ .option-value-content .option-value-text .option-check {
    display: inline-block;
}

.option-values-with-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
    gap: 0.7rem;
}

.option-value-with-image .option-value-content {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.option-value-image {
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #d0dcfb;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f4f7ff, #fff);
}

.option-value-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.2rem;
}

.product-rich-content p {
    margin: 0 0 0.75rem;
    color: var(--text);
}

.product-rich-content p:last-child {
    margin-bottom: 0;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.feature-list,
.step-list {
    margin: 0;
    padding: 0 1.2rem 0 0;
}

.feature-list li,
.step-list li {
    margin: 0.42rem 0;
    color: var(--text);
}

.option-input:checked ~ .option-value-content .option-value-image,
.option-input:checked + .option-value-content .option-value-image {
    border-color: var(--blue-700);
}

.add-to-cart-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.qty-input {
    width: 74px;
    border: 1px solid #cddafd;
    border-radius: 8px;
    padding: 0.35rem;
}

.qty-form {
    margin-top: 0.45rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.back-link {
    display: inline-block;
    margin-top: 0.8rem;
    text-decoration: none;
    color: var(--blue-700);
}

.testimonials {
    background: #f1f5ff;
    border-top: 1px solid #e0e8ff;
    border-bottom: 1px solid #e0e8ff;
}

.special-sale {
    padding: 0.9rem 1.1rem;
    background: linear-gradient(135deg, #eaf2ff, #ffeef3);
    border: 1px solid #d8e3ff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.special-sale h2 {
    margin: 0 0 0.4rem;
    color: var(--blue-900);
}

.special-sale p {
    margin: 0 0 0.8rem;
    color: var(--muted);
}

.wallet-helper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid #d8e3ff;
    border-radius: var(--radius);
    padding: 1rem;
    background: linear-gradient(135deg, #ffffff, #edf4ff 58%, #fff0f4);
    box-shadow: var(--shadow);
}

.wallet-helper h2 {
    margin: 0 0 0.35rem;
    color: var(--blue-900);
    font-size: 1.2rem;
}

.wallet-helper p {
    margin: 0;
    color: var(--muted);
}

.wallet-helper-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.static-tables {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    min-width: 0;
}

.compare-card h2 {
    margin: 0 0 0.75rem;
    color: var(--blue-900);
    font-size: 1.08rem;
}

.compare-card {
    min-width: 0;
}

.table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
    border-bottom: 1px solid #e3ebff;
    padding: 0.62rem 0.55rem;
    text-align: right;
    vertical-align: top;
}

.compare-table th {
    color: var(--blue-800);
    background: #f4f7ff;
    font-weight: 800;
}

.page-cta {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.page-cta p {
    flex: 1 1 320px;
    margin: 0;
    color: var(--muted);
}

.page-header {
    min-width: 0;
}

.page-header h1 {
    margin-bottom: 0.4rem;
}

.page-header p {
    max-width: 70ch;
    margin: 0;
    color: var(--muted);
}

.compare-card .table-scroll {
    margin: 0 -0.1rem;
}

.compare-table td {
    line-height: 1.7;
}

.mobile-bottom-nav {
    display: none;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 12px;
}

.testimonial-card {
    margin: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-right: 4px solid var(--red-600);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.testimonial-card p {
    margin: 0;
}

.testimonial-card cite {
    display: block;
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.contact-page,
.cart-page,
.checkout-page,
.profile-page,
.admin-page {
    padding: 2rem 0;
}

.profile-dashboard {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.profile-sidebar {
    position: sticky;
    top: 90px;
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.profile-sidebar-head {
    align-items: flex-start;
}

.profile-sidebar-head h1 {
    margin: 0;
    font-size: 1.25rem;
}

.profile-sidebar-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.profile-side-nav {
    display: grid;
    gap: 0.45rem;
}

.profile-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    border: 1px solid #d8e4ff;
    border-radius: 12px;
    background: #f9fbff;
    color: var(--blue-800);
    font: inherit;
    font-weight: 700;
    padding: 0.6rem 0.75rem;
    cursor: pointer;
}

.profile-nav-btn:hover,
.profile-nav-btn.active {
    background: #eef4ff;
    border-color: #bfd1fb;
}

.profile-sidebar-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.profile-sidebar-actions .btn {
    flex: 1 1 120px;
}

.profile-mobile-bar {
    display: none;
}

.profile-content {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.profile-topbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.profile-topbar h2 {
    margin: 0;
    color: var(--blue-900);
}

.profile-topbar-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.profile-topbar-meta div {
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    border: 1px solid #dce6ff;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.profile-topbar-meta span {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--muted);
    font-size: 0.84rem;
}

.profile-topbar-meta strong {
    display: block;
    color: var(--blue-900);
}

.profile-panel {
    display: none;
}

.profile-panel.is-active {
    display: block;
}

.profile-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.profile-summary {
    padding: 0.95rem;
    border: 1px solid #dbe6ff;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfcff, #ffffff);
}

.card-lite h3 {
    margin: 0 0 0.55rem;
    color: var(--blue-900);
    font-size: 1rem;
}

.profile-summary ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.35rem;
}

.profile-summary li {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.profile-summary strong {
    color: var(--blue-900);
}

.profile-summary-note {
    margin: 0.4rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

.profile-summary .empty-state {
    margin: 0;
}

.option-value-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: end;
}

.option-value-form .form-group {
    margin: 0;
}

.option-value-form .form-group input[type="file"] {
    padding: 0.42rem 0.65rem;
}

.option-value-form > label {
    align-self: center;
    padding-top: 1.55rem;
}

.option-value-form button {
    width: 100%;
}

.option-inline-edit {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 0.55rem;
    align-items: end;
}

.option-inline-edit .form-group {
    margin: 0;
}

.option-inline-edit label {
    font-size: 0.78rem;
}

.option-inline-edit input[type="file"] {
    padding: 0.4rem 0.45rem;
}

.option-inline-edit img {
    display: block;
}

.value-edit-details {
    display: inline-block;
    margin-left: 0.35rem;
}

.value-edit-details > summary {
    list-style: none;
    cursor: pointer;
}

.value-edit-details > summary::-webkit-details-marker {
    display: none;
}

.value-edit-details[open] {
    display: block;
    margin: 0.45rem 0 0.6rem;
    padding: 0.75rem;
    border: 1px solid #dbe6ff;
    border-radius: 14px;
    background: #fafcff;
}

.value-edit-details[open] > summary {
    margin-bottom: 0.7rem;
}

.contact-page h1,
.cart-page h1,
.checkout-page h1,
.profile-page h1,
.admin-page h1 {
    margin: 0 0 1rem;
    color: var(--blue-900);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-info,
.contact-form-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.contact-form label {
    display: block;
    margin: 0.55rem 0 0.25rem;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.form-group input,
.form-group textarea,
.form-group select,
.checkout-form input,
.checkout-form textarea,
.checkout-form select,
.admin-inline-form input,
.admin-inline-form select,
.admin-form-grid input,
.admin-form-grid select {
    width: 100%;
    border: 1px solid #cddafd;
    border-radius: 10px;
    padding: 0.56rem 0.65rem;
    font-family: var(--font);
    color: var(--text);
    background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.checkout-form input:focus,
.checkout-form textarea:focus,
.checkout-form select:focus,
.admin-inline-form input:focus,
.admin-inline-form select:focus,
.admin-form-grid input:focus,
.admin-form-grid select:focus {
    outline: none;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(42, 98, 224, 0.18);
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.cart-item {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.8rem;
    box-shadow: var(--shadow);
}

.cart-item-image {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #d8e4ff;
    background: #edf3ff;
}

.cart-item-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    margin: 0 0 0.2rem;
}

.cart-item-info h3 a {
    text-decoration: none;
}

.cart-item-info p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.cart-total {
    margin-top: 1rem;
    border: 1px solid #d7e3ff;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #edf3ff, #fff1f5);
    padding: 0.8rem;
}

.checkout-cta {
    margin-top: 0.9rem;
}

.checkout-hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.checkout-hero h1 {
    margin: 0.1rem 0 0;
    color: var(--blue-900);
}

.checkout-hero-meta {
    display: flex;
    gap: 0.75rem;
}

.checkout-hero-meta div {
    min-width: 150px;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    border: 1px solid #dce6ff;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.checkout-hero-meta span,
.checkout-section-title p {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
}

.checkout-hero-meta strong {
    display: block;
    color: var(--blue-900);
}
.checkout-auth {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
}
.checkout-auth-title {
    margin: 0 0 .2rem;
    font-size: 1rem;
    font-weight: 700;
}
.checkout-auth-text {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}
.checkout-auth-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.checkout-inline-login {
    margin: 0;
    min-width: 280px;
    flex: 1 1 340px;
}
.checkout-auth-copy {
    flex: 1 1 320px;
}
.checkout-inline-login .form-group {
    margin-bottom: 0.55rem;
}
.checkout-inline-login input {
    width: 100%;
}
.cart-auth-cta {
    margin-top: 0.85rem;
}

.checkout-section-title {
    margin: 0 0 0.65rem;
}

.checkout-section-title h2 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--blue-900);
}

.checkout-summary {
    position: sticky;
    top: 90px;
}

.summary-item {
    padding: 0.4rem 0;
}

.summary-item.total {
    padding-top: 0.7rem;
}

.summary-item strong {
    display: inline-block;
}

.auth-page {
    padding: 3rem 0;
    display: grid;
    place-items: center;
    min-height: 62vh;
}

.auth-form-wrapper {
    width: min(460px, 100%);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.4rem;
}

.auth-form-wrapper h1 {
    margin: 0 0 1rem;
    color: var(--blue-900);
    text-align: center;
}

.auth-form {
    display: grid;
    gap: 0.7rem;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-left: 2.6rem !important;
}

.password-toggle {
    position: absolute;
    left: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--blue-700);
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.form-group {
    display: grid;
    gap: 0.35rem;
}

.form-group label {
    font-weight: 700;
    font-size: 0.9rem;
}

.form-hint {
    display: block;
    margin-top: -0.15rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.btn-block {
    width: 100%;
}

.auth-link {
    margin: 1rem 0 0;
    text-align: center;
    color: var(--muted);
}

.auth-link a {
    color: var(--blue-700);
    text-decoration: none;
    font-weight: 700;
}

.auth-hint {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0 0 1rem;
    line-height: 1.7;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.auth-tab {
    flex: 1;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    color: var(--muted);
}

.auth-tab.active {
    background: var(--blue-700);
    color: #fff;
    border-color: var(--blue-700);
}

.auth-tab-panel {
    display: none;
}

.auth-tab-panel.active {
    display: block;
}

.trust-section {
    margin: 0.9rem 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid #dce6ff;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff, #f6f9ff);
    box-shadow: var(--shadow);
}

.trust-section-head {
    margin-bottom: 0.6rem;
}

.trust-section-head h3 {
    margin: 0 0 0.25rem;
    color: var(--blue-900);
    font-size: 0.95rem;
}

.trust-section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.home-quick-guide {
    padding-top: 0 !important;
}

.home-quick-guide-card {
    display: grid;
    gap: 1rem;
    align-items: center;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
}

.home-quick-guide-card h2 {
    margin: 0 0 0.4rem;
    color: var(--blue-900);
    font-size: 1.15rem;
}

.home-quick-guide-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
}

.home-quick-guide-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.footer-mini-faq {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #e3ebfb;
}

.footer-mini-faq h4 {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    color: var(--blue-900);
    font-size: 0.86rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: center;
}

.trust-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 132px;
    border-radius: 16px;
    border: 1px solid #dce6ff;
    background: #fff;
    padding: 0.75rem 0.65rem;
    text-decoration: none;
    color: var(--text);
}

.trust-badge-card img {
    width: auto;
    height: 88px;
    object-fit: contain;
}

.badge-settings-card {
    grid-column: 1 / -1;
    border: 1px solid #dce6ff;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, #f8fbff);
    padding: 0.9rem 1rem;
    box-shadow: 0 6px 18px rgba(20, 40, 120, 0.04);
}

.badge-settings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #e6edff;
}

.badge-settings-head strong {
    color: var(--blue-900);
    font-size: 0.95rem;
}

.badge-settings-head span {
    color: var(--muted);
    font-size: 0.8rem;
}

.badge-settings-note {
    margin: -0.15rem 0 0.75rem;
    color: var(--blue-700);
    font-size: 0.84rem;
    font-weight: 600;
}

.badge-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.badge-settings-grid .form-group {
    margin-bottom: 0;
}

.badge-settings-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.7rem;
    color: var(--muted);
    font-size: 0.86rem;
}

@media (max-width: 1100px) {
    .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .badge-settings-grid {
        grid-template-columns: 1fr;
    }

    .badge-settings-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

.flash.success {
    background: #e8f7ee;
    color: #0d6b2e;
    border: 1px solid #b8e6c8;
}

.profile-info {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.profile-hero {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-hero-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-hero-badge {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--blue-700), var(--red-600));
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 14px 28px rgba(32, 75, 183, 0.22);
}

.profile-kicker,
.section-eyebrow {
    margin: 0 0 0.2rem;
    color: var(--blue-700);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.profile-hero h1 {
    margin: 0;
    font-size: 1.65rem;
}

.profile-subtitle {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.profile-hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.profile-hero-meta div,
.stat-card {
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    border: 1px solid #dce6ff;
}

.profile-hero-meta span,
.stat-card span {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--muted);
    font-size: 0.84rem;
}

.profile-hero-meta strong,
.stat-card strong {
    display: block;
    color: var(--blue-900);
    font-size: 1rem;
}

.profile-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
}

.profile-nav a {
    text-decoration: none;
    border: 1px solid #d3defa;
    background: #fff;
    color: var(--blue-800);
    padding: 0.46rem 0.78rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
}

.profile-nav a:hover {
    background: #eff4ff;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.95fr;
    gap: 1rem;
    align-items: start;
}

.profile-main-column,
.profile-side-column {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.56rem 0;
    border-bottom: 1px solid #e4ebff;
}

.info-item:last-child {
    border-bottom: 0;
}

.info-item span {
    color: var(--muted);
}

.profile-card {
    margin-top: 1rem;
}

.profile-card:first-child {
    margin-top: 0;
}

.profile-card:first-child {
    margin-top: 0;
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.section-head h2 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--blue-900);
}

.profile-surface-form {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #e0e8ff;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfcff, #ffffff);
}

.profile-full-width {
    grid-column: 1 / -1;
}

.profile-form-actions {
    display: flex;
    justify-content: flex-end;
    grid-column: 1 / -1;
}

.profile-list {
    display: grid;
    gap: 0.75rem;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.85rem 0;
    border-top: 1px solid #e7edff;
}

.profile-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.profile-item-main {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.profile-item-main strong {
    color: var(--blue-900);
}

.profile-item-main span,
.profile-item-main p,
.profile-item-text {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.profile-item-stack {
    flex-direction: column;
}

.saved-address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.saved-address-card {
    text-align: right;
    border: 1px solid #dce6fb;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f7faff);
    padding: 0.95rem 1rem;
    display: grid;
    gap: 0.35rem;
    cursor: pointer;
    transition: 0.2s ease;
    color: var(--blue-900);
    font-family: var(--font);
}

.saved-address-card strong {
    font-size: 1rem;
}

.saved-address-card span {
    color: var(--blue-600);
    font-size: 0.92rem;
}

.saved-address-card small {
    color: var(--muted);
    line-height: 1.7;
}

.saved-address-card:hover,
.saved-address-card.is-selected {
    border-color: #2e8bff;
    box-shadow: 0 12px 24px rgba(32, 75, 183, 0.12);
    transform: translateY(-1px);
}

.profile-item-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .saved-address-grid {
        grid-template-columns: 1fr;
    }

    .profile-item {
        flex-direction: column;
    }

    .profile-item-actions {
        width: 100%;
    }

    .profile-item-actions .btn {
        flex: 1 1 auto;
    }

    .profile-order-quick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-order-actions .btn {
        flex: 1 1 100%;
    }
}

.profile-order-item {
    align-items: center;
}

.profile-order-meta {
    display: grid;
    justify-items: end;
    gap: 0.35rem;
    text-align: left;
    white-space: nowrap;
}

.profile-order-meta .status-pill {
    padding: 0.24rem 0.6rem;
    font-size: 0.82rem;
    background: #f0f5ff;
    color: var(--blue-800);
}

.profile-order-stack {
    display: grid;
    gap: 0.85rem;
}

.profile-order-card {
    border: 1px solid #dbe6ff;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    box-shadow: 0 10px 26px rgba(33, 74, 181, 0.06);
    overflow: hidden;
}

.profile-order-card > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
}

.profile-order-card > summary::-webkit-details-marker {
    display: none;
}

.profile-order-summary-main {
    display: grid;
    gap: 0.2rem;
}

.profile-order-summary-main strong {
    color: var(--blue-900);
    font-size: 1rem;
}

.profile-order-summary-main span {
    color: var(--muted);
    font-size: 0.9rem;
}

.profile-order-summary-meta {
    display: grid;
    justify-items: end;
    gap: 0.35rem;
    text-align: left;
    white-space: nowrap;
}

.profile-order-body {
    display: grid;
    gap: 0.85rem;
    padding: 0 1rem 1rem;
}

.profile-order-quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.profile-order-quick-item {
    border: 1px solid #e1e9ff;
    border-radius: 14px;
    background: #fff;
    padding: 0.8rem 0.85rem;
    display: grid;
    gap: 0.2rem;
}

.profile-order-quick-item span {
    color: var(--muted);
    font-size: 0.85rem;
}

.profile-order-quick-item strong {
    color: var(--blue-900);
    font-size: 0.95rem;
}

.profile-order-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.profile-order-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.profile-order-box {
    padding: 0.9rem;
    border: 1px solid #e1e9ff;
    border-radius: 14px;
    background: #fff;
}

.profile-order-box h3 {
    margin: 0 0 0.7rem;
    color: var(--blue-900);
    font-size: 0.98rem;
}

.profile-detail-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.profile-detail-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.profile-detail-list strong {
    color: var(--blue-900);
    text-align: left;
}

.profile-order-items {
    display: grid;
    gap: 0.55rem;
}

.profile-order-item-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-top: 1px solid #edf2ff;
}

.profile-order-item-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.profile-order-item-row strong {
    display: block;
    color: var(--blue-900);
}

.profile-order-item-row span {
    color: var(--muted);
    font-size: 0.88rem;
}

.profile-order-item-row > div:last-child {
    text-align: left;
    white-space: nowrap;
}

.profile-notes {
    display: grid;
    gap: 0.65rem;
}

.profile-notes p {
    margin: 0;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    background: #f9fbff;
    border: 1px solid #e1e9ff;
    color: var(--muted);
}

.profile-notes span {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--blue-900);
    font-weight: 700;
}

.profile-timeline {
    display: grid;
    gap: 0.5rem;
}

.profile-timeline-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid #e4ebff;
    border-radius: 999px;
    background: #f9fbff;
    color: var(--muted);
    font-size: 0.88rem;
}

.profile-timeline-step.is-done {
    border-color: #b8e6c8;
    background: #eefaf2;
    color: #0d6b2e;
}

.profile-timeline-step.is-active {
    border-color: #bfd1fb;
    background: #eef4ff;
    color: var(--blue-900);
    font-weight: 700;
}

.profile-timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: currentColor;
    flex-shrink: 0;
}

.profile-terminal {
    margin: 0.7rem 0 0;
    color: #9b1c1c;
    font-weight: 700;
}

.profile-line {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e8eeff;
}

.profile-line:last-child {
    border-bottom: 0;
}

.profile-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.profile-divider {
    border: 0;
    border-top: 1px dashed #dce6ff;
    margin: 1rem 0;
}

.profile-actions-card .profile-actions {
    margin-top: 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.95fr;
    gap: 1rem;
    align-items: start;
}

.checkout-form,
.order-summary,
.success-card,
.admin-section {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.checkout-form,
.order-summary,
.success-card,
.admin-section {
    padding: 1rem;
}

.checkout-form .form-group {
    margin-bottom: 0.75rem;
}

.checkout-form label {
    font-weight: 700;
}

.floating-cart-options {
    margin: 0.1rem 0 0.3rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.order-extra {
    margin-top: 1rem;
    border-top: 1px dashed var(--line);
    padding-top: 0.8rem;
}

.order-extra-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--blue-900);
}

.order-extra-text {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.card-transfer-box {
    margin-top: 0.9rem;
    padding: 0.85rem;
    border: 1px solid #d9e6ff;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.card-transfer-box h4 {
    margin: 0 0 0.35rem;
    color: var(--blue-900);
}

.card-transfer-box p {
    margin: 0.25rem 0 0;
}

.order-methods {
    list-style: none;
    padding: 0;
    margin: 0 0 0.6rem;
    font-size: 0.9rem;
    color: var(--text);
}

.order-methods li {
    margin-bottom: 0.25rem;
}

.coupon-form {
    margin-top: 0.5rem;
}

.coupon-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.coupon-row {
    display: flex;
    gap: 0.4rem;
    align-items: stretch;
}

.coupon-row input[type="text"] {
    flex: 1;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-row input {
    width: auto;
}

.checkbox-row label {
    margin: 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.45rem 0;
}

.summary-item.total {
    color: var(--red-700);
    font-weight: 800;
}

.order-summary h2,
.admin-section h2 {
    margin: 0 0 0.85rem;
    color: var(--blue-900);
}

.success-card {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.admin-section {
    margin-bottom: 1rem;
}

.admin-section-collapse {
    padding-top: 0.95rem;
}

.admin-section-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding-bottom: 0.9rem;
}

.admin-section-summary::-webkit-details-marker {
    display: none;
}

.admin-section-summary h2 {
    margin: 0;
}

.admin-section-summary p {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.admin-section-summary span {
    color: var(--blue-700);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #eff4ff;
    border: 1px solid #d7e3ff;
    white-space: nowrap;
}

.admin-checkout-grid {
    gap: 0.9rem 1rem;
}

.admin-subsection {
    grid-column: 1 / -1;
    border: 1px solid #e3ebff;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, #f8fbff);
    padding: 0.85rem;
}

.admin-subsection h3 {
    margin: 0 0 0.7rem;
    color: var(--blue-900);
    font-size: 0.98rem;
}

.admin-toggle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.55rem;
}

.admin-toggle-grid > label {
    background: #f6f9ff;
    border: 1px solid #d6e0fb;
    border-radius: 12px;
    padding: 0.6rem 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 46px;
}

.admin-toggle-grid > label input {
    width: auto;
    flex-shrink: 0;
}

.admin-form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    padding-top: 0.25rem;
}

.admin-inline-form-compact {
    margin-bottom: 0.75rem;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.security-grid {
    display: grid;
    gap: 1rem;
}

.security-card {
    min-width: 0;
}

.security-card-head {
    margin-bottom: 0.85rem;
}

.security-card-head h2 {
    margin: 0 0 0.2rem;
    color: var(--blue-900);
}

.security-card-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.compact-grid {
    gap: 0.7rem 0.9rem;
}

.security-warning-list {
    margin: 0;
    padding: 0 1.1rem 0 0;
    color: var(--red-700);
    display: grid;
    gap: 0.35rem;
}

.security-warning-list li {
    line-height: 1.8;
}

.admin-form-grid h2 {
    border-top: 1px solid #e6edff;
    padding-top: 1rem;
    margin-top: 0.4rem;
}

.admin-form-grid h2:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.admin-form-grid > label {
    background: #f6f9ff;
    border: 1px solid #d6e0fb;
    border-radius: 10px;
    padding: 0.55rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-form-grid .form-group {
    background: #fbfdff;
    border: 1px solid #e3ebff;
    border-radius: var(--radius-sm);
    padding: 0.7rem;
}

.admin-form-grid .form-group textarea {
    min-height: 120px;
}

.admin-form-grid input[type="color"] {
    min-height: 44px;
    padding: 0.2rem;
    cursor: pointer;
}

.admin-form-grid > label input {
    width: auto;
}

.admin-inline-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.admin-list {
    display: grid;
    gap: 0.5rem;
}

.admin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    border: 1px solid #d7e1fb;
    border-radius: 10px;
    padding: 0.5rem;
    background: #f8faff;
}

.footer {
    margin-top: 4rem;
    color: var(--text);
    padding: 3.2rem 0 1.2rem;
    background:
        radial-gradient(circle at 12% 0%, rgba(42, 98, 224, 0.12), transparent 28rem),
        linear-gradient(180deg, #ffffff 0%, #f4f7ff 62%, #eef3ff 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid #dfe7fb;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.55), transparent 36%),
        repeating-linear-gradient(135deg, rgba(42, 98, 224, 0.035) 0 1px, transparent 1px 18px);
    opacity: 0.85;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(250px, 1.45fr) repeat(3, minmax(170px, 1fr));
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.footer-grid > div {
    min-width: 0;
    padding: 1rem;
    border: 1px solid #dce6ff;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
}

.footer-grid > div:first-child {
    background: rgba(255, 255, 255, 0.92);
}

.footer h3 {
    margin: 0 0 0.7rem;
    color: var(--blue-900);
    font-size: 1rem;
    font-weight: 800;
}

.footer h3::after {
    content: "";
    display: block;
    width: 38px;
    height: 3px;
    margin-top: 0.42rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue-700), var(--red-600));
}

.footer p,
.footer a {
    margin: 0.24rem 0;
    font-size: 0.92rem;
    color: var(--text);
    text-decoration: none;
}

.footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.footer-grid a {
    display: flex;
    width: fit-content;
    margin: 0.38rem 0;
}

.footer a:hover {
    color: var(--blue-700);
    transform: translateX(-2px);
}

.footer-socials {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1rem 0;
    padding-top: 1.15rem;
    border-top: 1px solid #dbe4fb;
}

.footer-socials a {
    min-height: 40px;
    border: 1px solid #d8e3fa;
    border-radius: 999px;
    padding: 0.42rem 0.9rem;
    display: inline-flex;
    align-items: center;
    background: #fff;
}

.footer-socials a:hover {
    background: #f3f7ff;
}

.footer-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.8rem;
    margin: 0 0 1.1rem;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 84px;
    background: #fff;
    border: 1px solid #dbe6ff;
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.75rem;
    box-shadow: 0 10px 24px rgba(18, 36, 72, 0.08);
    text-decoration: none;
}

.footer-badge:hover {
    background: #f5f8ff;
}

.footer-badge img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 0.25rem;
}

.footer-badge span {
    color: var(--blue-800);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.5;
}

.copyright {
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid #dbe4fb;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

.floating-cart {
    position: fixed;
    left: 14px;
    bottom: 14px;
    width: min(320px, calc(100vw - 28px));
    z-index: 120;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(18, 36, 72, 0.2);
    overflow: hidden;
}

.floating-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.6rem 0.8rem;
    text-decoration: none;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
    color: #fff;
    font-weight: 700;
}

.floating-cart-close {
    border: 0;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.floating-cart-head strong {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--red-600);
    border-radius: 999px;
    font-size: 0.8rem;
}

.floating-cart-body {
    padding: 0.7rem 0.8rem;
}

.floating-cart-body p {
    margin: 0 0 0.35rem;
    font-size: 0.86rem;
    color: var(--text);
}

.floating-cart-item {
    border-bottom: 1px solid #edf2ff;
    padding-bottom: 0.45rem;
    margin-bottom: 0.45rem;
}

.floating-cart-item:last-of-type {
    border-bottom: 0;
    margin-bottom: 0.2rem;
}

.floating-cart-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.floating-cart-form {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.floating-qty-input {
    width: 56px;
    padding: 0.25rem 0.35rem;
}

.floating-cart-total {
    margin-top: 0.45rem !important;
    font-weight: 800;
    color: var(--blue-900) !important;
}

.floating-cart-actions {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.45rem;
}

@media (max-width: 1024px) {
    .header .container {
        min-height: 68px;
    }

    .nav {
        gap: 0.3rem;
        justify-content: flex-start;
    }

    .nav a {
        font-size: 0.88rem;
        padding: 0.34rem 0.62rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 900px) {
    .container {
        width: min(var(--container-width), calc(100% - 1rem));
    }

    .section {
        padding: 1.75rem 0;
    }

    .section-title {
        font-size: 1.26rem;
        margin-bottom: 1rem;
    }

    .card {
        padding: 0.9rem;
    }

    .profile-dashboard,
    .profile-topbar {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .profile-sidebar {
        position: static;
    }

    .profile-topbar-meta {
        width: 100%;
    }

    .profile-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .option-value-form {
        grid-template-columns: 1fr;
    }

    .option-inline-edit {
        grid-template-columns: 1fr;
    }

    .checkout-hero,
    .checkout-hero-meta {
        flex-direction: column;
    }

    .checkout-summary {
        position: static;
    }

    .checkout-hero {
        padding: 0.95rem;
    }

    .checkout-auth {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }

    .checkout-inline-login {
        min-width: 0;
        width: 100%;
    }

    .checkout-auth-copy {
        flex: 0 0 auto;
    }

    .checkout-inline-login .checkout-auth-actions,
    .checkout-auth-actions {
        width: 100%;
    }

    .checkout-auth-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .checkout-inline-login .form-group {
        margin-bottom: 0.45rem;
    }

    .contact-grid,
    .checkout-grid,
    .product-detail-grid,
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }

    .profile-stats,
    .profile-hero-meta,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-hero-main {
        align-items: flex-start;
    }

    .profile-order-item {
        align-items: flex-start;
    }

    .profile-order-meta {
        justify-items: start;
        text-align: right;
    }

    .profile-order-card > summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-order-summary-meta {
        justify-items: start;
        text-align: right;
    }

    .profile-order-grid {
        grid-template-columns: 1fr;
    }

    .product-slider-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-slide {
        grid-template-columns: 1fr;
    }

    .product-slide-image img {
        height: 210px;
    }

    .product-slide-actions .btn {
        min-width: 100%;
    }

    .wallet-helper {
        grid-template-columns: 1fr;
    }

    .wallet-helper-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .wallet-helper-actions .btn {
        width: 100%;
        min-height: 48px;
        padding: 0.8rem 1rem;
        white-space: normal;
    }

    .page-header,
    .section .card,
    .static-tables,
    .page-cta {
        min-width: 0;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-card {
        min-height: 0;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-grid,
    .testimonials-grid,
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wallet-helper h2 {
        font-size: 1.05rem;
    }

    .wallet-helper p {
        font-size: 0.92rem;
        line-height: 1.8;
    }

    .hero-actions .btn,
    .product-actions .btn {
        min-height: 48px;
    }
}

@media (max-width: 768px) {
    .topbar-inner {
        min-height: auto;
        padding: 0.45rem 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-label {
        display: none;
    }

    .topbar-links {
        justify-content: flex-start;
        gap: 0.45rem 0.8rem;
    }

    .topbar-links a {
        font-size: 0.8rem;
    }

    .header .container {
        min-height: 60px;
        gap: 0.6rem;
    }

    .logo {
        font-size: 1.08rem;
    }

    .menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 0.6rem 0.8rem 1rem;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav a {
        width: 100%;
        border-radius: 10px;
        border: 1px solid #e0e9ff;
        background: #f8faff;
        justify-content: center;
        min-height: 46px;
    }

    .nav.open {
        display: flex;
    }

    .hero {
        padding: 2rem 0.75rem;
        min-height: 0;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .hero-copy {
        max-width: none;
    }

    .hero-kicker {
        font-size: 0.8rem;
        min-height: 30px;
        padding: 0.18rem 0.7rem;
    }

    .hero h1 {
        font-size: 1.65rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-top: 0.7rem;
    }

    .hero-actions {
        margin-top: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .page-header h1 {
        font-size: 1.45rem;
        line-height: 1.35;
    }

    .page-header p {
        font-size: 0.92rem;
        line-height: 1.85;
    }

    .page-header,
    .section,
    .container,
    .static-tables,
    .page-cta,
    .compare-card {
        min-width: 0;
    }

    .page-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .page-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .compare-card h2 {
        font-size: 1rem;
    }

    .compare-table {
        min-width: 0;
        font-size: 0.84rem;
    }

    .compare-table th,
    .compare-table td {
        padding: 0.5rem 0.42rem;
    }

    .invoice-grid {
        grid-template-columns: 1fr;
    }

    .invoice-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
    }

    .invoice-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .invoice-item-price {
        text-align: right;
        white-space: normal;
    }

    .invoice-actions {
        justify-content: stretch;
    }

    .invoice-actions .btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .product-slider-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }

    .product-slide {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 0.75rem 0.75rem 0.95rem;
    }

    .product-slide-image {
        min-height: 360px;
        width: 100%;
        height: 100%;
    }

    .product-slide-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        padding: 0;
    }

    .product-slide-lists {
        grid-template-columns: 1fr;
    }

    .product-slide-actions .btn {
        width: 100%;
    }

    .product-slider-nav {
        width: 34px;
        height: 34px;
    }

    .product-slider-dots {
        bottom: 0.5rem;
        right: 0.8rem;
    }

    .wallet-helper {
        padding: 0.9rem;
        gap: 0.75rem;
    }

    .wallet-helper-actions .btn {
        min-height: 50px;
        font-size: 0.95rem;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .cart-item-image {
        width: 100%;
        height: 168px;
    }

    .cart-item-info {
        width: 100%;
    }

    .qty-form {
        width: 100%;
        display: grid;
        grid-template-columns: auto minmax(70px, 1fr) auto;
        gap: 0.35rem;
    }

    .qty-form .qty-input {
        width: 100%;
        min-width: 0;
    }

    .cart-total {
        padding: 0.95rem;
        font-size: 0.95rem;
    }

    .checkout-cta {
        position: sticky;
        bottom: 82px;
        z-index: 20;
        margin-top: 0.85rem;
    }

    .checkout-cta .btn {
        width: 100%;
        justify-content: center;
        min-height: 50px;
    }

    .checkout-grid {
        gap: 0.8rem;
    }

    .checkout-form,
    .checkout-summary {
        padding: 0.95rem;
    }

    .summary-item {
        display: grid;
        gap: 0.15rem;
        padding: 0.55rem 0;
    }

    .summary-item strong {
        font-size: 0.98rem;
    }

    .profile-actions {
        flex-direction: column;
    }

    .profile-actions .btn {
        width: 100%;
    }

    .profile-sidebar {
        padding-bottom: 0.85rem;
    }

    .profile-sidebar-actions {
        display: none;
    }

    .profile-page {
        padding-bottom: 88px;
    }

    .profile-mobile-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.25rem;
        padding: 0.45rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid #dbe6ff;
        box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.13);
        backdrop-filter: blur(14px);
    }

    .profile-mobile-bar-btn {
        display: grid;
        place-items: center;
        gap: 0.18rem;
        min-width: 0;
        min-height: 52px;
        padding: 0.4rem 0.15rem;
        border: 0;
        border-radius: 16px;
        background: transparent;
        color: var(--blue-800);
        text-decoration: none;
        font: inherit;
        font-size: 0.7rem;
        font-weight: 700;
    }

    .profile-mobile-bar-btn i {
        font-size: 1rem;
    }

    .profile-mobile-bar-btn.active,
    .profile-mobile-bar-btn.accent {
        background: #eef4ff;
        box-shadow: inset 0 0 0 1px #d1defd;
    }

    .profile-mobile-bar-btn.danger {
        color: var(--red-700);
    }

    .floating-cart {
        left: 10px;
        right: 10px;
        width: auto;
        bottom: 10px;
    }

    .footer {
        padding-top: 2.4rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid > div {
        padding: 0.85rem;
    }

    .footer-badges {
        grid-template-columns: 1fr;
    }

    .footer-socials {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-socials a,
    .footer-badge,
    .trust-card {
        flex: 1 1 100%;
        justify-content: center;
        min-height: 46px;
    }

    .products-grid {
        gap: 0.55rem;
    }

    .product-card {
        padding: 0.7rem;
    }

    .product-image img {
        height: 170px;
    }

    .product-image {
        margin: 0.62rem 0.62rem 0;
    }

    .product-info {
        padding: 0.7rem 0.75rem 0.78rem;
        gap: 0.26rem;
    }

    .product-info h3 {
        min-height: 0;
        font-size: 0.92rem;
        line-height: 1.45;
    }

    .product-desc {
        min-height: 0;
        font-size: 0.82rem;
        line-height: 1.55;
    }

    .product-info h3 {
        font-size: 0.92rem;
        line-height: 1.45;
    }

    .product-price {
        font-size: 0.88rem;
    }

    .service-card {
        text-align: center;
    }

    .card-icon {
        margin-inline: auto;
    }

    .security-grid {
        gap: 0.85rem;
    }

    .security-card-head h2 {
        font-size: 1.02rem;
    }

    .security-card-head p {
        font-size: 0.88rem;
        line-height: 1.8;
    }
}

/* Admin Panel Layout */
.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 240px 1fr;
}

.admin-sidebar {
    background: linear-gradient(180deg, #0e255f, #17387f 70%, #98183f);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.admin-brand {
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    margin-bottom: 0.35rem;
    padding: 0.5rem 0.55rem;
}

.admin-sidebar a {
    color: #dbe6ff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.45rem 0.55rem;
    font-size: 0.92rem;
}

.admin-sidebar a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.admin-main {
    padding: 1rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.admin-stats .card p {
    color: var(--blue-800);
    font-size: 1.3rem;
    font-weight: 800;
}

.admin-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #e4ebff;
    padding: 0.55rem 0.45rem;
    text-align: right;
    white-space: nowrap;
}

.admin-table th {
    color: var(--blue-800);
    font-weight: 700;
    background: #f7f9ff;
}

.admin-products-page .admin-head-row h1 {
    margin-bottom: 0.15rem;
}

.product-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.product-search,
.product-import-export,
.product-import-form,
.product-reorder-bar,
.product-actions,
.product-sort-cell {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    flex-wrap: wrap;
}

.product-search input {
    min-width: 260px;
    max-width: 420px;
}

.product-import-form input[type="file"] {
    display: none;
}

.file-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px dashed #b8c7ec;
    border-radius: 8px;
    padding: 0.42rem 0.65rem;
    color: var(--blue-800);
    background: #f8faff;
    cursor: pointer;
}

.product-reorder-bar {
    color: #4a5f8b;
    margin: 0.75rem 0;
}

.products-table-wrap {
    background: #fff;
}

.products-table td {
    vertical-align: top;
}

.product-main-cell {
    min-width: 220px;
}

.product-main-cell strong,
.product-main-cell span {
    display: block;
}

.product-main-cell > span {
    color: #66769d;
    font-size: 0.82rem;
    margin-top: 0.15rem;
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.35rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.12rem 0.45rem;
    font-size: 0.76rem;
    font-weight: 700;
    background: #eef3ff;
    color: var(--blue-800);
}

.status-pill.ok {
    background: #e9f9ef;
    color: #20713c;
}

.status-pill.muted {
    background: #f1f3f6;
    color: #667085;
}

.status-pill.accent {
    background: #fff2e5;
    color: #9a4a12;
}

.status-pill.danger {
    background: #ffe9ef;
    color: var(--red-700);
}

.drag-handle {
    cursor: move;
    color: #7485ad;
}

.icon-btn {
    border: 1px solid #d7e2ff;
    background: #fff;
    color: var(--blue-800);
    border-radius: 7px;
    min-width: 30px;
    height: 30px;
    cursor: pointer;
}

.quick-product-form {
    display: grid;
    gap: 0.45rem;
    min-width: 260px;
}

.quick-checks,
.quick-number-grid {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    align-items: center;
}

.quick-number-grid label {
    display: grid;
    gap: 0.18rem;
    color: #4a5f8b;
    font-size: 0.78rem;
    min-width: 74px;
}

.quick-number-grid input {
    width: 74px;
    padding: 0.35rem;
}

.product-actions form,
.product-sort-cell form {
    margin: 0;
}

@media (max-width: 980px) {
    .product-toolbar {
        grid-template-columns: 1fr;
    }

    .product-search input {
        min-width: 100%;
    }
}

@media (max-width: 980px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: sticky;
        top: 0;
        z-index: 5;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .admin-sidebar a,
    .admin-brand {
        font-size: 0.84rem;
        padding: 0.34rem 0.46rem;
    }
}

/* Dynamic Navigation Categories */
.nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 0.45rem;
    z-index: 200;
}

.nav-dropdown a {
    display: block;
    border-radius: 8px;
    border: 1px solid #e4ebff;
    background: #f8faff;
}

.nav-item:hover .nav-dropdown {
    display: flex;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: grid;
        position: fixed;
        right: 0;
        left: 0;
        bottom: 0;
        z-index: 260;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.2rem;
        padding: 0.45rem 0.45rem calc(0.45rem + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid var(--line);
        box-shadow: 0 -10px 30px rgba(18, 36, 72, 0.14);
        backdrop-filter: blur(14px);
    }

    .mobile-bottom-nav a {
        position: relative;
        display: grid;
        place-items: center;
        gap: 0.15rem;
        min-height: 58px;
        text-decoration: none;
        color: var(--muted);
        font-size: 0.69rem;
        font-weight: 700;
        padding: 0.42rem 0.2rem 0.48rem;
        border-radius: 14px;
    }

    .mobile-bottom-nav a i {
        margin: 0;
        font-size: 1.08rem;
    }

    .mobile-bottom-nav a.active {
        color: var(--red-600);
        background: #fff1f5;
        box-shadow: inset 0 0 0 1px #ffd2de;
    }

    .mobile-bottom-nav a em {
        position: absolute;
        top: 6px;
        left: calc(50% + 8px);
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        background: var(--red-600);
        color: #fff;
        font-style: normal;
        font-size: 0.65rem;
        line-height: 18px;
        text-align: center;
    }

    .header {
        top: 0;
    }

    .topbar {
        position: static;
        display: block;
    }

    .footer,
    .trust-section,
    .footer-socials,
    .floating-cart,
    .hero-actions,
    .section#services,
    .section.testimonials {
        display: none !important;
    }

    .hero {
        margin-top: 0.3rem;
        padding: 1rem 0.65rem 0.9rem;
        min-height: 0;
    }

    .hero-copy {
        text-align: right;
    }

    .hero h1 {
        font-size: 1.28rem;
        line-height: 1.35;
    }

    .hero p {
        font-size: 0.9rem;
        line-height: 1.8;
        margin-top: 0.55rem;
    }

    .product-slider-section {
        padding-top: 0.35rem;
    }

    .product-slider {
        border-radius: 18px;
    }

    .product-slider-head {
        padding: 0.65rem 0.8rem 0;
    }

    .product-slider-nav {
        display: none;
    }

    .product-slide {
        padding: 0.6rem 0.65rem 0.85rem;
    }

    .product-slide-image {
        min-height: 280px;
        order: -1;
    }

    .product-slide-image img {
        height: 200px;
        padding: 0.25rem;
    }

    .product-slide h2 {
        font-size: 1.05rem;
        line-height: 1.5;
    }

    .product-slide p {
        font-size: 0.84rem;
        line-height: 1.75;
    }

    .product-slide-meta {
        gap: 0.3rem;
        margin-bottom: 0.5rem;
    }

    .product-slide-meta span {
        font-size: 0.75rem;
    }

    .product-slide-lists {
        display: none;
    }

    .product-slide-actions .btn {
        min-height: 46px;
    }

    .wallet-helper {
        display: grid;
        grid-template-columns: 1fr;
        padding: 0.9rem;
        gap: 0.7rem;
    }

    .wallet-helper h2 {
        font-size: 1.02rem;
        margin: 0;
    }

    .wallet-helper p {
        font-size: 0.88rem;
        line-height: 1.75;
        margin: 0;
    }

    .wallet-helper-actions {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .wallet-helper-actions .btn {
        min-height: 46px;
        padding: 0.75rem 0.9rem;
    }

    .main {
        min-height: 60vh;
    }

    body.has-mobile-nav {
        padding-bottom: 78px;
    }

    .product-slider-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.15rem;
        padding: 0.8rem 0.9rem 0;
    }

    .product-slide {
        flex-basis: 100%;
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 0.8rem;
        padding: 0.9rem 0.9rem 2.1rem;
    }

    .product-slide h2 {
        font-size: 1.18rem;
    }

    .product-slide p {
        font-size: 0.88rem;
    }

    .product-slide-lists {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .product-slide-list {
        padding: 0.6rem;
    }

    .product-slide-image {
        min-height: 320px;
        width: 100%;
        height: 100%;
        order: -1;
    }

    .product-slide-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        padding: 0;
    }

    .product-slider-dots {
        right: 0.9rem;
        bottom: 0.65rem;
    }

    .nav-item {
        display: block;
    }

    .nav-dropdown {
        position: static;
        display: flex;
        box-shadow: none;
        border: 0;
        padding: 0.25rem 0 0.35rem;
        background: transparent;
    }

    .nav-dropdown a {
        margin-right: 0.8rem;
        width: calc(100% - 0.8rem);
    }

    .section {
        padding: 1.6rem 0;
    }

    .wallet-helper h2 {
        font-size: 1rem;
    }

    .wallet-helper-actions .btn {
        width: 100%;
    }

    .page-header h1 {
        font-size: 1.45rem;
        line-height: 1.35;
    }

    .page-header p {
        font-size: 0.92rem;
        line-height: 1.85;
    }

    .page-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .page-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .compare-card h2 {
        font-size: 1rem;
    }

    .compare-table {
        min-width: 0;
        font-size: 0.8rem;
        table-layout: fixed;
    }

    .compare-table th,
    .compare-table td {
        padding: 0.45rem 0.34rem;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .card-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 0.7rem;
    }

    .trust-section {
        padding: 0.85rem;
    }

    .trust-section-head h3 {
        font-size: 0.95rem;
    }

    .footer-badge img {
        width: 50px;
        height: 50px;
    }
}


.admin-hero {
    background: linear-gradient(135deg, rgba(32, 75, 183, 0.08), rgba(217, 25, 76, 0.05));
    border: 1px solid #dbe5ff;
    border-radius: 20px;
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.admin-hero h1 {
    margin: 0;
    font-size: 1.7rem;
}

.admin-hero .form-hint {
    margin-top: 0.35rem;
    max-width: 72ch;
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.admin-head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-head-row h1 {
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.admin-head-row .form-hint {
    margin-top: 0.35rem;
    max-width: 62ch;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: 1rem;
}

.admin-stack {
    display: grid;
    gap: 1rem;
}

.admin-panel {
    background: #fff;
    border: 1px solid #e1e8ff;
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 10px 28px rgba(19, 52, 127, 0.06);
}

.admin-panel h2 {
    margin: 0 0 0.8rem;
    font-size: 1.02rem;
    line-height: 1.35;
    color: var(--blue-900);
}

.admin-panel h3 {
    color: var(--blue-900);
}

.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-kpi {
    border-radius: 16px;
    border: 1px solid #dbe4ff;
    background:
        linear-gradient(180deg, #fff, #f8fbff),
        radial-gradient(circle at top right, rgba(43, 99, 223, 0.08), transparent 65%);
    padding: 0.9rem;
    box-shadow: 0 8px 20px rgba(19, 52, 127, 0.04);
}

.admin-kpi span {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
    margin-bottom: 0.35rem;
}

.admin-kpi strong {
    display: block;
    color: var(--blue-900);
    font-size: 1.15rem;
    font-weight: 800;
}

.admin-note-box {
    border: 1px dashed #cbd8fb;
    border-radius: 16px;
    padding: 0.85rem 0.95rem;
    background: #fbfcff;
    color: #4f6288;
}

.admin-inline-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.admin-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: #eef3ff;
    color: var(--blue-800);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #d7e2ff;
}

.admin-chip:hover {
    background: #e3ebff;
}

.admin-table-wrap {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e1e8ff;
    background: #fff;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.admin-table th,
.admin-table td {
    padding: 0.78rem 0.72rem;
    border-bottom: 1px solid #edf2ff;
    vertical-align: top;
}

.admin-table thead th {
    background: #f7faff;
    color: var(--blue-900);
    font-size: 0.88rem;
}

.admin-table tbody tr:hover {
    background: #fbfdff;
}

.admin-panel .btn.btn-small {
    min-height: 34px;
}

.admin-form-grid .btn.btn-primary {
    min-height: 42px;
}

.admin-accounting-page .admin-hero,
.admin-warehouse-page .admin-hero {
    background: #fff;
    border: 1px solid #e7edf6;
    box-shadow: none;
    padding: 0.95rem 1rem;
    border-radius: 18px;
}

.admin-accounting-page .admin-hero h1,
.admin-warehouse-page .admin-hero h1 {
    font-size: 1.35rem;
    letter-spacing: -0.2px;
}

.admin-accounting-page .admin-hero .form-hint,
.admin-warehouse-page .admin-hero .form-hint {
    max-width: 56ch;
    color: #5f6f8f;
    line-height: 1.8;
}

.admin-accounting-page .admin-chip,
.admin-warehouse-page .admin-chip {
    background: #f7f9fc;
    border-color: #e1e8f3;
    color: #35507d;
    font-weight: 500;
    box-shadow: none;
}

.admin-accounting-page .admin-panel,
.admin-warehouse-page .admin-panel {
    border-color: #e6ecf5;
    box-shadow: none;
    border-radius: 16px;
}

.admin-accounting-page .admin-panel h2,
.admin-warehouse-page .admin-panel h2 {
    font-size: 0.98rem;
    margin-bottom: 0.7rem;
    letter-spacing: -0.1px;
}

.admin-accounting-page .admin-panel h3,
.admin-warehouse-page .admin-panel h3 {
    font-size: 0.92rem;
    margin-bottom: 0.65rem;
    color: #23406f;
}

.admin-accounting-page .admin-kpi,
.admin-warehouse-page .admin-kpi {
    background: #fff;
    border-color: #e6ecf6;
    box-shadow: none;
}

.admin-accounting-page .admin-kpi strong,
.admin-warehouse-page .admin-kpi strong {
    font-size: 1.05rem;
}

.admin-accounting-page .admin-grid-2,
.admin-warehouse-page .admin-grid-2 {
    gap: 0.85rem;
}

.admin-accounting-page .admin-stack,
.admin-warehouse-page .admin-stack {
    gap: 0.85rem;
}

.admin-accounting-page .admin-table,
.admin-warehouse-page .admin-table {
    font-size: 0.86rem;
}

.admin-accounting-page .admin-table th,
.admin-accounting-page .admin-table td,
.admin-warehouse-page .admin-table th,
.admin-warehouse-page .admin-table td {
    padding: 0.62rem 0.55rem;
}

.admin-accounting-page .admin-table thead th,
.admin-warehouse-page .admin-table thead th {
    background: #fafbfd;
    color: #24406e;
}

.admin-accounting-page .admin-note-box,
.admin-warehouse-page .admin-note-box {
    background: #fff;
    border-style: solid;
    border-color: #e1e8f3;
    color: #5c6d87;
}

.admin-accounting-page .admin-table-wrap,
.admin-warehouse-page .admin-table-wrap {
    border-color: #e3eaf4;
}

.admin-warehouse-page .admin-panel[id="location-details"] {
    background: linear-gradient(180deg, #ffffff, #fbfcfe);
}

.admin-warehouse-page .admin-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.admin-accounting-page .btn,
.admin-warehouse-page .btn {
    box-shadow: none;
}

.admin-accounting-page,
.admin-warehouse-page {
    background:
        radial-gradient(circle at top left, rgba(32, 75, 183, 0.06), transparent 34%),
        radial-gradient(circle at top right, rgba(217, 25, 76, 0.04), transparent 28%),
        linear-gradient(180deg, #fbfcff 0%, #f5f8ff 100%);
}

.admin-accounting-page .admin-hero,
.admin-warehouse-page .admin-hero {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(244, 248, 255, 0.96)),
        radial-gradient(circle at top right, rgba(43, 99, 223, 0.08), transparent 60%);
    border-color: #dce5ff;
}

.admin-accounting-page .admin-panel,
.admin-warehouse-page .admin-panel {
    border-color: #dfe6ff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.96));
}

.admin-accounting-page .admin-hero,
.admin-warehouse-page .admin-hero {
    padding: 0.82rem 0.92rem;
    margin-bottom: 0.75rem;
}

.admin-accounting-page .admin-hero h1,
.admin-warehouse-page .admin-hero h1 {
    font-size: 1.42rem;
}

.admin-accounting-page .admin-hero .form-hint,
.admin-warehouse-page .admin-hero .form-hint {
    max-width: 58ch;
    font-size: 0.92rem;
    line-height: 1.6;
}

.admin-accounting-page .admin-chip,
.admin-warehouse-page .admin-chip {
    padding: 0.3rem 0.62rem;
    font-size: 0.82rem;
}

.admin-accounting-page .admin-panel,
.admin-warehouse-page .admin-panel {
    padding: 0.82rem;
    border-radius: 16px;
}

.admin-panel-tight {
    padding-bottom: 0.7rem;
}

.admin-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.admin-section-head h2 {
    margin: 0;
}

.admin-section-hint {
    color: var(--muted);
    font-size: 0.82rem;
}

.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 0.55rem;
}

.admin-summary-card {
    border: 1px solid #dce5ff;
    border-radius: 14px;
    padding: 0.72rem 0.78rem;
    background:
        linear-gradient(180deg, #fff, #f8fbff),
        radial-gradient(circle at top right, rgba(43, 99, 223, 0.08), transparent 70%);
    box-shadow: 0 10px 20px rgba(19, 52, 127, 0.04);
}

.admin-summary-card span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    margin-bottom: 0.28rem;
}

.admin-summary-card strong {
    display: block;
    color: var(--blue-900);
    font-size: 0.95rem;
    line-height: 1.4;
}

.admin-kpi-grid .admin-kpi:nth-child(-n+4) {
    border-color: #cfdcff;
    background:
        linear-gradient(180deg, #fff, #f4f7ff),
        radial-gradient(circle at top right, rgba(32, 75, 183, 0.1), transparent 70%);
}

.admin-kpi-grid .admin-kpi:nth-child(-n+4) strong {
    font-size: 1.08rem;
}

.admin-record-list {
    display: grid;
    gap: 0.52rem;
}

.admin-record-card {
    border: 1px solid #e0e7ff;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.96));
    padding: 0.68rem 0.75rem;
    box-shadow: 0 10px 20px rgba(19, 52, 127, 0.045);
}

.admin-record-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.admin-record-top strong {
    display: block;
    color: var(--blue-900);
    font-size: 0.92rem;
    line-height: 1.4;
}

.admin-record-top span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 0.08rem;
}

.admin-record-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.65rem;
    padding: 0.14rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #d7e2ff;
    background: #eef4ff;
    color: var(--blue-800);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-record-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.admin-record-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.24rem 0.52rem;
    border-radius: 999px;
    background: #f6f8ff;
    border: 1px solid #e0e7ff;
    color: #3f537a;
    font-size: 0.76rem;
}

.admin-record-actions {
    margin-top: 0.55rem;
    display: flex;
    justify-content: flex-end;
}

.admin-search-bar {
    margin-top: 0.68rem;
    display: grid;
    gap: 0.3rem;
}

.admin-search-bar label {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
}

.admin-search-bar input[type="search"] {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #d8e2ff;
    background: rgba(255, 255, 255, 0.95);
    color: var(--blue-900);
    padding: 0.74rem 0.9rem;
    font-size: 0.9rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.admin-search-bar input[type="search"]::placeholder {
    color: #8c99b8;
}

.admin-search-bar input[type="search"]:focus {
    border-color: rgba(43, 99, 223, 0.42);
    box-shadow: 0 0 0 4px rgba(43, 99, 223, 0.08);
}

.admin-accordion-stack {
    display: grid;
    gap: 0.52rem;
}

.admin-accordion {
    border: 1px solid #dfe6ff;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.98));
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(19, 52, 127, 0.04);
}

.admin-accordion > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.72rem 0.9rem;
    font-weight: 700;
    color: var(--blue-900);
}

.admin-accordion > summary::-webkit-details-marker {
    display: none;
}

.admin-accordion > summary::after {
    content: "+";
    width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #d7e2ff;
    background: #eef4ff;
    color: var(--blue-800);
    font-size: 1rem;
    flex: 0 0 auto;
}

.admin-accordion[open] > summary::after {
    content: "–";
}

.admin-accordion .accordion-body {
    padding: 0 0.9rem 0.85rem;
}

.admin-note-box.is-filter-empty {
    margin-top: 0.75rem;
}

.admin-alert-box {
    border-radius: 16px;
    padding: 0.9rem 1rem;
    border: 1px solid #d8e2ff;
    background: #f7faff;
    box-shadow: 0 10px 20px rgba(19, 52, 127, 0.05);
}

.admin-alert-box strong {
    display: block;
    color: var(--blue-900);
    margin-bottom: 0.25rem;
}

.admin-alert-box p {
    margin: 0;
    color: #31476f;
    line-height: 1.7;
}

.admin-alert-box small {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
}

.admin-alert-success {
    border-color: #bfe8cf;
    background: #f3fdf6;
}

.admin-alert-success strong {
    color: #16704e;
}

.admin-alert-error {
    border-color: #f3c3c3;
    background: #fff7f7;
}

.admin-alert-error strong {
    color: #a83c3c;
}

.admin-accounting-page .admin-inline-chips,
.admin-warehouse-page .admin-inline-chips {
    gap: 0.5rem;
}

.admin-accounting-page .admin-chip,
.admin-warehouse-page .admin-chip {
    background: #f1f5ff;
    border-color: #d8e2ff;
}

@media (max-width: 780px) {
    .admin-section-head {
        align-items: flex-start;
    }

    .admin-record-top {
        flex-direction: column;
    }

    .admin-record-actions {
        justify-content: stretch;
    }

    .admin-record-actions .btn {
        width: 100%;
    }
}

@media (max-width: 960px) {
    .admin-grid-2 {
        grid-template-columns: 1fr;
    }

    .admin-head-row {
        align-items: stretch;
    }

    .admin-head-row .admin-toolbar {
        width: 100%;
    }

    .admin-toolbar .btn {
        flex: 1 1 160px;
        justify-content: center;
    }
}

/* Homepage redesign */
.hero-showcase {
    margin-top: 1rem;
    padding: 0;
    border: 0;
    min-height: 0;
    text-align: center;
    background:
        linear-gradient(90deg, rgba(232, 247, 255, 0.92), rgba(255, 255, 255, 0.98) 52%, rgba(255, 238, 244, 0.9)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
    box-shadow: none;
}

.hero-showcase::before {
    opacity: 0.08;
}

.hero-showcase .hero-layout {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
    justify-items: center;
    direction: rtl;
    text-align: center;
    padding: 1.9rem 1rem 1.55rem;
    border: 1px solid #d8e6ff;
    border-radius: calc(var(--radius) + 8px);
    box-shadow: 0 18px 48px rgba(19, 52, 127, 0.08);
    backdrop-filter: none;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    max-width: 920px;
    padding: 0;
    direction: rtl;
}

.hero-kicker {
    width: fit-content;
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(216, 230, 255, 0.95);
    color: var(--blue-800);
    backdrop-filter: none;
}

.hero h1 {
    max-width: 16ch;
    margin-top: 0.72rem;
    color: var(--blue-900);
    text-shadow: none;
}

.hero-subtitle {
    max-width: 62ch;
    margin-top: 0.62rem;
    color: var(--muted);
}

.hero-showcase .hero-subtitle {
    display: block;
    font-size: 1rem;
    line-height: 2;
}

.hero-trust-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.hero-trust-pills span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid #d9e4fb;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 255, 0.96));
    color: var(--blue-900);
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(23, 48, 107, 0.06);
}

.hero-trust-pills i {
    color: var(--blue-600);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
    margin-top: 1.1rem;
}

.hero-actions .btn {
    min-width: 152px;
    min-height: 46px;
}

.home-quick-guide {
    padding-top: 0.4rem !important;
}

.home-quick-guide-card {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1.15rem;
    padding: 1.15rem 1.2rem;
    border-radius: calc(var(--radius) + 4px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 255, 0.97)),
        radial-gradient(circle at top right, rgba(42, 98, 224, 0.08), transparent 34%),
    linear-gradient(90deg, rgba(9, 21, 47, 0.02), rgba(215, 25, 76, 0.03));
    box-shadow: 0 18px 44px rgba(20, 40, 120, 0.07);
}

.home-quick-guide-card > div:first-child {
    display: grid;
    gap: 0.45rem;
}

.home-quick-guide-card h2 {
    font-size: 1.34rem;
    line-height: 1.45;
}

.home-quick-guide-card p {
    max-width: 64ch;
    font-size: 0.98rem;
}

.home-quick-guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-start;
}

.home-quick-guide-actions .btn {
    min-width: 152px;
    justify-content: center;
    min-height: 48px;
}

.home-quick-guide-actions .btn-primary {
    box-shadow: 0 14px 24px rgba(32, 75, 183, 0.18);
}

.home-quick-guide-panel {
    display: grid;
    gap: 0.75rem;
    align-content: center;
    justify-items: stretch;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid #dce6ff;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 255, 0.96)),
        radial-gradient(circle at top right, rgba(42, 98, 224, 0.08), transparent 38%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.home-quick-guide-list {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-quick-guide-list li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--blue-900);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.7;
}

.home-quick-guide-list i {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--blue-700);
    margin-left: 0;
}

.product-slider {
    border-radius: calc(var(--radius) + 8px);
    border: 1px solid rgba(216, 226, 250, 0.88);
    box-shadow: 0 26px 58px rgba(19, 52, 127, 0.1);
}

.product-slider-head {
    padding: 1rem 1.1rem 0.25rem;
}

.product-slide {
    gap: 1.15rem;
    padding: 1.05rem 1.1rem 1.25rem;
}

.product-slide-image {
    border-radius: 20px;
    min-height: 260px;
}

.product-slide h2 {
    font-size: 1.42rem;
}

.product-slide-meta span {
    padding: 0.22rem 0.68rem;
}

.product-slide-list {
    background: rgba(255, 255, 255, 0.88);
}

.section-title {
    font-size: 1.52rem;
    letter-spacing: -0.2px;
}

.services-grid {
    gap: 1.05rem;
}

.service-card {
    padding: 1rem;
    min-height: 100%;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(18, 36, 72, 0.11);
}

.service-card p {
    line-height: 1.9;
}

.testimonials-grid {
    gap: 1rem;
}

.testimonial-card {
    padding: 1rem;
    border-radius: calc(var(--radius) + 2px);
    background:
        linear-gradient(180deg, #fff, #fbfcff),
        radial-gradient(circle at top right, rgba(215, 25, 76, 0.06), transparent 42%);
}

@media (max-width: 980px) {
    .hero-showcase .hero-layout {
        grid-template-columns: 1fr;
        direction: rtl;
    }

    .hero-copy {
        align-items: center;
    }

    .hero h1,
    .hero p {
        max-width: none;
    }

    .home-quick-guide-card {
        grid-template-columns: 1fr;
    }

    .home-quick-guide-panel {
        justify-items: stretch;
    }
}

@media (max-width: 768px) {
    .hero-showcase {
        margin-top: 0.5rem;
    }

    .hero-showcase .hero-layout {
        padding: 1.3rem 0.85rem 1.05rem;
        gap: 0.55rem;
    }

    .hero-copy {
        padding: 0;
    }

    .hero-kicker {
        font-size: 0.78rem;
    }

    .hero h1 {
        font-size: 1.55rem;
        line-height: 1.42;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    .hero-trust-pills {
        justify-content: center;
        margin-top: 0.85rem;
    }

    .hero-trust-pills span {
        font-size: 0.8rem;
        padding: 0.48rem 0.72rem;
    }

    .home-quick-guide-card {
        padding: 0.95rem;
        gap: 0.85rem;
    }

    .home-quick-guide-card h2 {
        font-size: 1.02rem;
    }

    .home-quick-guide-card p {
        font-size: 0.88rem;
        line-height: 1.8;
    }

    .home-quick-guide-panel {
        padding: 0.85rem;
    }

    .home-quick-guide-list li {
        font-size: 0.82rem;
    }

    .home-quick-guide-actions {
        flex-direction: column;
    }

    .home-quick-guide-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .section-title {
        font-size: 1.18rem;
    }

    .product-slider-head {
        padding: 0.75rem 0.85rem 0;
    }

    .product-slide {
        padding: 0.8rem 0.85rem 1rem;
    }

    .product-slide-image {
        min-height: 280px;
        border-radius: 18px;
    }

    .product-slide h2 {
        font-size: 1.1rem;
    }

    .product-slide p {
        font-size: 0.86rem;
    }

    .product-slide-lists {
        gap: 0.45rem;
    }

    .product-slide-list {
        padding: 0.62rem;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}
