:root {
    --bg: #f7f7f7;
    --surface: #ffffff;
    --text: #121212;
    --muted: #6b7280;
    --primary: #111827;
    --accent: #f97316;
    --border: #e5e7eb;
    --success: #166534;
    --error: #b91c1c;
    --info: #1d4ed8;
    --sidebar: #101214;
    --sidebar-text: #e5e7eb;
    --sf-bg: #061127;
    --sf-surface: #0f1e3a;
    --sf-surface-soft: #132746;
    --sf-text: #e8f2ff;
    --sf-text-muted: #bfd0e8;
    --sf-border: rgba(148, 163, 184, 0.3);
    --sf-accent: #1da5f6;
    --sf-footer-top: #13203a;
    --sf-footer-bottom: #0c1629;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #f4f4f5, #eceff1 45%, #f8fafc);
    color: var(--text);
}

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

img {
    max-width: 100%;
    display: block;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.brand-text {
    font-size: 1.35rem;
}

.brand-logo {
    height: 42px;
    width: auto;
}

.main-nav,
.header-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.main-nav a,
.header-actions a {
    font-size: 0.92rem;
    color: #374151;
}

.main-nav a:hover,
.header-actions a:hover {
    color: var(--accent);
}

.category-strip {
    border-top: 1px solid var(--border);
    background: #fff;
}

.category-strip .container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
}

.category-strip a {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.86rem;
    white-space: nowrap;
}

.site-main {
    padding: 24px 0 70px;
}

.hero {
    background: linear-gradient(120deg, #111827 0%, #232f3f 45%, #374151 100%);
    color: #fff;
    border-radius: 24px;
    padding: 36px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    box-shadow: 0 20px 35px -25px rgba(17, 24, 39, 0.9);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fed7aa;
    margin: 0 0 8px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.1;
}

.hero p {
    color: #d1d5db;
}

.hero-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 20px;
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.section {
    margin-top: 34px;
}

.js-ready .section {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.js-ready .section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section h1,
.section h2 {
    margin: 0 0 12px;
}

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

.product-card {
    background: var(--surface);
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 26px -20px rgba(2, 6, 23, 0.6);
}

.product-card img,
.img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    object-fit: cover;
    background: #f3f4f6;
    display: grid;
    place-items: center;
    color: #9ca3af;
    font-weight: 600;
}

.img-placeholder.large {
    min-height: 420px;
}

.price-row {
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.price-row.big {
    font-size: 1.25rem;
}

.price-old {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.9rem;
}

.filter-form,
.card-form,
.checkout-grid,
.designer-grid,
.grid-2 {
    display: grid;
    gap: 12px;
}

.filter-form {
    grid-template-columns: 1fr 220px auto;
    margin-bottom: 18px;
}

label {
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
    color: #374151;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
}

textarea {
    resize: vertical;
}

.btn {
    border-radius: 10px;
    padding: 10px 14px;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

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

.btn-secondary {
    background: #fff;
    border-color: var(--border);
    color: #1f2937;
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.btn-link {
    background: transparent;
    border: none;
    color: #2563eb;
    padding: 0;
    font-weight: 500;
    cursor: pointer;
}

.btn-sm {
    font-size: 0.78rem;
    padding: 5px 9px;
    border-radius: 8px;
}

.btn-link:hover {
    text-decoration: underline;
}

.card,
.banner-card,
.news-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
}

.narrow {
    max-width: 560px;
}

.alert {
    border-radius: 12px;
    padding: 12px 14px;
    margin: 0 0 14px;
    border: 1px solid transparent;
}

.alert-success {
    background: #dcfce7;
    border-color: #86efac;
    color: var(--success);
}

.alert-error {
    background: #fee2e2;
    border-color: #fca5a5;
    color: var(--error);
}

.alert-info {
    background: #dbeafe;
    border-color: #93c5fd;
    color: var(--info);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    font-size: 0.92rem;
}

.table tr:last-child td {
    border-bottom: none;
}

.mini-product {
    display: flex;
    gap: 10px;
    align-items: center;
}

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

.cart-summary,
.summary-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.checkout-grid {
    grid-template-columns: 1.2fr 0.8fr;
}

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

.summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 8px;
}

.designer-grid {
    grid-template-columns: 1fr 1fr;
}

#design-canvas {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, #f1f5f9, #e2e8f0);
    border: 1px dashed #94a3b8;
    border-radius: 14px;
}

.muted {
    color: var(--muted);
    font-size: 0.9rem;
}

.thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.thumb-btn {
    border: none;
    padding: 0;
    cursor: pointer;
    background: transparent;
}

.thumb-btn img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 1px solid var(--border);
    object-fit: cover;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 30px 0;
}

.footer-grid a {
    display: block;
    color: #4b5563;
    margin-top: 5px;
}

.footer-copy {
    border-top: 1px solid var(--border);
    padding: 12px 0 20px;
    color: #6b7280;
    font-size: 0.88rem;
}

.page-transition-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 2000;
    background: linear-gradient(90deg, #22d3ee, #1d4ed8);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.65);
    transition: width 0.35s ease;
    pointer-events: none;
}

.page-transition-bar.is-active {
    width: 88%;
}

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

.chip {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 14px;
    background: #fff;
}

.news-grid,
.banner-grid,
.address-list,
.thumb-grid {
    display: grid;
    gap: 12px;
}

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

.news-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.thumb-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.thumb-grid figure {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px;
    background: #fff;
}

.thumb-grid figcaption {
    display: grid;
    gap: 4px;
    font-size: 0.85rem;
    margin-top: 8px;
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 10px 0;
}

.inline-action-form {
    display: inline-block;
    margin-left: 8px;
}

.qty-input {
    width: 80px;
}

.admin-thumb {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 8px;
}

.admin-body {
    background: #f3f4f6;
}

.admin-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: linear-gradient(180deg, #111827, #0f172a);
    color: var(--sidebar-text);
    padding: 24px 18px;
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar h2 {
    margin: 0 0 16px;
}

.admin-sidebar a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: #cbd5e1;
    margin-bottom: 2px;
}

.admin-sidebar a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-sidebar a.is-active {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.admin-main {
    padding: 24px;
}

.admin-topbar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.admin-topbar h1 {
    margin: 0;
    font-size: 1.15rem;
}

.admin-topbar p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 0.88rem;
}

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

.admin-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
}

.stat-card span {
    display: block;
    color: #6b7280;
    font-size: 0.88rem;
}

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

@media (max-width: 980px) {
    .hero,
    .designer-grid,
    .checkout-grid,
    .grid-2,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .admin-wrapper {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(120px, 1fr));
        gap: 6px;
    }

    .admin-sidebar h2 {
        grid-column: 1 / -1;
    }

    .admin-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        display: none;
    }
}

@media (max-width: 640px) {
    .header-inner {
        min-height: 62px;
    }

    .hero {
        padding: 24px;
    }

    .admin-cards {
        grid-template-columns: 1fr;
    }
}

/* Rich storefront sections */
.hero-split {
    align-items: stretch;
}

/* Hero V2: Cinematic Cyber Premium */
.tisho-hero-v2 {
    --hero-bg-a: #07111f;
    --hero-bg-b: #0a192f;
    --hero-cyan: #00d9ff;
    --hero-orange: #ff6b00;
    --hero-text: #f6f9ff;
    --hero-muted: #c2d0e8;
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(0, 217, 255, 0.28);
    padding: clamp(24px, 3vw, 40px);
    min-height: min(72vh, 720px);
    margin-top: 14px;
    box-shadow:
        0 38px 80px -50px rgba(2, 6, 23, 0.92),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    isolation: isolate;
}

.hero-v2-bg,
.hero-v2-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-v2-bg {
    background:
        linear-gradient(110deg, rgba(7, 17, 31, 0.95) 0%, rgba(10, 25, 47, 0.86) 42%, rgba(7, 17, 31, 0.95) 100%),
        url("../images/hero/hero-city-bokeh.svg") center/cover no-repeat;
}

.hero-v2-noise {
    background:
        radial-gradient(circle at 78% 50%, rgba(0, 217, 255, 0.18) 0, rgba(0, 217, 255, 0) 38%),
        radial-gradient(circle at 57% 64%, rgba(255, 107, 0, 0.17) 0, rgba(255, 107, 0, 0) 42%);
    mix-blend-mode: screen;
    opacity: 0.95;
}

.hero-v2-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(340px, 1fr);
    gap: clamp(20px, 2.6vw, 36px);
    align-items: center;
    min-height: min(62vh, 620px);
}

.hero-v2-copy h1 {
    margin: 8px 0 14px;
    color: var(--hero-text);
    font-size: clamp(2.2rem, 5vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
    text-wrap: balance;
    text-shadow: 0 12px 44px rgba(2, 6, 23, 0.95);
}

.hero-v2-copy p {
    max-width: 560px;
    color: var(--hero-muted);
    font-size: clamp(1rem, 1.4vw, 1.26rem);
    line-height: 1.65;
}

.hero-v2-eyebrow {
    margin: 0;
    color: #83edff;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.76rem;
}

.hero-v2-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-v2-btn-primary,
.hero-v2-btn-secondary {
    min-width: 214px;
    border-radius: 14px;
    padding: 13px 20px;
    font-size: 1rem;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-v2-btn-primary {
    color: #051a2a;
    background: linear-gradient(92deg, #00d9ff 0%, #1cb9ff 100%);
    box-shadow: 0 18px 26px -18px rgba(0, 217, 255, 0.75);
}

.hero-v2-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 38px -20px rgba(0, 217, 255, 0.8);
}

.hero-v2-btn-secondary {
    color: #e9f4ff;
    background: rgba(12, 25, 48, 0.72);
    border-color: rgba(156, 194, 227, 0.4);
}

.hero-v2-btn-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 217, 255, 0.7);
    box-shadow: inset 0 0 0 1px rgba(0, 217, 255, 0.35);
}

.hero-v2-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-v2-features span {
    color: #d5e3f7;
    background: rgba(8, 20, 40, 0.7);
    border: 1px solid rgba(139, 180, 218, 0.34);
    border-radius: 999px;
    font-size: 0.82rem;
    padding: 7px 11px;
}

.hero-v2-stage {
    position: relative;
    min-height: min(58vh, 560px);
    display: grid;
    place-items: center;
}

