@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
    --bg: #0b1120;
    --bg-soft: #111a2f;
    --surface: #ffffff;
    --surface-soft: rgba(255,255,255,0.78);
    --text: #1d2739;
    --muted: #64748b;
    --line: #e2e8f0;
    --primary: #2563eb;
    --primary-strong: #1d4ed8;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: "Inter", Arial, sans-serif;
    background: linear-gradient(180deg, #eef4ff 0%, #f8fafc 22%, #f8fafc 100%);
    color: var(--text);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
main { min-height: calc(100vh - 170px); }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(14px);
    background: rgba(248, 250, 252, 0.84);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}
.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
    text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 44px; height: 44px; border-radius: 14px;
    display: grid; place-items: center;
    color: white; font-weight: 800;
    background: linear-gradient(135deg, #2563eb, #0f172a);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.nav-links, .header-actions { display: flex; align-items: center; gap: 12px; }
.nav-links a {
    padding: 10px 14px; border-radius: 999px; color: #334155; font-weight: 500;
}
.nav-links a.active, .nav-links a:hover { background: #dbeafe; color: #1d4ed8; text-decoration: none; }
.user-chip {
    display: inline-flex; align-items: center; padding: 10px 14px;
    border-radius: 999px; background: #e2e8f0; color: #0f172a; font-weight: 600;
}

.hero {
    display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 28px;
    padding: 48px 0 28px;
    align-items: stretch;
}
.hero-copy h1, .auth-card h1, .section-head h1, .order-summary-card h1, .admin-topbar h1 {
    margin: 10px 0 12px; line-height: 1.06; font-size: clamp(2.1rem, 4vw, 3.75rem);
}
.hero-copy p { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.eyebrow {
    display: inline-flex; padding: 8px 12px; border-radius: 999px;
    background: #dbeafe; color: #1d4ed8; font-weight: 700; font-size: 13px; letter-spacing: .02em;
}
.hero-stats {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px;
}
.hero-stats div, .stat-card {
    background: rgba(255,255,255,.8); border: 1px solid rgba(226,232,240,.9);
    border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow);
}
.hero-stats strong, .stat-card strong { display: block; font-size: 1.6rem; margin-bottom: 6px; }
.hero-stats span, .stat-card span { color: var(--muted); font-size: 14px; }
.glass, .card, .auth-card {
    background: var(--surface-soft);
    border: 1px solid rgba(255,255,255,0.75);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}
.hero-panel, .card, .auth-card {
    border-radius: var(--radius-xl); padding: 28px;
}
.panel-badge {
    display: inline-flex; padding: 8px 12px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-weight: 600;
}

.feature-grid, .stats-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-bottom: 36px;
}
.feature-card {
    background: white; border-radius: 24px; padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.feature-card h3 { margin-top: 0; margin-bottom: 8px; }
.feature-card p, .muted { color: var(--muted); }

.form-grid { display: grid; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label, .field-label { display: grid; gap: 8px; font-weight: 600; color: #334155; }
input, select, textarea, button { font: inherit; }
input, select, textarea {
    width: 100%; border: 1px solid #cbd5e1; border-radius: 16px; padding: 14px 16px; background: white;
    transition: .2s border-color, .2s box-shadow, .2s transform;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: #60a5fa; box-shadow: 0 0 0 4px rgba(96,165,250,.18);
}
textarea { resize: vertical; min-height: 140px; }
button, .button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: none; border-radius: 16px; padding: 14px 20px; cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: #fff; font-weight: 700;
    text-decoration: none; box-shadow: 0 14px 24px rgba(37, 99, 235, 0.28);
}
button:hover, .button:hover { text-decoration: none; transform: translateY(-1px); }
.button.ghost, button.ghost {
    background: #fff; color: #0f172a; border: 1px solid var(--line); box-shadow: none;
}
button.danger { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.full-width { width: 100%; }
.alert {
    padding: 14px 16px; border-radius: 16px; margin-bottom: 14px;
    background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8;
}
.alert.error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.alert.success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }

.auth-shell, .page-section { padding: 42px 0; }
.auth-card { max-width: 720px; margin: 0 auto; }
.order-shell { display: grid; grid-template-columns: 1.08fr .92fr; gap: 24px; padding: 42px 0; }
.section-head, .admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.section-head.small-gap { margin-bottom: 16px; }
.summary-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0;
}
.summary-item {
    border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 16px;
}
.summary-item span { display: block; color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.center { text-align: center; }
.left-align { text-align: left; }
.qr { max-width: 100%; width: 340px; border-radius: 24px; background: white; padding: 12px; box-shadow: 0 18px 42px rgba(15,23,42,.12); }
pre {
    white-space: pre-wrap; word-break: break-word; background: #f8fafc; padding: 14px; border-radius: 16px; border: 1px solid var(--line);
}
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 980px; }
th, td { padding: 14px 12px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
th { color: #475569; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.inline { display: flex; gap: 8px; flex-wrap: wrap; }
.status {
    display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
}
.status.pending { background: #fef3c7; color: #92400e; }
.status.waiting_review { background: #dbeafe; color: #1d4ed8; }
.status.paid { background: #dcfce7; color: #166534; }
.status.cancelled { background: #fee2e2; color: #b91c1c; }
.site-footer {
    border-top: 1px solid rgba(226,232,240,.9); padding: 22px 0 34px; background: rgba(248,250,252,.9);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.admin-body, .admin-auth-body { background: linear-gradient(180deg, #0f172a 0%, #111827 100%); }
.admin-shell { padding: 34px 0; }
.admin-topbar h1, .admin-topbar .eyebrow, .admin-body .card, .admin-body .stat-card { color: #fff; }
.admin-topbar .eyebrow { background: rgba(59,130,246,.15); color: #bfdbfe; }
.admin-body .card, .admin-body .stat-card {
    background: rgba(15,23,42,.85); border: 1px solid rgba(148,163,184,.18); box-shadow: 0 18px 44px rgba(0,0,0,.32);
}
.admin-body table th, .admin-body table td, .admin-body .muted, .admin-body pre { color: #e2e8f0; }
.admin-body pre { background: rgba(30,41,59,.6); border-color: rgba(148,163,184,.16); }
.admin-body th { color: #94a3b8; }
.admin-body .button.ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.12); }

@media (max-width: 980px) {
    .hero, .order-shell, .feature-grid, .stats-grid, .grid-2, .summary-grid { grid-template-columns: 1fr; }
    .header-inner, .footer-inner, .section-head, .admin-topbar { flex-direction: column; align-items: stretch; }
    .nav-links, .header-actions { flex-wrap: wrap; }
    .hero { padding-top: 28px; }
}

@media (max-width: 640px) {
    .hero-panel, .card, .auth-card { padding: 20px; border-radius: 22px; }
    .shell { width: min(100% - 20px, 1180px); }
    .hero-copy h1, .auth-card h1, .section-head h1, .order-summary-card h1, .admin-topbar h1 { font-size: 2rem; }
}



/* chỉnh layout trang order */

.order-layout{
display:grid;
grid-template-columns: 1.6fr 1fr;
gap:30px;
max-width:1100px;
margin:auto;
}

/* card bên trái */

.order-info{
padding:30px;
}

/* card QR */

.order-qr{
padding:30px;
max-width:360px;
}

/* responsive */

@media (max-width:900px){

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

.order-qr{
max-width:100%;
}

}
