:root {
    color-scheme: dark;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0f172a;
    color: #ffffff;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.14), transparent 28%),
                radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.12), transparent 30%),
                #0f172a;
    color: #e2e8f0;
}
img {
    max-width: 100%;
    display: block;
}
a {
    color: #3b82f6;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.site-banner {
    background: #111827;
    color: #fde68a;
    text-align: center;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.92);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
}
.brand span {
    display: block;
    margin-top: 0.25rem;
    color: #94a3b8;
    font-size: 0.95rem;
}
.site-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.site-nav a {
    padding: 0.7rem 0.9rem;
    background: rgba(148, 163, 184, 0.08);
    border-radius: 999px;
    color: #e2e8f0;
    transition: background 0.2s ease;
}
.site-nav a:hover {
    background: rgba(59, 130, 246, 0.18);
}
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
}
.site-main {
    padding: 2rem 1.5rem 3rem;
    max-width: 1240px;
    margin: 0 auto;
}
.section {
    margin-bottom: 2.5rem;
}
.section-header {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}
.section-header h2 {
    margin: 0;
    font-size: clamp(1.65rem, 2vw, 2.25rem);
}
.section-header p {
    margin: 0;
    color: #cbd5e1;
    max-width: 70ch;
}
.hero-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2.5rem;
}
.hero-copy .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.82rem;
    margin-bottom: 1rem;
}
.hero-copy h1 {
    margin: 0;
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.05;
}
.hero-copy p {
    max-width: 55ch;
    color: #cbd5e1;
    margin: 1.5rem 0;
    font-size: 1rem;
    line-height: 1.8;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.hero-visual {
    min-height: 320px;
    display: grid;
    place-items: center;
}
.hero-card {
    background: #12233b;
    border: 1px solid rgba(59, 130, 246, 0.16);
    padding: 2rem;
    border-radius: 1.5rem;
    width: 100%;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.35);
}
.hero-card-heading {
    color: #22c55e;
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.95rem;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.product-card {
    background: #1e293b;
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.08);
}
.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.28);
}
.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    margin-bottom: 1rem;
}
.product-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}
.product-card p {
    margin: 0 0 1.2rem;
    color: #cbd5e1;
    line-height: 1.75;
}
.product-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}
.tag {
    color: #94a3b8;
    font-size: 0.95rem;
}
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.overview-card {
    background: #1e293b;
    border-radius: 1.25rem;
    padding: 1.7rem;
    border: 1px solid rgba(148, 163, 184, 0.08);
}
.overview-card h3 {
    margin-top: 0;
}
.overview-card p {
    margin: 0.85rem 0 0;
    color: #cbd5e1;
    line-height: 1.75;
}
.summary-card {
    background: #1e293b;
    padding: 1.6rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.08);
}
.accent-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border-color: rgba(34, 197, 94, 0.18);
}
.summary-card h3 {
    margin: 0 0 1rem;
}
.summary-metrics {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.summary-metrics div {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 1rem;
    padding: 1rem;
}
.summary-metrics span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
}
.summary-metrics p {
    margin: 0.5rem 0 0;
    color: #94a3b8;
}
.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.quick-links li {
    margin-bottom: 0.9rem;
}
.quick-links a {
    color: #ffffff;
}
.orders-table-wrap {
    overflow-x: auto;
    background: #111827;
    border-radius: 1.25rem;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.08);
}
.orders-table {
    width: 100%;
    border-collapse: collapse;
}
.orders-table th,
.orders-table td {
    padding: 1rem 1rem;
    color: #e2e8f0;
    text-align: left;
}
.orders-table thead th {
    color: #94a3b8;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.orders-table tbody tr {
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.order-product {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.order-product img {
    width: 42px;
    height: 42px;
    border-radius: 0.9rem;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease;
}
.button:hover {
    transform: translateY(-1px);
}
.button.primary {
    background: #3b82f6;
    color: #ffffff;
}
.button.secondary {
    background: rgba(59, 130, 246, 0.14);
    color: #ffffff;
}
.button.tertiary {
    background: rgba(34, 197, 94, 0.16);
    color: #e2e8f0;
}
.alert {
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.alert-error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: #fee2e2;
}
.alert-success {
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.24);
    color: #d1fae5;
}
.auth-section {
    display: grid;
    place-items: center;
}
.form-panel {
    width: min(100%, 480px);
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 1.5rem;
    padding: 2rem;
}
.form-panel h2 {
    margin-top: 0;
}
.form-panel p {
    color: #94a3b8;
    margin: 0.75rem 0 1.75rem;
}
.form-panel label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    font-size: 0.95rem;
}
.form-panel input {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
    margin-bottom: 1.2rem;
}
.form-panel input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.form-note {
    margin-top: 1rem;
    color: #94a3b8;
}
.password-strength {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-top: -0.75rem;
    margin-bottom: 1.15rem;
}
.empty-state {
    text-align: center;
    padding: 2rem;
    background: #1e293b;
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.08);
}
.empty-state p {
    margin: 0 0 1.25rem;
    color: #cbd5e1;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.dashboard-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
@media (max-width: 960px) {
    .hero-section,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .site-nav {
        position: absolute;
        right: 1.5rem;
        top: 100%;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        border-radius: 1rem;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-2rem);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }
    .site-nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .mobile-menu-toggle {
        display: inline-flex;
    }
}
@media (max-width: 720px) {
    .site-header {
        flex-direction: column;
        align-items: stretch;
    }
    .product-card img {
        height: 160px;
    }
    .overview-grid,
    .orders-table-wrap {
        width: 100%;
    }
}