.hero-v2-platform-wrap {
    position: absolute;
    left: 50%;
    bottom: 2.2%;
    width: min(100%, 540px);
    transform: translateX(-50%);
    filter: drop-shadow(0 0 24px rgba(255, 107, 0, 0.34));
    animation: hero-platform-pulse 4.2s ease-in-out infinite;
}

.hero-v2-platform {
    width: 100%;
    height: auto;
    opacity: 0.95;
}

.hero-v2-shirt {
    width: min(100%, 560px);
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 48px 42px rgba(2, 6, 23, 0.6));
    animation: hero-shirt-float 5.8s ease-in-out infinite;
    transform-origin: center bottom;
    will-change: transform;
}

.hero-v2-stat {
    position: absolute;
    right: 2%;
    min-width: 180px;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid rgba(162, 205, 237, 0.3);
    background: rgba(11, 24, 44, 0.62);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: #dbe9f9;
}

.hero-v2-stat strong {
    display: block;
    font-size: 1.2rem;
    color: #ffffff;
}

.hero-v2-stat span {
    color: #b9cee8;
    font-size: 0.88rem;
}

.hero-v2-stat-top {
    top: 29%;
}

.hero-v2-stat-bottom {
    bottom: 20%;
}

.hero-v2-hud {
    position: absolute;
    z-index: 2;
    color: #8db6df;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.9;
}

.hero-v2-hud-left {
    left: 24px;
    top: 22px;
    border: 1px solid rgba(0, 217, 255, 0.44);
    border-radius: 999px;
    padding: 6px 12px;
}

.hero-v2-hud-top {
    left: 50%;
    top: 18px;
    transform: translateX(-50%);
}

.hero-v2-hud-right {
    right: 24px;
    bottom: 24px;
}

@keyframes hero-shirt-float {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
    50% { transform: translate3d(0, -10px, 0) rotate(0.8deg); }
}

@keyframes hero-platform-pulse {
    0%, 100% { opacity: 0.83; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.03); }
}

/* Hero-aware header polish */
body.has-hero-v2 .site-header {
    background: rgba(7, 17, 31, 0.88);
    border-bottom-color: rgba(98, 137, 182, 0.35);
}

body.has-hero-v2 .main-nav a,
body.has-hero-v2 .header-actions a,
body.has-hero-v2 .header-action-btn {
    color: #dbe9f8;
}

body.has-hero-v2 .main-nav a {
    position: relative;
}

body.has-hero-v2 .main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    border-radius: 10px;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, transparent, #00d9ff, transparent);
    transition: transform 0.28s ease;
}

body.has-hero-v2 .main-nav a:hover::after {
    transform: scaleX(1);
}

.hero-list {
    margin: 12px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #d1d5db;
}

.hero-slider {
    position: relative;
}

@media (max-width: 1080px) {
    .tisho-hero-v2 {
        min-height: auto;
    }

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

    .hero-v2-stage {
        min-height: 420px;
        order: -1;
    }

    .hero-v2-stat {
        right: auto;
        left: 8px;
        min-width: 150px;
    }

    .hero-v2-stat-top {
        top: 12px;
    }

    .hero-v2-stat-bottom {
        bottom: 12px;
    }
}

