:root {
    --bg: #05080f;
    --surface: #0e1422;
    --surface-light: #131c2f;
    --accent: #7c5dff;
    --accent-2: #35d1ff;
    --text: #ecf2ff;
    --muted: #9aa4c2;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 16px;
    --shadow: 0 15px 35px rgba(5, 8, 15, 0.25);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top, rgba(124, 93, 255, 0.15), transparent 45%) var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1100px, 90%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(15px);
    background: rgba(5, 8, 15, 0.7);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    color: var(--muted);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--text);
}

.hero {
    padding: 5rem 0 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    margin-bottom: 1rem;
}

.hero-card {
    background: linear-gradient(145deg, rgba(19, 28, 47, 0.9), rgba(9, 14, 27, 0.9));
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(124, 93, 255, 0.15);
    color: var(--accent);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.hero-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-meta strong {
    font-size: 1.7rem;
    display: block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn.primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: var(--bg);
}

.btn.secondary {
    background: rgba(124, 93, 255, 0.15);
    color: var(--text);
    border-color: rgba(124, 93, 255, 0.4);
}

.btn.ghost {
    border-color: var(--border);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 93, 255, 0.25);
}

.btn.w-100 {
    width: 100%;
}

.btn.small {
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
}

.section {
    padding: 4rem 0;
}

.section.dark {
    background: rgba(255, 255, 255, 0.02);
}

.section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.product-card .badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
}

.product-card {
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

.product-card.expanded {
    box-shadow: 0 20px 40px rgba(124, 93, 255, 0.25);
}

.product-image {
    border-radius: calc(var(--radius) - 6px);
    overflow: hidden;
    margin: -1.5rem -1.5rem 1rem;
    border-bottom: 1px solid var(--border);
}

.product-image img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.product-body p {
    margin: 0;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: -webkit-line-clamp 0.2s ease;
}

.product-card.expanded .product-body p {
    -webkit-line-clamp: unset;
}

.product-meta {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 1rem 0;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.hover-lift {
    transition: transform 0.2s, border 0.2s;
}

.hover-lift:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 93, 255, 0.4);
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: center;
}

.stat-card {
    display: grid;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(124, 93, 255, 0.08);
    border-radius: var(--radius);
    border: 1px solid rgba(124, 93, 255, 0.2);
}

.stat-card strong {
    font-size: 2rem;
}

.checklist {
    padding: 0;
    list-style: none;
}

.checklist li {
    margin-bottom: 0.7rem;
    position: relative;
    padding-left: 1.5rem;
}

.checklist li::before {
    content: '•';
    color: var(--accent-2);
    position: absolute;
    left: 0;
}

.contact-form {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem;
    color: var(--text);
    margin-top: 0.4rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(53, 209, 255, 0.8);
}

.alert {
    padding: 0.9rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert.success {
    background: rgba(53, 209, 255, 0.15);
    border: 1px solid rgba(53, 209, 255, 0.4);
}

.alert.error {
    background: rgba(255, 92, 120, 0.15);
    border: 1px solid rgba(255, 92, 120, 0.4);
}

.site-footer {
    padding: 3rem 0 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-grid a {
    display: block;
    color: var(--muted);
    margin-top: 0.4rem;
    font-size: 0.9rem;
}

.copy {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0;
}

.admin-link {
    border: 1px solid var(--border);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

.admin-body {
    background: radial-gradient(circle at top, rgba(53, 209, 255, 0.1), transparent 55%) var(--bg);
}

.admin-wrapper {
    width: min(1100px, 92%);
    margin: 0 auto;
    padding: 3rem 0 4rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-actions {
    display: flex;
    gap: 0.8rem;
}

.auth-card,
.form-card,
.table-card,
.messages-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.auth-card form label {
    display: block;
    margin-bottom: 1rem;
}

.auth-card input {
    width: 100%;
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-light);
    color: var(--text);
    margin-top: 0.4rem;
}

.hint {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 1rem;
    text-align: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-form label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 1rem;
}

.admin-form input,
.admin-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem;
    margin-top: 0.4rem;
    background: var(--surface-light);
    color: var(--text);
}

.settings-form textarea {
    min-height: 90px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th,
td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

th {
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.link-btn {
    background: none;
    border: none;
    color: var(--accent-2);
    cursor: pointer;
    padding: 0;
}

.table-links {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.table-links a {
    color: var(--accent-2);
    font-size: 0.85rem;
}

.table-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.table-actions form {
    margin: 0;
}

.messages-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.message-list li {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.message-list li:last-child {
    border-bottom: none;
}

.message-list strong {
    display: block;
}

.message-list span {
    color: var(--muted);
    font-size: 0.85rem;
}

.message-list p {
    margin: 0.5rem 0 0;
}

@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 70px;
        right: 5%;
        flex-direction: column;
        background: rgba(5, 8, 15, 0.95);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 1rem;
        display: none;
    }

    .main-nav.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

