:root {
    --bg: #0a0a12;
    --bg-soft: #111827;
    --bg-card: #161b2e;
    --border: #2a3350;
    --text: #eef2ff;
    --muted: #94a3b8;
    --primary: #22d3ee;
    --primary-dark: #0891b2;
    --accent: #38bdf8;
    --success: #22c55e;
    --danger: #ef4444;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    --radius: 14px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 20, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: Rajdhani, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    white-space: nowrap;
}

.logo-image {
    height: 54px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}

.logo-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #041018;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
}

.main-nav > a,
.nav-dropdown > button {
    color: var(--muted);
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    padding: 0.4rem 0;
}

.main-nav > a:hover,
.nav-dropdown > button:hover,
.main-nav > a.active {
    color: var(--primary);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    color: var(--muted);
}

.dropdown-menu a:hover {
    background: rgba(34, 211, 238, 0.12);
    color: var(--text);
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-form input {
    width: 220px;
    max-width: 40vw;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 999px;
    padding: 0.65rem 1rem;
}

.cart-link {
    position: relative;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    font-weight: 600;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--primary);
    color: #041018;
    font-size: 0.75rem;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    font-size: 1.2rem;
}

.page-hero {
    padding: 2.5rem 0 1.5rem;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}

.page-hero.compact {
    padding-bottom: 1rem;
}

.page-hero h1 {
    font-family: Rajdhani, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0.5rem 0;
    line-height: 1.1;
}

.hero-text,
.result-count {
    color: var(--muted);
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumb a:hover {
    color: var(--primary);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: #05070d;
}

.hero-slider-track {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s ease;
    background-color: #05070d;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(5, 7, 13, 0.55) 0%, rgba(5, 7, 13, 0.82) 55%, rgba(5, 7, 13, 0.95) 100%),
        radial-gradient(circle at 50% 35%, rgba(34, 211, 238, 0.12), transparent 55%);
}

.hero-slide-beam {
    position: absolute;
    top: -5%;
    left: 50%;
    transform: translateX(-50%);
    width: min(360px, 38vw);
    height: 115%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    filter: blur(10px);
    opacity: 0.55;
    pointer-events: none;
}

.hero-slide.has-photo {
    background-size: cover;
    background-position: center;
}

.hero-slide.has-photo .hero-slide-overlay {
    background:
        linear-gradient(180deg, rgba(5, 7, 13, 0.35) 0%, rgba(5, 7, 13, 0.72) 55%, rgba(5, 7, 13, 0.92) 100%),
        radial-gradient(circle at 50% 35%, rgba(34, 211, 238, 0.08), transparent 55%);
}

.hero-slide-1 {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.18), transparent 35%),
        linear-gradient(135deg, #07111f 0%, #0d1830 45%, #05070d 100%);
}