@media (max-width: 760px) {
    .tisho-hero-v2 {
        padding: 18px;
        border-radius: 18px;
    }

    .hero-v2-hud-top,
    .hero-v2-hud-right {
        display: none;
    }

    .hero-v2-copy h1 {
        font-size: clamp(1.95rem, 11vw, 3rem);
    }

    .hero-v2-btn-primary,
    .hero-v2-btn-secondary {
        width: 100%;
        min-width: 0;
    }

    .hero-v2-stage {
        min-height: 340px;
    }

    .hero-v2-platform-wrap {
        width: 92%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-v2-shirt,
    .hero-v2-platform-wrap {
        animation: none;
    }
}

.slider-track {
    position: relative;
    min-height: 320px;
}

.slider-item {
    display: none;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #0f172a;
}

.slider-item.is-active {
    display: grid;
}

.slider-item-media img,
.slider-item-media .img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.slider-item-body {
    padding: 24px;
    color: #e5e7eb;
    display: grid;
    align-content: center;
    gap: 10px;
    background: radial-gradient(circle at top left, #1e293b, #0f172a);
}

.slider-dots {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
}

.slider-dot.is-active {
    background: var(--accent);
}

.campaign-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.promo-card {
    border-radius: 16px;
    padding: 18px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.promo-season {
    background: linear-gradient(120deg, #1e3a8a, #1d4ed8);
}

.promo-shipping {
    background: linear-gradient(120deg, #0f766e, #0d9488);
}

.promo-limited {
    background: linear-gradient(120deg, #7c2d12, #ea580c);
}

.cta-design {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: linear-gradient(130deg, #111827, #1f2937);
    color: #fff;
    border-radius: 18px;
    padding: 22px;
}

.promo-fixed-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.testimonial-card {
    background: linear-gradient(130deg, #ffffff, #f8fafc);
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
}

.newsletter-box {
    background: linear-gradient(120deg, #1f2937, #111827);
    color: #fff;
    border-radius: 18px;
    padding: 20px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}

.newsletter-box input {
    min-width: 240px;
}

.social-proof {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.social-proof .card {
    text-align: center;
}

.social-proof h3 {
    margin: 0 0 8px;
    font-size: 1.5rem;
}

/* Premium admin theme */
.admin-body {
    background: radial-gradient(circle at top, #0f1f45, #050811 50%, #05070f 100%);
    color: #e2e8f0;
}

.admin-wrapper {
    grid-template-columns: 280px 1fr;
}

.admin-sidebar {
    background: linear-gradient(180deg, rgba(9, 17, 39, 0.98), rgba(7, 12, 27, 0.96));
    border-right: 1px solid rgba(148, 163, 184, 0.12);
}

.admin-brand h2 {
    margin: 0;
    font-size: 1.3rem;
}

.admin-brand small {
    color: #94a3b8;
}

.admin-profile-card {
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-profile-card .avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
}

.admin-profile-card small {
    display: block;
    color: #93c5fd;
}

.admin-nav {
    margin-top: 14px;
}

.admin-sidebar a {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #cbd5e1;
}

.admin-sidebar a:hover {
    background: rgba(37, 99, 235, 0.18);
}

.admin-sidebar a.is-active {
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.35), rgba(29, 78, 216, 0.26));
    border: 1px solid rgba(96, 165, 250, 0.35);
}

.admin-main {
    padding: 20px;
}

.admin-topbar {
    background: linear-gradient(120deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.88));
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-topbar h1 {
    color: #e2e8f0;
}

.topbar-chip {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    padding: 8px 12px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.8);
}

.admin-cards-premium {
    grid-template-columns: repeat(4, 1fr);
}

.stat-card-dark {
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #f8fafc;
}

.stat-card-dark span {
    color: #93c5fd;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.card-dark {
    background: linear-gradient(120deg, rgba(7, 11, 24, 0.9), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
}

.table-dark {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.2);
}

.table-dark th,
.table-dark td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.table-dark th {
    color: #93c5fd;
}

.table-dark a {
    color: #60a5fa;
}

.dashboard-chart {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(2, 6, 23, 0.45);
}

.status-pill-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.status-pill {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.66);
}

.status-pill small {
    color: #93c5fd;
    display: block;
    text-transform: capitalize;
}

.status-pill strong {
    font-size: 1.25rem;
}

.quick-actions {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-login-body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top left, #1e3a8a, #0b1120 45%, #05070f);
}

.admin-login-wrap {
    width: min(520px, 92vw);
}

.admin-login-card {
    padding: 24px;
    border-radius: 16px;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #e2e8f0;
}

.admin-login-card p {
    color: #93c5fd;
}

.admin-login-card label {
    color: #cbd5e1;
}

.admin-login-card input {
    background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 980px) {
    .slider-item {
        grid-template-columns: 1fr;
    }

    .campaign-grid,
    .social-proof,
    .admin-cards-premium,
    .admin-grid-2 {
        grid-template-columns: 1fr;
    }

    .newsletter-box,
    .cta-design {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Tisho storefront premium terminal layer */
.site-wrapper {
    min-height: 100vh;
    background: radial-gradient(circle at top right, #132142, #070d1f 42%, #060a16 100%);
    color: #e2e8f0;
}

.site-wrapper .site-main {
    padding-top: 30px;
}

.terminal-strip {
    background: linear-gradient(90deg, rgba(11, 18, 36, 0.92), rgba(29, 78, 216, 0.16), rgba(11, 18, 36, 0.92));
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    font-family: "Courier New", monospace;
    font-size: 12px;
    color: #7dd3fc;
}

.terminal-strip-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.site-wrapper .site-header {
    background: rgba(6, 12, 28, 0.85);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.site-wrapper .header-inner {
    position: relative;
}

.site-wrapper .brand-text {
    color: #e2e8f0;
}

.site-wrapper .main-nav a,
.site-wrapper .header-actions a {
    color: #deebff;
}

.site-wrapper .main-nav a:hover,
.site-wrapper .header-actions a:hover {
    color: #22d3ee;
}

.mobile-nav-toggle {
    display: none;
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    padding: 8px 10px;
    min-height: 40px;
}

.icon-btn {
    border: 1px solid rgba(148, 163, 184, 0.36);
    background: rgba(8, 16, 34, 0.85);
    color: #dbeafe;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.cart-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid rgba(147, 197, 253, 0.45);
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.72);
}

.cart-pill span {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    font-size: 12px;
    background: #0ea5e9;
    color: #fff;
}

.site-wrapper .category-strip {
    border-top-color: rgba(148, 163, 184, 0.2);
    background: rgba(6, 12, 26, 0.95);
}

.site-wrapper .category-strip a {
    border-color: rgba(148, 163, 184, 0.36);
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.75);
}

.site-wrapper .site-header {
    background: linear-gradient(180deg, color-mix(in srgb, var(--sf-surface) 90%, #fff 10%), color-mix(in srgb, var(--sf-surface-soft) 92%, #fff 8%));
    border-bottom: 1px solid var(--sf-border);
}

.site-wrapper .main-nav a {
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--sf-text);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.site-wrapper .main-nav a:hover {
    border-color: color-mix(in srgb, var(--sf-accent) 45%, transparent);
    background: color-mix(in srgb, var(--sf-accent) 18%, transparent);
    color: #ffffff;
}

.site-wrapper .main-nav a::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 3px;
    height: 2px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--sf-accent) 80%, #fff 20%);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.24s ease;
}

.site-wrapper .main-nav a:hover::after {
    transform: scaleX(1);
}

.header-actions {
    gap: 8px;
}

.header-action-btn,
.header-action-link,
.header-register-btn,
.header-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--sf-border) 62%, transparent);
    background: color-mix(in srgb, var(--sf-surface-soft) 18%, transparent);
    color: var(--sf-text);
    font-size: 0.86rem;
}

.header-action-btn {
    cursor: pointer;
}

.header-action-btn svg,
.header-action-link svg,
.header-register-btn svg,
.header-cart-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.header-action-link:hover,
.header-register-btn:hover,
.header-cart-btn:hover,
.header-action-btn:hover {
    background: color-mix(in srgb, var(--sf-accent) 20%, transparent);
    border-color: color-mix(in srgb, var(--sf-accent) 55%, transparent);
    color: #fff;
}

.header-action-link span,
.header-register-btn span {
    display: none;
}

.header-cart-btn strong {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #0ea5e9;
    color: #fff;
    font-size: 0.76rem;
    line-height: 1;
    font-weight: 700;
}

.lang-switcher {
    display: inline-flex;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.34);
}

.lang-switcher a {
    padding: 8px 9px;
    font-size: 0.8rem;
    color: #c7d7f3;
    background: rgba(15, 23, 42, 0.5);
}

.lang-switcher a.is-active {
    background: rgba(14, 165, 233, 0.28);
    color: #fff;
}

.site-wrapper .site-footer {
    margin-top: 42px;
    background: linear-gradient(180deg, var(--sf-footer-top), var(--sf-footer-bottom) 56%, color-mix(in srgb, var(--sf-footer-bottom) 90%, #000 10%));
    border-top: 1px solid var(--sf-border);
    color: var(--sf-text);
    padding-top: 34px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.3fr repeat(4, 1fr);
    gap: 26px;
}

.footer-top h4,
.footer-top h5 {
    margin: 0 0 12px;
    color: var(--sf-text);
}

.footer-top p {
    color: var(--sf-text-muted);
    margin: 0 0 8px;
}

.footer-top a {
    display: block;
    margin-bottom: 8px;
    color: var(--sf-text);
}

.footer-top a:hover {
    color: var(--sf-accent);
}

.footer-brand {
    max-width: 360px;
}

.footer-newsletter .inline-form {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.footer-newsletter input {
    flex: 1;
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(148, 163, 184, 0.38);
    color: #f8fbff;
}

.footer-newsletter input::placeholder {
    color: #9cb0d0;
}

.footer-badges {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.footer-badges span {
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.45);
    color: var(--sf-text);
    padding: 10px;
    font-size: 0.84rem;
}

.footer-copy {
    margin-top: 18px;
    padding: 16px 0 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--sf-text-muted);
}

body.theme-modern {
    --sf-bg: #0a1428;
    --sf-surface: #13284a;
    --sf-surface-soft: #1a3053;
    --sf-accent: #2bb7ff;
    --sf-footer-top: #152748;
    --sf-footer-bottom: #101f38;
}

body.theme-premium {
    --sf-bg: #061127;
    --sf-surface: #0f1e3a;
    --sf-surface-soft: #132746;
    --sf-accent: #1da5f6;
    --sf-footer-top: #13203a;
    --sf-footer-bottom: #0c1629;
}

body.theme-mac {
    --sf-bg: #f3f5f9;
    --sf-surface: #ffffff;
    --sf-surface-soft: #edf2f9;
    --sf-text: #0f172a;
    --sf-text-muted: #475569;
    --sf-border: rgba(148, 163, 184, 0.35);
    --sf-accent: #0ea5e9;
    --sf-footer-top: #e9eef6;
    --sf-footer-bottom: #dbe4f0;
}

body.theme-dark {
    --sf-bg: #030712;
    --sf-surface: #0a1022;
    --sf-surface-soft: #0f1930;
    --sf-accent: #2563eb;
    --sf-footer-top: #091224;
    --sf-footer-bottom: #060d1b;
}

body.theme-light {
    --sf-bg: #f8fafc;
    --sf-surface: #ffffff;
    --sf-surface-soft: #eef3fb;
    --sf-text: #0f172a;
    --sf-text-muted: #475569;
    --sf-border: rgba(148, 163, 184, 0.4);
    --sf-accent: #0284c7;
    --sf-footer-top: #e8edf5;
    --sf-footer-bottom: #dce5f1;
}

body[class*="theme-"] .site-wrapper {
    background: radial-gradient(circle at top, color-mix(in srgb, var(--sf-bg) 80%, #1e3a8a 20%), var(--sf-bg) 52%, color-mix(in srgb, var(--sf-bg) 85%, #000 15%));
    color: var(--sf-text);
}

/* Product detail compact premium layout */
.product-detail-shell {
    display: grid;
    gap: 16px;
}

.product-detail-main {
    padding: 14px;
}

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

.product-gallery-pane,
.product-buy-pane {
    display: grid;
    gap: 10px;
}

.product-gallery-hero {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.45);
    min-height: 420px;
    display: grid;
    place-items: center;
}

.product-gallery-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 520px;
}

.product-thumbs-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-thumbs-grid .thumb-btn img {
    width: 74px;
    height: 74px;
    object-fit: cover;
}

.product-detail-head h1 {
    margin: 4px 0;
}

.product-short-desc {
    margin: 0;
    color: var(--sf-text-muted);
}

.product-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.product-trust-grid span {
    text-align: center;
    font-size: 0.82rem;
    padding: 9px 8px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #d6e5fa;
    background: rgba(15, 23, 42, 0.52);
}

.product-tabs-card {
    padding: 12px;
}

.product-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.product-tabs-nav button {
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: rgba(15, 23, 42, 0.6);
    color: #dbeafe;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
}

.product-tabs-nav button.is-active {
    border-color: rgba(56, 189, 248, 0.6);
    background: rgba(14, 165, 233, 0.24);
    color: #fff;
}

.product-tab-panel {
    display: none;
    color: #dbe7fb;
}

.product-tab-panel.is-active {
    display: block;
}

@media (max-width: 980px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    .product-gallery-hero {
        min-height: 320px;
    }
    .product-trust-grid {
        grid-template-columns: 1fr;
    }
}

.site-wrapper .section .product-card {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.site-wrapper .section .product-card h3,
.site-wrapper .section .product-card h3 a,
.site-wrapper .section .product-card p,
.site-wrapper .section .product-card .muted,
.site-wrapper .section .product-card .price-row,
.site-wrapper .section .product-card .price-row strong,
.site-wrapper .section .product-card .price-row span {
    color: #0f172a;
}

.site-wrapper .section .product-card .price-row del {
    color: #64748b;
}

@media (max-width: 1000px) {
    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-badges {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .site-wrapper .header-inner {
        align-items: flex-start;
    }
    .header-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .header-action-link span,
    .header-register-btn span,
    .header-cart-btn span {
        display: none;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-badges {
        grid-template-columns: 1fr;
    }
}

.terminal-mini,
.terminal-head {
    font-family: "Courier New", monospace;
    color: #67e8f9;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.terminal-card {
    border: 1px solid rgba(125, 211, 252, 0.2);
    background: linear-gradient(120deg, rgba(7, 12, 24, 0.92), rgba(18, 30, 54, 0.9));
}

.terminal-banner {
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(125, 211, 252, 0.2);
    background: linear-gradient(120deg, rgba(2, 6, 23, 0.9), rgba(30, 41, 59, 0.84));
}

.site-wrapper .card,
.site-wrapper .news-card,
.site-wrapper .banner-card {
    background: rgba(10, 17, 33, 0.8);
    border-color: rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
}

.site-wrapper h1,
.site-wrapper h2,
.site-wrapper h3,
.site-wrapper h4 {
    color: #f3f8ff;
}

.site-wrapper p,
.site-wrapper li,
.site-wrapper td,
.site-wrapper th,
.site-wrapper summary {
    color: #d4e1f6;
}

.site-wrapper label {
    color: #dbe7fa;
}

.site-wrapper input,
.site-wrapper select,
.site-wrapper textarea {
    background: rgba(15, 23, 42, 0.84);
    border-color: rgba(148, 163, 184, 0.3);
    color: #f8fafc;
}

.site-wrapper input::placeholder,
.site-wrapper textarea::placeholder {
    color: #93a7c7;
}

.site-wrapper .btn-primary {
    background: linear-gradient(120deg, #1d4ed8, #0ea5e9);
    border-color: rgba(125, 211, 252, 0.5);
}

.site-wrapper .btn-secondary {
    background: rgba(15, 23, 42, 0.86);
    color: #dbeafe;
    border-color: rgba(148, 163, 184, 0.35);
}

.site-wrapper .hero {
    border: 1px solid rgba(56, 189, 248, 0.24);
}

.product-badges {
    position: absolute;
    left: 8px;
    top: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.terminal-product > a {
    position: relative;
    display: block;
}

.site-wrapper .product-card {
    background: linear-gradient(165deg, rgba(12, 21, 42, 0.96), rgba(22, 38, 67, 0.93));
    border-color: rgba(148, 163, 184, 0.32);
    color: #e8f1ff;
}

.site-wrapper .product-card h3,
.site-wrapper .product-card h3 a {
    color: #f8fbff;
}

.site-wrapper .product-card p {
    color: #c7d7f3;
}

.site-wrapper .product-card .price-row strong {
    color: #f8fbff;
}

.site-wrapper .product-card .price-old {
    color: #93a9c8;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    color: #dbeafe;
    border: 1px solid rgba(96, 165, 250, 0.5);
    background: rgba(30, 64, 175, 0.55);
}

.badge-orange {
    border-color: rgba(251, 146, 60, 0.55);
    background: rgba(194, 65, 12, 0.58);
}

.badge-red {
    border-color: rgba(248, 113, 113, 0.55);
    background: rgba(153, 27, 27, 0.58);
}

.badge-cyan {
    border-color: rgba(34, 211, 238, 0.55);
    background: rgba(8, 145, 178, 0.55);
}

.badge-purple {
    border-color: rgba(167, 139, 250, 0.55);
    background: rgba(91, 33, 182, 0.52);
}

.product-gallery-card {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    padding: 12px;
    background: rgba(2, 6, 23, 0.55);
}

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

.empty-state {
    text-align: left;
    border-style: dashed;
}

.auth-shell {
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(560px, 95%);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(125, 211, 252, 0.24);
    background: linear-gradient(120deg, rgba(8, 16, 35, 0.9), rgba(18, 30, 54, 0.9));
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    width: 100%;
    padding-right: 82px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.9);
    color: #dbeafe;
    border-radius: 8px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-wrapper .table {
    background: rgba(5, 10, 22, 0.76);
    border-color: rgba(148, 163, 184, 0.3);
}

.site-wrapper .table th,
.site-wrapper .table td {
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

.site-wrapper .table th {
    color: #93c5fd;
}

.search-popover-wrap {
    position: fixed;
    top: 84px;
    right: max(14px, calc((100vw - 1180px) / 2 + 14px));
    z-index: 95;
}

.search-popover-panel {
    width: min(520px, calc(100vw - 28px));
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.44);
    padding: 16px;
    background: rgba(10, 19, 39, 0.98);
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.44);
}

.search-popover-panel h3 {
    margin-top: 0;
    margin-bottom: 6px;
    color: #f8fbff;
}

.search-popover-panel .muted {
    margin: 0 0 6px;
    color: #d4e6ff;
    font-size: 0.84rem;
}

.search-overlay-form {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.close-search {
    float: right;
}

.search-popover-wrap[hidden],
.cookie-bar[hidden],
.cookie-panel-wrap[hidden] {
    display: none !important;
}

.cookie-bar {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 120;
}

.cookie-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(8, 16, 34, 0.95);
    padding: 10px 12px;
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.45);
}

.cookie-bar-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #f5fbff;
    max-width: 760px;
}

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

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

.cookie-panel-wrap {
    position: fixed;
    inset: 0;
    z-index: 125;
    pointer-events: none;
}

.cookie-panel-backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(2, 6, 23, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: auto;
}

.cookie-panel {
    position: absolute;
    right: 16px;
    bottom: 80px;
    width: min(430px, calc(100vw - 28px));
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.42);
    background: #0f1f3f;
    color: #ecf4ff;
    padding: 14px;
    display: grid;
    gap: 10px;
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.42);
    transform: translateY(8px);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
    pointer-events: auto;
}

.cookie-panel-wrap:not([hidden]) .cookie-panel-backdrop {
    opacity: 1;
}

.cookie-panel-wrap:not([hidden]) .cookie-panel {
    transform: translateY(0);
    opacity: 1;
}

.cookie-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cookie-panel-head h3 {
    margin: 0;
    font-size: 1.05rem;
}

.cookie-panel-intro {
    margin: 0;
    font-size: 13px;
    color: #d4e4fb;
}

.cookie-close-btn {
    padding: 7px 10px;
    min-height: auto;
}

.cookie-option {
    border: 1px solid rgba(148, 163, 184, 0.36);
    border-radius: 10px;
    padding: 10px;
    background: rgba(8, 16, 35, 0.55);
}

.cookie-option strong {
    color: #f3f8ff;
    display: block;
}

.cookie-option p {
    margin: 5px 0 8px;
    font-size: 13px;
    line-height: 1.45;
    color: #d8e6fa;
}

.cookie-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #eff6ff;
}

.cookie-switch input {
    accent-color: #0ea5e9;
}

.chat-fab {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 85;
    border: 1px solid rgba(125, 211, 252, 0.5);
    background: linear-gradient(120deg, #1d4ed8, #0ea5e9);
    color: #fff;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
}

.live-chat-widget {
    position: fixed;
    right: 18px;
    bottom: 78px;
    width: min(360px, 92vw);
    z-index: 86;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(6, 12, 29, 0.96);
    overflow: hidden;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.chat-body {
    padding: 12px;
    display: grid;
    gap: 10px;
}

.chat-welcome {
    margin: 0;
    color: #bfdbfe;
}

.chat-form {
    display: grid;
    gap: 8px;
}

.chat-response p {
    margin: 0;
    font-size: 14px;
}

.text-danger {
    color: #fca5a5;
}

.text-success {
    color: #86efac;
}

[data-form-feedback] {
    margin: 6px 0 0;
    min-height: 20px;
    font-size: 0.84rem;
}

.footer-newsletter {
    margin-top: 10px;
}

.site-wrapper a:focus-visible,
.site-wrapper button:focus-visible,
.site-wrapper input:focus-visible,
.site-wrapper select:focus-visible,
.site-wrapper textarea:focus-visible {
    outline: 2px solid #22d3ee;
    outline-offset: 2px;
}

.overlay-open {
    overflow: hidden;
}

@media (max-width: 980px) {
    .mobile-nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .site-wrapper .main-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 16px;
        right: 16px;
        background: rgba(6, 12, 28, 0.97);
        border: 1px solid rgba(148, 163, 184, 0.25);
        border-radius: 12px;
        padding: 12px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
    }

    .site-wrapper .main-nav.is-open {
        display: flex;
    }

    .terminal-strip-inner {
        font-size: 11px;
        gap: 8px;
        overflow-x: auto;
    }

    .site-wrapper .header-actions {
        margin-left: auto;
    }

    .search-popover-wrap {
        top: 74px;
        right: 10px;
        left: 10px;
    }

    .search-popover-panel {
        width: 100%;
    }

    .cookie-bar {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-bar-text {
        font-size: 13px;
    }

    .cookie-panel {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 72px;
    }
}

/* ===============================
   Admin UI v2 (readability + UX)
   =============================== */
body.admin-body {
    color: #e7eefb;
}

body.admin-body .admin-wrapper {
    --admin-sidebar-width: 292px;
    display: grid;
    grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
    gap: 0;
    transition: grid-template-columns 0.22s ease;
}

body.admin-body .admin-wrapper.admin-sidebar-collapsed {
    --admin-sidebar-width: 92px;
}

body.admin-body .admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 12px 16px;
    background: linear-gradient(180deg, rgba(8, 14, 31, 0.98), rgba(4, 8, 19, 0.98));
    border-right: 1px solid rgba(148, 163, 184, 0.18);
}

body.admin-body .admin-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

body.admin-body .admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

body.admin-body .admin-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #f8fbff;
    border: 1px solid rgba(96, 165, 250, 0.55);
    background: linear-gradient(130deg, rgba(30, 64, 175, 0.75), rgba(14, 165, 233, 0.7));
    flex: 0 0 auto;
}

body.admin-body .admin-brand-copy {
    min-width: 0;
}

body.admin-body .admin-brand h2 {
    margin: 0;
    font-size: 1.02rem;
    letter-spacing: 0.25px;
    color: #f8fbff;
    white-space: nowrap;
}

body.admin-body .admin-brand small {
    display: block;
    color: #93c5fd;
    font-size: 0.78rem;
}

body.admin-body .admin-icon-btn {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.85);
    color: #e2e8f0;
    border-radius: 10px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body.admin-body .admin-icon-btn:hover {
    background: rgba(37, 99, 235, 0.25);
    border-color: rgba(125, 211, 252, 0.7);
    transform: translateY(-1px);
}

body.admin-body .admin-profile-card {
    margin-top: 10px;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(17, 27, 48, 0.66);
    display: flex;
    align-items: center;
    gap: 10px;
}

body.admin-body .admin-profile-card .avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    flex: 0 0 auto;
}

body.admin-body .admin-profile-meta {
    min-width: 0;
}

body.admin-body .admin-profile-meta strong {
    display: block;
    font-size: 0.92rem;
    color: #f8fbff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.admin-body .admin-profile-meta small {
    display: block;
    color: #a8c9f6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.admin-body .admin-nav {
    display: grid;
    gap: 8px;
    margin-top: 4px;
}

body.admin-body .admin-nav-group {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: rgba(9, 16, 32, 0.56);
    overflow: hidden;
}

body.admin-body .admin-nav-group-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    color: #dce7fa;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 11px;
    cursor: pointer;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

body.admin-body .admin-nav-group-toggle:hover {
    background: rgba(37, 99, 235, 0.16);
}

body.admin-body .admin-nav-group-icon {
    width: 18px;
    text-align: center;
    color: #8ed9ff;
    flex: 0 0 auto;
}

body.admin-body .admin-nav-group-icon i,
body.admin-body .admin-nav-item-icon i,
body.admin-body .admin-icon-btn i {
    font-size: 0.96rem;
    line-height: 1;
}

body.admin-body .admin-nav-group-title {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
}

body.admin-body .admin-nav-group-chevron {
    color: #9fbdf1;
    transition: transform 0.2s ease;
}

body.admin-body .admin-nav-items {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: max-height 0.22s ease, opacity 0.18s ease;
    display: grid;
    gap: 4px;
    padding: 0 7px;
}

body.admin-body .admin-nav-group.is-open .admin-nav-items,
body.admin-body .admin-nav-group.is-current .admin-nav-items {
    max-height: 640px;
    opacity: 1;
    pointer-events: auto;
    padding-bottom: 8px;
}

body.admin-body .admin-nav-group.is-open .admin-nav-group-chevron,
body.admin-body .admin-nav-group.is-current .admin-nav-group-chevron {
    transform: rotate(180deg);
}

body.admin-body .admin-nav-group.is-open .admin-nav-group-toggle,
body.admin-body .admin-nav-group.is-current .admin-nav-group-toggle {
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

body.admin-body .admin-nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    border-radius: 9px;
    color: #cfddf4;
    border: 1px solid transparent;
}

body.admin-body .admin-nav-item:hover {
    color: #eff6ff;
    background: rgba(30, 64, 175, 0.24);
    border-color: rgba(96, 165, 250, 0.25);
}

body.admin-body .admin-nav-item.is-active {
    color: #f8fbff;
    border-color: rgba(125, 211, 252, 0.5);
    background: linear-gradient(120deg, rgba(30, 64, 175, 0.54), rgba(2, 132, 199, 0.36));
}

body.admin-body .admin-nav-item-icon {
    width: 18px;
    text-align: center;
    color: #8fd8ff;
    flex: 0 0 auto;
}

body.admin-body .admin-nav-item-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.admin-body .admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 168;
    background: rgba(2, 6, 23, 0.58);
    backdrop-filter: blur(2px);
}

body.admin-body .admin-main {
    padding: 18px;
}

body.admin-body .admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: linear-gradient(120deg, rgba(12, 20, 40, 0.92), rgba(15, 23, 42, 0.9));
    margin-bottom: 14px;
}

body.admin-body .admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.admin-body .admin-mobile-toggle {
    display: none;
}

body.admin-body .admin-breadcrumb {
    color: #94a9ca;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

body.admin-body .admin-topbar h1 {
    margin: 0;
    font-size: 1.15rem;
    color: #f8fbff;
}

body.admin-body .admin-topbar p {
    margin: 4px 0 0;
    color: #9fb3d3;
    font-size: 0.86rem;
}

body.admin-body .topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

body.admin-body .topbar-chip {
    font-size: 0.82rem;
    color: #d5e5fb;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.36);
    background: rgba(15, 23, 42, 0.78);
    padding: 7px 11px;
}

/* Admin button system */
body.admin-body .admin-btn,
body.admin-body .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.2s ease, border-color 0.2s ease;
}

body.admin-body .admin-btn:hover,
body.admin-body .btn:hover {
    transform: translateY(-1px);
}

body.admin-body .admin-btn-primary,
body.admin-body .btn-primary {
    background: linear-gradient(120deg, #1d4ed8, #0284c7);
    border-color: rgba(125, 211, 252, 0.5);
    color: #ffffff;
}

body.admin-body .admin-btn-secondary,
body.admin-body .btn-secondary {
    background: rgba(15, 23, 42, 0.86);
    border-color: rgba(148, 163, 184, 0.4);
    color: #e5eefc;
}

body.admin-body .admin-btn-outline {
    background: transparent;
    color: #dbeafe;
    border-color: rgba(148, 163, 184, 0.5);
}

body.admin-body .admin-btn-success {
    background: linear-gradient(120deg, #15803d, #16a34a);
    border-color: rgba(134, 239, 172, 0.45);
    color: #ffffff;
}

body.admin-body .admin-btn-danger {
    background: linear-gradient(120deg, #b91c1c, #dc2626);
    border-color: rgba(252, 165, 165, 0.5);
    color: #ffffff;
}

body.admin-body .admin-btn-light {
    background: #ffffff;
    color: #111827;
    border-color: #d1d5db;
}

body.admin-body .admin-btn-ghost {
    background: rgba(30, 41, 59, 0.64);
    border-color: rgba(148, 163, 184, 0.35);
    color: #dbeafe;
}

body.admin-body .admin-btn:disabled,
body.admin-body .btn:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
}

body.admin-body .admin-btn-sm {
    min-height: 30px;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.82rem;
}

body.admin-body .btn-link {
    background: rgba(220, 38, 38, 0.12);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: 8px;
    padding: 4px 9px;
    text-decoration: none;
    font-weight: 600;
}

body.admin-body .btn-link:hover {
    color: #fff;
    background: rgba(220, 38, 38, 0.28);
    text-decoration: none;
}

/* Admin content readability */
body.admin-body .admin-main .card,
body.admin-body .admin-main .banner-card,
body.admin-body .admin-main .news-card {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: linear-gradient(120deg, rgba(8, 13, 27, 0.92), rgba(15, 23, 42, 0.9));
    color: #e8f0ff;
}

body.admin-body .admin-main h2,
body.admin-body .admin-main h3,
body.admin-body .admin-main h4 {
    color: #f8fbff;
}

body.admin-body .admin-main p,
body.admin-body .admin-main li,
body.admin-body .admin-main strong,
body.admin-body .admin-main small,
body.admin-body .admin-main label,
body.admin-body .admin-main td,
body.admin-body .admin-main th {
    color: inherit;
}

body.admin-body .admin-main .muted {
    color: #a5b8d5;
}

body.admin-body .admin-main input,
body.admin-body .admin-main select,
body.admin-body .admin-main textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: rgba(8, 14, 28, 0.86);
    color: #f8fbff;
    padding: 9px 11px;
}

body.admin-body .admin-main input[type="checkbox"],
body.admin-body .admin-main input[type="radio"] {
    width: 16px;
    height: 16px;
    padding: 0;
    vertical-align: middle;
    accent-color: #38bdf8;
}

body.admin-body .admin-main input::placeholder,
body.admin-body .admin-main textarea::placeholder {
    color: #95a9c8;
}

body.admin-body .admin-main select option {
    color: #0f172a;
}

body.admin-body .admin-main input:focus,
body.admin-body .admin-main select:focus,
body.admin-body .admin-main textarea:focus,
body.admin-body .admin-main button:focus-visible,
body.admin-body .admin-main a:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

body.admin-body .admin-main .table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(5, 10, 22, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.26);
}

body.admin-body .admin-main .table th,
body.admin-body .admin-main .table td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding: 10px;
    vertical-align: middle;
}

body.admin-body .admin-main .table th {
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #bcd5ff;
    background: rgba(2, 6, 23, 0.52);
}

body.admin-body .admin-main .table td {
    color: #e8f0ff;
}

body.admin-body .admin-main .table tbody tr:hover td {
    background: rgba(30, 64, 175, 0.16);
}

body.admin-body .admin-main .table a {
    color: #8ed8ff;
    font-weight: 600;
}

body.admin-body .admin-main .table a:hover {
    color: #c6ecff;
}

body.admin-body .admin-main code {
    background: rgba(30, 41, 59, 0.7);
    color: #cde7ff;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.82rem;
}

body.admin-body .section-head {
    margin-bottom: 12px;
}

body.admin-body .filter-form {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    align-items: end;
    gap: 10px;
}

body.admin-body .filter-form .btn,
body.admin-body .filter-form .admin-btn {
    min-height: 40px;
}

body.admin-body .thumb-grid figure {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(2, 6, 23, 0.6);
    color: #e8f0ff;
}

body.admin-body .thumb-grid figcaption {
    gap: 6px;
}

body.admin-body .inline-action-form {
    display: inline-flex;
    margin-left: 8px;
}

body.admin-body .inline-action-form .btn-link {
    margin: 0;
}

body.admin-body .admin-action-group {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

body.admin-body .admin-empty-state {
    border: 1px dashed rgba(148, 163, 184, 0.4);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    color: #b9cbe7;
    background: rgba(15, 23, 42, 0.55);
}

body.admin-body .system-status-box {
    margin-top: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.48);
    padding: 10px;
}

body.admin-body .system-status-box h3 {
    margin: 0 0 8px;
    font-size: 0.95rem;
}

body.admin-body .system-status-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

body.admin-body .system-status-box li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

body.admin-body .system-status-box li span {
    color: #b8cae5;
    font-size: 0.85rem;
}

body.admin-body .design-json-panel {
    margin-top: 8px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    padding: 8px;
    background: rgba(2, 6, 23, 0.45);
}

body.admin-body .design-json-panel summary {
    cursor: pointer;
    color: #93c5fd;
    font-weight: 600;
}

body.admin-body .design-json-panel .design-json-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 6px;
    margin: 8px 0;
}

body.admin-body .design-json-panel pre {
    margin: 0;
    padding: 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #dbeafe;
    font-size: 0.78rem;
    overflow: auto;
}

body.admin-body .alert {
    border-width: 1px;
    border-style: solid;
}

body.admin-body .alert-success {
    color: #dcfce7;
    background: rgba(21, 128, 61, 0.25);
    border-color: rgba(110, 231, 183, 0.45);
}

body.admin-body .alert-error {
    color: #fee2e2;
    background: rgba(185, 28, 28, 0.24);
    border-color: rgba(252, 165, 165, 0.48);
}

body.admin-body .alert-info {
    color: #e0f2fe;
    background: rgba(2, 132, 199, 0.2);
    border-color: rgba(125, 211, 252, 0.45);
}

body.admin-body .status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    border: 1px solid transparent;
}

