/* ============================================================
   NightHawk Elite — Property Manager Portal Styles
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-0:        #0d1117;
  --bg-1:        #161b22;
  --bg-2:        #21262d;
  --bg-3:        #2d333b;
  --border:      #30363d;
  --border-light:#3d444d;
  --text-1:      #e6edf3;
  --text-2:      #8b949e;
  --text-3:      #6e7681;
  --red:         #d90000;
  --red-hover:   #b80000;
  --red-dim:     rgba(217,0,0,0.12);
  --red-text:    #ff7b7b;  /* readable red-on-dark for text (badges, deltas) — separate from --red's button/bg use */
  --brand-red:   #ff2020;  /* "HAWK" wordmark accent in the app header */
  --green:       #238636;
  --green-text:  #3fb950;
  --green-dim:   rgba(35,134,54,0.15);
  --blue:        #58a6ff;
  --blue-text:   #58a6ff;
  --blue-dim:    rgba(88,166,255,0.12);
  --yellow:      #e3b341;
  --yellow-dim:  rgba(227,179,65,0.15);
  --purple:      #a371f7;
  --danger:      #f85149;
  --danger-dim:  rgba(248,81,73,0.15);
  --radius:      8px;
  --radius-sm:   6px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --sidebar-w:   220px;
  --trans:       0.18s ease;
}

/* ── Light theme ──────────────────────────────────────────
   Toggled via <html data-theme="light">, default is dark (see the <head>
   inline script in property-manager-portal.html). Every variable from the
   :root block above is re-declared here — nothing is left to fall through to
   its dark value by accident. The reds/greens/blues/yellows are darkened
   where the dark-mode value was chosen for contrast against a near-black
   background and would otherwise read too pale on white (e.g. --green-text
   #3fb950 → #1a7f37, --yellow #e3b341 → #9a6700).
   #login-screen is EXCLUDED on purpose — its colors are hardcoded further
   down (the shared staff-login spec), never reference these variables, and
   must always render dark regardless of this toggle. */
:root[data-theme="light"] {
  --bg-0:        #f4f4f6;
  --bg-1:        #ffffff;
  --bg-2:        #ececef;
  --bg-3:        #e2e2e7;
  --border:      #d9d9e0;
  --border-light:#c9c9d2;
  --text-1:      #1a1a1a;
  --text-2:      #555555;
  --text-3:      #777777;
  --red:         #d90000;
  --red-hover:   #b80000;
  --red-dim:     rgba(217,0,0,0.08);
  --red-text:    #cf222e;
  --brand-red:   #d90000;
  --green:       #238636;
  --green-text:  #1a7f37;
  --green-dim:   rgba(26,127,55,0.12);
  --blue:        #0969da;
  --blue-text:   #0969da;
  --blue-dim:    rgba(9,105,218,0.10);
  --yellow:      #9a6700;
  --yellow-dim:  rgba(154,103,0,0.12);
  --purple:      #8250df;
  --danger:      #cf222e;
  --danger-dim:  rgba(207,34,46,0.12);
  --radius:      8px;
  --radius-sm:   6px;
  --shadow:      0 4px 24px rgba(0,0,0,0.12);
  --sidebar-w:   220px;
  --trans:       0.18s ease;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}
/* Form controls don't inherit the body font by default — bring them into the brand. */
button, input, select, textarea { font-family: inherit; }

/* ── Boot Splash ───────────────────────────────────────────
   Covers the ~200ms gap between first paint and Firebase restoring a
   signed-in session on reload, so #login-screen never flashes. ALWAYS
   #0c0c0c regardless of the data-theme toggle (same reasoning as
   #login-screen below — no theme/auth context exists yet). Removed for
   good by the first onAuthStateChanged callback (see the Auth section of
   the module script). */
#boot-splash {
  position: fixed;
  inset: 0;
  z-index: 100000; /* above every other overlay (highest existing is 10000) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #0c0c0c;
}
.boot-splash-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.boot-splash-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: #d90000;
  border-radius: 50%;
  animation: boot-splash-spin 0.8s linear infinite;
}
@keyframes boot-splash-spin {
  to { transform: rotate(360deg); }
}

/* ── Login Screen (NightHawk shared login spec) ───────── */
/* #join-screen (Phase 10 invite flow) is a login-screen sibling: same
   always-dark treatment, same .login-card internals. */
