:root {
  --bg: #070a12;
  --bg-gradient: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.12), transparent 60%),
                 radial-gradient(ellipse at 85% 15%, rgba(56, 189, 248, 0.08), transparent 50%),
                 radial-gradient(ellipse at 15% 85%, rgba(99, 102, 241, 0.08), transparent 50%),
                 #070a12;
  --surface: #0d121f;
  --surface-glass: rgba(13, 18, 31, 0.85);
  --surface-2: #131a29;
  --surface-3: #1a2336;
  
  --ink: #f8fafc;
  --ink-secondary: #cbd5e1;
  --muted: #94a3b8;
  --muted-light: #64748b;
  
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-focus: #38bdf8;

  --navy: #f8fafc;
  --navy-slate: #0d121f;
  --teal: #14b8a6;
  --teal-soft: rgba(20, 184, 166, 0.15);
  --blue: #2563eb;
  --blue-soft: rgba(37, 99, 235, 0.15);
  --indigo: #6366f1;
  --indigo-soft: rgba(99, 102, 241, 0.15);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.15);
  --rose: #f43f5e;
  --rose-soft: rgba(244, 63, 94, 0.15);
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.15);
  --violet: #8b5cf6;

  --status-unpaid: #00e676;
  --status-paid: #38bdf8;
  --status-warn: #fbbf24;
  --status-danger: #f43f5e;
  --status-suspended: #ef4444;
  --status-inactive: #64748b;

  --hero-a: #0d121f;
  --hero-b: #131a29;

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.5);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
  --soft-shadow: 0 8px 25px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.85);

  font-family: "Plus Jakarta Sans", "Noto Sans Myanmar", "Padauk", "Pyidaungsu", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.01em;
}



* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-size: 13.5px;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

.hidden {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  background:
    radial-gradient(circle at 50% -10%, rgba(56, 189, 248, 0.18), transparent 65%),
    radial-gradient(circle at 15% 90%, rgba(37, 99, 235, 0.15), transparent 55%),
    radial-gradient(circle at 85% 85%, rgba(13, 148, 136, 0.12), transparent 50%),
    #080c15;
  overflow: hidden;
}

.login-ambient-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(37, 99, 235, 0.04) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 2;
  width: min(440px, 100%);
  padding: 34px 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: rgba(13, 18, 31, 0.88);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.75), 0 0 1px 1px rgba(255, 255, 255, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  color: #fff;
}

.login-brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.login-brand-header .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 900;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
  flex-shrink: 0;
}

.login-brand-header .summary-kicker {
  color: #38bdf8;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.login-brand-header h2 {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.login-subtext {
  margin: 0 0 16px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
}

.login-role-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 18px;
  gap: 4px;
}

.login-role-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.login-role-tab:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
}

.login-role-tab.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.login-role-tab .role-icon {
  font-size: 15px;
  line-height: 1;
}

.login-form {
  display: grid;
  gap: 13px;
}

.login-form label {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
}

.password-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-field-wrapper input {
  width: 100%;
  padding-right: 42px !important;
}

.pwd-toggle-btn {
  position: absolute;
  right: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 8px;
  padding: 0;
  transition: all 0.15s ease;
}

.pwd-toggle-btn:hover {
  color: #38bdf8;
  background: rgba(255, 255, 255, 0.08);
}

.login-form input {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13.5px;
  transition: all 0.15s ease;
}

.login-form input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
  background: rgba(15, 23, 42, 0.9);
}

.login-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -1px 0 2px;
}

.remember-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  user-select: none;
}

.remember-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: #0284c7;
  cursor: pointer;
}

.login-btn {
  min-height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
  margin-top: 4px;
  cursor: pointer;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.5);
}

.login-divider {
  position: relative;
  text-align: center;
  margin: 22px 0 14px;
}

.login-divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.login-divider span {
  position: relative;
  background: #0d121f;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.login-role-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.staff-link-btn {
  background: none;
  border: none;
  color: #38bdf8;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.staff-link-btn:hover {
  color: #7dd3fc;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.login-download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.login-download-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: inherit;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.login-download-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.login-download-card.android-card:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(2, 132, 199, 0.16));
  border-color: rgba(52, 211, 153, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.25);
}

.login-download-card.windows-card:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(56, 189, 248, 0.16));
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.3);
}

.download-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #ffffff;
  flex-shrink: 0;
}