body.admin-body .status-active,
body.admin-body .status-completed,
body.admin-body .status-confirmed,
body.admin-body .status-read {
    background: rgba(22, 163, 74, 0.2);
    border-color: rgba(134, 239, 172, 0.45);
    color: #dcfce7;
}

body.admin-body .status-passive,
body.admin-body .status-cancelled,
body.admin-body .status-closed {
    background: rgba(148, 163, 184, 0.18);
    border-color: rgba(203, 213, 225, 0.35);
    color: #e2e8f0;
}

body.admin-body .status-pending,
body.admin-body .status-new,
body.admin-body .status-preparing {
    background: rgba(245, 158, 11, 0.23);
    border-color: rgba(252, 211, 77, 0.45);
    color: #fef3c7;
}

body.admin-body .status-shipped {
    background: rgba(14, 165, 233, 0.22);
    border-color: rgba(125, 211, 252, 0.45);
    color: #dbeafe;
}

body.admin-body .status-spam {
    background: rgba(220, 38, 38, 0.22);
    border-color: rgba(252, 165, 165, 0.5);
    color: #fee2e2;
}

body.admin-body .status-live_chat {
    background: rgba(14, 165, 233, 0.22);
    border-color: rgba(125, 211, 252, 0.45);
    color: #dbeafe;
}