#login-screen,
#join-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;   /* identical across all three staff portals */
  background: radial-gradient(1200px 600px at 50% -10%, rgba(217,0,0,.12), transparent 60%), #0c0c0c;
}
.login-card {
  background: #161616;
  border: 1px solid #262626;
  border-radius: 16px;
  padding: 36px 30px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  text-align: center;
}
.login-logo { margin-bottom: 22px; }
.login-logo-img {
  height: 72px;
  width: auto;
  display: block;
  margin: 0 auto 12px;
}
.login-wordmark {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .06em;
  color: #fff;
}
.login-wordmark span { color: #ff2020; }
.login-subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: #9aa0a6;
  margin-top: 2px;
}
.login-portal-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(217,0,0,.12);
  border: 1px solid rgba(217,0,0,.35);
  color: #ff6b6b;
  font: 700 12px 'Poppins', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 14px;
}
.login-descriptor {
  font-size: 12.5px;
  color: #9aa0a6;
  margin-top: 10px;
}
.login-card .form-label {
  font-size: 12px;
  font-weight: 600;
  color: #9aa0a6;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
}
.login-card .form-control {
  min-height: 48px;
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  color: #e8e8e8;
  font-size: 16px;   /* 16px prevents iOS zoom-on-focus */
  padding: 12px 14px;
}
.login-card .form-control:focus {
  border-color: #d90000;
  box-shadow: 0 0 0 3px rgba(217,0,0,.18);
}
.login-card .btn-primary {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg,#d90000,#a30000);
  color: #fff;
  font: 700 15px 'Poppins', sans-serif;
  transition: filter .15s;
}
.login-card .btn-primary:hover { filter: brightness(1.1); opacity: 1; }
.login-card .btn-primary:disabled { opacity: .6; }
.login-footer {
  font-size: 11px;
  color: #6e6e6e;
  margin-top: 18px;
}
.login-error {
  background: rgba(255,48,48,.1);
  border: 1px solid rgba(255,48,48,.4);
  border-radius: 10px;
  color: #ff8585;
  font-size: 13px;
  padding: 10px 12px;
  margin-bottom: 16px;
  text-align: left;
  display: none;
}

/* ── Join screen (Phase 10: team invites) ─────────────── */
/* Hardcoded dark like the login card — no theme context exists pre-auth. */
.js-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 4px;
}
.js-tab {
  flex: 1;
  padding: 9px 8px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #9aa0a6;
  font: 600 13px 'Poppins', sans-serif;
  cursor: pointer;
}
.js-tab.active { background: #262626; color: #fff; }
.js-invite-box, .js-status-box {
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  color: #d6d6d6;
  font-size: 13.5px;
  line-height: 1.55;
  padding: 14px;
  margin-bottom: 16px;
  text-align: left;
}
.js-status-box i { color: #ff6b6b; margin-right: 6px; }
.js-link-btn {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: none;
  color: #9aa0a6;
  font-size: 12.5px;
  text-decoration: underline;
  cursor: pointer;
}
.js-link-btn:hover { color: #fff; }

/* ── Phase 11: locked invite email + login info + profile ─ */
.js-lock-note {
  font-weight: 400;
  font-size: 11px;
  color: #9aa0a6;
  margin-left: 6px;
}
.login-card .form-control.js-locked {
  opacity: .65;
  cursor: default;
}
.login-info {
  background: rgba(46,160,67,.12);
  border: 1px solid rgba(46,160,67,.4);
  border-radius: 10px;
  color: #7ee2a8;
  font-size: 13px;
  padding: 10px 12px;
  margin-bottom: 16px;
  text-align: left;
  display: none;
}
.app-user-btn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 4px 6px;
  border-radius: 8px;
}
.app-user-btn:hover { background: var(--bg-3); }
.prof-info-grid { margin-top: 6px; }
.prof-info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.prof-info-row:last-child { border-bottom: none; }
.prof-info-row span { color: var(--text-3); }
/* .login-info is dark-tuned for the (always-dark) login/join screens; when
   reused inside the THEMED profile modal, keep it legible in light mode. */
[data-theme="light"] .modal-overlay .login-info {
  color: #1a7f37;
  border-color: rgba(46,160,67,.55);
}

/* ── My Team view (Phase 10) ──────────────────────────── */
.team-invite-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.team-invite-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}
.team-invite-row .form-control { flex: 1; min-width: 220px; }
.team-section-title {
  font-size: 14px;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Form Controls ────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-label  { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.form-control {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 14px;
  padding: 9px 12px;
  width: 100%;
  transition: border-color .15s;
}
.form-control:focus { outline: none; border-color: var(--red); }
.form-hint { font-size: 11px; color: var(--text-3); margin-top: 3px; }

/* ── Buttons ──────────────────────────────────────────── */
.btn-primary {
  background: var(--red); border: none; border-radius: var(--radius-sm);
  color: #fff; font-size: 14px; font-weight: 600; padding: 10px 18px;
  cursor: pointer; transition: opacity .15s; width: 100%;
}
.btn-primary:hover { opacity: .88; }
.btn-primary:disabled { opacity: .4; cursor: default; }
.btn-secondary {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 13px; padding: 7px 14px;
  cursor: pointer; transition: background .15s, color .15s;
}
.btn-secondary:hover { background: var(--bg-2); color: var(--text-1); }
.btn-icon {
  background: none; border: none; color: var(--text-3); font-size: 13px;
  padding: 6px 10px; border-radius: var(--radius-sm); cursor: pointer; transition: color .15s, background .15s;
}
.btn-icon:hover { color: var(--text-1); background: var(--bg-3); }

/* ── App Shell ────────────────────────────────────────── */
#app-shell { display: none; height: 100vh; display: flex; flex-direction: column; }
#app-header {
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.app-header-left { display: flex; align-items: center; gap: 12px; }
.app-brand { display: flex; align-items: center; gap: 9px; }
.app-brand-logo { height: 30px; width: auto; display: block; }
.app-brand-name {
  font-size: 14px; font-weight: 800; letter-spacing: .06em;
  color: var(--text-1); white-space: nowrap;
}
.app-brand-red { color: var(--brand-red); }
.app-prop-badge {
  background: var(--red-dim);
  border: 1px solid rgba(217,0,0,.25);
  border-radius: 20px;
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
}
.app-header-right { display: flex; align-items: center; gap: 10px; }
.app-user-name { font-size: 13px; color: var(--text-3); }

#app-body { display: flex; flex: 1; overflow: hidden; }

/* ── Sidebar ──────────────────────────────────────────── */
#sidebar {
  width: var(--sidebar-w);
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 12px 0;
}
.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 8px 16px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; background: none; border: none;
  color: var(--text-3); font-size: 13px;
  padding: 9px 16px; text-align: left; cursor: pointer;
  border-radius: 0; transition: color .15s, background .15s;
}
.nav-item:hover  { color: var(--text-1); background: var(--bg-3); }
.nav-item.active { color: var(--text-1); background: var(--bg-2); border-left: 3px solid var(--red); }
.nav-item i { width: 16px; text-align: center; }

/* ── Nav Unread Badge (P3) ────────────────────────────── */
.nav-badge {
  margin-left: auto;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1.6;
  border-radius: 999px; padding: 0 7px; min-width: 20px;
  text-align: center; flex-shrink: 0;
}

/* ── Main Content ─────────────────────────────────────── */
#main-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background: var(--bg-0);
}
.view { display: none; }
.view.active { display: block; }
.view-title { font-size: 20px; font-weight: 700; color: var(--text-1); margin-bottom: 20px; }