.download-icon-box.android-icon {
  background: linear-gradient(135deg, #059669, #0284c7);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.download-icon-box.windows-icon {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.download-info {
  flex: 1;
  min-width: 0;
}

.download-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.download-title-row strong {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.platform-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.platform-badge.green {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.platform-badge.blue {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.download-info span {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-badge {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(56, 189, 248, 0.15);
  display: grid;
  place-items: center;
  color: #38bdf8;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.login-download-card:hover .download-badge {
  background: #38bdf8;
  color: #0f172a;
  transform: scale(1.05);
}

.login-message {
  min-height: 18px;
  margin: 4px 0 0;
  color: #f87171;
  font-size: 12px;
  text-align: center;
}

input,
select,
textarea {
  font: inherit;
  color: #ffffff;
  background: #131a29;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  outline: none;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22);
}

button {
  font: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #162032;
  color: #f8fafc;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12.5px;
}

button:hover,
.file-btn:hover {
  border-color: #38bdf8;
  background: #1e2b42;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.18);
  transform: translateY(-1px);
}

.app-shell {
  width: min(1200px, calc(100% - 28px));
  margin: 14px auto 32px;
}

.app-header {
  position: relative;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 20px;
  margin-bottom: 16px;
  background: rgba(13, 18, 31, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-lockup div {
  display: flex;
  flex-direction: column;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e293b, #2563eb);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-subtitle {
  margin: 2px 0 0 !important;
  color: #38bdf8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow,
.summary-kicker,
.section-heading span {
  margin: 0;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.header-actions {
  position: relative;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #131a29;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.user-chip strong {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  display: block;
}

.user-chip span {
  color: #38bdf8;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
}

.app-menu {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(19, 26, 41, 0.85);
}

.menu-item {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.menu-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  transform: none;
}

.menu-item.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.page-view {
  display: none;
  animation: fadeIn 0.2s ease-out;
}

.page-view.active {
  display: block;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}

.hero-copy,
.hero-badges {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: #0d121f;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.hero-copy {
  padding: 22px 24px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 50%),
    #0d121f;
}

.hero-copy h2 {
  margin: 6px 0 8px;
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-copy p {
  margin: 0;
  max-width: 54ch;
  color: #94a3b8;
  font-size: 13.5px;
  line-height: 1.6;
}

.hero-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}

.hero-pill {
  padding: 16px 18px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-pill span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-pill strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.soft-green {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.soft-green strong { color: #34d399; }

.soft-blue {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.soft-blue strong { color: #38bdf8; }

.alert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
}

.attention-panel {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: #0d121f;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  padding: 18px;
}

.calm-panel {
  background: #0d121f;
}

.alert-list,
.guide-list {
  display: grid;
  gap: 10px;
}

.alert-item,
.guide-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: #131a29;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.15s ease;
}

.alert-item:hover,
.guide-item:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.alert-item strong,
.guide-item strong {
  display: block;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
}

.alert-item span,
.guide-item p {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 11.5px;
}

.guide-item p {
  margin: 3px 0 0;
}

.guide-item {
  justify-content: flex-start;
}

.guide-item .legend-dot {
  flex: 0 0 auto;
}

.alert-item.due_7_days {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.alert-item.due_1_day {
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.08);
}

.alert-item.suspended {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
}

.alert-empty {
  padding: 24px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  font-size: 13px;
}

.icon-btn,
.square-btn,
.form-actions button {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  font-weight: 800;
}

.square-btn {
  width: 42px;
  padding: 0;
}

.utility-menu {
  position: relative;
  z-index: 10001;
  flex-shrink: 0;
  margin-left: 6px;
}

.utility-menu[open] .utility-toggle {
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  background: #1e293b;
}

.utility-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: #131a29;
  list-style: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.utility-toggle:hover {
  background: #1e293b;
  border-color: #38bdf8;
}

.utility-toggle::-webkit-details-marker {
  display: none;
}

.utility-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.utility-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 999999 !important;
  pointer-events: auto !important;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 145px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #0b101b;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(56, 189, 248, 0.15);
  animation: fadeIn 0.12s ease-out;
}

.utility-item {
  position: relative !important;
  z-index: 100000 !important;
  pointer-events: auto !important;
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.1s ease;
  width: 100%;
  box-shadow: none;
  transform: none;
}

.utility-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  box-shadow: none;
  transform: none;
}

.utility-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 4px 2px;
}

.utility-item.danger-item {
  color: #f87171 !important;
}

.utility-item.danger-item:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #fca5a5 !important;
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) repeat(3, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.summary-panel,
.metric,
.sheet-tools,
.ledger-wrap {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: #0d121f;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.summary-panel,
.metric {
  min-height: 104px;
  padding: 18px 20px;
  border-radius: 20px;
}

.summary-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #fff;
  box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.summary-panel .summary-kicker,
.summary-panel label {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.summary-title strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.opening-control {
  display: grid;
  grid-template-columns: 104px 1fr;
  align-items: center;
  gap: 10px;
}

.opening-control input {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
}
.opening-control input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.metric {
  position: relative;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.metric:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.metric span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.metric strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.metric.balance {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.3);
}

.metric.balance strong {
  color: #fff;
}

.metric.income {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.3);
}

.metric.income strong {
  color: #fff;
}

.metric.expense {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  box-shadow: 0 10px 25px -5px rgba(225, 29, 72, 0.3);
}

.metric.expense strong {
  color: #fff;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
  margin-top: 14px;
}

.sheet-tools {
  padding: 18px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.section-heading strong {
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
}

.dialog-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: end;
  background: #0d121f;
  color: #f8fafc;
}

.color-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 24px;
}

.entry-calculator-command {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-bottom: 2px;
}

.entry-calculator-command button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  transition: all 0.15s ease;
}

.entry-calculator-command button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.45);
}

.entry-manual-fields,
.entry-calculator-fields,
.entry-calculator-summary {
  display: grid;
  gap: 10px;
}

.entry-manual-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-calculator-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #131a29;
}

.entry-calculator-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 800;
}

.entry-calculator-head button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  font-weight: 900;
  cursor: pointer;
}

.entry-calculator-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-calculator-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-calc-result {
  display: grid;
  align-content: center;
  min-height: 58px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

.entry-calc-result span {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.entry-calc-result output {
  margin-top: 3px;
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #f8fafc;
}

.entry-calc-result.profit-result {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.entry-calc-result output.negative {
  color: #f87171;
}

.dialog-form .wide,
.form-actions {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

input,
select,
textarea {
  min-height: 36px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 12px;
  background: var(--surface-2);
  color: var(--ink);
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
  outline: none;
}

/* ==========================================================================
   PREMIUM CUSTOMER SUPPORT WORKSPACE (Executive Dark Obsidian Theme)
   ========================================================================== */
.support-workspace {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 620px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: #080c15;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(56, 189, 248, 0.05);
  overflow: hidden;
}

.support-conversations {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d121f;
  display: flex;
  flex-direction: column;
}

.support-conversations .support-panel-head {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #090d16;
}

.support-conversations .support-panel-head strong {
  display: block;
  margin-top: 2px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.support-conversations .support-panel-head .summary-kicker {
  color: #38bdf8;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.support-count {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  padding: 0 7px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.support-conversation-list {
  flex: 1;
  max-height: 556px;
  overflow-y: auto;
  padding: 10px;
}

.support-conversation {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.support-conversation:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}

.support-conversation.active {
  background: #162032 !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(56, 189, 248, 0.1) !important;
}

.conv-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: grid;
  place-items: center;
  color: #38bdf8;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.support-conversation.active .conv-avatar {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.conv-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.conv-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.conv-name {
  color: #f8fafc;
  font-size: 13.5px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conv-machine-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: #1e293b;
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.conv-mid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.conv-username {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

.conv-preview {
  display: block;
  color: #94a3b8;
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-conversation b {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 6px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
}

.support-thread {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  background: #080c15;
}

.support-thread .support-panel-head {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #090d16;
}

.support-thread .support-panel-head strong {
  display: block;
  margin-top: 2px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.support-thread .support-panel-head .summary-kicker {
  color: #38bdf8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.support-message-list {
  display: flex;
  max-height: 480px;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  overflow-y: auto;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.03), transparent 60%), #080c15;
}

.staff-message-row {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  position: relative;
}

.staff-message-row.mine {
  align-self: flex-end;
}

.staff-message-row.theirs {
  align-self: flex-start;
}

.staff-message {
  width: 100%;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 3px;
  background: #162032;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  position: relative;
  transition: all 0.15s ease;
}

.staff-message.mine {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  border-radius: 16px 16px 3px 16px;
  border: none;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.staff-message.deleted {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px dashed rgba(255, 255, 255, 0.15) !important;
  color: #64748b !important;
  box-shadow: none !important;
}

.staff-message.deleted p {
  font-style: italic;
  font-size: 12px;
  color: #94a3b8;
}

.broadcast-announcement-bubble,
.staff-message.broadcast-announcement-bubble,
.message-bubble.broadcast-announcement-bubble {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(13, 148, 136, 0.18)) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.18) !important;
}

.broadcast-announcement-bubble p b,
.staff-message.broadcast-announcement-bubble p b,
.message-bubble.broadcast-announcement-bubble p b {
  color: #38bdf8;
  font-weight: 800;
}

/* Reply Quote Inside Message Bubble */
.message-reply-quote {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid #38bdf8;
  border-radius: 6px;
  padding: 5px 10px;
  margin-bottom: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.message-reply-quote strong {
  font-size: 10.5px;
  color: #38bdf8;
  font-weight: 700;
}

.message-reply-quote span {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

/* Message Text & Meta */
.staff-message p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.staff-message small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 600;
}

.staff-message.mine small {
  color: rgba(255, 255, 255, 0.75);
}

.edited-tag {
  font-size: 9.5px;
  opacity: 0.75;
  font-style: italic;
}

/* Hover Action Bar */
.message-action-toolbar {
  position: absolute;
  top: -16px;
  right: 8px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2px 6px;
  display: none;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.staff-message-row:hover .message-action-toolbar,
.message-bubble-row:hover .message-action-toolbar {
  display: flex;
}

.action-tool-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.12s ease;
  line-height: 1;
}

.action-tool-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.action-tool-btn.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Quick Emoji Popup */
.quick-emoji-popup {
  position: absolute;
  top: -42px;
  right: 0;
  background: #0b101b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 4px 8px;
  display: flex;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  z-index: 20;
  animation: fadeIn 0.1s ease;
}

.quick-emoji-btn {
  background: none;
  border: none;
  font-size: 16px;
  padding: 3px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.quick-emoji-btn:hover {
  transform: scale(1.3);
}

/* Reactions Bar */
.message-reactions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.12s ease;
}

.reaction-pill:hover {
  background: rgba(255, 255, 255, 0.18);
}

.reaction-pill.user-reacted {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
}

/* Reply Preview Bar above input */
.reply-context-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid #38bdf8;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 6px;
}

.reply-context-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.reply-context-info strong {
  font-size: 11px;
  color: #38bdf8;
  font-weight: 700;
}

.reply-context-info span {
  font-size: 12px;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reply-cancel-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.reply-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.staff-message img {
  display: block;
  width: min(320px, 100%);
  max-height: 380px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.staff-message audio {
  display: block;
  width: min(300px, 100%);
  height: 38px;
}

.receipt-file-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
}

.support-message-form {
  display: grid;
  gap: 6px;
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d121f;
}

.chat-composer {
  display: grid;
  grid-template-columns: auto auto minmax(120px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.chat-composer input {
  min-height: 42px;
  background: #131a29;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
}
.chat-composer input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
  outline: none;
}

.chat-composer button {
  height: 42px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-composer .composer-tool {
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  padding: 0;
  background: #162032;
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.chat-composer .composer-tool:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

.chat-composer .composer-tool svg {
  width: 18px;
  height: 18px;
  display: block;
}

.chat-composer .composer-tool.recording {
  background: #dc2626;
  color: #fff;
  border-color: #ef4444;
  animation: pulse 1s infinite;
}

.chat-composer .composer-send {
  min-width: 72px;
  padding: 0 16px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
}

.chat-composer .composer-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.45);
}

.chat-composer button:disabled {
  background: #334155;
  color: #64748b;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.chat-attachment-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.08);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 700;
}

.chat-attachment-preview button {
  border: 0;
  background: transparent;
  color: #ef4444;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.announcement-admin-panel {
  margin-top: 16px;
  background: #0d121f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.announcement-admin-panel .ledger-topline {
  background: #090d16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.announcement-admin-panel .ledger-topline strong {
  color: #ffffff;
}

.admin-announcement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.admin-announcement:last-child {
  border-bottom: 0;
}
.admin-announcement strong {
  color: #f8fafc;
  font-size: 13px;
}
.admin-announcement p {
  max-width: 740px;
  margin: 4px 0;
  color: #94a3b8;
  font-size: 12px;
  white-space: pre-wrap;
}
.admin-announcement small {
  color: #38bdf8;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
}

.customer-account-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.customer-app-link { display: grid; align-content: center; min-height: 58px; padding: 8px 11px; border-radius: 8px; background: #e0f2fe; color: #075985; }
.customer-app-link span { font-size: 9px; font-weight: 900; text-transform: uppercase; }
.customer-app-link strong { margin-top: 3px; font-size: 12px; }
.customer-account-table { min-width: 860px; }
.customer-account-link { display: inline-block; padding: 5px 9px; border-radius: 6px; background: #0f766e; color: #fff; font-size: 10px; font-weight: 850; text-decoration: none; }
.announcement-form { grid-template-columns: 1fr 180px; }

input:read-only,
input:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.color-form input[type="color"] {
  min-height: 42px;
  padding: 4px;
  cursor: pointer;
}

.primary {
  border-color: var(--navy);
  background: linear-gradient(135deg, var(--hero-a), var(--hero-b));
  color: #fff;
}

.entry-toggle {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

.secondary-btn {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  overflow-y: auto;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  width: min(540px, 100%);
  max-height: calc(100vh - 28px);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: #0d121f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.9), 0 0 40px rgba(56, 189, 248, 0.12);
  overflow: hidden;
  transform: translateY(16px) scale(0.97);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  color: #f8fafc;
}

.wide-modal {
  width: min(760px, 100%);
}

.entry-modal {
  width: min(640px, 100%);
}

.modal.open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: linear-gradient(135deg, #131a29, #1e293b);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.modal-head .summary-kicker {
  color: #38bdf8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-head strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.modal-close {
  position: relative !important;
  z-index: 1000 !important;
  pointer-events: auto !important;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer !important;
  transition: all 0.15s ease;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #f87171 !important;
  transform: scale(1.05);
}

.dialog-form {
  padding: 20px 24px;
  background: #0d121f;
  overflow-y: auto;
  flex: 1 1 auto;
  max-height: calc(100vh - 90px);
}

.bill-form {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.device-form {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.usage-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.usage-history {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.usage-history-head,
.usage-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.usage-history-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.usage-history-head strong {
  color: var(--navy);
  font-size: 12px;
}

.usage-history-head span,
.usage-history-empty {
  color: var(--muted);
  font-size: 11px;
}

.usage-history-list {
  max-height: 210px;
  overflow-y: auto;
}

.usage-history-item {
  min-height: 38px;
  padding: 6px 2px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  font-size: 11px;
}

.usage-history-item:last-child {
  border-bottom: 0;
}

.usage-history-item.imported {
  color: var(--muted);
}

.usage-history-actions {
  display: flex;
  gap: 5px;
}

.usage-history-actions button {
  min-height: 27px;
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.usage-history-actions button.danger {
  background: #e11d48;
  color: #fff;
}

.user-form {
  grid-template-columns: 1fr 1fr;
}

.permission-box {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #131a29;
}

.permission-title {
  display: block;
  margin-bottom: 12px;
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.15s ease;
  user-select: none;
}

.check-item:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.35);
  color: #ffffff;
}

.check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: #2563eb;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.form-actions button {
  flex: 1;
  height: 42px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #162032;
  color: #f8fafc;
  transition: all 0.15s ease;
}

.form-actions button:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.form-actions button.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.form-actions button.primary:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55);
}

.sheet-tools {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: #0d121f;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.sheet-tools .section-heading span {
  color: #38bdf8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sheet-tools .section-heading strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.mini-calculator {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #131a29;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.calc-row {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 12px;
}

.calc-row label,
.calc-row span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.calc-row input {
  min-height: 36px;
  border-radius: 10px;
  padding: 6px 12px;
  background: #0d121f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #38bdf8;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
  font-family: inherit;
  transition: all 0.2s ease;
}

.calc-row input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
  outline: none;
  background: #162032;
}

.calc-row output {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(13, 18, 31, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 15px;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.calc-row.result {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.calc-row.result span {
  color: #cbd5e1;
  font-weight: 800;
}

.calc-row.result output {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-weight: 900;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

.calc-row.profit span {
  color: #cbd5e1;
  font-weight: 800;
}

.calc-row.profit output {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.calc-row.profit output.negative {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.15);
}

.ledger-wrap {
  overflow: hidden;
}

.ledger-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.ledger-topline strong {
  display: block;
  margin-top: 3px;
  color: var(--navy);
  font-size: 18px;
}

.ledger-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #0d121f;
}

.bill-dashboard {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.bill-card {
  min-height: 96px;
  padding: 14px;
  border-radius: 16px;
  color: #fff;
  box-shadow: var(--soft-shadow);
}

.bill-card span,
.bill-card small {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.bill-card span {
  font-size: 12px;
  text-transform: uppercase;
}

.bill-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 28px;
  line-height: 1;
}

.bill-green {
  background: linear-gradient(135deg, #11c950, #00e676);
}

.bill-blue {
  background: linear-gradient(135deg, #2f7df3, #60a5fa);
}

.bill-amber {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.bill-gray {
  background: linear-gradient(135deg, #64748b, #94a3b8);
}

.bill-warn {
  background: linear-gradient(135deg, #f59e0b, #facc15);
}

.bill-danger {
  background: linear-gradient(135deg, #fb7185, #f97316);
}

.bill-red {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

#billPage .bill-card.bill-green {
  background: linear-gradient(135deg, color-mix(in srgb, var(--status-unpaid) 82%, #0f172a), var(--status-unpaid));
}

#billPage .bill-card.bill-blue {
  background: linear-gradient(135deg, color-mix(in srgb, var(--status-paid) 82%, #0f172a), var(--status-paid));
}

#billPage .bill-card.bill-warn,
#dashboardPage .alert-grid .bill-card.bill-warn {
  background: linear-gradient(135deg, color-mix(in srgb, var(--status-warn) 82%, #0f172a), var(--status-warn));
}

#billPage .bill-card.bill-danger,
#dashboardPage .alert-grid .bill-card.bill-danger {
  background: linear-gradient(135deg, color-mix(in srgb, var(--status-danger) 82%, #0f172a), var(--status-danger));
}

#billPage .bill-card.bill-red,
#dashboardPage .alert-grid .bill-card.bill-red {
  background: linear-gradient(135deg, color-mix(in srgb, var(--status-suspended) 82%, #0f172a), var(--status-suspended));
}

.bill-layout {
  display: grid;
}

.device-dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.bill-panel {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: #0d121f;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
}

.device-panel {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: #0d121f;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  margin-bottom: 28px;
}

.usage-alert-panel {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: #0d121f;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.usage-inline-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.usage-inline-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #131a29;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
}

.usage-inline-stats strong {
  font-size: 15px;
  color: #38bdf8;
}

.usage-alert-list {
  display: grid;
  gap: 10px;
}

.usage-alert-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: #131a29;
}

.usage-alert-item strong {
  color: #f8fafc;
  font-size: 13px;
}

.usage-alert-item span,
.usage-alert-item small {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.usage-alert-item.warning {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.usage-alert-item.critical {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
}

#billPage .bill-dashboard {
  grid-template-columns: repeat(5, 1fr);
}

.bill-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  align-self: center;
}

.legend-dot.green {
  background: var(--status-unpaid);
}

.legend-dot.blue {
  background: var(--status-paid);
}

.legend-dot.gray {
  background: var(--status-inactive);
}

.legend-dot.warn {
  background: var(--status-warn);
}

.legend-dot.danger {
  background: var(--status-danger);
}

.legend-dot.red {
  background: var(--status-suspended);
}

.bill-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #0d121f;
}

.device-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #0d121f;
}

.usage-table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #0d121f;
}

.bill-table th,
.bill-table td {
  height: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 8px;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-table th,
.device-table td {
  height: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 8px;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usage-table th,
.usage-table td {
  height: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 8px;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Resizable Table Header & Column Resizer */
.resizable-table th {
  position: relative;
  user-select: none;
}

.column-resizer {
  position: absolute;
  top: 0;
  right: 0;
  width: 9px;
  bottom: 0;
  cursor: col-resize;
  user-select: none;
  touch-action: none;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.column-resizer::after {
  content: "";
  display: block;
  width: 2px;
  height: 50%;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 1px;
  transition: all 0.15s ease;
}

.column-resizer:hover::after,
.column-resizer.resizing::after {
  background: #38bdf8;
  height: 100%;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.9);
}

body.resizing-columns {
  cursor: col-resize !important;
  user-select: none !important;
}

/* Device Table 12-Column Width Distribution - Ultra Balanced & Compact */
.device-table th:nth-child(1), .device-table td:nth-child(1) { width: 38px; min-width: 30px; text-align: center; } /* No */
.device-table th:nth-child(2), .device-table td:nth-child(2) { width: 105px; min-width: 70px; } /* Name */
.device-table th:nth-child(3), .device-table td:nth-child(3) { width: 175px; min-width: 110px; } /* Email */
.device-table th:nth-child(4), .device-table td:nth-child(4) { width: 62px; min-width: 48px; font-weight: 800; color: #38bdf8; text-align: center; } /* Device ID */
.device-table th:nth-child(5), .device-table td:nth-child(5) { width: 72px; min-width: 60px; text-align: center; } /* Cycle Day */
.device-table th:nth-child(6), .device-table td:nth-child(6) { width: 100px; min-width: 75px; font-family: monospace; font-size: 10px; } /* Serial Number */
.device-table th:nth-child(7), .device-table td:nth-child(7) { width: 100px; min-width: 75px; font-family: monospace; font-size: 10px; } /* Kit Number */
.device-table th:nth-child(8), .device-table td:nth-child(8) { width: 110px; min-width: 75px; } /* Service Address */
.device-table th:nth-child(9), .device-table td:nth-child(9) { width: 55px; min-width: 42px; text-align: center; } /* Region */
.device-table th:nth-child(10), .device-table td:nth-child(10) { width: 72px; min-width: 55px; text-align: center; } /* Plan */
.device-table th:nth-child(11), .device-table td:nth-child(11) { width: 65px; min-width: 52px; text-align: center; } /* Status */
.device-table th:nth-child(12), .device-table td:nth-child(12) { width: 68px; min-width: 58px; text-align: center; } /* Action */

/* Usage Table 9-Column Width Distribution */
.usage-table th:nth-child(1), .usage-table td:nth-child(1) { width: 80px; min-width: 65px; text-align: center; } /* Machine */
.usage-table th:nth-child(2), .usage-table td:nth-child(2) { width: 135px; min-width: 90px; } /* Customer */
.usage-table th:nth-child(3), .usage-table td:nth-child(3) { width: 75px; min-width: 55px; text-align: center; } /* Plan */
.usage-table th:nth-child(4), .usage-table td:nth-child(4) { width: 165px; min-width: 120px; } /* Billing Cycle */
.usage-table th:nth-child(5), .usage-table td:nth-child(5) { width: 140px; min-width: 95px; } /* Last Recorded */
.usage-table th:nth-child(6), .usage-table td:nth-child(6) { width: 130px; min-width: 90px; text-align: right; } /* Cycle Total */
.usage-table th:nth-child(7), .usage-table td:nth-child(7) { width: 68px; min-width: 50px; text-align: center; } /* Limit */
.usage-table th:nth-child(8), .usage-table td:nth-child(8) { width: 75px; min-width: 55px; text-align: center; } /* Remaining */
.usage-table th:nth-child(9), .usage-table td:nth-child(9) { width: 130px; min-width: 110px; text-align: center; } /* Actions */

/* Usage Row Actions & History Styles */
.usage-action-btns {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.btn-usage-action {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-usage-action.edit {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.btn-usage-action.edit:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
}

.btn-usage-action.chart {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.btn-usage-action.chart:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #34d399;
}

.usage-history-scroll-list {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px;
}

.usage-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.15s ease;
}

.usage-history-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(56, 189, 248, 0.25);
}

.usage-history-date {
  font-size: 11.5px;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
}

.usage-history-val {
  font-size: 12px;
  font-weight: 800;
  color: #38bdf8;
}

.usage-history-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-history-tool {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.btn-history-tool.edit {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.btn-history-tool.edit:hover {
  background: #0284c7;
  color: #ffffff;
}

.btn-history-tool.delete {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.btn-history-tool.delete:hover {
  background: #dc2626;
  color: #ffffff;
}

.bill-alert-cell {
  font-weight: 900;
  text-transform: uppercase;
}

.bill-table th {
  background: #090d16;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.device-table th {
  background: #090d16;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.usage-table th {
  background: #090d16;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.bill-table tbody tr {
  color: #f8fafc;
  font-weight: 650;
}

.device-table tbody tr {
  color: #f8fafc;
  font-weight: 650;
}

.usage-table tbody tr {
  color: #f8fafc;
  font-weight: 650;
}

.device-plan-cell {
  text-transform: capitalize;
}

.user-table {
  min-width: 820px;
}

/* Bill Table Column Sizing & Row Styling */
.bill-table th:nth-child(1), .bill-table td:nth-child(1) { width: 75px; min-width: 60px; font-weight: 800; color: #38bdf8; text-align: center; } /* Machine */
.bill-table th:nth-child(2), .bill-table td:nth-child(2) { width: 95px; min-width: 80px; text-align: center; } /* Submitted */
.bill-table th:nth-child(3), .bill-table td:nth-child(3) { width: 95px; min-width: 80px; text-align: center; } /* Billing Due Date */
.bill-table th:nth-child(4), .bill-table td:nth-child(4) { width: 95px; min-width: 80px; text-align: center; } /* Suspended Date */
.bill-table th:nth-child(5), .bill-table td:nth-child(5) { width: 100px; min-width: 80px; text-align: center; color: #cbd5e1; } /* Bill Type */
.bill-table th:nth-child(6), .bill-table td:nth-child(6) { width: 120px; min-width: 95px; text-align: center; } /* Status */
.bill-table th:nth-child(7), .bill-table td:nth-child(7) { width: 110px; min-width: 85px; text-align: center; font-weight: 800; } /* Alert */
.bill-table th:nth-child(8), .bill-table td:nth-child(8) { width: 130px; min-width: 90px; } /* Customer */
.bill-table th:nth-child(9), .bill-table td:nth-child(9) { width: 90px; min-width: 80px; text-align: center; overflow: visible !important; } /* Action */

.bill-table td.row-actions,
.device-table td.row-actions,
.cash-table td.row-actions {
  overflow: visible !important;
  position: relative;
  text-align: center;
}

.bill-row-sent_unpaid {
  background: color-mix(in srgb, var(--status-unpaid) 8%, transparent);
}
.bill-row-sent_unpaid .bill-status-cell {
  color: var(--status-unpaid);
  font-weight: 700;
}

.bill-row-paid_done {
  background: color-mix(in srgb, var(--status-paid) 8%, transparent);
}
.bill-row-paid_done .bill-status-cell {
  color: var(--status-paid);
  font-weight: 700;
}

.bill-row-paid_pending {
  background: color-mix(in srgb, var(--status-warn) 10%, transparent);
}
.bill-row-paid_pending .bill-status-cell {
  color: var(--status-warn);
  font-weight: 700;
}

.bill-row-suspended {
  background: color-mix(in srgb, var(--status-suspended) 12%, transparent);
  color: #fca5a5;
}
.bill-row-suspended .bill-status-cell {
  color: var(--status-suspended);
  font-weight: 800;
}

.bill-row-suspended .row-actions button {
  color: #ffffff;
}

.bill-row-inactive {
  background: color-mix(in srgb, var(--status-inactive) 8%, transparent);
  color: #94a3b8 !important;
}

.bill-row-inactive .row-actions button {
  color: #ffffff;
}

.bill-alert-due_7_days .bill-alert-cell {
  color: var(--status-warn);
  font-weight: 900;
}

.bill-alert-due_1_day .bill-alert-cell {
  color: var(--status-danger);
  font-weight: 900;
}

.bill-alert-suspended .bill-alert-cell {
  color: var(--status-suspended);
  font-weight: 900;
}

.bill-table tbody tr.bill-alert-due_7_days {
  background: color-mix(in srgb, var(--status-warn) 10%, transparent);
}

.bill-table tbody tr.bill-alert-due_1_day {
  background: color-mix(in srgb, var(--status-danger) 12%, transparent);
}

.bill-table tbody tr.bill-alert-suspended {
  background: color-mix(in srgb, var(--status-suspended) 14%, transparent);
}

.usage-table tbody tr.usage-row-warning {
  background: rgba(245, 158, 11, 0.08);
}

.usage-table tbody tr.usage-row-critical {
  background: rgba(239, 68, 68, 0.12);
}

.usage-alert-cell {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}

.usage-table tbody tr.usage-row-warning .usage-alert-cell {
  color: #fbbf24;
}

.usage-table tbody tr.usage-row-critical .usage-alert-cell {
  color: #f87171;
}

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

.ledger-table th,
.ledger-table td {
  height: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 10px;
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #090d16;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.ledger-table tbody tr {
  transition: background 120ms ease;
}

.ledger-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.ledger-table .number-col,
.ledger-table .row-number {
  width: 46px;
  color: #64748b;
  text-align: center;
  font-weight: 700;
}

.ledger-table .date-col,
.ledger-table .date-cell {
  width: 105px;
  color: #cbd5e1;
  font-size: 11.5px;
}

.ledger-table .desc-col,
.ledger-table .description-cell {
  width: auto;
  min-width: 130px;
  color: #f8fafc;
  font-weight: 700;
}

.ledger-table th.money-th {
  text-align: right;
  padding-right: 12px;
}

.ledger-table .in-cell {
  width: 110px;
  color: #34d399;
  font-weight: 800;
  text-align: right;
  padding-right: 12px;
}

.ledger-table .out-cell {
  width: 110px;
  color: #fb7185;
  font-weight: 800;
  text-align: right;
  padding-right: 12px;
}

.ledger-table .balance-cell {
  width: 125px;
  color: #38bdf8;
  font-weight: 800;
  text-align: right;
  padding-right: 12px;
}

.ledger-table .status-col,
.ledger-table .status-badge-cell {
  width: 145px;
  text-align: center;
}

.ledger-table .action-col,
.ledger-table .row-actions {
  width: 130px;
  text-align: center;
}

/* Status Badges */
.cash-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.cash-status-pill.status-clear {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.cash-status-pill.status-prepaid {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.cash-status-pill.status-due {
  background: rgba(244, 63, 94, 0.16);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.cash-status-pill.status-deposit {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

/* Month Switcher UI in Active Month Card */
.month-switcher-control {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 8px 0;
}

.month-nav-btn {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.month-nav-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.05);
}

.cash-month-select {
  flex: 1;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

.cash-month-select option {
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
}

.row-actions button {
  min-height: 26px;
  margin: 0 2px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  border: 0;
  background: #2563eb;
  color: #fff;
}

.row-actions button.danger {
  background: #e11d48;
  color: #fff;
}

.action-menu {
  position: relative;
  display: inline-block;
}

.action-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #162032;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.action-menu summary::-webkit-details-marker {
  display: none;
}

.action-menu summary::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 7px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.action-menu[open] summary {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.action-panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 99999 !important;
  display: grid;
  min-width: 116px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: #0f172a;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.95);
}

.action-panel button {
  width: 100%;
  margin: 0;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #f1f5f9;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.action-panel button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #38bdf8;
}

.action-panel .danger {
  color: var(--rose);
}

.danger {
  color: var(--rose);
}

@media (max-width: 1120px) {
  .summary-grid,
  .workspace-grid,
  .bill-dashboard,
  .device-dashboard,
  .alert-grid,
  .dashboard-panels,
  .dashboard-hero {
    grid-template-columns: 1fr 1fr;
  }

  .summary-panel,
  .ledger-wrap {
    grid-column: 1 / -1;
  }

  .dialog-form,
  .bill-form,
  .device-form,
  .usage-form,
  .user-form,
  .color-form,
  .customer-account-form,
  .announcement-form {
    grid-template-columns: 1fr 1fr;
  }

  .dialog-form .wide,
  .form-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 18px, 1240px);
    margin-top: 8px;
  }

  .app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-grid,
  .summary-grid,
  .dialog-form,
  .bill-form,
  .bill-dashboard,
  .device-form,
  .device-dashboard,
  .usage-form,
  .user-form,
  .color-form,
  .alert-grid,
  .dashboard-panels,
  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .support-workspace {
    grid-template-columns: 1fr;
  }

  .support-conversations {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .support-conversation-list {
    max-height: 220px;
  }

  .support-message-list {
    min-height: 330px;
  }

  .entry-manual-fields,
  .entry-calculator-fields,
  .entry-calculator-summary {
    grid-template-columns: 1fr;
  }

  .summary-grid,
  .workspace-grid {
    display: grid;
  }

  .summary-panel,
  .ledger-wrap,
  .sheet-tools {
    grid-column: auto;
  }

  .opening-control {
    grid-template-columns: 1fr;
  }

  .header-actions,
  .form-actions,
  .app-menu {
    width: 100%;
  }

  .header-actions {
    justify-content: space-between;
  }

  .header-actions > *,
  .form-actions button {
    flex: 1;
  }

  .permission-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .app-header,
  .sheet-tools,
  .entry-toggle,
  .row-actions,
  .action-col {
    display: none;
  }

  .app-shell {
    width: 100%;
    margin: 0;
  }

  .summary-grid,
  .ledger-wrap {
    border: 0;
    box-shadow: none;
  }

  .ledger-table {
    min-width: 0;
  }
}

/* Starlink / Roam Style Usage Visualizer */
.starlink-card {
  background: #0d0f12;
  color: #f8fafc;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.starlink-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.starlink-main-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.starlink-label {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.starlink-stat-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.starlink-total-number {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.starlink-machine-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
}

.starlink-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.starlink-select {
  background: #161b22;
  color: #f8fafc;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}
.starlink-select:focus {
  border-color: #38bdf8;
}

.starlink-period-tabs {
  display: inline-flex;
  gap: 3px;
  background: #161b22;
  padding: 3px;
  border-radius: 9px;
  border: 1px solid #30363d;
}

.starlink-tab, .customer-viz-tab {
  background: transparent;
  color: #94a3b8;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.starlink-tab:hover, .customer-viz-tab:hover {
  color: #ffffff;
}

.starlink-tab.active, .customer-viz-tab.active {
  background: #ffffff;
  color: #0d0f12;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.starlink-cycle-nav {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.starlink-cycle-nav::-webkit-scrollbar {
  display: none;
}

.cycle-nav-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.15s;
}
.cycle-nav-btn:hover {
  color: #cbd5e1;
}
.cycle-nav-btn.active {
  color: #ffffff;
  font-weight: 700;
  position: relative;
}
.cycle-nav-btn.active::after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 0;
  right: 0;
  height: 2px;
  background: #38bdf8;
}

.starlink-chart-wrapper {
  margin-top: 14px;
}

.starlink-chart-legend {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #38bdf8;
}
.legend-dash {
  width: 14px;
  height: 3px;
  background: #38bdf8;
  border-radius: 2px;
}

.legend-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  color: #ffffff;
}
.legend-limit {
  color: #38bdf8;
  font-weight: 600;
}

.starlink-chart-container {
  position: relative;
  width: 100%;
  height: 220px;
  margin: 12px 0 6px;
}

.starlink-chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

.starlink-tooltip {
  position: absolute;
  background: #1e2430;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  border: 1px solid #38bdf8;
  pointer-events: none;
  transform: translate(-50%, -120%);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  z-index: 25;
  white-space: nowrap;
  line-height: 1.4;
}

.starlink-disclaimer {
  font-size: 12px;
  color: #64748b;
  margin: 14px 0 0;
  line-height: 1.4;
}

/* Simplified Usage Modal styling */
.usage-modal-panel {
  max-width: 540px;
}
.usage-quick-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.quick-field {
  display: grid;
  gap: 6px;
}

/* ==========================================================================
   DAILY USAGE OBSIDIAN MODAL (Luxury SpaceX Quick Entry Dialog)
   ========================================================================== */
#usageDialog .modal-panel,
.usage-obsidian-modal {
  max-width: 480px !important;
  width: min(480px, 95vw) !important;
  max-height: min(94vh, 600px) !important;
  display: flex !important;
  flex-direction: column !important;
  background: #080c15 !important;
  color: #f8fafc !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(37, 99, 235, 0.15) !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.obsidian-usage-form {
  padding: 18px 22px !important;
  display: grid;
  gap: 14px;
  background: #080c15;
  overflow-y: auto !important;
  flex: 1 1 auto;
}

#usageDialog input {
  font-family: inherit;
  outline: none;
}
#usageDialog input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}

.usage-amount-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.usage-amount-container input {
  height: 40px !important;
  width: 100% !important;
  padding: 0 90px 0 14px !important;
  background: #131a29 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  outline: none !important;
  box-sizing: border-box !important;
}
.usage-amount-container input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}
.usage-amount-container .unit-toggle-pills {
  position: absolute;
  right: 5px;
  display: flex;
  background: #080c15;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px;
  border-radius: 8px;
  gap: 2px;
  z-index: 10 !important;
  pointer-events: auto !important;
}
.usage-amount-container .unit-pill {
  border: none;
  background: transparent;
  color: #64748b;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 11 !important;
  pointer-events: auto !important;
}
.usage-amount-container .unit-pill:hover {
  color: #ffffff;
}
.usage-amount-container .unit-pill.active {
  background: #2563eb !important;
  color: #ffffff !important;
}

.preset-chip {
  transition: all 0.15s ease;
}
.preset-chip:hover {
  background: rgba(56, 189, 248, 0.18) !important;
  border-color: #38bdf8 !important;
  transform: translateY(-1px);
}

/* Machine Clickable Pill & Today Status Badges */
.machine-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  background: #0f172a;
  color: #38bdf8 !important;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.machine-pill-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
  border-color: #38bdf8;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

.today-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.today-status-badge.recorded {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.today-status-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Machine Chart Modal Layout */
/* ==========================================================================
   MACHINE STARLINK OBSIDIAN MODAL (Ultra-Premium SpaceX Experience)
   ========================================================================== */
.machine-obsidian-modal {
  max-width: 820px !important;
  width: min(820px, 96vw) !important;
  max-height: min(94vh, 670px) !important;
  display: flex !important;
  flex-direction: column !important;
  background: #080c15 !important;
  color: #f8fafc !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(56, 189, 248, 0.08) !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.obsidian-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #0d121f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.obsidian-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.obsidian-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: #162032;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.obsidian-title-group strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.obsidian-sub {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.obsidian-close-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.obsidian-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  transform: scale(1.05);
}

.obsidian-body {
  padding: 16px 20px !important;
  display: grid;
  gap: 12px;
  background: #080c15;
  overflow-y: auto !important;
  flex: 1 1 auto;
}

.obsidian-body .starlink-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.obsidian-body .starlink-label {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: capitalize;
}

.obsidian-body .starlink-total-number {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.obsidian-body .starlink-period-tabs {
  display: inline-flex;
  gap: 3px;
  background: #131a29;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.obsidian-body .starlink-tab {
  background: transparent;
  color: #94a3b8;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.obsidian-body .starlink-tab:hover {
  color: #ffffff;
}

.obsidian-body .starlink-tab.active {
  background: #ffffff;
  color: #0b1120;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.obsidian-body .starlink-cycle-nav {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.obsidian-body .starlink-cycle-nav::-webkit-scrollbar {
  display: none;
}

.obsidian-body .cycle-nav-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.15s;
}

.obsidian-body .cycle-nav-btn:hover {
  color: #cbd5e1;
}

.obsidian-body .cycle-nav-btn.active {
  color: #38bdf8;
  font-weight: 800;
  position: relative;
}

.obsidian-body .cycle-nav-btn.active::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 0;
  right: 0;
  height: 2px;
  background: #38bdf8;
  border-radius: 2px;
}

.obsidian-body .starlink-chart-wrapper {
  margin-top: 2px;
}

.obsidian-body .starlink-chart-legend {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.obsidian-body .legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #38bdf8;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.obsidian-body .legend-dash {
  width: 12px;
  height: 3px;
  background: #38bdf8;
  border-radius: 2px;
}

.obsidian-body .legend-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  color: #ffffff;
}

.obsidian-body .legend-limit {
  color: #38bdf8;
  font-weight: 700;
}

.obsidian-body .starlink-chart-container {
  position: relative;
  width: 100%;
  height: 160px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.obsidian-body .starlink-chart-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.obsidian-body .starlink-tooltip {
  position: absolute;
  pointer-events: none;
  background: #1e293b;
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -120%);
  transition: opacity 0.15s, transform 0.15s;
  z-index: 50;
  white-space: nowrap;
}

.obsidian-quick-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  flex-wrap: wrap;
}

.obsidian-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 2px;
}

.obsidian-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.obsidian-stat-card span {
  font-size: 9.5px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.obsidian-stat-card strong {
  font-size: 14px;
  color: #f8fafc;
  font-weight: 800;
}

@media (max-height: 768px) {
  .obsidian-body .starlink-chart-container {
    height: 135px !important;
  }
  .obsidian-body {
    padding: 12px 16px !important;
    gap: 8px !important;
  }
  .obsidian-header {
    padding: 10px 16px !important;
  }
  .obsidian-stat-card {
    padding: 6px 10px !important;
  }
  .obsidian-stat-card strong {
    font-size: 13px !important;
  }
  .obsidian-body .starlink-total-number {
    font-size: 22px !important;
  }
}

/* Usage Sheet Table - Unclipped Customer Names & Actions */
.usage-sheet-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #0d121f;
}
.usage-sheet-table th {
  background: #090d16;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.usage-sheet-table td {
  height: 48px;
  padding: 8px 12px;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  vertical-align: middle;
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
}
.usage-sheet-table td:nth-child(2) {
  min-width: 160px;
  line-height: 1.45;
  color: #f8fafc;
  font-weight: 700;
}
.usage-sheet-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}
.usage-sheet-table td:last-child {
  white-space: nowrap !important;
  width: 210px;
  text-align: center;
}
.usage-sheet-table .action-col-btns {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Active / Inactive Sheet Filter Pills */
.sheet-filter-group {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.sheet-filter-group .filter-chip {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 28px;
}
.sheet-filter-group .filter-chip:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.sheet-filter-group .filter-chip.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.device-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.device-status-badge.active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.device-status-badge.inactive {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

/* System Settings Tab Navigation */
.settings-nav-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.settings-nav-tabs::-webkit-scrollbar {
  display: none;
}

.settings-nav-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.settings-nav-tab:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
}

.settings-nav-tab.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.settings-nav-tab.danger-tab.active {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
}

.settings-nav-tab.danger-tab:hover {
  color: #fca5a5;
}

.settings-tab-pane {
  display: none;
}

.settings-tab-pane.active {
  display: block;
  animation: fadeInSettingsPane 0.2s ease-out;
}

@keyframes fadeInSettingsPane {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.settings-section-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

/* ==========================================================================
   SPACELINK MM SPLIT-SCREEN LANDING & LOGIN EXPERIENCE
   ========================================================================== */
.spacelink-landing-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #060913;
  position: relative;
  overflow: hidden;
}

/* Ambient Background Glows */
.landing-ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
}

.landing-ambient-glow.glow-1 {
  width: 600px;
  height: 600px;
  top: -150px;
  left: -150px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(37, 99, 235, 0.08) 50%, transparent 70%);
}

.landing-ambient-glow.glow-2 {
  width: 650px;
  height: 650px;
  bottom: -200px;
  right: -150px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(16, 185, 129, 0.08) 50%, transparent 70%);
}

.landing-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
}

.spacelink-landing-container {
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
  z-index: 2;
  position: relative;
}

/* Left Hero & Showcase Panel */
.spacelink-hero-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-top-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.pulse-glow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-system-status {
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.03em;
}

.hero-brand-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-logo-box {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.hero-brand-title {
  margin: 0;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.15;
}

.hero-brand-title .glow-text {
  background: linear-gradient(135deg, #38bdf8, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}

.hero-brand-tagline {
  margin: 4px 0 0;
  font-size: 14.5px;
  color: #94a3b8;
  font-weight: 600;
  line-height: 1.4;
}

/* ==========================================================================
   FUTURISTIC SATELLITE HERO ARTWORK CARD
   ========================================================================== */
.hero-visual-card {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(8, 12, 21, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 
    0 16px 36px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 30px rgba(14, 165, 233, 0.12);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.visual-art-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.satellite-hero-svg {
  width: 100%;
  max-height: 180px;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.2));
}

.orbiting-sat-1 {
  animation: floatSat1 4s ease-in-out infinite;
}

.orbiting-sat-2 {
  animation: floatSat2 4.5s ease-in-out infinite;
}

@keyframes floatSat1 {
  0%, 100% { transform: translate(100px, 75px); }
  50% { transform: translate(100px, 68px); }
}

@keyframes floatSat2 {
  0%, 100% { transform: translate(430px, 115px); }
  50% { transform: translate(430px, 122px); }
}

.visual-status-chips {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 10px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.status-chip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.chip-dot.cyan { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }
.chip-dot.green { background: #34d399; box-shadow: 0 0 8px #34d399; }
.chip-dot.purple { background: #a78bfa; box-shadow: 0 0 8px #a78bfa; }

/* Feature Grid */
.hero-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.hero-feature-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.hero-feature-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateX(4px);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.feature-icon-box {
  font-size: 18px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-box.cyan-box {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #38bdf8;
}

.feature-icon-box.emerald-box {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.feature-icon-box.blue-box {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
}

.hero-feature-card strong {
  display: block;
  font-size: 13.5px;
  color: #f8fafc;
  font-weight: 700;
  margin-bottom: 2px;
}

.hero-feature-card p {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

/* Dedicated Downloads Area */
.hero-download-section {
  display: grid;
  gap: 10px;
}

.download-section-heading {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.hero-download-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-download-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #f8fafc;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hero-download-btn:hover {
  transform: translateY(-2px);
}

.android-glow-btn:hover {
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
  background: rgba(6, 78, 59, 0.25);
}

.windows-glow-btn:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
  background: rgba(30, 58, 138, 0.25);
}

.hero-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-btn-icon.android-glow {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.hero-btn-icon.windows-glow {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.hero-btn-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hero-btn-text strong {
  font-size: 12.5px;
  font-weight: 800;
  color: #ffffff;
}

.hero-btn-text small {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 600;
}

.btn-arrow {
  font-size: 15px;
  color: #64748b;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.hero-download-btn:hover .btn-arrow {
  color: #38bdf8;
  transform: translateY(2px);
}

/* ==========================================================================
   RIGHT LOGIN CARD: ULTRA-MODERN FROSTED GLASS
   ========================================================================== */
.spacelink-login-panel {
  display: flex;
  justify-content: center;
}

.login-glass-card {
  width: 100%;
  max-width: 440px;
  background: rgba(13, 19, 33, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 24px;
  padding: 34px 30px;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 35px rgba(14, 165, 233, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.login-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.login-security-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.login-card-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.login-card-head p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.45;
}

/* Styled Form Fields with Embedded Icons & Deep Obsidian Theme */
.login-field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-field-label span {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.login-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: color 0.2s ease;
}

.login-input-field {
  width: 100%;
  height: 44px;
  background: #090d16 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  padding: 0 42px 0 38px !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}

.login-input-field:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
  background: #0d1322 !important;
}

.login-input-field:focus + .input-icon,
.login-input-wrapper:focus-within .input-icon {
  color: #38bdf8;
}

/* Override Browser Autocomplete white/yellow backgrounds */
.login-input-field:-webkit-autofill,
.login-input-field:-webkit-autofill:hover, 
.login-input-field:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px #090d16 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
}

.pwd-toggle-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.pwd-toggle-btn:hover {
  color: #38bdf8;
}

/* Glowing Cyber Action Button */
.glowing-action-btn {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 4px;
}

.glowing-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.glowing-action-btn:hover .btn-shine {
  left: 150%;
}

/* Responsive Split Layout: Prioritize Sign In on Mobile */
@media (max-width: 960px) {
  .spacelink-landing-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .spacelink-hero-panel {
    order: 2;
  }
  .spacelink-login-panel {
    order: 1;
    width: 100%;
  }
  .login-glass-card {
    max-width: 100%;
  }
  .hero-download-cards {
    grid-template-columns: 1fr 1fr;
  }
  .hero-visual-card {
    padding: 12px 14px;
  }
  .satellite-hero-svg {
    max-height: 130px;
  }
}

@media (max-width: 600px) {
  .spacelink-landing-view {
    padding: 20px 14px;
  }
  .hero-brand-title {
    font-size: 24px;
  }
  .hero-download-cards {
    grid-template-columns: 1fr;
  }
  .login-glass-card {
    padding: 22px 16px;
    border-radius: 20px;
  }
  .visual-status-chips {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}