body.admin-body .status-contact {
    background: rgba(79, 70, 229, 0.22);
    border-color: rgba(165, 180, 252, 0.48);
    color: #e0e7ff;
}

/* Collapsed desktop sidebar */
@media (min-width: 1101px) {
    body.admin-body .admin-wrapper.admin-sidebar-collapsed .admin-brand-copy,
    body.admin-body .admin-wrapper.admin-sidebar-collapsed .admin-profile-meta,
    body.admin-body .admin-wrapper.admin-sidebar-collapsed .admin-nav-group-title,
    body.admin-body .admin-wrapper.admin-sidebar-collapsed .admin-nav-item-label,
    body.admin-body .admin-wrapper.admin-sidebar-collapsed .admin-nav-group-chevron {
        display: none;
    }

    body.admin-body .admin-wrapper.admin-sidebar-collapsed .admin-profile-card {
        justify-content: center;
        padding: 8px;
    }

    body.admin-body .admin-wrapper.admin-sidebar-collapsed .admin-brand {
        justify-content: center;
    }

    body.admin-body .admin-wrapper.admin-sidebar-collapsed .admin-nav-group-toggle,
    body.admin-body .admin-wrapper.admin-sidebar-collapsed .admin-nav-item {
        justify-content: center;
        padding-left: 9px;
        padding-right: 9px;
    }

    body.admin-body .admin-wrapper.admin-sidebar-collapsed .admin-nav-items {
        max-height: 620px;
        opacity: 1;
        pointer-events: auto;
        padding-bottom: 8px;
    }

    body.admin-body .admin-wrapper.admin-sidebar-collapsed .admin-nav-group {
        padding-top: 4px;
    }
}