/* ── Stat Cards ───────────────────────────────────────── */
.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.stat-card-val { font-size: 28px; font-weight: 700; color: var(--text-1); }
.stat-card-lbl { font-size: 11px; color: var(--text-3); margin-top: 4px; text-transform: uppercase; letter-spacing: .05em; }

/* ── Property Info Cards ──────────────────────────────── */
.prop-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.info-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.info-card-hdr {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-3); padding: 10px 16px;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 7px;
}
.info-card-body { padding: 14px 16px; }
.info-field { display: flex; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.info-field:last-child { border-bottom: none; }
.info-label { font-size: 12px; color: var(--text-3); min-width: 130px; flex-shrink: 0; }
.info-value { font-size: 13px; color: var(--text-2); }

/* ── Badges ───────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px;
}
.badge-green  { background: rgba(35,134,54,.2);  color: var(--green-text); }
.badge-red    { background: rgba(217,0,0,.18);   color: var(--red-text); }
.badge-blue   { background: rgba(31,111,235,.2); color: var(--blue-text); }
.badge-yellow { background: rgba(227,179,65,.2); color: var(--yellow); }
.badge-gray   { background: var(--bg-3);         color: var(--text-3); }
.badge-purple { background: rgba(163,113,247,.2);color: var(--purple); }
/* A .badge that's actually a <button> — the Phase 13 "Invoice #N — Payment
   due/Paid/Void" chip inside the ticket detail modal. Strips the button's
   native border/font so it reads identically to the plain-span badges above. */
.badge-btn { border: none; font: inherit; cursor: pointer; transition: opacity .15s; }
.badge-btn:hover { opacity: .82; }

/* ── Active-Filter Chips (P12) ────────────────────────── */
.active-chips {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin: -6px 0 14px;
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 10px;
  font-size: 12px; color: var(--text-2); line-height: 1.6;
}
.filter-chip strong { color: var(--text-1); font-weight: 600; }
.filter-chip-lbl { color: var(--text-3); }
.filter-chip-x {
  background: none; border: none; color: var(--text-3);
  cursor: pointer; padding: 1px 2px; font-size: 11px;
  display: inline-flex; align-items: center; border-radius: 50%;
  transition: color .15s;
}
.filter-chip-x:hover { color: var(--red-text); }
.filter-chip-count {
  background: var(--red-dim); border-color: rgba(217,0,0,.3);
  color: var(--red-text); font-weight: 600;
}

/* ── Filter Bar ───────────────────────────────────────── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.filter-bar select, .filter-bar input[type="text"], .filter-bar input[type="date"] {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-1); font-size: 13px; padding: 7px 10px;
}
.filter-bar select:focus, .filter-bar input:focus { outline: none; border-color: var(--red); }
.filter-bar input[type="text"] { width: 160px; }

/* ── Data Table ───────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  background: var(--bg-2); color: var(--text-3); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; padding: 9px 12px; text-align: left;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-1); }
.table-wrap { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

/* ── Violation Type Chips ─────────────────────────────── */
.viol-type-chip {
  display: inline-block; font-size: 11px; padding: 2px 7px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 4px; color: var(--text-2); margin-right: 3px;
}
.viol-type-chip.muted { color: var(--text-3); }

/* ── Invoices (Phase 13) ───────────────────────────────── */
/* The invoices table's "For" column: an "SR #N" chip that links back to the
   originating service request (when it's still in pmTickets) — same shape
   as .viol-type-chip but a real <button>, with the .pm-view-btn hover
   treatment so it reads as clickable. */
.inv-ref-chip {
  display: inline-block; font-size: 11px; padding: 2px 7px; margin-right: 3px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 4px; color: var(--text-2); cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.inv-ref-chip:hover { border-color: var(--blue, #58a6ff); color: var(--blue, #58a6ff); background: rgba(88,166,255,.08); }

/* ── Charts Grid ──────────────────────────────────────── */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.chart-card {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.chart-card.chart-full { grid-column: 1 / -1; }
.chart-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-3); margin-bottom: 12px;
  display: flex; align-items: center; gap: 7px;
}

/* ── Pagination ───────────────────────────────────────── */
.pagination-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; padding: 14px 2px 2px;
  margin-top: 8px; border-top: 1px solid var(--border);
}
.pag-info { color: var(--text-3); font-size: 13px; }
.pag-info strong { color: var(--text-2); }
.pag-controls { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.pag-perpage {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text-1); font-size: 12px; padding: 5px 8px; cursor: pointer; margin-right: 6px;
}
.pag-btn {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text-2); font-size: 12px; padding: 5px 10px; min-width: 32px;
  cursor: pointer; transition: background .15s, color .15s;
}
.pag-btn:hover:not(:disabled) { background: var(--bg-3); color: var(--text-1); }
.pag-btn.active { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.pag-btn:disabled { opacity: .3; cursor: default; }
.pag-ellipsis { color: var(--text-3); font-size: 13px; padding: 0 3px; }

/* ── State Box ────────────────────────────────────────── */
.state-box {
  text-align: center; padding: 48px 20px; color: var(--text-3); font-size: 14px;
}
.state-box i { font-size: 32px; margin-bottom: 12px; display: block; }

/* ── Toast ────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast-item {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px; font-size: 13px;
  color: var(--text-1); box-shadow: var(--shadow); min-width: 220px;
  animation: toastIn .2s ease;
}
.toast-item.success { border-color: var(--green); }
.toast-item.error   { border-color: var(--red); }
.toast-item.warning { border-color: var(--yellow); }
@keyframes toastIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* ── Report Preview ───────────────────────────────────── */
/* ── Filter Bar (shared with All Violations + Report Builder) ── */
.viol-filter-bar {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.viol-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.viol-filter-row select,
.vf-text-input,
.vf-date-input {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-1);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--trans);
}
.viol-filter-row select:focus,
.vf-text-input:focus,
.vf-date-input:focus { border-color: var(--red); }
.viol-filter-row select { cursor: pointer; }
.vf-text-input { min-width: 130px; max-width: 170px; }
.vf-date-input { min-width: 140px; }

/* ── Report Toolbar ──────────────────────────────────────── */
.rpt-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 18px;
}
.rpt-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.rpt-toolbar-actions .btn-primary { width: auto; font-size: 13px; padding: 7px 14px; }
.rpt-toolbar-opts {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Checkbox label ──────────────────────────────────────── */
.chk-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-1);
  user-select: none;
}
.chk-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--red);
  cursor: pointer;
  flex-shrink: 0;
}

