﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #0d2d5a;
    --blue: #1a4b82;
    --blue-mid: #2563b0;
    --blue-lt: #e6f0fb;
    --gold: #c9a84c;
    --text: #1a2f4a;
    --muted: #6b7280;
    --border: #e2e8f0;
    --white: #ffffff;
}

html, body {
    font-family: 'Lexend', sans-serif;
    background: #f0f4f8;
    min-height: 100vh;
}

/* ── Topbar ─────────────────────────────────── */
.sv-topbar {
    background: var(--navy);
    padding: 0 32px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(13,45,90,0.25);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .topbar-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 3px;
    }

.topbar-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.01em;
}

    .topbar-name span {
        display: block;
        font-size: 10px;
        font-weight: 300;
        color: rgba(255,255,255,0.45);
        letter-spacing: 0.06em;
    }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.8);
}

.topbar-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--blue-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.2);
}

.btn-logout {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 12px;
    font-family: 'Lexend', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .btn-logout:hover {
        background: rgba(255,255,255,0.14);
        color: white;
    }

/* ── Main layout ─────────────────────────────── */
.sv-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

/* ── Page title ──────────────────────────────── */
.page-title-row {
    margin-bottom: 24px;
}

.page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--blue-lt);
    color: var(--blue-mid);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.page-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.page-sub {
    font-size: 13px;
    font-weight: 300;
    color: var(--muted);
}

/* ── Card ────────────────────────────────────── */
.sv-card {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(26,75,130,0.06);
}

.sv-card-header {
    padding: 16px 22px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sv-card-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.sv-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}

.sv-card-sub {
    font-size: 11.5px;
    font-weight: 300;
    color: var(--muted);
    margin-top: 1px;
}

.sv-card-body {
    padding: 20px 22px;
}

/* ── Info grid ───────────────────────────────── */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.info-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .info-item:nth-child(odd) {
        border-right: 1px solid #f1f5f9;
    }

    .info-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .info-item.full-width {
        grid-column: 1 / -1;
        border-right: none;
    }

.info-label {
    font-size: 10.5px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.info-value {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
}

    .info-value.highlight {
        color: var(--blue-mid);
        font-weight: 600;
    }

/* ── Form đăng ký ────────────────────────────── */
.reg-field {
    margin-bottom: 16px;
}

.reg-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.reg-textarea {
    width: 100%;
    border: 1.5px solid #dde5f0;
    border-radius: 11px;
    padding: 11px 14px;
    font-size: 13.5px;
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    color: var(--text);
    background: #fafafa;
    resize: none;
    outline: none;
    transition: all 0.2s;
    line-height: 1.65;
}

    .reg-textarea:focus {
        border-color: var(--blue-mid);
        background: var(--white);
        box-shadow: 0 0 0 4px rgba(37,99,176,0.07);
    }

    .reg-textarea::placeholder {
        color: #c0ccd8;
        font-weight: 300;
    }

/* Nút submit */
.btn-submit-reg {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue-mid) 100%);
    color: white;
    border: none;
    border-radius: 11px;
    font-family: 'Lexend', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 4px 14px rgba(37,99,176,0.3);
    transition: all 0.2s;
}

    .btn-submit-reg:hover {
        background: linear-gradient(135deg, #0a2248 0%, var(--blue) 100%);
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(37,99,176,0.4);
    }

    .btn-submit-reg:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none !important;
    }

/* ── Lịch sử đơn ─────────────────────────────── */
.don-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

    .don-item:last-child {
        border-bottom: none;
    }

.don-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.don-info {
    flex: 1;
    min-width: 0;
}

.don-ma {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-mid);
}

.don-date {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
}

.don-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.badge-tt {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 20px;
}

.btn-download {
    background: var(--blue-lt);
    color: var(--blue-mid);
    border: 1px solid rgba(37,99,176,0.18);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 11.5px;
    font-family: 'Lexend', sans-serif;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: all 0.2s;
}

    .btn-download:hover {
        background: #d8ecff;
        color: var(--navy);
    }

/* ── Toast ───────────────────────────────────── */
.toast-container {
    z-index: 9999;
    margin-top: 70px;
}

/* ── Empty state ─────────────────────────────── */
.empty-don {
    padding: 32px 16px;
    text-align: center;
}

    .empty-don i {
        font-size: 32px;
        color: #d1d5db;
        margin-bottom: 10px;
    }

    .empty-don p {
        font-size: 13px;
        color: var(--muted);
    }

/* ── Alert note ──────────────────────────────── */
.sv-note {
    padding: 12px 16px;
    background: var(--blue-lt);
    border: 1px solid rgba(37,99,176,0.18);
    border-radius: 10px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 16px;
}

    .sv-note i {
        color: var(--blue-mid);
        font-size: 13px;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .sv-note p {
        font-size: 12px;
        color: #1e3a5f;
        line-height: 1.65;
        margin: 0;
    }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 600px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-item:nth-child(odd) {
        border-right: none;
    }

    .info-item:nth-last-child(-n+2) {
        border-bottom: 1px solid #f1f5f9;
    }

    .info-item:last-child {
        border-bottom: none;
    }

    .sv-topbar {
        padding: 0 16px;
    }

    .sv-main {
        padding: 20px 12px 48px;
    }
}