/* Mobile drawer sidebar */
@media (max-width: 1100px) {
    body.admin-body .admin-wrapper {
        grid-template-columns: 1fr;
    }

    body.admin-body .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(320px, 88vw);
        height: 100vh;
        z-index: 170;
        transform: translateX(-108%);
        transition: transform 0.24s ease;
    }

    body.admin-body .admin-sidebar.is-mobile-open {
        transform: translateX(0);
    }

    body.admin-body .admin-mobile-toggle {
        display: inline-grid;
    }

    body.admin-body .admin-collapse-btn {
        display: none;
    }

    body.admin-body .admin-main {
        padding: 14px;
    }

    body.admin-body .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    body.admin-body .topbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    body.admin-body .admin-cards,
    body.admin-body .admin-cards-premium,
    body.admin-body .admin-grid-2,
    body.admin-body .status-pill-grid,
    body.admin-body .filter-form {
        grid-template-columns: 1fr;
    }

    body.admin-body .admin-main .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ===============================
   Storefront Header Popups
   =============================== */
.login-modal,
.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 160;
}

.login-modal-backdrop,
.cart-drawer-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(2, 6, 23, 0.56);
    backdrop-filter: blur(2px);
}

.login-modal-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(460px, calc(100vw - 24px));
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: linear-gradient(130deg, rgba(8, 16, 34, 0.98), rgba(15, 23, 42, 0.96));
    color: #e2e8f0;
    padding: 18px;
    z-index: 1;
}

.login-modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
}

.login-modal-panel h3 {
    margin: 6px 0 12px;
}

.login-modal-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.login-modal-links a {
    color: #93c5fd;
    font-size: 0.86rem;
}

.cart-drawer-panel {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: min(410px, 96vw);
    border-left: 1px solid rgba(148, 163, 184, 0.3);
    background: linear-gradient(130deg, rgba(7, 13, 29, 0.98), rgba(12, 21, 40, 0.96));
    display: grid;
    grid-template-rows: auto 1fr auto;
    color: #e2e8f0;
    z-index: 1;
}

.cart-drawer-head,
.cart-drawer-foot {
    padding: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cart-drawer-foot {
    border-bottom: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    justify-content: flex-end;
}

.cart-drawer-body {
    padding: 12px 14px;
    overflow-y: auto;
}

.cart-drawer-items {
    display: grid;
    gap: 10px;
}

.cart-drawer-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.62);
}

.cart-drawer-item img,
.cart-drawer-item .img-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-drawer-item strong {
    display: block;
    margin-bottom: 3px;
}

.cart-drawer-item small {
    display: block;
    margin-bottom: 4px;
    color: #c7d9f8;
}

.cart-drawer-item p {
    margin: 4px 0 0;
    font-size: 0.84rem;
}

.cart-drawer-total {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(148, 163, 184, 0.3);
}

.cart-drawer-empty {
    display: grid;
    gap: 10px;
    justify-items: start;
}

/* ===============================
   Custom Designer v2
   =============================== */
.designer-shell {
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    gap: 14px;
    margin-top: 14px;
}

.designer-panel-left,
.designer-panel-right,
.designer-stage-panel {
    min-height: 620px;
}

.designer-panel-left,
.designer-panel-right {
    display: grid;
    align-content: start;
    gap: 10px;
}

.designer-side-switch {
    display: flex;
    gap: 8px;
}

.designer-side-switch .btn {
    flex: 1;
}

.designer-side-switch .btn.is-active {
    border-color: rgba(125, 211, 252, 0.6);
    color: #f8fafc;
    background: rgba(14, 165, 233, 0.24);
}

.designer-stage-panel {
    display: grid;
    gap: 10px;
    align-content: start;
}

.designer-layer-count {
    display: block;
    margin-top: 4px;
}

.designer-stage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

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

.designer-mockup-wrap {
    position: relative;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 16px;
    background: radial-gradient(circle at top, rgba(30, 41, 59, 0.9), rgba(2, 6, 23, 0.85));
    padding: 12px;
    min-height: 560px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.designer-canvas {
    position: relative;
    width: min(460px, 96%);
    aspect-ratio: 520 / 620;
    z-index: 1;
}

.designer-mockup-wrap::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.22);
    pointer-events: none;
}

#design-mockup-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    filter: drop-shadow(0 18px 22px rgba(2, 6, 23, 0.65));
    z-index: 1;
}

.designer-print-area {
    position: absolute;
    border: 2px dashed rgba(34, 211, 238, 0.64);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(2, 6, 23, 0.22);
    touch-action: none;
    z-index: 2;
}

.print-area-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(51, 65, 85, 0.9);
    pointer-events: none;
}

.designer-print-area.is-drop-target {
    border-color: rgba(14, 165, 233, 0.95);
    background: rgba(14, 165, 233, 0.16);
}

.design-el {
    position: absolute;
    border: 1px dashed transparent;
    cursor: move;
    display: grid;
    place-items: center;
    user-select: none;
    touch-action: none;
}

.design-el img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.design-el-text {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
    line-height: 1.05;
    text-transform: uppercase;
    white-space: pre-wrap;
    overflow: hidden;
    pointer-events: none;
}

.design-el.is-selected {
    border-color: rgba(56, 189, 248, 0.82);
    background: rgba(56, 189, 248, 0.08);
}

.el-resize-handle,
.el-rotate-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.92);
    color: #dbeafe;
    font-size: 11px;
    display: none;
    place-items: center;
    padding: 0;
    cursor: pointer;
}

.design-el.is-selected .el-resize-handle,
.design-el.is-selected .el-rotate-handle {
    display: grid;
}

.el-resize-handle {
    right: -10px;
    bottom: -10px;
}

.el-rotate-handle {
    left: 50%;
    top: -24px;
    transform: translateX(-50%);
}

.designer-helper-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.designer-empty-hint {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 0.78rem;
    color: #bfdbfe;
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    padding: 6px 10px;
    text-align: center;
    max-width: calc(100% - 36px);
}

.designer-mockup-wrap.has-design .designer-empty-hint {
    display: none;
}

.designer-upload-tool {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.35);
}

.designer-upload-tool input[type="file"] {
    padding: 8px;
}

#design-upload-status.text-success {
    color: #86efac;
}

#design-upload-status.text-danger {
    color: #fca5a5;
}

.design-assets-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 2px;
}

.design-asset-item {
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.65);
    color: #dbeafe;
    padding: 8px;
    display: grid;
    gap: 6px;
    cursor: pointer;
}

.design-asset-item:hover {
    border-color: rgba(56, 189, 248, 0.62);
    background: rgba(30, 64, 175, 0.26);
}

.design-asset-item img {
    width: 100%;
    height: 74px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.46);
}

.design-asset-item small {
    font-size: 0.78rem;
    color: #bfdbfe;
}

.designer-selected-tools {
    margin-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding-top: 10px;
    display: grid;
    gap: 8px;
}

.designer-selected-tools h4 {
    margin: 0;
}

@media (max-width: 1200px) {
    .designer-shell {
        grid-template-columns: 1fr;
    }

    .designer-panel-left,
    .designer-panel-right,
    .designer-stage-panel {
        min-height: auto;
    }

    .designer-mockup-wrap {
        min-height: 500px;
    }
}

/* ===============================
   Designer Studio V3
   =============================== */
.designer-studio-page {
    --studio-bg: #ecf0f5;
    --studio-surface: #f8fbff;
    --studio-card: #ffffff;
    --studio-line: #d2dbe8;
    --studio-text: #142131;
    --studio-muted: #5f6f84;
    --studio-accent: #1d74eb;
    --studio-accent-soft: #e8f1ff;
    --studio-orange: #ff7a12;
    margin-top: 8px;
    background: linear-gradient(180deg, #f2f4f8 0%, #e9eef4 100%);
    border: 1px solid #d6dde8;
    border-radius: 16px;
    padding: 10px;
}

body.designer-mode .terminal-strip,
body.designer-mode .category-strip {
    display: block;
}

body.designer-mode .site-main.container {
    width: min(1500px, 96vw);
    padding-top: 14px;
}

body.designer-mode .site-footer {
    display: block;
}

.designer-studio-page * {
    color: var(--studio-text);
}

.designer-studio-page .terminal-mini,
.designer-studio-page .muted {
    color: var(--studio-muted);
}

.designer-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--studio-line);
}

.designer-topbar h1 {
    font-size: 1.55rem;
    margin: 0;
}

.designer-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.designer-back-link {
    font-size: 0.92rem;
    color: #284f88;
    font-weight: 600;
}

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

.studio-action-btn {
    border: 1px solid #c8d4e4;
    background: #fff;
    color: #1f2f44;
    border-radius: 10px;
    padding: 9px 14px;
    cursor: pointer;
    font-weight: 600;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.studio-action-btn:hover {
    border-color: #90b2df;
    box-shadow: 0 10px 20px -16px rgba(37, 99, 235, 0.6);
    transform: translateY(-1px);
}

.designer-v3-shell {
    display: grid;
    grid-template-columns: 92px 308px minmax(620px, 1fr) 306px;
    gap: 10px;
    min-height: calc(100vh - 168px);
    padding-top: 10px;
    position: relative;
}

.designer-v3-toolbar {
    background: var(--studio-card);
    border: 1px solid var(--studio-line);
    border-radius: 12px;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 8px;
}

.designer-tool-btn {
    border: 1px solid #d4deeb;
    background: #fff;
    border-radius: 10px;
    padding: 10px 7px;
    cursor: pointer;
    font-size: 0.84rem;
    text-align: center;
    display: grid;
    gap: 4px;
    justify-items: center;
    transition: border-color .2s ease, background .2s ease;
}

.tool-ico {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    line-height: 1;
}

.tool-ico svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.designer-tool-btn.is-active {
    border-color: var(--studio-accent);
    background: var(--studio-accent-soft);
    color: #0f3d77;
    font-weight: 700;
}

.designer-v3-panels {
    background: var(--studio-card);
    border: 1px solid var(--studio-line);
    border-radius: 12px;
    padding: 12px;
    display: grid;
    align-content: start;
    gap: 12px;
}

.designer-tool-panels .tool-panel {
    display: none;
    gap: 9px;
}

.designer-tool-panels .tool-panel.is-active {
    display: grid;
}

.designer-tool-panels h3 {
    margin: 0 0 4px;
    font-size: 1.16rem;
}

.designer-tool-panels label {
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
}

.designer-tool-panels input,
.designer-tool-panels select {
    border: 1px solid #cfd9e7;
    background: #f8fbff;
    border-radius: 10px;
    color: #101b2d;
    padding: 10px;
}

.designer-shape-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.designer-v3-stage {
    background: var(--studio-surface);
    border: 1px solid var(--studio-line);
    border-radius: 12px;
    padding: 10px;
    display: grid;
    gap: 8px;
}

.designer-stage-head {
    align-items: start;
}

.designer-v3-stage .designer-mockup-wrap {
    background: radial-gradient(circle at center 22%, #fefefe 0, #eef3f9 55%, #e6edf6 100%);
    border: 1px solid #c8d2e2;
    min-height: 680px;
}

.designer-v3-stage #design-mockup-image {
    position: absolute;
    left: 50%;
    top: 50%;
    inset: auto;
    transform: translate(-50%, -50%);
    width: clamp(420px, 54vw, 700px);
    max-height: 96%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 16px 24px rgba(15, 23, 42, 0.28));
}

