:root {
    --bg: #0b1020;
    --bg-soft: #131b33;
    --panel: #ffffff;
    --text: #111827;
    --muted: #55607a;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #0ea5e9;
    --light: #f8fafc;
    --border: #d7deea;
    --success: #0f9d58;
    --danger: #b91c1c;
    --shadow: 0 16px 40px rgba(2, 6, 23, 0.08);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #eef3fb;
    line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(11, 16, 32, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}
.brand {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}
.brand span { color: #7dd3fc; }
.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem;
}
.site-nav a {
    color: #dbe7ff;
    font-size: 0.95rem;
}
.site-nav a.active { color: white; font-weight: 700; }
.button-link,
.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white !important;
    cursor: pointer;
    font-weight: 700;
    box-shadow: var(--shadow);
}
.button.secondary { background: #111827; }
.hero {
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.35), transparent 30%), linear-gradient(135deg, #0b1020, #131b33);
    color: white;
    padding: 5rem 0 4rem;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
    margin: 0 0 1rem;
}
.hero p {
    color: #d8e5ff;
    font-size: 1.05rem;
    max-width: 48rem;
}
.hero-badges,
.stats,
.card-grid,
.product-grid,
.gallery-grid,
.features-grid,
.footer-grid,
.form-grid,
.admin-stats {
    display: grid;
    gap: 1rem;
}
.hero-badges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 2rem;
}
.badge,
.card,
.panel,
.stat,
.gallery-item,
.product-card,
.admin-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.badge {
    padding: 1rem;
    color: var(--text);
}
.hero-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 1.5rem;
}
.hero-panel ul { padding-left: 1.25rem; }
.section {
    padding: 4rem 0;
}
.section h2 {
    font-size: 2rem;
    margin-bottom: 0.6rem;
}
.section-intro {
    max-width: 48rem;
    color: var(--muted);
    margin-bottom: 2rem;
}
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 1.4rem; }
.stat strong { display: block; font-size: 1.6rem; }
.card-grid,
.features-grid,
.product-grid,
.gallery-grid,
.admin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card,
.product-card,
.gallery-item,
.panel,
.admin-card {
    padding: 1.5rem;
}
.card.hovered { transform: translateY(-4px); transition: transform 0.15s ease; }
.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1rem;
}
.price {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0.75rem 0;
}
.pill {
    display: inline-flex;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 700;
}
.flash {
    padding: 0.85rem 0;
}
.flash.success { background: #dcfce7; color: #166534; }
.page-hero {
    background: linear-gradient(135deg, #e2e8f0, #f8fafc);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
}
.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1rem;
}
.form-group.full { grid-column: 1 / -1; }
input, textarea, select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #c6d0df;
    border-radius: 14px;
    font: inherit;
    background: #fff;
}
textarea { min-height: 150px; resize: vertical; }
.site-footer {
    background: var(--bg);
    color: #d1dcf7;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}
.site-footer h3, .site-footer h4 { color: white; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1rem;
}
.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
}
th, td {
    text-align: left;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}
th { background: #eff6ff; }
.status {
    display: inline-flex;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    font-size: 0.8rem;
}
.admin-topbar {
    background: #111827;
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
}
.admin-topbar a { color: #93c5fd; }
.notice {
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    padding: 1rem;
    border-radius: 16px;
}
@media (max-width: 900px) {
    .hero-grid,
    .stats,
    .card-grid,
    .product-grid,
    .gallery-grid,
    .features-grid,
    .footer-grid,
    .form-grid,
    .admin-stats {
        grid-template-columns: 1fr;
    }
    .nav-wrap { flex-direction: column; align-items: flex-start; }
}