.hero-slide-2 {
    background-image:
        radial-gradient(circle at 75% 25%, rgba(56, 189, 248, 0.2), transparent 38%),
        linear-gradient(135deg, #08101c 0%, #10233d 50%, #05070d 100%);
}

.hero-slide-3 {
    background-image:
        radial-gradient(circle at 50% 20%, rgba(34, 211, 238, 0.15), transparent 40%),
        linear-gradient(160deg, #0a1220 0%, #111827 55%, #05070d 100%);
}

.hero-slide-4 {
    background-image:
        radial-gradient(circle at 30% 40%, rgba(14, 165, 233, 0.16), transparent 42%),
        linear-gradient(145deg, #060b14 0%, #0f172a 48%, #05070d 100%);
}

.hero-slide-5 {
    background-image:
        radial-gradient(circle at 65% 35%, rgba(34, 211, 238, 0.2), transparent 45%),
        linear-gradient(125deg, #070c16 0%, #132033 52%, #05070d 100%);
}

.hero-slide-inner {
    position: relative;
    z-index: 2;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem 5.5rem;
    pointer-events: auto;
}

.hero-slide-inner h2 {
    font-family: Rajdhani, sans-serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
    margin: 0 0 1rem;
    max-width: 16ch;
}

.hero-slide-inner p {
    color: rgba(238, 242, 255, 0.82);
    max-width: 62ch;
    margin: 0 0 1.75rem;
    font-size: 1.02rem;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    color: #fff;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px);
    transition: 0.25s ease;
}

.btn-hero:hover {
    background: rgba(34, 211, 238, 0.14);
    border-color: rgba(34, 211, 238, 0.85);
    color: #fff;
}

.hero-slider-tabs {
    position: absolute;
    left: 50%;
    bottom: 1.75rem;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    pointer-events: auto;
}

.hero-tab {
    position: relative;
    width: 56px;
    height: 14px;
    padding: 5px 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    overflow: visible;
    pointer-events: auto;
}

.hero-tab::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.hero-tab::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 3px;
    transform: translateY(-50%) scaleX(0);
    transform-origin: left center;
    border-radius: inherit;
    background: #fff;
    pointer-events: none;
}

.hero-tab.is-active::before {
    background: rgba(255, 255, 255, 0.18);
}

.hero-tab.is-active::after {
    animation: hero-tab-progress 5s linear forwards;
}

@keyframes hero-tab-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.home-list-hero {
    padding-top: 1.25rem;
}

.home-list-hero h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.home-banner {
    position: relative;
    padding: 4rem 0 2.5rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 120% at 50% -30%, rgba(34, 211, 238, 0.22), transparent 62%),
        radial-gradient(ellipse 55% 70% at 50% 45%, rgba(56, 189, 248, 0.1), transparent 72%),
        linear-gradient(180deg, #070b14 0%, #0a101c 45%, var(--bg) 100%);
}

.home-banner::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: min(420px, 40vw);
    height: 130%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(34, 211, 238, 0.04) 18%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(34, 211, 238, 0.04) 82%,
        transparent 100%
    );
    filter: blur(8px);
    pointer-events: none;
}

.home-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%),
        radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.08), transparent 38%);
    pointer-events: none;
}

.home-banner-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.banner-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(18, 28, 48, 0.82), rgba(8, 12, 22, 0.92));
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

.banner-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(34, 211, 238, 0.14), transparent 45%, rgba(56, 189, 248, 0.08));
    pointer-events: none;
}

.banner-card > * {
    position: relative;
    z-index: 1;
}

.banner-card h2 {
    font-family: Rajdhani, sans-serif;
    font-size: 2.2rem;
    margin: 0 0 0.75rem;
}

.banner-card p {
    color: var(--muted);
    max-width: 55ch;
}

.banner-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.banner-stats {
    display: grid;
    gap: 1rem;
}

.stat-box {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(18, 28, 48, 0.72), rgba(8, 12, 22, 0.88));
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), transparent 55%);
    pointer-events: none;
}

.stat-box:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: 0 12px 30px rgba(34, 211, 238, 0.08);
}

.stat-box strong,
.stat-box span {
    position: relative;
    z-index: 1;
}

.stat-box strong {
    display: block;
    font-family: Rajdhani, sans-serif;
    font-size: 2rem;
    color: var(--primary);
}

.shop-toolbar {
    padding: 1rem 0 1.5rem;
}

.toolbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.toolbar-form select {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    padding-bottom: 2rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.45);
}

.product-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: #0f141b;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1a2230, #10161f);
    color: var(--primary);
    font-family: Rajdhani, sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.product-placeholder.large {
    min-height: 360px;
    border-radius: var(--radius);
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(11, 15, 20, 0.85);
    border: 1px solid var(--border);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--primary);
}

.product-body {
    padding: 1rem;
}

.product-body h2 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    line-height: 1.35;
}

.product-body h2 a:hover {
    color: var(--primary);
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 0.85rem;
}

.stars span {
    color: #334155;
}