.report-builder-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
}
.report-config-panel {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.report-preview-panel {
  background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.report-preview-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; background: var(--bg-2); border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em;
}
#pm-report-preview-body { padding: 16px; min-height: 200px; overflow-x: auto; }

/* ── Schedule rows ────────────────────────────────────── */
.sched-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.sched-row:last-child { border-bottom: none; }
.sched-day { color: var(--text-3); min-width: 100px; }

/* ── Violation View Button ────────────────────────────── */
.pm-view-btn {
  background: none; border: 1px solid var(--border); color: var(--text-2);
  border-radius: var(--radius-sm); padding: 4px 8px; cursor: pointer;
  font-size: 13px; transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.pm-view-btn:hover { border-color: var(--blue, #58a6ff); color: var(--blue, #58a6ff); background: rgba(88,166,255,.08); }

/* ── Violation Detail Modal ───────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.72);
  display: flex; align-items: center; justify-content: center;
  z-index: 9998; backdrop-filter: blur(3px);
}
/* Email Resident draft modal — layered ABOVE the violation modal, same
   reasoning as .lightbox-overlay's 10000 (see its comment below). */
#pm-email-modal { z-index: 10000; }
/* Invoice detail modal (Phase 13) — same tier as the email draft modal above:
   it can be opened nested over an already-open ticket modal (its "Invoice
   #N" chip), so it must stack and claim keys above the base 9998 modals. */
#pm-invoice-modal { z-index: 10000; }
.viol-modal-box {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius); width: 92vw; max-width: 820px;
  max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: var(--shadow); animation: pmDialogIn 0.2s ease;
}
@keyframes pmDialogIn { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ── Confirm dialog — mirrors the admin dashboard's showConfirm() ─── */
/* Above every other overlay (modals 9998/10000, lightbox 10001): a
   destructive confirmation always wins the stack + the keydown chain. */
#pm-confirm-overlay { z-index: 10002; }
.confirm-dialog {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: 12px; padding: 34px 32px; max-width: 400px; width: 90%;
  text-align: center; box-shadow: var(--shadow); animation: pmDialogIn 0.2s ease;
}
.confirm-icon-wrap { font-size: 30px; color: var(--danger); margin-bottom: 16px; }
.confirm-dialog h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text-1); }
.confirm-dialog p  { color: var(--text-2); font-size: 14px; margin-bottom: 24px; line-height: 1.6; }
.confirm-actions   { display: flex; justify-content: center; gap: 12px; }
/* The Cancel button inside the dialog matches the ADMIN dialog's button
   exactly — the portal's own .btn-secondary is the smaller/dimmer
   filter-bar variant (13px, --text-2) and looked off in this context. */
.confirm-actions .btn-secondary {
  background: var(--bg-2); color: var(--text-1);
  border-radius: var(--radius-sm);
  padding: 9px 18px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.confirm-actions .btn-secondary:hover { background: var(--bg-3); color: var(--text-1); }
.btn-danger {
  background: var(--danger-dim); color: var(--danger);
  border: 1px solid rgba(248,81,73,0.4); border-radius: var(--radius-sm);
  padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.viol-modal-hdr {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  background: var(--bg-2); border-radius: var(--radius) var(--radius) 0 0; flex-shrink: 0;
}
.viol-modal-hdr h3 { font-size: 15px; font-weight: 600; color: var(--text-1); margin: 0; display: flex; align-items: center; }
.viol-modal-body  { overflow-y: auto; flex: 1; }
.viol-modal-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.vmf-item  { padding: 6px 8px 6px 0; }
.vmf-full  { grid-column: 1 / -1; }
.vmf-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-3); margin-bottom: 2px; }
.vmf-value { font-size: 13px; color: var(--text-1); }
.viol-modal-section { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.viol-modal-section:last-child { border-bottom: none; }
.viol-modal-section-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--text-3); margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.viol-photo-gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.viol-photo-thumb {
  width: 100px; height: 80px; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  cursor: pointer; transition: border-color 0.15s, transform 0.15s;
}
.viol-photo-thumb:hover { border-color: var(--blue, #58a6ff); transform: scale(1.04); }
.viol-modal-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; background: var(--bg-2);
  border-top: 1px solid var(--border); flex-shrink: 0;
}
.btn-icon-only {
  background: none; border: none; color: var(--text-2); font-size: 15px;
  cursor: pointer; padding: 6px 8px; border-radius: var(--radius-sm);
  display: flex; align-items: center; transition: color 0.15s, background 0.15s;
}
.btn-icon-only:hover { color: var(--text-1); background: var(--bg-3); }

/* ── Dashboard (P2) ───────────────────────────────────── */
.stat-card-sub {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; margin-top: 6px;
}
.delta-up   { color: var(--red-text); }   /* more violations than last month — bad */
.delta-down { color: var(--green-text); } /* fewer — good */
.delta-flat { color: var(--text-3); }
.dash-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; }
.dash-viewall {
  margin-left: auto; background: none; border: none; padding: 0;
  color: var(--blue-text); font-size: 12px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  text-transform: none; letter-spacing: normal;
}
.dash-viewall:hover { text-decoration: underline; }
.dash-recent-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; border-bottom: 1px solid var(--border);
  padding: 9px 2px; cursor: pointer; text-align: left;
  color: var(--text-2); font-size: 13px; transition: background .15s;
}
.dash-recent-row:hover { background: var(--bg-2); }
.dash-recent-row:last-child { border-bottom: none; }
.dash-recent-unit { font-weight: 600; color: var(--text-1); min-width: 70px; flex-shrink: 0; }
.dash-recent-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-recent-date { color: var(--text-3); font-size: 12px; white-space: nowrap; }

/* ── Photo Lightbox (P4) ──────────────────────────────── */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.88);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  z-index: 10001;   /* strictly ABOVE every other overlay (modals sit at
                       9998/10000) — the global keydown handler routes keys
                       to the lightbox first, so visual stacking must always
                       agree with that priority */
}
.lb-stage {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  max-width: calc(100vw - 140px); margin: 0;
}
#pm-lb-img {
  max-width: 100%; max-height: calc(92vh - 40px); object-fit: contain;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-1);
}
.lb-caption { display: flex; align-items: center; gap: 18px; color: var(--text-2); font-size: 13px; }
.lb-download { color: var(--blue-text); text-decoration: none; }
.lb-download:hover { text-decoration: underline; }
.lb-btn {
  background: rgba(255,255,255,.07); border: 1px solid var(--border);
  color: var(--text-1); width: 42px; height: 42px; border-radius: 50%;
  font-size: 16px; cursor: pointer; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lb-btn:hover { background: rgba(255,255,255,.16); }
.lb-close { position: absolute; top: 16px; right: 16px; }
.viol-photo-btn { background: none; border: none; padding: 0; cursor: pointer; display: block; }

/* ── Violation Feedback (P1 — acknowledge / dispute) ──── */
.fb-state { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.fb-state-meta { font-size: 12px; color: var(--text-3); }
.fb-none { color: var(--text-3); font-size: 13px; margin: 0 0 10px; }
#pm-fb-comment {
  width: 100%; min-height: 64px; resize: vertical;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-1); font-size: 13px; padding: 8px 10px; margin: 2px 0 10px;
}
#pm-fb-comment:focus { outline: none; border-color: var(--red); }
.fb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fb-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 13px; font-weight: 600; padding: 7px 14px;
  cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.fb-btn:hover:not(:disabled) { color: var(--text-1); }
