:root {
    --primary: #243b53;
    --sidebar: #142536;
    --secondary: #3e5c76;
    --accent: #d9a441;
    --background: #f4f6f9;

    --white: #ffffff;
    --text: #243b53;
    --muted: #64748b;
    --border: #dce2e8;
    --success: #287a50;
    --danger: #b93838;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
}

h1, h2, h3, h4 {
    line-height: 1.25;
    margin-top: 0;
    color: var(--primary);
}

h1 {
    font-size: 42px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 20px;
}

p {
    margin: 0 0 18px;
}

a {
    color: var(--secondary);
    text-decoration: none;
}

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

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

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

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

.narrow {
    width: min(800px, 92%);
    margin: 0 auto;
}

.topbar {
    background: var(--sidebar);
    color: #dce2e8;
    font-size: 12px;
    padding: 8px 0;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
}

.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--accent);
}

.navbar {
    min-height: 85px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.logo {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 3px;
}

.logo img {
    width: auto;
    max-width: 190px;
    max-height: 65px;
}

.logo span {
    color: var(--accent);
}

nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    font-weight: 600;
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 3px;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

.btn:hover {
    background: var(--secondary);
}

.btn-accent {
    background: var(--accent);
    color: var(--sidebar);
}

.btn-accent:hover {
    background: #c49336;
    color: var(--sidebar);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    color: var(--white);
}

.btn-block {
    width: 100%;
}

.hero {
    min-height: 570px;
    background:
        linear-gradient(
            90deg,
            rgba(20,37,54,.96),
            rgba(36,59,83,.75),
            rgba(36,59,83,.08)
        ),
        url('../images/hero.png') center / cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-content {
    max-width: 650px;
    padding: 80px 0;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 58px);
    color: var(--white);
    margin-bottom: 22px;
}

.hero p {
    font-size: 18px;
    color: #e4eaf0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
}

.section {
    padding: 75px 0;
}

.section-white {
    background: var(--white);
}

.section-title {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 35px;
}

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

.feature {
    background: var(--white);
    padding: 28px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
}

.feature-number {
    font-size: 30px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 55px;
}

.product-image {
    width: 100%;
    min-height: 340px;
    object-fit: cover;
    border-radius: 3px;
}

.product-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 13px;
}

.checklist {
    padding-left: 20px;
    margin-bottom: 25px;
}

.checklist li {
    padding: 4px 0;
}

.order-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    padding: 28px;
    margin-bottom: 22px;
    border-radius: 3px;
}

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

.form-group {
    margin-bottom: 15px;
}

.form-grid .form-group {
    margin-bottom: 0;
}

.full-width {
    grid-column: 1 / -1;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ccd5de;
    border-radius: 3px;
    background: var(--white);
    color: var(--primary);
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 1px;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.choice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-weight: 400;
    padding: 8px 0;
}

.choice input {
    margin-top: 5px;
}

.recipient {
    border: 1px solid var(--border);
    background: var(--background);
    padding: 20px;
    margin-top: 20px;
}

.summary {
    position: sticky;
    top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.summary-total {
    font-size: 23px;
    font-weight: 700;
    border-bottom: 0;
    margin-bottom: 20px;
}

.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-left: 4px solid;
    background: var(--white);
}

.alert-error {
    color: var(--danger);
    border-color: var(--danger);
    background: #fff3f3;
}

.alert-success {
    color: var(--success);
    border-color: var(--success);
    background: #edf8f1;
}

.page-header {
    background: var(--primary);
    padding: 50px 0;
    border-bottom: 3px solid var(--accent);
}

.page-header h1 {
    color: var(--white);
    margin: 0;
}

.site-footer {
    background: var(--sidebar);
    color: #cbd5df;
    padding: 45px 0 20px;
}

.site-footer h3 {
    color: var(--white);
}

.site-footer a {
    color: #cbd5df;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 35px;
}

.footer-links a {
    display: block;
    padding: 4px 0;
}

.copyright {
    border-top: 1px solid #3e5c76;
    margin-top: 25px;
    padding-top: 20px;
    font-size: 13px;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.auth-card {
    width: min(440px, 100%);
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
    padding: 35px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.verification-code {
    text-align: center;
    letter-spacing: 10px;
    font-size: 26px !important;
}

.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
}

.admin-sidebar {
    background: var(--sidebar);
    color: var(--white);
    padding: 28px 20px;
}

.admin-sidebar .logo {
    color: var(--white);
}

.admin-sidebar a {
    display: block;
    padding: 13px;
    color: var(--white);
    margin: 5px 0;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: var(--secondary);
    border-left: 3px solid var(--accent);
}

.admin-main {
    padding: 30px;
    min-width: 0;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stat {
    background: var(--white);
    padding: 22px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    margin-bottom: 25px;
}

.stat strong {
    display: block;
    font-size: 26px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    padding: 13px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

th {
    background: var(--background);
}

.status {
    display: inline-block;
    font-size: 12px;
    padding: 4px 9px;
    background: #e5eaf0;
    color: var(--primary);
}

.status-processing {
    background: #fff1d2;
    color: #79550c;
}

.status-completed {
    background: #e3f2e8;
    color: var(--success);
}

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

@media (max-width: 900px) {

    .order-layout,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .summary {
        position: static;
    }

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

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

    .admin-sidebar {
        padding: 15px;
    }

    .admin-main {
        padding: 20px;
    }
}

@media (max-width: 650px) {

    .navbar {
        flex-wrap: wrap;
        padding: 15px 0;
        gap: 12px;
    }

    nav {
        flex-wrap: wrap;
        gap: 15px;
        font-size: 13px;
    }

    .topbar .container {
        justify-content: center;
    }

    .topbar-extra {
        display: none;
    }

    .hero {
        min-height: 480px;
        background-position: 65% center;
    }

    .hero-content {
        padding: 55px 0;
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        padding: 45px 0;
    }

    .features,
    .form-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 20px;
    }

    .filter-bar {
        flex-direction: column;
    }

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

    .stat {
        padding: 14px;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 25px;
    }
}