@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-app: #080c14;
  --bg-card: #0f172a;
  --bg-card-elevated: #1e293b;
  --bg-input: #0b1120;
  
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: #0284c7;
  
  --primary: #0284c7;
  --cyan: #06b6d4;
  --green: #10b981;
  --yellow: #f59e0b;
  --red: #ef4444;
  --bkash: #e2136e;
  
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --text-muted: #64748b;
  
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: #020617;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

/* Mobile App Frame */
.mobile-app-container {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background-color: var(--bg-app);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

/* Navbar */
.app-navbar {
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.app-icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}

.app-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.app-subtitle {
  font-size: 10.5px;
  color: var(--cyan);
  font-weight: 700;
  text-transform: uppercase;
}

.user-pill {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.user-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
}

/* App Content */
.app-content {
  flex: 1;
  padding: 16px 16px 85px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

/* Client Status Card */
.client-status-card {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid rgba(2, 132, 199, 0.3);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.status-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.plan-label {
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.plan-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
}

.plan-speeds {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 800;
}

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

.dot {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: currentColor;
}

.status-divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

.status-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.block-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.expiry-countdown {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: var(--cyan);
  margin-top: 2px;
}

.expiry-date-text {
  font-size: 10.5px;
  color: var(--text-sub);
}

.bill-block {
  text-align: right;
}

.bill-val {
  font-size: 20px;
  font-weight: 800;
  color: #34d399;
}

.vat-tag {
  font-size: 9.5px;
  color: var(--text-muted);
}

/* Quick Action Grid */
.quick-action-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
}

.quick-act-btn {
  padding: 12px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 12.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.quick-act-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.3;
}

.btn-bkash {
  background: var(--bkash);
  color: #fff;
  box-shadow: 0 4px 12px rgba(226, 19, 110, 0.35);
}

.btn-grace {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
}

/* General App Cards */
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.card-heading {
  font-size: 12.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

.card-heading svg {
  width: 15px;
  height: 15px;
  stroke: var(--cyan);
}

.health-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: #34d399;
}

.laser-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 12px;
}

.laser-metric {
  display: flex;
  flex-direction: column;
}

.metric-lbl {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.metric-val {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Speed Gauge */
.speed-gauge-box {
  padding: 16px 0 6px;
  text-align: center;
}

.speed-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  color: var(--cyan);
}

.speed-unit {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-test {
  padding: 4px 8px;
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(2, 132, 199, 0.3);
  color: #38bdf8;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* Complaint Form */
.complaint-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
}

.app-select, .app-textarea {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 12px;
  font-family: inherit;
  outline: none;
}

.btn-submit-ticket {
  padding: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

/* Invoices List */
.invoices-list {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
}

.inv-num {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.inv-date {
  font-size: 10.5px;
  color: var(--text-muted);
}

.btn-receipt {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: var(--radius-xs);
  font-size: 11px;
  text-decoration: none;
  font-weight: 600;
}

/* Bottom App Navigation Bar */
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  height: 60px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 50;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.nav-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.nav-btn.active {
  color: var(--primary);
}

/* Toast */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  z-index: 1000;
}

.toast {
  padding: 10px 14px;
  background: #1e293b;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  margin-bottom: 8px;
}