.fb-btn:disabled { opacity: .5; cursor: default; }
.fb-btn-ack:hover:not(:disabled), .fb-btn-ack.active {
  border-color: var(--green); color: var(--green-text); background: var(--green-dim);
}
.fb-btn-dispute:hover:not(:disabled), .fb-btn-dispute.active {
  border-color: var(--yellow); color: var(--yellow); background: var(--yellow-dim);
}
.fb-admin-resp {
  background: var(--bg-2); border: 1px solid var(--border); border-left: 3px solid var(--red);
  border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 10px;
}
.fb-admin-resp-hdr {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-3); margin-bottom: 4px; display: flex; align-items: center; gap: 6px;
}
.fb-admin-resp-body { font-size: 13px; color: var(--text-1); white-space: pre-wrap; }

/* ── Service Requests / Tickets (Phase 9) ─────────────── */
.ticket-tabs { display: flex; gap: 6px; }
.ticket-tab {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text-2);
  font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.ticket-tab:hover { color: var(--text-1); }
.ticket-tab.active { background: var(--red-dim); border-color: rgba(217,0,0,.3); color: var(--red-text); }

/* ── Phase 9.1: ticket photo attach + numbers/filters extras ── */
/* A small solid dot marking an unread-reply row in the tickets table —
   the per-row counterpart to the aggregate #nav-tickets-badge pill. */
