/* ─── VARIABLES ─────────────────────────────────────── */
:root {
  --bg:        #040c1a;
  --bg2:       #0d1b2e;
  --bg3:       #0a1628;
  --border:    #0f2a47;
  --border2:   #1e3a5f;
  --primary:   #0ea5e9;
  --primary2:  #2563eb;
  --success:   #10b981;
  --warning:   #f59e0b;
  --danger:    #ef4444;
  --purple:    #8b5cf6;
  --text:      #e2e8f0;
  --muted:     #94a3b8;
  --dim:       #475569;
  --sidebar-w: 220px;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: 'Segoe UI', sans-serif; margin: 0; }
a { text-decoration: none; }
code { color: var(--primary); background: rgba(14,165,233,.1); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

.app-wrapper    { display: flex; min-height: 100vh; }
.main-content   { flex: 1; display: flex; flex-direction: column; overflow-x: hidden; }
.page-body      { padding: 24px; flex: 1; }

.sidebar {
  width: var(--sidebar-w);
  background: #020910;
  border-right: 1px solid var(--border);
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
}
.brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
  box-shadow: 0 0 12px rgba(14,165,233,.35);
  flex-shrink: 0;
}
.brand-name { font-size: 13px; font-weight: 800; font-family: monospace; color: var(--text); }
.brand-sub  { font-size: 10px; color: var(--dim); }

.sidebar-nav { padding: 10px 8px; }
.sidebar-nav .nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  color: var(--dim); font-size: 13px; font-weight: 500;
  margin-bottom: 3px;
  border-left: 2px solid transparent;
  transition: all .18s;
}
.sidebar-nav .nav-link:hover { color: var(--muted); background: rgba(255,255,255,.04); }
.sidebar-nav .nav-link.active {
  color: var(--primary);
  background: rgba(14,165,233,.1);
  border-left-color: var(--primary);
  font-weight: 700;
}
.sidebar-nav .nav-link i { font-size: 15px; }

.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); }
.user-chip { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; flex-shrink: 0;
}
.user-avatar.user { background: linear-gradient(135deg, var(--primary), var(--primary2)); }
.user-name { font-size: 12px; font-weight: 700; color: var(--text); }
.user-role { font-size: 10px; color: var(--dim); }