.designer-v3-stage .designer-canvas {
    width: min(780px, 96%);
    height: 100%;
}

.designer-v3-stage .designer-print-area {
    border: 2px dashed #38bdf8;
    background: rgba(56, 189, 248, 0.08);
}

.designer-v3-stage .print-area-label {
    color: #0b4a70;
    font-weight: 700;
}

.designer-v3-stage .designer-empty-hint {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(71, 85, 105, 0.35);
    color: #334155;
}

#designer-mockup-wrap {
    --designer-garment-color: #111827;
}

#designer-mockup-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.02) 64%);
    pointer-events: none;
}

#designer-mockup-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--designer-garment-color) 0%, rgba(0, 0, 0, 0) 55%);
    mix-blend-mode: multiply;
    pointer-events: none;
    opacity: .18;
}

.designer-v3-right {
    display: grid;
    align-content: start;
    gap: 10px;
}

.designer-views-card,
.designer-side-right .designer-selected-tools {
    background: var(--studio-card);
    border: 1px solid var(--studio-line);
    border-radius: 12px;
    padding: 10px;
}

.designer-view-thumbs {
    display: grid;
    gap: 9px;
}

.designer-view-thumb {
    border: 1px solid #cdd8e7;
    background: #f8fbff;
    border-radius: 9px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    display: grid;
    gap: 6px;
    justify-items: center;
}

.designer-view-thumb img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.designer-view-thumb.is-active {
    border-color: var(--studio-accent);
    background: var(--studio-accent-soft);
    color: #0f3d77;
}

.designer-studio-page .designer-selected-tools input,
.designer-studio-page .designer-selected-tools select {
    border: 1px solid #ced9e8;
    background: #f8fbff;
    color: #101b2d;
}

.designer-studio-page .design-asset-item {
    border: 1px solid #d0daea;
    border-radius: 10px;
    background: #f8fbff;
    color: #142131;
}

.designer-studio-page .design-asset-item:hover {
    border-color: #84aee5;
    background: #edf4ff;
}

.designer-studio-page .design-asset-item img {
    background: #eef4fb;
}

.designer-studio-page .design-asset-item small {
    color: #334155;
}

.designer-studio-page #design-upload-status.text-success {
    color: #065f46;
}

.designer-studio-page #design-upload-status.text-danger {
    color: #9f1239;
}

.designer-bottom-left,
.designer-bottom-right {
    position: absolute;
    bottom: 10px;
    background: var(--studio-card);
    border: 1px solid var(--studio-line);
    border-radius: 12px;
    padding: 10px;
}

.designer-bottom-left {
    left: 412px;
    display: grid;
    gap: 8px;
    min-width: 250px;
}

.designer-bottom-right {
    right: 8px;
    min-width: 250px;
    display: grid;
    gap: 8px;
}

.designer-price {
    font-size: 2rem;
    font-weight: 800;
    color: #0d1b30;
}

.designer-bottom-right .btn-primary {
    background: linear-gradient(90deg, #2563eb 0%, #1d9bf0 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.designer-bottom-right .btn-primary svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.studio-chip-btn {
    border: 1px solid #cad7e8;
    background: #f9fbff;
    border-radius: 10px;
    padding: 9px 11px;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
}

.designer-chip-panel {
    border: 1px solid #d5deeb;
    border-radius: 10px;
    background: #f8fbff;
    padding: 8px;
}

.designer-chip-panel label {
    display: grid;
    gap: 6px;
    font-size: 0.86rem;
}

.designer-chip-panel select {
    border: 1px solid #ccd5e3;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    padding: 8px;
}

.designer-toast-wrap {
    position: fixed;
    right: 16px;
    top: 88px;
    z-index: 1300;
    display: grid;
    gap: 8px;
    pointer-events: none;
}

.designer-toast {
    border: 1px solid #bed6ff;
    background: #eef5ff;
    color: #0f2f64;
    border-radius: 10px;
    padding: 10px 12px;
    min-width: 220px;
    box-shadow: 0 16px 24px -20px rgba(15, 23, 42, 0.6);
}

.designer-toast.is-error {
    border-color: #fecaca;
    background: #fff1f2;
    color: #9f1239;
}

.designer-modal[hidden] {
    display: none;
}

.designer-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.designer-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    border: 0;
}

.designer-modal-panel {
    position: relative;
    width: min(520px, 92vw);
    margin: 12vh auto 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #d7deea;
    padding: 16px;
    display: grid;
    gap: 10px;
}

.designer-modal-panel h3 {
    margin: 0;
}

@media (max-width: 1580px) {
    .designer-v3-shell {
        grid-template-columns: 84px 280px minmax(560px, 1fr) 280px;
    }

    .designer-bottom-left {
        left: 384px;
    }
}

@media (max-width: 1360px) {
    .designer-v3-shell {
        grid-template-columns: 74px 250px minmax(500px, 1fr);
    }

    .designer-v3-right {
        grid-column: 1 / -1;
        grid-template-columns: 250px 1fr;
    }

    .designer-bottom-left,
    .designer-bottom-right {
        position: static;
    }
}

@media (max-width: 980px) {
    .designer-topbar {
        flex-wrap: wrap;
    }

    .designer-v3-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .designer-v3-toolbar {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .designer-v3-toolbar .designer-tool-btn {
        padding: 8px 4px;
        font-size: 0.78rem;
    }

    .designer-v3-panels {
        order: 2;
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 72px;
        z-index: 1210;
        max-height: 60vh;
        overflow: auto;
        transform: translateY(120%);
        opacity: 0;
        transition: transform .25s ease, opacity .25s ease;
        box-shadow: 0 26px 40px -28px rgba(15, 23, 42, 0.65);
    }

    .designer-v3-shell.is-panel-open .designer-v3-panels {
        transform: translateY(0);
        opacity: 1;
    }

    .designer-v3-stage {
        order: 1;
    }

    .designer-v3-right {
        grid-template-columns: 1fr;
        order: 3;
    }

    .designer-v3-stage .designer-mockup-wrap {
        min-height: 480px;
    }
}

@media (max-width: 640px) {
    .designer-topbar h1 {
        font-size: 1.2rem;
    }

    .designer-v3-stage .designer-mockup-wrap {
        min-height: 410px;
    }

    .designer-v3-stage #design-mockup-image {
        width: clamp(280px, 82vw, 420px);
    }
}

/* ===============================
   Tisho V4 Hotfix Overrides
   =============================== */
:root {
    --radius-container: 14px;
    --radius-card: 12px;
    --radius-control: 10px;
}

.hero,
.hero-panel,
.card,
.banner-card,
.news-card,
.terminal-card,
.tisho-hero-v2,
.hero-slider,
.slider-item,
.promo-card,
.newsletter-box,
.site-footer,
.product-gallery-hero,
.product-tabs-card,
.designer-studio-page {
    border-radius: var(--radius-container);
}

.product-card,
.testimonial-card,
.social-proof .card,
.campaign-grid .promo-card,
.designer-v3-toolbar,
.designer-v3-panels,
.designer-v3-stage,
.designer-views-card,
.designer-side-right .designer-selected-tools,
.admin-btn,
.admin-card {
    border-radius: var(--radius-card);
}

input,
select,
textarea,
button,
.btn,
.chip,
.header-action-btn,
.header-action-link,
.header-register-btn,
.header-cart-btn,
.studio-action-btn {
    border-radius: var(--radius-control);
}

.header-action-btn i,
.header-action-link i,
.header-register-btn i,
.header-cart-btn i {
    font-size: 1.02rem;
    line-height: 1;
}

.tool-ico .bi {
    font-size: 1rem;
}

.chips .chip {
    background: rgba(6, 24, 50, 0.92);
    color: #f8fbff !important;
    border: 1px solid rgba(34, 211, 238, 0.45);
    box-shadow: inset 0 0 0 1px rgba(2, 8, 23, 0.35);
}

.chips .chip:hover,
.chips .chip:focus-visible {
    border-color: #22d3ee;
    background: rgba(8, 30, 58, 0.98);
    color: #ffffff;
}

.chips .chip.is-active,
.chips .chip[aria-current="page"] {
    background: linear-gradient(120deg, rgba(14, 165, 233, 0.2), rgba(59, 130, 246, 0.16));
    border-color: rgba(34, 211, 238, 0.9);
    color: #ffffff;
}

.product-form .product-qty-label {
    margin-bottom: 2px;
}

.product-form .product-add-btn {
    margin-top: 16px;
}

.product-trust-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.product-trust-grid span i {
    font-size: 0.98rem;
    color: #38bdf8;
}

.designer-studio-page .designer-topbar h1 {
    color: #0f172a;
}

.designer-studio-page .designer-v3-stage .designer-print-area {
    background: rgba(56, 189, 248, 0.05);
}

#designer-mockup-wrap::after {
    display: none;
}

#designer-mockup-wrap::before {
    inset: 12% 14%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0));
}

.designer-left-price-box {
    margin-top: 8px;
    border: 1px solid #d1daea;
    background: #f8fbff;
    border-radius: var(--radius-card);
    padding: 10px;
    display: grid;
    gap: 8px;
}