.tix-unread-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); margin-right: 5px; vertical-align: middle;
}
/* Neutral "Opened by NightHawk" chip (admin-created tickets) — deliberately
   .badge-gray, not a status color, so it never competes with the Open/
   In Progress/Resolved/Paid badges next to it. */
.tix-admin-chip { margin-left: 6px; }

.tix-photo-add-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tix-photo-add-btn { display: inline-flex; align-items: center; gap: 6px; }
.tix-photo-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tix-photo-thumb-wrap { position: relative; width: 72px; height: 72px; }
.tix-photo-thumb-wrap .tix-photo-thumb {
  width: 72px; height: 72px; object-fit: cover; display: block;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.tix-photo-remove {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--bg-1); border: 1px solid var(--border);
  color: var(--text-2); font-size: 10px; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s, border-color .15s;
}
.tix-photo-remove:hover { color: var(--red-text); border-color: rgba(217,0,0,.3); }

/* A narrower variant of .viol-modal-box for the short New Request form. */
.modal-narrow { max-width: 460px; }
/* A mid-width variant for the Email Resident draft/template modal. */
.modal-medium { max-width: 620px; }

/* ── Email Resident (violation courtesy notices) ──────── */
.pm-email-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 2px; }
.pm-email-legend { font-size: 12px; color: var(--text-3); margin-bottom: 14px; line-height: 2; }
.pm-email-legend code {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 4px;
  padding: 1px 6px; font-size: 11px; color: var(--text-2); font-family: monospace;
}

