body {
    background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 50%, #eef2f7 100%);
    font-family: Arial, sans-serif;
    color: #1f2937;
}

.navbar {
    background: rgba(15, 23, 42, 0.92) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.navbar .navbar-brand,
.navbar .nav-link {
    color: #ffffff !important;
}

.navbar .nav-link:hover {
    color: #bfdbfe !important;
}

.hero-box {
    background:
        radial-gradient(circle at top left, rgba(59,130,246,0.35), transparent 35%),
        radial-gradient(circle at bottom right, rgba(168,85,247,0.28), transparent 35%),
        linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #312e81 100%);
    color: white;
    border-radius: 30px;
    padding: 60px 50px;
    box-shadow: 0 20px 45px rgba(30, 64, 175, 0.18);
    position: relative;
    overflow: hidden;
}

.hero-box::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    right: -60px;
    top: -60px;
}

.hero-box h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    max-width: 820px;
    position: relative;
    z-index: 1;
}

.hero-box p {
    color: rgba(255,255,255,0.90);
    font-size: 18px;
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero-buttons {
    position: relative;
    z-index: 1;
}

.hero-buttons .btn {
    padding: 14px 24px;
    border-radius: 14px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 22px;
}

.card {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.28s ease;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    background: rgba(255,255,255,0.92);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.card.available {
    border-left: 6px solid #22c55e;
}

.card.occupied {
    border-left: 6px solid #ef4444;
}

.feature-card .card-body {
    padding: 28px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
}

.badge {
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
}

.filter-box,
.info-box,
.page-box {
    background: rgba(255,255,255,0.96);
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    padding: 26px;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    border-radius: 14px;
    font-weight: 700;
    padding: 11px 18px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.btn-light,
.btn-outline-light,
.btn-outline-secondary,
.btn-outline-dark {
    border-radius: 14px;
    font-weight: 700;
}

.form-control,
.form-select {
    border-radius: 14px;
    min-height: 48px;
    border: 1px solid #dbe3ee;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #60a5fa;
}

footer {
    background:
        linear-gradient(135deg, #020617 0%, #0f172a 50%, #172554 100%);
    color: #e5e7eb;
    margin-top: 70px;
}

footer h5,
footer h6 {
    color: white;
}

footer a {
    color: #93c5fd;
    text-decoration: none;
}

footer a:hover {
    color: white;
}

.glass-box {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(15,23,42,0.08);
}

.small-soft {
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 768px) {
    .hero-box {
        padding: 35px 24px;
        border-radius: 24px;
    }

    .hero-box h1 {
        font-size: 30px;
    }

    .section-title {
        font-size: 26px;
    }
.site-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 28px;
    padding-right: 28px;
}
}

.navbar .container {
    width: 100%;
    max-width: 100%;
    padding-left: 28px;
    padding-right: 28px;
}
.site-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 40px;
    padding-right: 40px;
}

.navbar .container {
    width: 100%;
    max-width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

.hero-box {
    margin-top: 8px;
}

.page-box,
.filter-box,
.info-box {
    background: rgba(255,255,255,0.96);
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    padding: 28px;
}

.section-block {
    background: rgba(255,255,255,0.92);
    border-radius: 26px;
    box-shadow: 0 12px 30px rgba(15,23,42,0.06);
    padding: 26px;
}

.section-subtitle {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 18px;
}

.stats-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.stats-pill {
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    color: white;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.stats-pill.red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.stats-pill.green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.stats-pill.blue {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.mass-card {
    border: none;
    border-radius: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    box-shadow: 0 16px 34px rgba(15,23,42,0.08);
    transition: all 0.28s ease;
    overflow: hidden;
    position: relative;
    min-height: 245px;
}

.mass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 44px rgba(15,23,42,0.14);
}

.mass-card.available {
    border: 1px solid rgba(34,197,94,0.20);
}

.mass-card.occupied {
    border: 1px solid rgba(239,68,68,0.20);
}

.mass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top right, rgba(37,99,235,0.06), transparent 30%);
}

.mass-card .card-body {
    padding: 24px;
    position: relative;
    z-index: 1;
}

.mass-code {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.mass-status {
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
    color: white;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.mass-status.available {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.mass-status.occupied {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.mass-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 14px;
}

.mass-badge {
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mass-badge.area-silent {
    background: #dbeafe;
    color: #1d4ed8;
}

.mass-badge.area-group {
    background: #fef3c7;
    color: #a16207;
}

.mass-badge.pc {
    background: #111827;
    color: white;
}

.mass-badge.outlet {
    background: #cffafe;
    color: #0891b2;
}

.mass-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: #475569;
    font-weight: 600;
    margin-bottom: 12px;
}

.mass-meta-item {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 13px;
}

.mass-note {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    color: #475569;
    min-height: 54px;
    margin-bottom: 14px;
}

.mass-update {
    color: #64748b;
    font-size: 13px;
    margin-top: auto;
}

.filter-panel {
    background: rgba(255,255,255,0.96);
    border-radius: 26px;
    box-shadow: 0 12px 32px rgba(15,23,42,0.06);
    padding: 24px;
}

.recommend-panel {
    background: rgba(255,255,255,0.96);
    border-radius: 26px;
    box-shadow: 0 12px 32px rgba(15,23,42,0.06);
    padding: 24px;
}

.recommend-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #0f172a;
}

.recommend-result {
    margin-top: 18px;
    border-radius: 18px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    border: 1px solid #bfdbfe;
    font-weight: 600;
}

@media (max-width: 768px) {
    .site-wrap {
        width: min(100%, calc(100% - 18px));
    }

    .mass-code {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 24px;
    }
}

.mass-card.occupied {
    cursor: not-allowed;
    opacity: 0.75;
}

.mass-card.occupied .stretched-link {
    cursor: not-allowed;
}

/* ================= DARK MODE ================= */

html.dark-mode,
html.dark-mode body,
body.dark-mode {
    background: linear-gradient(180deg, #020617 0%, #0f172a 60%, #111827 100%) !important;
    color: #e5e7eb !important;
}

html.dark-mode .page-box,
html.dark-mode .card,
html.dark-mode .section-block,
html.dark-mode .filter-box,
html.dark-mode .info-box,
html.dark-mode .filter-panel,
html.dark-mode .recommend-panel,
html.dark-mode .mass-card,
html.dark-mode .glass-box,
body.dark-mode .page-box,
body.dark-mode .card,
body.dark-mode .section-block,
body.dark-mode .filter-box,
body.dark-mode .info-box,
body.dark-mode .filter-panel,
body.dark-mode .recommend-panel,
body.dark-mode .mass-card,
body.dark-mode .glass-box {
    background: #111827 !important;
    color: #e5e7eb !important;
    border-color: #334155 !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35) !important;
}

html.dark-mode .section-title,
html.dark-mode .section-subtitle,
html.dark-mode .recommend-title,
html.dark-mode .mass-code,
html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode h5,
html.dark-mode h6,
body.dark-mode .section-title,
body.dark-mode .section-subtitle,
body.dark-mode .recommend-title,
body.dark-mode .mass-code,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #f8fafc !important;
}

html.dark-mode .text-muted,
html.dark-mode .small-soft,
html.dark-mode .mass-update,
body.dark-mode .text-muted,
body.dark-mode .small-soft,
body.dark-mode .mass-update {
    color: #cbd5e1 !important;
}

html.dark-mode input,
html.dark-mode select,
html.dark-mode textarea,
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: #1f2937 !important;
    color: #e5e7eb !important;
    border-color: #475569 !important;
}

html.dark-mode input:disabled,
body.dark-mode input:disabled {
    background: #374151 !important;
    color: #cbd5e1 !important;
}

html.dark-mode .table,
html.dark-mode .table th,
html.dark-mode .table td,
body.dark-mode .table,
body.dark-mode .table th,
body.dark-mode .table td {
    color: #e5e7eb !important;
    background: transparent !important;
    border-color: #334155 !important;
}

html.dark-mode .mass-note,
html.dark-mode .mass-meta-item,
body.dark-mode .mass-note,
body.dark-mode .mass-meta-item {
    background: #1f2937 !important;
    color: #e5e7eb !important;
    border-color: #475569 !important;
}

html.dark-mode .recommend-result,
body.dark-mode .recommend-result {
    background: #1e293b !important;
    color: #e5e7eb !important;
    border-color: #475569 !important;
}

html.dark-mode .form-text,
body.dark-mode .form-text {
    color: #cbd5e1 !important;
}