.topbar {
  background: #020910;
  border-bottom: 1px solid var(--border);
  padding: 11px 24px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.topbar-title { font-size: 17px; font-weight: 800; color: var(--text); }
.topbar-sub   { font-size: 12px; color: var(--dim); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.role-badge {
  font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  background: rgba(14,165,233,.15); color: var(--primary);
  border: 1px solid rgba(14,165,233,.3);
}
.role-badge.admin {
  background: rgba(239,68,68,.15); color: var(--danger);
  border-color: rgba(239,68,68,.3);
}

.card-dark {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px;
}
.stat-card {
  border-radius: 12px; padding: 18px;
  border: 1px solid var(--border); background: var(--bg2);
}
.stat-value { font-size: 22px; font-weight: 800; font-family: monospace; }
.stat-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.stat-sub   { font-size: 11px; color: var(--dim); }

.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
.table-dark-custom { width: 100%; border-collapse: collapse; }
.table-dark-custom thead tr { background: var(--bg); }
.table-dark-custom th {
  padding: 10px 14px; color: var(--dim); font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table-dark-custom td {
  padding: 11px 14px; font-size: 13px; color: var(--text);
  border-bottom: 1px solid var(--border); vertical-align: middle;
}
.table-dark-custom tbody tr:hover { background: rgba(255,255,255,.025); }
.table-dark-custom tbody tr:last-child td { border-bottom: none; }

.badge-pill {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px; white-space: nowrap;
}
.badge-paid    { background: rgba(16,185,129,.15);  color: var(--success); border: 1px solid rgba(16,185,129,.3); }
.badge-unpaid  { background: rgba(245,158,11,.15);  color: var(--warning); border: 1px solid rgba(245,158,11,.3); }
.badge-overdue { background: rgba(239,68,68,.15);   color: var(--danger);  border: 1px solid rgba(239,68,68,.3); }
.badge-admin   { background: rgba(239,68,68,.15);   color: var(--danger);  border: 1px solid rgba(239,68,68,.3); }
.badge-user    { background: rgba(14,165,233,.15);  color: var(--primary); border: 1px solid rgba(14,165,233,.3); }
.badge-active  { background: rgba(16,185,129,.15);  color: var(--success); border: 1px solid rgba(16,185,129,.3); }
.badge-inactive{ background: rgba(71,85,105,.15);   color: var(--dim);     border: 1px solid rgba(71,85,105,.3); }
.badge-res     { background: rgba(139,92,246,.15);  color: var(--purple);  border: 1px solid rgba(139,92,246,.3); }
.badge-com     { background: rgba(14,165,233,.15);  color: var(--primary); border: 1px solid rgba(14,165,233,.3); }
.dot-active    { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--success); margin-right: 5px; }
.dot-inactive  { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); margin-right: 5px; }

.modal-content { background: var(--bg2); border: 1px solid var(--border2); color: var(--text); }
.modal-header  { border-bottom: 1px solid var(--border); }
.modal-footer  { border-top: 1px solid var(--border); }
.modal-title   { font-weight: 800; font-size: 15px; }

.form-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.form-control, .form-select {
  background: var(--bg) !important;
  border: 1px solid var(--border2) !important;
  color: var(--text) !important;
  font-size: 13px; border-radius: 8px; padding: 9px 12px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(14,165,233,.15) !important;
}
.form-control::placeholder { color: var(--dim); }
.form-control[readonly] { color: var(--dim) !important; cursor: not-allowed; }
.form-select option { background: var(--bg2); }

.btn-primary-glow {
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  border: none; color: #fff; font-weight: 700; border-radius: 8px;
  padding: 9px 18px; font-size: 13px;
  box-shadow: 0 4px 14px rgba(14,165,233,.3);
  transition: opacity .18s;
}
.btn-primary-glow:hover { opacity: .88; color: #fff; }

.btn-success-glow {
  background: linear-gradient(135deg, var(--success), #059669);
  border: none; color: #fff; font-weight: 700; border-radius: 8px;
  padding: 9px 18px; font-size: 13px;
  transition: opacity .18s;
}
.btn-success-glow:hover { opacity: .88; color: #fff; }

.btn-icon {
  padding: 4px 9px; border-radius: 6px; font-size: 12px;
  font-weight: 600; border: none; cursor: pointer; transition: all .15s;
}
.btn-edit   { background: rgba(37,99,235,.2);  color: #60a5fa; }
.btn-edit:hover   { background: rgba(37,99,235,.35); }
.btn-delete { background: rgba(239,68,68,.2);  color: #f87171; }
.btn-delete:hover { background: rgba(239,68,68,.35); }
.btn-view   { background: rgba(14,165,233,.15); color: var(--primary); border: 1px solid rgba(14,165,233,.3); }
.btn-view:hover   { background: rgba(14,165,233,.28); }

.search-bar {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 16px; flex-wrap: wrap;
}
.search-bar .form-control { max-width: 320px; }

.ajax-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--warning), #d97706);
  color: #000; font-size: 9px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px; font-family: monospace;
  box-shadow: 0 1px 4px rgba(245,158,11,.4);
  white-space: nowrap;
}

.info-box {
  background: var(--bg3); border-radius: 10px; padding: 12px 14px;
  border: 1px solid var(--border); font-size: 12px; color: var(--muted);
}
.info-box.warning { border-color: rgba(245,158,11,.4);  background: rgba(245,158,11,.07);  color: #fbbf24; }
.info-box.danger  { border-color: rgba(239,68,68,.4);   background: rgba(239,68,68,.07);   color: #fca5a5; }
.info-box.info    { border-color: rgba(14,165,233,.4);  background: rgba(14,165,233,.07);  color: #7dd3fc; }
.info-box.success { border-color: rgba(16,185,129,.4);  background: rgba(16,185,129,.07);  color: #6ee7b7; }

.bill-detail-row {
  background: var(--bg3); border-radius: 8px;
  padding: 10px 12px; border: 1px solid var(--border);
}
.bill-detail-label { font-size: 10px; color: var(--dim); margin: 0; }
.bill-detail-value { font-size: 14px; font-weight: 700; margin: 3px 0 0; font-family: monospace; }

.bill-total-box {
  background: var(--bg3); border-radius: 10px; padding: 16px;
  border: 1px solid var(--border2);
  display: flex; justify-content: space-between; align-items: center;
}
.bill-total-amount { font-size: 28px; font-weight: 800; font-family: monospace; }

.mini-bar-wrap  { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.mini-bar-col   { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mini-bar       { width: 100%; border-radius: 4px 4px 0 0; }
.mini-bar-label { font-size: 9px; color: var(--dim); text-align: center; word-break: break-word; }
.mini-bar-val   { font-size: 10px; font-family: monospace; font-weight: 700; }

.page-header {
  margin-bottom: 20px;
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 10px;
}
.page-title { font-size: 20px; font-weight: 800; color: var(--text); margin: 0; }
.page-sub   { font-size: 13px; color: var(--dim); margin: 4px 0 0; }

.login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(14,165,233,.07) 0%, transparent 65%), var(--bg);
}
.login-box {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 16px; padding: 28px; width: 100%; max-width: 420px;
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
}
.login-logo {
  width: 60px; height: 60px; border-radius: 14px; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff;
  box-shadow: 0 0 22px rgba(14,165,233,.45);
}

@media print {
  .sidebar, .topbar, .search-bar, .btn, button { display: none !important; }
  .page-body { padding: 0; }
  body { background: #fff; color: #000; }
  .card-dark, .stat-card, .table-wrap { border: 1px solid #ccc; }
  .table-dark-custom th, .table-dark-custom td { color: #000; border-color: #ccc; }
}

@media (max-width: 768px) {
  .sidebar { display: none; }
  .page-body { padding: 16px; }
}

.tc-bill-no    { color: var(--purple);  font-family: monospace; }
.tc-account    { color: var(--primary); font-family: monospace; }
.tc-kwh        { color: var(--primary); font-family: monospace; font-weight: 700; }
.tc-amount     { color: var(--success); font-family: monospace; font-weight: 800; }
.tc-amount-sm  { font-family: monospace; }
.tc-rank       { color: var(--warning); font-weight: 700; }
.tc-due        { color: var(--warning); font-family: monospace; font-weight: 700; }
.tc-dim        { color: var(--dim); }
.tc-pay-count  { color: var(--primary); }
.tc-all-paid   { color: var(--success); }

.filter-select { max-width: 140px; }

.profile-photo-wrap {
  position: relative;
  flex-shrink: 0;
}
.profile-photo-circle {
  width: 70px; height: 70px;
  border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: #fff;
}
.profile-photo-circle.admin-colors {
  background: linear-gradient(135deg, var(--danger), var(--purple));
}
.profile-photo-circle img {
  width: 100%; height: 100%; object-fit: cover;
}
.photo-upload-btn {
  position: absolute; bottom: 0; right: 0;
  background: var(--primary); color: #fff;
  border-radius: 50%; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 11px; font-weight: 700;
}
.photo-input-hidden { display: none; }

.sidebar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.sidebar-avatar.admin-avatar {
  background: linear-gradient(135deg, var(--danger), var(--purple));
}
.sidebar-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.sidebar-avatar-link { text-decoration: none; }
.user-chip-clickable { cursor: pointer; }

.profile-meta { font-size: 12px; color: var(--dim); }
.profile-accounts { text-align: right; font-size: 12px; color: var(--dim); }
.profile-accounts .mono-link { color: var(--primary); font-family: monospace; }

.pw-form { max-width: 400px; }

.total-amount-input {
  color: var(--success) !important;
  font-weight: 800 !important;
  font-size: 15px !important;
}

.welcome-bar { font-size: 13px; color: var(--dim); margin-bottom: 12px; }
.welcome-bar strong { color: var(--text); }
.welcome-bar .mono-code { color: var(--primary); font-family: monospace; }

.bill-banner {
  border-radius: 10px; padding: 12px 16px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 10px;
  margin-bottom: 16px;
}
.bill-banner.banner-overdue {
  background: rgba(239,68,68,.07);
  border: 1px solid rgba(239,68,68,.4);
}
.bill-banner.banner-unpaid {
  background: rgba(245,158,11,.07);
  border: 1px solid rgba(245,158,11,.4);
}
.bill-banner-title-overdue { color: var(--danger); }
.bill-banner-title-unpaid  { color: var(--warning); }
.bill-banner-sub  { color: var(--muted); font-size: 13px; }
.bill-banner-right { text-align: right; }
.bill-banner-amount-overdue { font-size: 22px; font-weight: 800; font-family: monospace; color: var(--danger); }
.bill-banner-amount-unpaid  { font-size: 22px; font-weight: 800; font-family: monospace; color: var(--warning); }
.bill-banner-btn-overdue {
  background: var(--danger); color: #fff;
  font-weight: 700; border-radius: 6px;
  font-size: 12px; padding: 4px 12px;
  display: inline-block; margin-top: 4px;
}
.bill-banner-btn-unpaid {
  background: var(--warning); color: #000;
  font-weight: 700; border-radius: 6px;
  font-size: 12px; padding: 4px 12px;
  display: inline-block; margin-top: 4px;
}

.topbar-username { color: #64748b; font-size: 12px; }

.section-note { font-size: 11px; font-weight: 400; color: var(--dim); }

.chart-section { margin-bottom: 20px; }

.bdv-muted   { color: var(--muted); }
.bdv-primary { color: var(--primary); }

.btd-label { color: var(--dim); font-size: 11px; margin: 0; }
.btd-date  { font-size: 14px; font-weight: 700; margin: 4px 0 6px; }
.btd-right { text-align: right; }

/* ─── PASSWORD STRENGTH INDICATOR ───────────────────── */
.pw-strength-wrap {
  margin-top: 6px;
}
.pw-strength-bar-bg {
  height: 5px;
  background: var(--border2);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}
.pw-strength-bar {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  transition: width .35s ease, background .35s ease;
}
.pw-strength-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 6px;
  min-height: 15px;
  transition: color .3s;
}
.pw-rules {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pw-rules li {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color .25s;
}
.pw-rules li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--dim);
  flex-shrink: 0;
  background: transparent;
  background-image: none;
  transition: border-color .25s, background .25s;
}
.pw-rules li.pass {
  color: var(--success);
}
.pw-rules li.pass::before {
  border-color: var(--success);
  background: var(--success);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 10px 10px;
  background-repeat: no-repeat;
  background-position: center;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(2) contrast(2);
  opacity: 1;
  cursor: pointer;
  padding: 3px;
  border-radius: 5px;
  background-color: transparent;
  border: none;
  transition: background .2s, opacity .2s, transform .2s;
  width: 24px;
  height: 24px;
}

/* ─── MOBILE RESPONSIVE OVERHAUL ─────────────────────── */

/* Hamburger button - hidden on desktop */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .15s;
  flex-shrink: 0;
}
.sidebar-toggle:hover { background: rgba(255,255,255,.07); }

/* Overlay backdrop */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 299;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

@media (max-width: 768px) {
  /* Show hamburger */
  .sidebar-toggle { display: flex; align-items: center; justify-content: center; }

  /* Sidebar becomes a slide-in drawer */
  .sidebar {
    display: flex !important;
    position: fixed;
    left: -260px;
    top: 0;
    width: 260px;
    height: 100vh;
    z-index: 300;
    transition: left .28s cubic-bezier(.4,0,.2,1);
    box-shadow: none;
  }
  .sidebar.open {
    left: 0;
    box-shadow: 4px 0 30px rgba(0,0,0,.5);
  }

  /* Topbar adjustments */
  .topbar {
    padding: 10px 14px;
    position: sticky;
    top: 0;
    z-index: 200;
    gap: 8px;
  }
  .topbar-title { font-size: 15px; }
  .topbar-sub   { font-size: 11px; }
  .topbar-username { display: none; }

  /* Page body */
  .page-body { padding: 14px; }

  /* Stat cards: 2 columns */
  .stats-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 18px; }
  .stat-label { font-size: 10px; }

  /* Page header stacks vertically */
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .page-header .btn-primary-glow,
  .page-header .btn-success-glow {
    width: 100%;
    text-align: center;
  }

  /* Search bar stacks */
  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-bar .form-control,
  .search-bar .form-select,
  .search-bar .filter-select {
    max-width: 100% !important;
    width: 100%;
  }

  /* Table: horizontal scroll with sticky first column */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-dark-custom th,
  .table-dark-custom td {
    font-size: 12px;
    padding: 9px 10px;
    white-space: nowrap;
  }

  /* Modal full-screen on mobile */
  .modal-dialog {
    margin: 0 !important;
    max-width: 100% !important;
    min-height: 100vh;
    align-items: flex-end;
  }
  .modal.fade .modal-dialog { transform: translateY(100%); }
  .modal.show .modal-dialog  { transform: translateY(0); }
  .modal-content {
    border-radius: 16px 16px 0 0 !important;
    max-height: 92vh;
    overflow-y: auto;
  }

  /* Bill detail rows: 2-col grid */
  .bill-detail-row .row > [class*="col"] { margin-bottom: 8px; }

  /* Bill total box */
  .bill-total-box { flex-direction: column; gap: 8px; text-align: center; }
  .bill-total-amount { font-size: 22px; }

  /* Login box */
  .login-box { margin: 16px; padding: 22px; }

  /* Mini bar chart */
  .mini-bar-wrap { height: 70px; gap: 5px; }
  .mini-bar-val  { font-size: 9px; }

  /* Reports row stacks */
  .chart-section .row > [class*="col"] { margin-bottom: 16px; }

  /* Topbar right: hide username, keep badge */
  .topbar-right { gap: 6px; }

  /* Info boxes full width */
  .info-box { font-size: 12px; }

  /* Bill banner */
  .bill-banner { flex-direction: column; }
  .bill-banner-right { text-align: left; }
  .bill-banner-amount-overdue,
  .bill-banner-amount-unpaid { font-size: 18px; }

  /* Row gaps on cards */
  .card-dark { padding: 14px; }

  /* pw form full width on mobile */
  .pw-form { max-width: 100%; }

  /* Profile photo row stacks */
  .profile-photo-wrap + div { margin-top: 12px; }
  .profile-accounts { text-align: left; margin-top: 8px; }
}

@media (max-width: 480px) {
  /* Single column stats on very small screens */
  .stats-grid { grid-template-columns: 1fr; }
  .topbar-title { font-size: 14px; }
  .page-title  { font-size: 17px; }
  .stat-value  { font-size: 20px; }
}

/* ── Philippine Address Widget ───────────────────────── */
.ph-address-widget .form-select,
.ph-address-widget .form-control {
  background: var(--input-bg, #0f172a);
  border: 1px solid var(--border, #1e293b);
  color: var(--text, #e2e8f0);
  border-radius: 8px;
  font-size: 13px;
  padding: 8px 12px;
  transition: border-color .2s;
}
.ph-address-widget .form-select:focus,
.ph-address-widget .form-control:focus {
  border-color: var(--primary, #0ea5e9);
  outline: none;
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}
.ph-address-widget .form-select:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.ph-address-widget .form-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 5px;
}

/* ─── BILLING MONTH SPINNERS ─────────────────────────── */
.spinner-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.spinner-select {
  flex: 1 1 0;
  min-width: 0;
  width: auto !important;
  height: 42px;
  box-sizing: border-box;
  background: var(--bg2);
  border: 1px solid var(--border2);
  color: var(--text);
  border-radius: 6px;
  padding: 0 10px;
  font-size: 14px;
  line-height: 42px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  appearance: auto;
}
.spinner-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}
.spinner-select option {
  background: var(--bg2);
  color: var(--text);
}