/* A theme-aware inline form error — deliberately NOT .login-error, whose
   colors are hardcoded for the always-dark login screen and would look
   wrong (and unreadable) inside a themeable app-shell modal like this one. */
.tix-form-error {
  background: var(--red-dim); border: 1px solid rgba(217,0,0,.3);
  border-radius: var(--radius-sm); color: var(--red-text);
  font-size: 13px; padding: 10px 12px; margin-bottom: 4px; text-align: left;
}

.tix-chat-thread {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 320px; overflow-y: auto; padding: 4px 2px 10px;
}
.tix-msg { display: flex; flex-direction: column; max-width: 78%; }
.tix-msg.theirs { align-self: flex-start; align-items: flex-start; }
.tix-msg.mine   { align-self: flex-end;   align-items: flex-end; }
.tix-msg-bubble {
  padding: 8px 12px; border-radius: 14px; font-size: 13px; line-height: 1.45;
  white-space: pre-wrap; word-break: break-word;
}
.tix-msg.theirs .tix-msg-bubble {
  background: var(--bg-3); border: 1px solid var(--border); color: var(--text-1);
  border-bottom-left-radius: 4px;
}
.tix-msg.mine .tix-msg-bubble {
  background: var(--red); color: #fff;
  border-bottom-right-radius: 4px;
}
.tix-msg-meta { font-size: 10px; color: var(--text-3); margin-top: 3px; padding: 0 4px; }
.tix-chat-input-row { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.tix-chat-input-row textarea {
  flex: 1; resize: vertical; min-height: 40px; max-height: 140px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-1); font-size: 13px; padding: 8px 10px; font-family: inherit;
}
.tix-chat-input-row textarea:focus { outline: none; border-color: var(--red); }
.tix-chat-input-row .btn-primary { padding: 8px 16px; align-self: flex-end; }

/* ── Mobile Layout (P6) ───────────────────────────────── */
.menu-toggle { display: none; font-size: 16px; }
#sidebar-backdrop { display: none; }
@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  #app-header { padding: 0 12px; }
  .app-brand-name, .app-user-name { display: none; }
  .app-prop-badge { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Sidebar becomes a slide-in drawer under the header */
  #sidebar {
    position: fixed; top: 54px; bottom: 0; left: 0; z-index: 9000;
    width: 240px; transform: translateX(-100%);
    transition: transform .22s ease; box-shadow: var(--shadow);
  }
  #sidebar.open { transform: translateX(0); }
  #sidebar-backdrop:not([hidden]) {
    display: block; position: fixed; top: 54px; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.55); z-index: 8999;
  }

  #main-content { padding: 16px 12px; }

  /* Grids stack to one column; dashboard stat cards go 2-up */
  .charts-grid, .prop-info-grid, .dash-grid { grid-template-columns: 1fr; }
  .stat-cards-grid { grid-template-columns: repeat(2, 1fr); }

  /* Filter controls go full-width */
  .filter-bar select, .filter-bar input[type="text"], .filter-bar input[type="date"] { width: 100%; }
  .filter-bar .btn-secondary { flex: 1 1 auto; }
  #vf-date-custom, #an-date-custom, #rpt-date-custom { width: 100%; }
  #vf-date-custom input, #an-date-custom input, #rpt-date-custom input { flex: 1; min-width: 0; }
  .viol-filter-row select, .vf-text-input, .vf-date-input { width: 100%; max-width: none; min-width: 0; }
  .rpt-toolbar { flex-direction: column; align-items: stretch; }
  .rpt-toolbar-actions .btn-primary, .rpt-toolbar-actions .btn-secondary { flex: 1 1 auto; }

  /* Tables scroll sideways instead of crushing */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 640px; }

  /* Modal + lightbox comfort on small screens */
  .viol-modal-info-grid { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-stage { max-width: 94vw; }
  .pm-email-actions .btn-secondary { flex: 1 1 auto; }

  /* Service Requests: tabs wrap, chat thread shrinks, input row stacks */
  .ticket-tabs { width: 100%; flex-wrap: wrap; }
  .tix-chat-thread { max-height: 220px; }
  .tix-chat-input-row { flex-direction: column; align-items: stretch; }
  .tix-chat-input-row .btn-primary { width: 100%; align-self: stretch; }
  .tix-msg { max-width: 92%; }
}

