@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  font-family: "DM Sans", system-ui, sans-serif;
  color: #e6edf7;
  background: #080f1c;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 15% 0%, #142849 0, #080f1c 34rem); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 260px; padding: 24px 16px; border-right: 1px solid #20304a; background: rgba(7, 14, 27, .9); display: flex; flex-direction: column; gap: 26px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 13px; color: #07111f; font: 700 19px "Space Grotesk"; background: linear-gradient(135deg, #65e6be, #4ba4ff); }
.brand strong { display: block; font: 700 19px "Space Grotesk"; letter-spacing: -.04em; }
.brand small { color: #7f92ae; font-size: 11px; }
.nav { display: grid; gap: 5px; }
.nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 13px; border: 0; border-radius: 11px; color: #8ea1bb; background: transparent; text-align: left; transition: .2s; }
.nav button:hover, .nav button.active { color: #f4f8ff; background: linear-gradient(90deg, rgba(74, 164, 255, .19), rgba(74, 164, 255, .04)); }
.nav button.active { box-shadow: inset 3px 0 #65e6be; }
.sidebar-foot { margin-top: auto; padding: 13px; border: 1px solid #20304a; border-radius: 15px; background: #0d1728; }
.sidebar-foot small { color: #7186a2; display: block; margin-bottom: 5px; }
.sidebar-foot strong { font-size: 13px; overflow-wrap: anywhere; }
.main { flex: 1; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 34px; border-bottom: 1px solid #182943; background: rgba(8, 15, 28, .5); }
.eyebrow { margin: 0 0 5px; color: #6e88aa; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; margin: 0; letter-spacing: -.03em; }
h1 { font-size: clamp(21px, 3vw, 29px); }
h2 { font-size: 19px; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.profile-link { padding: 3px 6px; border: 1px solid transparent; color: inherit; background: transparent; text-align: left; border-radius: 12px; }
.profile-link:hover { border-color: #2a405e; background: rgba(75, 164, 255, .08); }
.avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; color: #07111f; background: #65e6be; font-weight: 700; }
.user-chip small { display: block; color: #8296b1; text-transform: capitalize; }
.content { max-width: 1440px; padding: 34px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-head p { color: #90a2bb; margin: 7px 0 0; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.vouchers-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card { border: 1px solid #20304a; border-radius: 17px; padding: 20px; background: linear-gradient(145deg, rgba(18, 33, 56, .9), rgba(10, 20, 36, .88)); box-shadow: 0 15px 45px rgba(0, 0, 0, .12); }
.feature-card { display: block; width: 100%; color: inherit; text-align: left; cursor: pointer; transition: .2s; }
.feature-card:hover { border-color: #4ba4ff; transform: translateY(-2px); box-shadow: 0 18px 50px rgba(0, 0, 0, .2); }
.feature-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feature-card-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #2a405e; border-radius: 10px; background: rgba(75, 164, 255, .08); }
.feature-card-link { display: block; margin-top: 14px; color: #9eb2cb; font-size: 12px; }
.voucher-stat-card { min-height: 138px; }
.voucher-stat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.voucher-stat-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #2a405e; border-radius: 10px; background: rgba(75, 164, 255, .08); }
.card-label { color: #8da2be; font-size: 13px; }
.card-value { display: block; margin-top: 12px; color: #f5f9ff; font: 700 27px "Space Grotesk"; }
.card-note { color: #61dcae; font-size: 12px; }
.grid-2 { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.panel { border: 1px solid #20304a; border-radius: 17px; background: rgba(12, 24, 42, .76); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 19px 20px; border-bottom: 1px solid #20304a; }
.panel-head p { margin: 4px 0 0; color: #8397b2; font-size: 13px; }
.panel-body { padding: 20px; }
.home-wifi-subpanel { margin-top: 18px; }
.status-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; padding: 6px; border: 1px solid #20304a; border-radius: 14px; background: rgba(12, 24, 42, .76); }
.status-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: #8fa4bf; border: 1px solid transparent; border-radius: 10px; background: transparent; font-weight: 700; cursor: pointer; }
.status-tab:hover { color: #dbe9fb; background: rgba(75, 164, 255, .08); }
.status-tab.active { color: #07111f; border-color: #65e6be; background: #65e6be; }
.status-tab span { min-width: 20px; padding: 2px 6px; border-radius: 999px; color: #07111f; background: rgba(255, 255, 255, .55); font-size: 11px; text-align: center; }
.status-tab:not(.active) span { color: #a9bdd7; background: #172944; }
.traffic-cell { display: grid; gap: 4px; min-width: 180px; }
.traffic-cell strong { color: #65e6be; font-size: 12px; white-space: nowrap; }
.traffic-cell .muted { white-space: normal; }
.traffic-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.traffic-detail > div { padding: 12px; border: 1px solid #20304a; border-radius: 12px; background: #0c1a2d; }
.traffic-detail span { display: block; color: #8397b2; font-size: 11px; }
.traffic-detail strong { display: block; margin-top: 5px; color: #65e6be; font-size: 13px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 14px 18px; border-bottom: 1px solid #1e2d45; text-align: left; white-space: nowrap; }
th { color: #7e94b0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
td { color: #dce7f6; font-size: 13px; }
tr:last-child td { border-bottom: 0; }
.muted { color: #7f93ad; }
.status { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: capitalize; }
.status.active, .status.online, .status.available { color: #70e4ba; background: rgba(61, 203, 146, .12); }
.status.pending, .status.assigned { color: #ffd277; background: rgba(243, 177, 66, .13); }
.status.inactive, .status.disabled, .status.suspended, .status.offline { color: #ff9298; background: rgba(255, 94, 111, .12); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 14px; color: #07111f; background: #65e6be; font-weight: 700; transition: .2s; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.secondary { color: #dbe9fb; border-color: #2a405e; background: #13233a; }
.btn.ghost { color: #9eb2cb; border-color: transparent; background: transparent; }
.btn.link-button { display: inline; padding: 0; color: #dbe9fb; border: 0; background: transparent; text-align: left; }
.btn.link-button:hover { color: #65e6be; filter: none; transform: none; }
.btn.danger { color: #ffdfe1; background: #5b2533; }
.btn.small { padding: 7px 10px; font-size: 12px; }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; }
.action-trigger { min-width: 38px; padding-inline: 10px; font-size: 18px; line-height: 1; }
.action-menu-row td { padding: 0 18px 12px; background: rgba(19, 35, 58, .35); }
.action-menu { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; padding: 12px; border: 1px solid #2a405e; border-radius: 12px; background: #0c1a2d; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.check-row { display: flex; align-items: center; gap: 9px; min-height: 34px; color: var(--text); cursor: pointer; }
.check-row input { width: 16px; height: 16px; accent-color: var(--accent); }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #9cafc7; font-size: 12px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; color: #ecf4ff; border: 1px solid #2a405e; border-radius: 10px; outline: none; background: #0c1a2d; }
.inline-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #4ba4ff; box-shadow: 0 0 0 3px rgba(75, 164, 255, .12); }
.field textarea { min-height: 86px; resize: vertical; }
.field-help { color: #7f93ad; font-size: 11px; line-height: 1.45; }
.field-with-unit > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.field-with-unit select { min-width: 104px; }
.profile-mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-mode { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid #20304a; border-radius: 13px; background: #0c1a2d; cursor: pointer; }
.profile-mode.selected { border-color: #4ba4ff; background: rgba(75, 164, 255, .1); box-shadow: 0 0 0 2px rgba(75, 164, 255, .08); }
.profile-mode input { width: auto; margin-top: 3px; accent-color: #65e6be; }
.profile-mode span { display: grid; gap: 4px; }
.profile-mode strong { color: #e9f2ff; font-size: 13px; }
.profile-mode small { color: #7f93ad; font-size: 11px; line-height: 1.4; }
.code-area { display: block; width: 100%; min-height: 410px; padding: 15px; color: #cde4ff; border: 1px solid #2a405e; border-radius: 12px; outline: none; background: #07111f; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; white-space: pre; }
.code-area:focus { border-color: #4ba4ff; box-shadow: 0 0 0 3px rgba(75, 164, 255, .12); }
.assignment-panel { margin-bottom: 18px; }
.assignment-summary { min-height: 43px; display: flex; align-items: center; padding: 11px 12px; color: #65e6be; border: 1px dashed #2a405e; border-radius: 10px; background: #0c1a2d; font-size: 13px; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: #65e6be; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.empty { padding: 36px; color: #8498b3; text-align: center; }
.activity { display: grid; gap: 13px; }
.activity-item { display: flex; gap: 12px; align-items: flex-start; }
.dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #65e6be; box-shadow: 0 0 0 4px rgba(101, 230, 190, .1); }
.activity-item strong { display: block; font-size: 13px; font-weight: 600; }
.activity-item small { color: #7e94b0; }
.detail-list { display: grid; gap: 13px; }
.detail-list > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 11px; border-bottom: 1px solid #1e2d45; }
.detail-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.detail-list span, .resource-row span { color: #8397b2; font-size: 12px; }
.detail-list strong { max-width: 65%; color: #e5eefb; font-size: 13px; text-align: right; overflow-wrap: anywhere; }
.profile-layout { align-items: start; }
.resource-row { display: grid; gap: 7px; margin-bottom: 17px; }
.resource-row:last-child { margin-bottom: 0; }
.resource-row > div:first-child { display: flex; justify-content: space-between; gap: 12px; }
.resource-row strong { color: #65e6be; font-size: 13px; }
.resource-row small { color: #7f93ad; font-size: 11px; }
.resource-track { height: 8px; overflow: hidden; border-radius: 99px; background: #172944; }
.resource-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4ba4ff, #65e6be); transition: width .25s ease; }
.notice { margin-bottom: 18px; padding: 12px 14px; border: 1px solid #36517a; border-radius: 11px; color: #b9d7ff; background: rgba(40, 93, 157, .16); font-size: 13px; }
.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(2, 8, 18, .78); backdrop-filter: blur(8px); }
.modal { width: min(100%, 650px); max-height: min(90vh, 900px); overflow: auto; border: 1px solid #36517a; border-radius: 18px; background: #0b1729; box-shadow: 0 28px 90px rgba(0, 0, 0, .45); }
.modal-wide { width: min(100%, 960px); }
.modal-head, .modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 20px; border-bottom: 1px solid #20304a; }
.modal-head h2 { color: #edf5ff; }
.modal-head .btn { padding: 4px 9px; font-size: 24px; line-height: 1; }
.modal-body { padding: 20px; }
.modal-foot { justify-content: flex-end; border-top: 1px solid #20304a; border-bottom: 0; }
.modal-message { margin: 0; color: #c6d4e8; line-height: 1.6; }
.connection-banner { position: fixed; z-index: 30; top: 14px; left: 50%; display: grid; gap: 3px; width: min(calc(100% - 28px), 680px); margin: 0; transform: translateX(-50%); box-shadow: 0 14px 35px rgba(0, 0, 0, .28); }
.connection-banner strong { color: #ffe1a3; }
.connection-banner span { color: #c6d2e4; font-size: 12px; }
.error { color: #ffb1b6; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 80% 10%, #1a3c61 0, #080f1c 45rem); }
.login-card { width: min(100%, 440px); padding: 34px; border: 1px solid #294263; border-radius: 22px; background: rgba(11, 24, 43, .9); box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.login-card .brand { padding: 0; margin-bottom: 34px; }
.login-card h1 { margin-bottom: 8px; }
.login-card p { color: #90a2bb; line-height: 1.5; }
.login-card form { display: grid; gap: 16px; margin-top: 24px; }
.login-card .btn { width: 100%; margin-top: 5px; }
.loading { min-height: 100vh; display: grid; place-items: center; color: #8ba2c2; }
.mobile-menu { display: none; }
.menu-mode-toggle { min-width: 74px; }
.menu-dock { padding-bottom: 96px; }
.menu-dock .sidebar { position: fixed; z-index: 10; left: 50%; bottom: 18px; width: max-content; max-width: calc(100vw - 32px); height: auto; max-height: 72px; padding: 8px 10px; border: 1px solid rgba(83, 132, 183, .6); border-radius: 19px; background: rgba(7, 17, 31, .92); box-shadow: 0 18px 48px rgba(0, 0, 0, .35); backdrop-filter: blur(18px); transform: translateX(-50%); flex-direction: row; align-items: center; gap: 10px; overflow-x: auto; }
.menu-dock .sidebar .brand, .menu-dock .sidebar .sidebar-foot { display: none; }
.menu-dock .nav { display: flex; gap: 4px; }
.menu-dock .nav button { flex: 0 0 auto; width: auto; min-width: 76px; padding: 8px 11px; justify-content: center; flex-direction: column; gap: 4px; text-align: center; color: #8ea1bb; font-size: 11px; }
.menu-dock .nav button.active { box-shadow: inset 0 -3px #65e6be; }
.menu-dock .main { width: 100%; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vouchers-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .sidebar { position: fixed; z-index: 5; inset: 0 auto 0 0; transform: translateX(-100%); transition: .25s; } .sidebar.open { transform: translateX(0); } .mobile-menu { display: inline-flex; } .topbar { padding: 17px 18px; } .content { padding: 22px 18px; } .top-actions .user-chip { display: none; } .cards { grid-template-columns: 1fr 1fr; gap: 10px; } .card { padding: 15px; } .card-value { font-size: 22px; } .form-grid { grid-template-columns: 1fr; } .field.full { grid-column: auto; } .page-head { flex-direction: column; } .modal-backdrop { padding: 12px; } .modal-body { padding: 16px; } .traffic-detail { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .menu-dock { padding-bottom: 92px; } .menu-dock .mobile-menu { display: none; } .menu-dock .sidebar { inset: auto 12px 12px; width: auto; max-width: none; max-height: 76px; transform: none; } .menu-dock .nav { width: max-content; } .menu-dock .nav button { min-width: 69px; padding-inline: 8px; } .menu-mode-toggle { min-width: 62px; padding-inline: 9px; } }