.stars span.filled {
    color: var(--primary);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.price,
.price-large {
    color: var(--primary);
    font-weight: 700;
}

.price-large {
    font-size: 2rem;
    font-family: Rajdhani, sans-serif;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #041018;
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.btn-secondary {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-sm {
    padding: 0.5rem 0.8rem;
    font-size: 0.88rem;
}

.btn-lg {
    padding: 0.85rem 1.25rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding-bottom: 3rem;
}

.page-link {
    min-width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--muted);
}

.page-link.active,
.page-link:hover {
    background: rgba(34, 211, 238, 0.15);
    color: var(--primary);
    border-color: rgba(34, 211, 238, 0.35);
}

.product-detail {
    padding-bottom: 3rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.product-gallery img,
.product-gallery .product-placeholder {
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.product-info h1 {
    font-family: Rajdhani, sans-serif;
    font-size: 2.5rem;
    margin: 0.5rem 0 1rem;
}

.product-short {
    color: var(--muted);
}

.product-meta {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.product-description {
    margin-top: 2rem;
}

.content-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.download-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.1rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 12px;
    background: rgba(34, 211, 238, 0.08);
}

.download-box p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.file-current {
    padding: 0.85rem 1rem;
    border: 1px dashed var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.logo-preview-wrap {
    display: inline-flex;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: #0a0a12;
    border: 1px solid var(--border);
}

.logo-preview {
    height: 64px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
}

.cart-section,
.contact-section {
    padding-bottom: 3rem;
}

.cart-table-wrap {
    overflow-x: auto;
}

.cart-table,
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td,
.admin-table th,
.admin-table td {
    padding: 0.9rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.cart-table small {
    display: block;
    color: var(--muted);
}

.cart-summary {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.summary-box {
    width: min(420px, 100%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    font-size: 1.1rem;
}

.summary-note {
    color: var(--muted);
    font-size: 0.92rem;
}

.clear-cart-form {
    margin-top: 0.75rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.empty-state,
.page-404 {
    text-align: center;
    padding: 4rem 0;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.alert.success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.alert.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.site-footer {
    margin-top: 3rem;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding: 2.5rem 0;
}

.footer-grid h3,
.footer-grid h4 {
    font-family: Rajdhani, sans-serif;
    margin-top: 0;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-grid li {
    margin-bottom: 0.5rem;
}

.footer-grid a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    color: var(--muted);
    padding: 1rem 0;
}

.product-video {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    width: 100%;
}

.product-description {
    margin-top: 2rem;
    width: 100%;
}

.product-description h2 {
    margin: 0 0 1rem;
}

.product-content-video {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    margin: 0 0 1.5rem;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #000;
}

.product-content-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (min-width: 992px) {
    .product-content-video {
        padding-bottom: 0;
        height: 620px;
    }
}

.inline-video {
    margin-bottom: 1.25rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background-size: cover;
    background-position: center;
    color: var(--text);
    background-color: #111;
}

.video-body {
    padding: 1rem 1.1rem 1.25rem;
}

.video-body h2 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.video-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

/* Admin */
.admin-auth {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.auth-card {
    width: min(420px, 100%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.auth-card h1 {
    font-family: Rajdhani, sans-serif;
    margin: 0;
}

.auth-card form {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.auth-card label,
.admin-form label {
    display: grid;
    gap: 0.4rem;
    font-weight: 500;
}

.auth-card input,
.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    font: inherit;
}

.auth-note,
.back-link {
    display: block;
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-body {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--bg-soft);
    border-right: 1px solid var(--border);
    padding: 1.25rem;
}

.admin-sidebar .logo {
    display: block;
    font-family: Rajdhani, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.admin-sidebar nav {
    display: grid;
    gap: 0.35rem;
}

.admin-sidebar a {
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    color: var(--muted);
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
    background: rgba(34, 211, 238, 0.12);
    color: var(--primary);
}

.admin-topbar {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.admin-topbar h1 {
    margin: 0;
    font-family: Rajdhani, sans-serif;
}

.admin-content {
    padding: 1.5rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.stat-card strong {
    display: block;
    font-family: Rajdhani, sans-serif;
    font-size: 2rem;
    color: var(--primary);
}

.admin-panel-grid {
    display: grid;
    gap: 1rem;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.admin-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-card h2 {
    margin: 0;
    font-family: Rajdhani, sans-serif;
}

.quick-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.form-grid .checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-grid .checkbox input {
    width: auto;
}

.preview-image img {
    max-width: 220px;
    border-radius: 10px;
    margin: 1rem 0;
    border: 1px solid var(--border);
}

.actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.actions form {
    display: inline;
}

.link-danger {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 0;
    font: inherit;
}

@media (max-width: 960px) {
    .menu-toggle {
        display: inline-block;
    }

    .main-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-soft);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        display: none;
    }

    .main-nav.open {
        display: flex;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0.5rem;
    }

    .home-banner-grid,
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-body {
        grid-template-columns: 1fr;
    }

    .admin-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}