/* ── Print ────────────────────────────────────────────── */
@media print {
  /* Matches :root regardless of the data-theme toggle — the print artifact
     always uses these exact values, never the light or dark screen palette.
     (:root[data-theme="…"] has higher specificity than plain :root, so
     without repeating the selector here the light theme's own — merely
     similar, not identical — values could win when printing from light mode.) */
  :root, :root[data-theme="light"], :root[data-theme="dark"] {
    --bg-1: #ffffff; --bg-2: #f5f5f5; --bg-3: #eeeeee;
    --text-1: #111111; --text-2: #333333; --text-3: #555555;
    --border: #cccccc; --red: #cc0000;
  }
  #sidebar, #app-header, #login-screen, #join-screen,
  .filter-bar, .viol-filter-bar, .rpt-toolbar, .active-chips,
  #toast, #pm-viol-modal, .modal-overlay, .lightbox-overlay,
  .menu-toggle, #sidebar-backdrop, .nav-badge, .dash-viewall,
  .report-config-panel, .report-preview-header,
  .view-title, .pagination-bar, .btn-primary, .btn-secondary,
  .btn-icon, .btn-icon-only { display: none !important; }
  #app-shell  { display: block !important; height: auto !important; }
  #app-body   { display: block !important; overflow: visible !important; height: auto !important; }
  #main-content { margin-left: 0 !important; overflow: visible !important; height: auto !important; padding: 0 !important; }
  .view { display: block !important; overflow: visible !important; }
  .view:not(.active) { display: none !important; }
  .report-preview-panel { border: none !important; box-shadow: none !important; height: auto !important; overflow: visible !important; }
  #pm-report-preview-body { padding: 8px !important; overflow: visible !important; }
  body { background: #fff !important; color: #111 !important; }
  #pm-printable-report * { color: #111 !important; }
  #pm-printable-report { padding: 8px; }
  .data-table { border-collapse: collapse !important; width: 100% !important; }
  .data-table th { background: #eeeeee !important; color: #111 !important; border: 1px solid #ccc !important; padding: 5px 8px !important; font-size: 11px !important; }
  .data-table td { color: #111 !important; border: 1px solid #ddd !important; padding: 4px 8px !important; font-size: 11px !important; }
  .badge { border: 1px solid #ccc !important; background: #f0f0f0 !important; color: #333 !important; }
  /* Stat-card numbers/deltas set their color via inline var(--yellow)/
     var(--blue-text)/etc. — dark-theme values chosen for near-black
     backgrounds print illegibly on white, so force print-safe ink here
     (same treatment .badge gets above). */
  .stat-card-val, .stat-card-sub, .delta-up, .delta-down { color: #111 !important; }
}

/* == Google sign-in (Phase 14) — login screens are always dark == */
.login-or {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0; color: #6e6e6e; font-size: 11px;
  text-transform: uppercase; letter-spacing: .12em;
}
.login-or::before, .login-or::after {
  content: ''; flex: 1; height: 1px; background: #2a2a2a;
}
.btn-google {
  width: 100%; min-height: 48px; border-radius: 10px;
  background: #fff; color: #1f1f1f; border: 1px solid #2a2a2a;
  font: 600 14px 'Poppins', sans-serif; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: filter .15s;
}
.btn-google:hover { filter: brightness(0.93); }
.btn-google:disabled { opacity: .6; }
.btn-google i { color: #4285f4; font-size: 16px; }

/* == Login method chooser (Phase 15) — always-dark login card == */
.btn-method {
  width: 100%; min-height: 48px; border-radius: 10px;
  background: #0f0f0f; color: #e8e8e8; border: 1px solid #2a2a2a;
  font: 600 14px 'Poppins', sans-serif; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: border-color .15s, background .15s;
}
.btn-method:hover { border-color: #d90000; background: #151515; }
.btn-method i { color: #ff6b6b; font-size: 15px; }