.designer-left-price-box .btn-primary {
    width: 100%;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(90deg, #2563eb 0%, #1d9bf0 100%);
}

.designer-left-price-box .btn-primary svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.designer-left-price-box .designer-price {
    font-size: 1.7rem;
    line-height: 1.1;
    color: #0f172a;
}

body.admin-body .quill-editor-wrap {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

body.admin-body .quill-editor {
    min-height: 280px;
}

/* ===============================
   Tisho V5 Wave 1
   =============================== */

/* Designer refinements */
.designer-studio-page .designer-topbar h1 {
    color: #0f172a !important;
}

.designer-v3-shell {
    min-height: calc(100vh - 156px);
}

.designer-left-stack {
    display: grid;
    align-content: start;
    gap: 10px;
}

.designer-product-settings {
    background: #ffffff;
    border: 1px solid var(--studio-line);
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 9px;
}

.designer-product-settings h3 {
    margin: 0 0 3px;
    font-size: 1.12rem;
}

.designer-product-settings label {
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
}

.designer-product-settings input,
.designer-product-settings select {
    border: 1px solid #cfd9e7;
    background: #f8fbff;
    border-radius: 10px;
    color: #101b2d;
    padding: 10px;
}

.designer-template-list-wrap {
    display: grid;
    gap: 6px;
}

.designer-template-list-wrap strong {
    font-size: 0.86rem;
    color: #24364f;
}

.designer-template-list {
    display: grid;
    gap: 6px;
}

.designer-template-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    align-items: center;
}

.designer-v3-stage .designer-mockup-wrap {
    background: radial-gradient(circle at center 28%, #fbfdff 0, #eef3f9 58%, #e6edf6 100%);
    min-height: 640px;
}

.designer-v3-stage #design-mockup-image {
    width: clamp(360px, 43vw, 590px);
    max-height: 92%;
}

#designer-mockup-wrap::before,
#designer-mockup-wrap::after {
    display: none !important;
}

.designer-v3-stage .designer-print-area {
    background: rgba(56, 189, 248, 0.03);
    border-color: #38bdf8;
}

.designer-v3-stage .print-area-label {
    color: #0d3f61;
    letter-spacing: .02em;
}

.designer-v3-right {
    align-content: stretch;
}

.designer-v3-right .designer-views-card,
.designer-v3-right .designer-selected-tools {
    height: fit-content;
}

/* Admin tabbed forms */
.admin-tabbed-form .admin-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 14px;
}

.admin-tabbed-form .admin-tab-btn {
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(8, 21, 45, 0.7);
    color: #d5e6ff;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.admin-tabbed-form .admin-tab-btn:hover {
    border-color: rgba(56, 189, 248, 0.7);
    color: #fff;
}

.admin-tabbed-form .admin-tab-btn.is-active {
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.28), rgba(14, 165, 233, 0.22));
    border-color: rgba(56, 189, 248, 0.95);
    color: #fff;
}

.admin-tabbed-form .admin-tab-panel {
    display: none;
    gap: 10px;
}

.admin-tabbed-form .admin-tab-panel.is-active {
    display: grid;
}

.admin-inline-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.compact-card {
    padding: 12px;
}

.admin-switch-grid {
    display: grid;
    gap: 10px;
}

.admin-help-box {
    border: 1px solid rgba(56, 189, 248, 0.22);
    background: rgba(10, 23, 46, 0.55);
    border-radius: 10px;
    padding: 10px 12px;
}

.admin-help-box strong {
    display: block;
    margin-bottom: 4px;
}

.admin-help-box > summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 8px;
}

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

.admin-sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-top: 12px;
    border: 1px solid rgba(56, 189, 248, 0.26);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.88), rgba(3, 15, 34, 0.95));
    box-shadow: 0 -10px 24px -18px rgba(15, 23, 42, 0.7);
}

.admin-form-status {
    color: #f59e0b;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Admin command palette */
.admin-command-palette[hidden] {
    display: none;
}

.admin-command-palette {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.admin-command-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(2, 6, 23, 0.56);
}

.admin-command-dialog {
    position: relative;
    width: min(660px, 92vw);
    margin: 10vh auto 0;
    padding: 14px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 12px;
    background: linear-gradient(180deg, #07152e 0%, #0b1c3b 100%);
    box-shadow: 0 26px 40px -24px rgba(2, 6, 23, 0.85);
}

.admin-command-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.admin-command-head h3 {
    margin: 0;
}

.admin-command-input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(9, 22, 44, 0.92);
    color: #f8fbff;
    border-radius: 10px;
    padding: 10px 12px;
}

.admin-command-list {
    margin-top: 10px;
    display: grid;
    gap: 6px;
    max-height: 52vh;
    overflow: auto;
}

.admin-command-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 27, 51, 0.8);
    color: #e2e8f0;
    border-radius: 10px;
    padding: 9px 10px;
    text-decoration: none;
}

.admin-command-item:hover {
    border-color: rgba(56, 189, 248, 0.75);
    color: #fff;
}

.admin-command-item small {
    color: #9fb2c9;
}

/* Recently edited products */
.admin-recent-products {
    border: 1px solid rgba(56, 189, 248, 0.22);
    background: rgba(6, 18, 38, 0.58);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.admin-recent-products-list {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-recent-product-item {
    border: 1px solid rgba(56, 189, 248, 0.38);
    border-radius: 999px;
    padding: 6px 10px;
    text-decoration: none;
    color: #d8e8ff;
    font-size: 0.86rem;
}

.admin-recent-product-item:hover {
    color: #fff;
    border-color: rgba(56, 189, 248, 0.85);
}

@media (max-width: 980px) {
    .admin-tabbed-form .admin-tab-nav {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 3px;
    }

    .designer-left-stack {
        order: 2;
    }

    .designer-v3-stage .designer-mockup-wrap {
        min-height: 500px;
    }
}

body.admin-body .ql-toolbar.ql-snow {
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

body.admin-body .ql-container.ql-snow {
    border: 0;
    font-family: "Poppins", "Segoe UI", sans-serif;
    color: #111827;
}

/* ===============================
   Tisho V5 Designer Dark Fix
   =============================== */
body.designer-mode .site-header {
    background: #0b1a34;
}

body.designer-mode .designer-studio-page {
    --studio-bg: #071427;
    --studio-surface: #0b1d37;
    --studio-card: #13253f;
    --studio-line: rgba(100, 136, 182, 0.42);
    --studio-text: #e8f2ff;
    --studio-muted: #9eb5d5;
    --studio-accent: #2aa6ff;
    --studio-accent-soft: rgba(29, 116, 235, 0.24);
    --studio-orange: #ff7a12;
    background: linear-gradient(180deg, #0a1730 0%, #081225 100%);
    border: 1px solid rgba(74, 110, 158, 0.5);
}

body.designer-mode .designer-topbar {
    border-bottom-color: rgba(88, 125, 171, 0.42);
}

body.designer-mode .designer-back-link {
    color: #9fc5ff;
}

body.designer-mode .designer-topbar h1 {
    color: #f4f8ff !important;
}

body.designer-mode .studio-action-btn {
    border-color: rgba(102, 143, 195, 0.55);
    background: #10233e;
    color: #f5f8ff;
}

body.designer-mode .studio-action-btn:hover {
    border-color: #56b8ff;
}

body.designer-mode .designer-v3-shell {
    grid-template-columns: 88px 300px minmax(540px, 1fr) 286px;
    min-height: calc(100vh - 250px);
}

body.designer-mode .designer-left-stack {
    max-height: calc(100vh - 280px);
    overflow: auto;
    padding-right: 2px;
}

body.designer-mode .designer-product-settings,
body.designer-mode .designer-v3-panels,
body.designer-mode .designer-v3-stage,
body.designer-mode .designer-views-card,
body.designer-mode .designer-side-right .designer-selected-tools {
    background: #14283f;
    border-color: rgba(95, 131, 175, 0.46);
    color: #e8f2ff;
}

body.designer-mode .designer-product-settings input,
body.designer-mode .designer-product-settings select,
body.designer-mode .designer-tool-panels input,
body.designer-mode .designer-tool-panels select,
body.designer-mode .designer-studio-page .designer-selected-tools input,
body.designer-mode .designer-studio-page .designer-selected-tools select {
    background: #0e2038;
    border-color: rgba(96, 136, 184, 0.45);
    color: #f2f7ff;
}

body.designer-mode .designer-v3-stage .designer-mockup-wrap {
    background: radial-gradient(circle at center 28%, #14273f 0, #0e1f37 60%, #0a1830 100%);
    border-color: rgba(88, 125, 171, 0.45);
    min-height: 560px;
}

body.designer-mode .designer-v3-stage .designer-canvas {
    width: min(690px, 94%);
}

body.designer-mode .designer-v3-stage #design-mockup-image {
    width: clamp(300px, 36vw, 500px);
    max-height: 88%;
    object-position: center center;
    filter: drop-shadow(0 18px 24px rgba(2, 6, 23, 0.65));
}

body.designer-mode .designer-v3-stage .designer-print-area {
    background: rgba(19, 171, 255, 0.06);
    border-color: rgba(56, 189, 248, 0.9);
}

body.designer-mode .designer-v3-stage .print-area-label {
    color: #8fd8ff;
}

body.designer-mode .designer-v3-stage .designer-empty-hint {
    background: rgba(8, 19, 36, 0.86);
    color: #cfe6ff;
    border-color: rgba(103, 146, 198, 0.45);
}

body.designer-mode .designer-view-thumb {
    background: #0f213a;
    border-color: rgba(95, 131, 175, 0.46);
    color: #dbe9ff;
}

body.designer-mode .designer-view-thumb.is-active {
    background: rgba(41, 117, 232, 0.3);
    border-color: #45a7ff;
    color: #fff;
}

body.designer-mode .designer-left-price-box {
    background: #10243d;
    border-color: rgba(105, 144, 194, 0.5);
}

body.designer-mode .designer-left-price-box .designer-price {
    color: #ffffff;
}

body.designer-mode .designer-template-list-wrap strong,
body.designer-mode .designer-helper-row .badge {
    color: #dce9ff;
}

@media (max-width: 1580px) {
    body.designer-mode .designer-v3-shell {
        grid-template-columns: 80px 280px minmax(500px, 1fr) 270px;
    }
}

@media (max-width: 1320px) {
    body.designer-mode .designer-v3-shell {
        grid-template-columns: 76px 260px minmax(420px, 1fr);
    }

    body.designer-mode .designer-left-stack {
        max-height: none;
        overflow: visible;
    }

    body.designer-mode .designer-v3-right {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 980px) {
    body.designer-mode .designer-v3-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    body.designer-mode .designer-v3-stage .designer-mockup-wrap {
        min-height: 460px;
    }

    body.designer-mode .designer-v3-stage #design-mockup-image {
        width: clamp(260px, 66vw, 420px);
    }
}
