/* ============================================================
   Property Management App — Global Styles
   ============================================================ */

:root {
  --tenant-color:  #4361ee;
  --client-color:  #2d9b59;
  --agency-color:  #7209b7;
  --master-color:  #d62828;
  --sidebar-w:     240px;
  --header-h:      60px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f0f2f5; }

/* ── LANDING PAGE ────────────────────────────────────────── */
.landing-bg {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.landing-title { color: #fff; font-size: 2.4rem; font-weight: 700; text-align: center; margin-bottom: 8px; }
.landing-subtitle { color: rgba(255,255,255,.6); font-size: 1rem; text-align: center; margin-bottom: 50px; }

/* ── FLIP CARD ───────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 340px);
  gap: 22px;
}
@media (max-width: 1440px) { .cards-grid { grid-template-columns: repeat(2, 340px); } }
@media (max-width: 740px)  { .cards-grid { grid-template-columns: 1fr; } }

.flip-card { width: 340px; height: 500px; perspective: 1200px; cursor: pointer; }
.flip-card-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform .65s cubic-bezier(.4,0,.2,1);
  transform-style: preserve-3d;
}
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }

.flip-card-front, .flip-card-back {
  position: absolute; width: 100%; height: 100%;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

/* FRONT */
.flip-card-front {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #fff; padding: 30px;
}
.flip-card-front .role-icon {
  width: 90px; height: 90px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; margin-bottom: 20px;
  border: 3px solid rgba(255,255,255,.4);
}
.flip-card-front h3 { font-size: 1.5rem; font-weight: 700; margin: 0 0 8px; }
.flip-card-front p  { font-size: .88rem; opacity: .8; text-align: center; line-height: 1.5; margin: 0 0 24px; }
.flip-card-front .btn-flip {
  padding: 10px 28px; border-radius: 50px;
  background: rgba(255,255,255,.25); border: 2px solid rgba(255,255,255,.6);
  color: #fff; font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.flip-card-front .btn-flip:hover { background: rgba(255,255,255,.4); }

/* BACK */
.flip-card-back {
  background: #fff; transform: rotateY(180deg);
  display: flex; flex-direction: column; padding: 22px 22px;
  overflow-y: auto;
}
.flip-card-back .back-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}
.flip-card-back .back-header .role-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.flip-card-back .back-header h4 { margin: 0; font-size: 1.1rem; font-weight: 700; color: #1a1a2e; }

.flip-card-back .form-label { font-size: .82rem; font-weight: 600; color: #555; margin-bottom: 4px; }
.flip-card-back .form-control {
  border: 1.5px solid #e0e0e0; border-radius: 8px;
  padding: 8px 12px; font-size: .88rem; margin-bottom: 9px;
  transition: border-color .2s;
}
.flip-card-back .form-control:focus { outline: none; border-color: inherit; box-shadow: 0 0 0 3px rgba(67,97,238,.15); }

.flip-card-back .btn-login {
  width: 100%; padding: 11px; border: none; border-radius: 9px;
  color: #fff; font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: opacity .2s; margin-top: 4px;
}
.flip-card-back .btn-login:hover { opacity: .88; }
.flip-card-back .btn-back {
  width: 100%; padding: 8px; border: 1.5px solid #ddd; border-radius: 9px;
  background: #fff; color: #666; font-size: .85rem; cursor: pointer;
  margin-top: 8px; transition: all .2s;
}
.flip-card-back .btn-back:hover { background: #f8f8f8; }
.flip-card-back .login-error {
  font-size: .8rem; color: #d62828; text-align: center;
  min-height: 18px; margin-top: 4px;
}

/* Role color themes */
.theme-tenant  .flip-card-front  { background: linear-gradient(135deg, #4361ee, #3a0ca3); }
.theme-client  .flip-card-front  { background: linear-gradient(135deg, #2d9b59, #1a6b3c); }
.theme-agency  .flip-card-front  { background: linear-gradient(135deg, #7209b7, #480088); }
.theme-master  .flip-card-front  { background: linear-gradient(135deg, #d62828, #9b0000); }

.theme-tenant  .flip-card-back .form-control:focus { box-shadow: 0 0 0 3px rgba(67,97,238,.15); border-color: #4361ee; }
.theme-client  .flip-card-back .form-control:focus { box-shadow: 0 0 0 3px rgba(45,155,89,.15);  border-color: #2d9b59; }
.theme-agency  .flip-card-back .form-control:focus { box-shadow: 0 0 0 3px rgba(114,9,183,.15); border-color: #7209b7; }
.theme-master  .flip-card-back .form-control:focus { box-shadow: 0 0 0 3px rgba(214,40,40,.15);  border-color: #d62828; }

.theme-tenant  .btn-login { background: linear-gradient(135deg, #4361ee, #3a0ca3); }
.theme-client  .btn-login { background: linear-gradient(135deg, #2d9b59, #1a6b3c); }
.theme-agency  .btn-login { background: linear-gradient(135deg, #7209b7, #480088); }
.theme-master  .btn-login { background: linear-gradient(135deg, #d62828, #9b0000); }

.theme-tenant  .back-header .role-dot { background: #4361ee; }
.theme-client  .back-header .role-dot { background: #2d9b59; }
.theme-agency  .back-header .role-dot { background: #7209b7; }
.theme-master  .back-header .role-dot { background: #d62828; }

/* Back card: CSS-var themes + new UI components */
.theme-tenant .flip-card-back { --lo-color:#4361ee; --lo-glow:rgba(67,97,238,.16); --lo-shadow:rgba(67,97,238,.42); }
.theme-client .flip-card-back { --lo-color:#2d9b59; --lo-glow:rgba(45,155,89,.16); --lo-shadow:rgba(45,155,89,.42); }
.theme-agency .flip-card-back { --lo-color:#7209b7; --lo-glow:rgba(114,9,183,.16); --lo-shadow:rgba(114,9,183,.42); }
.theme-master .flip-card-back { --lo-color:#d62828; --lo-glow:rgba(214,40,40,.16); --lo-shadow:rgba(214,40,40,.42); }
.theme-tenant .flip-card-back .lo-btn { background: linear-gradient(135deg,#4361ee,#3a0ca3); }
.theme-client .flip-card-back .lo-btn { background: linear-gradient(135deg,#2d9b59,#1a6b3c); }
.theme-agency .flip-card-back .lo-btn { background: linear-gradient(135deg,#7209b7,#480088); }
.theme-master .flip-card-back .lo-btn { background: linear-gradient(135deg,#d62828,#9b0000); }
.back-topbar { height: 5px; margin: -22px -22px 0; flex-shrink: 0; }
.theme-tenant .back-topbar { background: linear-gradient(90deg,#4361ee,#3a0ca3); }
.theme-client .back-topbar { background: linear-gradient(90deg,#2d9b59,#1a6b3c); }
.theme-agency .back-topbar { background: linear-gradient(90deg,#7209b7,#480088); }
.theme-master .back-topbar { background: linear-gradient(90deg,#d62828,#9b0000); }
.back-icon-wrap { width: 54px; height: 54px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; color: #fff; margin-bottom: 8px; }
.theme-tenant .back-icon-wrap { background: linear-gradient(135deg,#4361ee,#3a0ca3); box-shadow: 0 6px 18px rgba(67,97,238,.42); }
.theme-client .back-icon-wrap { background: linear-gradient(135deg,#2d9b59,#1a6b3c); box-shadow: 0 6px 18px rgba(45,155,89,.42); }
.theme-agency .back-icon-wrap { background: linear-gradient(135deg,#7209b7,#480088); box-shadow: 0 6px 18px rgba(114,9,183,.42); }
.theme-master .back-icon-wrap { background: linear-gradient(135deg,#d62828,#9b0000); box-shadow: 0 6px 18px rgba(214,40,40,.42); }
.back-hd { text-align: center; margin-bottom: 12px; padding-top: 14px; }
.back-hd h4 { margin: 0 0 2px; font-size: 1.05rem; font-weight: 700; color: #1a1a2e; }
[data-theme="dark"] .back-hd h4 { color: #e8eaf0; }

/* ── DASHBOARD SHELL ─────────────────────────────────────── */
.dash-wrap { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w); min-height: 100vh;
  position: fixed; top: 0; left: 0; z-index: 100;
  display: flex; flex-direction: column;
  transition: transform .3s;
}
.sidebar-brand {
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-brand .app-name { font-size: .75rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: 1px; }
.sidebar-brand .role-name { font-size: 1.1rem; font-weight: 700; color: #fff; }
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-user .user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff; font-weight: 600;
}
.sidebar-user .user-name  { font-size: .85rem; color: #fff; font-weight: 600; }
.sidebar-user .user-role  { font-size: .75rem; color: rgba(255,255,255,.55); }

.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.nav-item { list-style: none; }
.nav-link-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 22px; width: 100%; border: none; background: none;
  color: rgba(255,255,255,.7); font-size: .88rem; cursor: pointer;
  transition: all .2s; text-align: left;
}
.nav-link-btn:hover  { background: rgba(255,255,255,.1); color: #fff; }
.nav-link-btn.active { background: rgba(255,255,255,.18); color: #fff; font-weight: 600; border-left: 3px solid #fff; }
.nav-link-btn i { width: 18px; text-align: center; font-size: .9rem; }

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.btn-logout {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 9px 12px; border-radius: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: .85rem; cursor: pointer; transition: all .2s;
}
.btn-logout:hover { background: rgba(255,255,255,.2); }

/* Sidebar color themes */
.sidebar-tenant { background: linear-gradient(180deg, #3a0ca3, #2d0886); }
.sidebar-client { background: linear-gradient(180deg, #1a6b3c, #0d4024); }
.sidebar-agency { background: linear-gradient(180deg, #480088, #2d0055); }
.sidebar-master { background: linear-gradient(180deg, #9b0000, #6b0000); }
.sidebar-hunter { background: linear-gradient(180deg, #d97706, #92400e); }

/* Main content */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top bar */
.topbar {
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  display: flex; align-items: center;
  padding: 0 28px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.topbar h2 { margin: 0; font-size: 1.15rem; font-weight: 700; color: #1a1a2e; flex: 1; }
.topbar .topbar-actions { display: flex; align-items: center; gap: 12px; }

/* Page content area */
.page-content { padding: 28px; flex: 1; }

/* ── STAT CARDS ──────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 18px; margin-bottom: 28px; }
.stat-card {
  background: #fff; border-radius: 14px;
  padding: 22px 24px; box-shadow: 0 2px 12px rgba(0,0,0,.06);
  display: flex; align-items: center; gap: 16px;
}
.stat-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff; flex-shrink: 0;
}
.stat-info .stat-val  { font-size: 1.75rem; font-weight: 700; color: #1a1a2e; line-height: 1; }
.stat-info .stat-lbl  { font-size: .8rem; color: #888; margin-top: 3px; }

/* ── DATA TABLE ──────────────────────────────────────────── */
.table-card {
  background: #fff; border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  overflow: hidden;
}
.table-card-header {
  padding: 18px 22px;
  border-bottom: 1px solid #f0f0f0;
  display: flex; align-items: center; justify-content: space-between;
}
.table-card-header h5 { margin: 0; font-size: 1rem; font-weight: 700; color: #1a1a2e; }
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th {
  padding: 12px 16px; text-align: left;
  background: #f8f9fa; font-weight: 600;
  color: #555; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .5px; border-bottom: 2px solid #e8e8e8;
}
.data-table td { padding: 11px 16px; border-bottom: 1px solid #f0f0f0; color: #333; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafbff; }

/* Badges */
.badge-active    { background: #d4edda; color: #1a6b3c; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.badge-inactive  { background: #fde8e8; color: #9b0000; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.badge-occupied  { background: #e0f0ff; color: #0057b7; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.badge-vacant    { background: #fff3cd; color: #856404; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.badge-yes       { background: #d4edda; color: #1a6b3c; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.badge-no        { background: #fde8e8; color: #9b0000; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; }

/* Action buttons in table */
.btn-edit, .btn-del, .btn-view {
  padding: 4px 10px; font-size: .78rem; border-radius: 6px;
  border: none; cursor: pointer; margin-right: 4px; transition: all .15s;
}
.btn-edit  { background: #e8f0fe; color: #1967d2; }
.btn-edit:hover  { background: #1967d2; color: #fff; }
.btn-del   { background: #fde8e8; color: #d62828; }
.btn-del:hover   { background: #d62828; color: #fff; }
.btn-view  { background: #e8f8ee; color: #1a6b3c; }
.btn-view:hover  { background: #1a6b3c; color: #fff; }

/* ── FORMS (MODAL) ───────────────────────────────────────── */
.modal-header-themed { color: #fff; border-radius: 12px 12px 0 0; padding: 16px 20px; }
.form-label-sm { font-size: .82rem; font-weight: 600; color: #444; }
.form-control-sm2 {
  border: 1.5px solid #ddd; border-radius: 8px;
  padding: 8px 12px; font-size: .875rem; width: 100%;
  transition: border-color .2s;
}
.form-control-sm2:focus { outline: none; border-color: #4361ee; box-shadow: 0 0 0 3px rgba(67,97,238,.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 5px; }

/* ── TENANT DASHBOARD SPECIFIC ───────────────────────────── */
.profile-card {
  background: #fff; border-radius: 14px;
  padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #4361ee, #3a0ca3);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff; font-weight: 700; margin: 0 auto 16px;
}
.balance-card {
  border-radius: 14px; padding: 28px; color: #fff;
  background: linear-gradient(135deg, #4361ee, #3a0ca3);
  box-shadow: 0 8px 32px rgba(67,97,238,.3);
  text-align: center;
}
.balance-card .balance-amount { font-size: 2.4rem; font-weight: 700; }
.balance-card .balance-label  { font-size: .9rem; opacity: .8; }

/* ── SEARCH / FILTER ─────────────────────────────────────── */
.search-bar {
  display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap;
}
.search-bar input, .search-bar select {
  padding: 8px 14px; border: 1.5px solid #ddd; border-radius: 8px;
  font-size: .875rem; color: #333;
}
.search-bar input:focus, .search-bar select:focus { outline: none; border-color: #4361ee; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary-custom {
  padding: 9px 20px; border: none; border-radius: 9px;
  font-size: .875rem; font-weight: 600; cursor: pointer;
  color: #fff; transition: opacity .2s;
}
.btn-primary-custom:hover { opacity: .88; }
.bg-tenant { background: linear-gradient(135deg, #4361ee, #3a0ca3); }
.bg-client { background: linear-gradient(135deg, #2d9b59, #1a6b3c); }
.bg-agency { background: linear-gradient(135deg, #7209b7, #480088); }
.bg-master { background: linear-gradient(135deg, #d62828, #9b0000); }

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 50px 20px; color: #aaa; }
.empty-state i { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: .95rem; }

/* ── UTILITIES ───────────────────────────────────────────── */
.text-muted-sm { font-size: .8rem; color: #999; }
.fw-semibold   { font-weight: 600; }
.mb-0 { margin-bottom: 0; }
.gap-2 { gap: 8px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; }
.section-title { font-size: 1.1rem; font-weight: 700; color: #1a1a2e; margin-bottom: 16px; margin-top: 0; }

/* ── MODAL OVERLAY ───────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 16px;
  width: 100%; max-width: 580px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0,0,0,.25);
}
.modal-box-lg { max-width: 760px; }
.modal-box .modal-hdr {
  padding: 18px 22px;
  border-radius: 16px 16px 0 0;
  display: flex; align-items: center; justify-content: space-between;
  color: #fff;
}
.modal-box .modal-hdr h5 { margin: 0; font-size: 1rem; font-weight: 700; }
.modal-box .modal-hdr .btn-close-modal {
  background: rgba(255,255,255,.2); border: none; color: #fff;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.modal-box .modal-hdr .btn-close-modal:hover { background: rgba(255,255,255,.35); }
.modal-body-pad { padding: 22px; }
.modal-footer-pad {
  padding: 14px 22px; border-top: 1px solid #f0f0f0;
  display: flex; gap: 10px; justify-content: flex-end;
}

/* Alert toast */
.toast-container {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast-msg {
  padding: 12px 20px; border-radius: 10px; color: #fff;
  font-size: .875rem; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  animation: slideUp .3s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity:0; } to { transform: translateY(0); opacity:1; } }
.toast-success { background: #2d9b59; }
.toast-error   { background: #d62828; }
.toast-info    { background: #4361ee; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* ── HAMBURGER ───────────────────────────────────────────── */
.hamburger {
  display: none;
  background: none; border: none;
  font-size: 1.35rem; color: #444;
  cursor: pointer; padding: 6px 10px;
  border-radius: 8px; margin-right: 10px;
  transition: background .15s;
}
.hamburger:hover { background: #f0f2f5; }

/* ── SIDEBAR OVERLAY (mobile) ────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 99;
}
.sidebar-overlay.open { display: block; }

/* ── RESPONSIVE BREAKPOINTS ──────────────────────────────── */

/* Tablet & mobile: ≤ 900px */
@media (max-width: 900px) {
  :root { --sidebar-w: 220px; }
}

/* ── THEME TOGGLE BUTTON ─────────────────────────────────── */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid #ddd; background: #fff; color: #555;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: .92rem;
  transition: all .2s; flex-shrink: 0;
}
.theme-toggle:hover { background: #f0f2f5; border-color: #bbb; }
.theme-toggle-float {
  position: fixed; top: 18px; right: 18px; z-index: 999;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}

/* ── DARK MODE ───────────────────────────────────────────── */
[data-theme="dark"] body         { background: #0f1117; color: #e0e0f0; }
[data-theme="dark"] .landing-bg  { background: linear-gradient(135deg,#06080f 0%,#0b0e1a 50%,#071525 100%); }
[data-theme="dark"] .main-content{ background: #0f1117; }
[data-theme="dark"] .page-content{ background: #0f1117; }

/* Topbar */
[data-theme="dark"] .topbar { background: #13151f; border-bottom-color: #22253a; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
[data-theme="dark"] .topbar h2  { color: #e0e0f0; }
[data-theme="dark"] .hamburger  { color: #b0b0cc; }
[data-theme="dark"] .hamburger:hover { background: #22253a; }
[data-theme="dark"] .theme-toggle { background: #22253a; border-color: #32355a; color: #e0e0f0; }
[data-theme="dark"] .theme-toggle:hover { background: #32355a; }

/* Cards */
[data-theme="dark"] .stat-card    { background: #16192a; box-shadow: 0 2px 12px rgba(0,0,0,.4); }
[data-theme="dark"] .table-card   { background: #16192a; box-shadow: 0 2px 12px rgba(0,0,0,.4); }
[data-theme="dark"] .profile-card { background: #16192a; }
[data-theme="dark"] .stat-info .stat-val { color: #e0e0f0; }
[data-theme="dark"] .stat-info .stat-lbl { color: #7878a0; }
[data-theme="dark"] .table-card-header   { border-bottom-color: #22253a; }
[data-theme="dark"] .table-card-header h5{ color: #e0e0f0; }
[data-theme="dark"] .section-title       { color: #e0e0f0; }

/* Tables */
[data-theme="dark"] .data-table th { background: #0f1117; color: #7878a0; border-bottom-color: #22253a; }
[data-theme="dark"] .data-table td { border-bottom-color: #1e2133; color: #c8c8e0; }
[data-theme="dark"] .data-table tr:hover td { background: #1a1d2e; }

/* Forms */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-control-sm2 {
  background: #0f1117; border-color: #22253a; color: #e0e0f0;
}
[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] .form-control-sm2::placeholder { color: #4a4a6a; }
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-control-sm2:focus { border-color: #4361ee; background: #0f1117; }
[data-theme="dark"] select { background: #0f1117; color: #e0e0f0; border-color: #22253a; }
[data-theme="dark"] .form-label,
[data-theme="dark"] .form-label-sm { color: #9090b8; }
[data-theme="dark"] .form-section  { border-top-color: #22253a; }

/* Modal */
[data-theme="dark"] .modal-box          { background: #16192a; }
[data-theme="dark"] .modal-footer-pad   { border-top-color: #22253a; }
[data-theme="dark"] .modal-overlay      { background: rgba(0,0,0,.7); }

/* Flip card back */
[data-theme="dark"] .flip-card-back { background: #16192a; }
[data-theme="dark"] .flip-card-back .back-header { border-bottom-color: #22253a; }
[data-theme="dark"] .flip-card-back .back-header h4 { color: #e0e0f0; }
[data-theme="dark"] .flip-card-back .form-label     { color: #9090b8; }
[data-theme="dark"] .flip-card-back .btn-back { background: #22253a; border-color: #32355a; color: #b0b0cc; }
[data-theme="dark"] .flip-card-back .btn-back:hover { background: #2a2d42; }
[data-theme="dark"] .flip-card-back .login-error    { color: #ff7070; }

/* Utility text */
[data-theme="dark"] .text-muted-sm { color: #5a5a7a; }
[data-theme="dark"] .info-row      { border-bottom-color: #22253a; }
[data-theme="dark"] .info-row .lbl { color: #7878a0; }
[data-theme="dark"] .info-row .val { color: #e0e0f0; }
[data-theme="dark"] .tx-row        { border-bottom-color: #22253a; }
[data-theme="dark"] .tx-desc .desc-text { color: #e0e0f0; }
[data-theme="dark"] .tx-desc .desc-date { color: #5a5a7a; }

/* Buttons */
[data-theme="dark"] .btn-back      { background: #22253a; border-color: #32355a; color: #b0b0cc; }
[data-theme="dark"] .btn-back:hover{ background: #2a2d42; }
[data-theme="dark"] .btn-edit  { background: #1a2040; color: #6a9fff; }
[data-theme="dark"] .btn-edit:hover  { background: #1967d2; color: #fff; }
[data-theme="dark"] .btn-del   { background: #2a1520; color: #ff7070; }
[data-theme="dark"] .btn-del:hover   { background: #d62828; color: #fff; }
[data-theme="dark"] .btn-view  { background: #0f2820; color: #50d090; }
[data-theme="dark"] .btn-view:hover  { background: #1a6b3c; color: #fff; }

/* Search bar */
[data-theme="dark"] .search-bar input,
[data-theme="dark"] .search-bar select { background: #0f1117; border-color: #22253a; color: #e0e0f0; }

/* Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #32355a; }

/* ── INLINE DASHBOARD GRIDS ──────────────────────────────── */
.dash-two-col   { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dash-three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* Mobile: ≤ 768px — slide-out sidebar */
@media (max-width: 768px) {
  /* Sidebar off-screen by default */
  .sidebar {
    transform: translateX(calc(-1 * var(--sidebar-w)));
    transition: transform .28s ease;
    z-index: 100;
  }
  .sidebar.open { transform: translateX(0); }

  /* Main fills full width */
  .main-content { margin-left: 0; }

  /* Show hamburger */
  .hamburger { display: inline-flex; align-items: center; justify-content: center; }

  /* Topbar adjustments */
  .topbar { padding: 0 14px; gap: 8px; }
  .topbar h2 { font-size: 1rem; }
  .topbar-actions { gap: 8px; flex-wrap: wrap; }
  .topbar-actions .btn-primary-custom { padding: 7px 12px; font-size: .8rem; }

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

  /* Landing cards: single column, centred */
  .cards-grid { grid-template-columns: 1fr; justify-items: center; gap: 20px; }
  .flip-card  { width: min(340px, 92vw); height: 500px; }
  .landing-title { font-size: 1.8rem; }
  .landing-subtitle { font-size: .9rem; margin-bottom: 32px; }
  .demo-creds { font-size: .74rem; }
  .credits-wrap { gap: 10px; }

  /* Stats grid: 2 columns */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
  .stat-card  { padding: 16px; gap: 12px; }
  .stat-icon  { width: 42px; height: 42px; font-size: 1.1rem; }
  .stat-info .stat-val { font-size: 1.4rem; }

  /* Tables: horizontal scroll already works via .table-responsive;
     shrink font & padding */
  .data-table th { padding: 10px 12px; font-size: .72rem; }
  .data-table td { padding: 10px 12px; font-size: .8rem; }
  .table-card-header { padding: 14px 16px; flex-wrap: wrap; gap: 8px; }
  .table-card-header h5 { font-size: .92rem; }

  /* Modals: slide up from bottom */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box {
    border-radius: 18px 18px 0 0;
    max-height: 92vh;
    width: 100%;
    max-width: 100%;
  }
  .modal-box-lg { max-width: 100%; }
  .modal-body-pad { padding: 16px; }
  .modal-footer-pad { padding: 12px 16px; }

  /* Form rows stack */
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Dashboard inline grids: stack */
  .dash-two-col   { grid-template-columns: 1fr !important; }
  .dash-three-col { grid-template-columns: 1fr !important; }

  /* Balance card */
  .balance-card .balance-amount { font-size: 2rem; }
  .balance-card { padding: 22px 18px; }

  /* Search bar */
  .search-bar { flex-direction: column; align-items: stretch; }
  .search-bar input, .search-bar select { width: 100%; }
}

/* Small phones: ≤ 480px */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card  { padding: 14px; }

  /* Table action buttons: icon only */
  .btn-edit i, .btn-del i, .btn-view i { pointer-events: none; }

  /* Topbar: hide long title text overflow */
  .topbar h2 { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }

  /* Landing */
  .landing-title { font-size: 1.5rem; }
  .flip-card { height: 500px; }
  .flip-card-front h3 { font-size: 1.3rem; }

  /* Modal full scroll */
  .modal-box { max-height: 96vh; }

  /* Balance card inline */
  .balance-card div[style*="display:flex"] { flex-direction: column; gap: 4px; }
}

/* ── Login Overlay (shared across all portals) ────────── */
#login-overlay{display:none;position:fixed;inset:0;z-index:9999;background:linear-gradient(135deg,#0d0d1a 0%,#10132a 60%,#0a1628 100%);overflow-y:auto;align-items:center;justify-content:center;padding:24px 16px;flex-direction:column;gap:0;}
.lo-blob{position:absolute;border-radius:50%;filter:blur(90px);pointer-events:none;animation:loBob 9s ease-in-out infinite alternate;}
.lo-blob1{width:420px;height:420px;top:-100px;left:-120px;animation-delay:0s;}
.lo-blob2{width:320px;height:320px;bottom:-80px;right:-90px;animation-delay:-5s;}
@keyframes loBob{0%{transform:translate(0,0) scale(1);}100%{transform:translate(28px,18px) scale(1.07);}}
.lo-app{color:rgba(255,255,255,.88);font-size:1rem;font-weight:700;letter-spacing:.08em;margin-bottom:24px;text-align:center;text-transform:uppercase;position:relative;z-index:1;}
.lo-app i{margin-right:8px;opacity:.75;}
.lo-card{background:#fff;border-radius:22px;width:100%;max-width:390px;box-shadow:0 28px 80px rgba(0,0,0,.55);overflow:hidden;position:relative;z-index:1;animation:loIn .45s cubic-bezier(.22,.68,0,1.18) both;}
@keyframes loIn{from{opacity:0;transform:translateY(36px) scale(.96);}to{opacity:1;transform:none;}}
.lo-topbar{height:5px;width:100%;}
.lo-inner{padding:28px 28px 22px;}
.lo-hd{text-align:center;margin-bottom:22px;}
.lo-icon-wrap{width:66px;height:66px;border-radius:18px;display:inline-flex;align-items:center;justify-content:center;font-size:1.65rem;color:#fff;margin-bottom:12px;}
.lo-title{margin:0 0 4px;font-size:1.15rem;font-weight:700;color:#1a1a2e;}
.lo-sub{margin:0;font-size:.82rem;color:#aaa;}
.lo-field{margin-bottom:14px;}
.lo-lbl{display:block;font-size:.76rem;font-weight:600;color:#777;margin-bottom:4px;letter-spacing:.02em;}
.lo-input-wrap{position:relative;}
.lo-pw{position:relative;}
.lo-fi{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:#c0c0cc;font-size:.78rem;pointer-events:none;}
.lo-inp{display:block;width:100%;padding:10px 12px 10px 32px;border:1.5px solid #eaebf3;border-radius:10px;font-size:.88rem;box-sizing:border-box;transition:border-color .2s,box-shadow .2s,background .2s;background:#f6f7fc;color:#1a1a2e;}
.lo-inp:focus{outline:none;border-color:var(--lo-color,#4361ee);box-shadow:0 0 0 3.5px var(--lo-glow,rgba(67,97,238,.16));background:#fff;}
.lo-pw .lo-inp{padding-right:2.5rem;}
.lo-eye{position:absolute;right:.55rem;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:#c0c0cc;font-size:.82rem;padding:0;line-height:1;}
.lo-eye:hover{color:#888;}
.lo-btn{display:block;width:100%;padding:12px;border:none;border-radius:10px;font-size:.94rem;font-weight:700;color:#fff;cursor:pointer;margin-top:8px;transition:transform .15s,box-shadow .15s;}
.lo-btn:hover{transform:translateY(-2px);box-shadow:0 8px 28px var(--lo-shadow,rgba(67,97,238,.4));}
.lo-btn:active{transform:translateY(0);}
.lo-err{font-size:.79rem;color:#d62828;min-height:16px;margin:4px 0 2px;}
.lo-ok{font-size:.79rem;color:#2d9b59;min-height:16px;margin:4px 0 2px;}
.lo-links{display:flex;gap:12px;justify-content:center;margin-top:16px;flex-wrap:wrap;}
.lo-link{background:none;border:none;color:#bbb;font-size:.78rem;cursor:pointer;text-decoration:none;padding:5px 10px;border-radius:6px;transition:color .15s,background .15s;}
.lo-link:hover{color:var(--lo-color,#4361ee);background:rgba(0,0,0,.04);}
.lo-back{background:none;border:none;color:#bbb;font-size:.78rem;cursor:pointer;display:block;width:100%;text-align:center;padding:8px 0 2px;margin-top:6px;}
.lo-back:hover{color:#555;}
.lo-sec{display:none;} .lo-sec.on{display:block;}
.lo-ph{display:none;} .lo-ph.on{display:block;}
.lo-hint{font-size:.77rem;color:#999;background:#f6f7fc;border-left:3px solid var(--lo-color,#4361ee);border-radius:0 8px 8px 0;padding:9px 12px;margin-bottom:16px;line-height:1.5;}
[data-theme="dark"] .lo-card{background:#1a1d2e;}
[data-theme="dark"] .lo-title{color:#e8eaf0;}
[data-theme="dark"] .lo-sub{color:rgba(255,255,255,.4);}
[data-theme="dark"] .lo-lbl{color:rgba(255,255,255,.45);}
[data-theme="dark"] .lo-inp{background:#12142a;border-color:#282b42;color:#e0e0f0;}
[data-theme="dark"] .lo-inp:focus{background:#161928;}
[data-theme="dark"] .lo-hint{background:#1c1f33;color:#8888aa;}
[data-theme="dark"] .lo-link{color:rgba(255,255,255,.35);}
[data-theme="dark"] .lo-link:hover{background:rgba(255,255,255,.06);color:rgba(255,255,255,.7);}
[data-theme="dark"] .lo-back{color:rgba(255,255,255,.35);}
[data-theme="dark"] .lo-back:hover{color:rgba(255,255,255,.7);}
[data-theme="dark"] .lo-eye{color:rgba(255,255,255,.28);}
[data-theme="dark"] .lo-fi{color:rgba(255,255,255,.22);}
/* ── Portal Login Flip Card ──────────────────────────────── */
/* NOTE: no animation on .lo-flip-card — opacity animation creates a GPU compositing
   layer that flattens preserve-3d on children, causing both faces to show at once. */
.lo-flip-card{width:100%;max-width:390px;height:min(560px,calc(100vh - 120px));min-height:380px;-webkit-perspective:1200px;perspective:1200px;position:relative;z-index:1;flex-shrink:0;}
.lo-flip-inner{position:relative;width:100%;height:100%;transition:-webkit-transform .65s cubic-bezier(.4,0,.2,1),transform .65s cubic-bezier(.4,0,.2,1);-webkit-transform-style:preserve-3d;transform-style:preserve-3d;}
.lo-flip-card.flipped .lo-flip-inner{-webkit-transform:rotateY(180deg);transform:rotateY(180deg);}
.lo-flip-front,.lo-flip-back{position:absolute;inset:0;-webkit-backface-visibility:hidden;backface-visibility:hidden;border-radius:22px;box-shadow:0 28px 80px rgba(0,0,0,.55);overflow:hidden;}
.lo-flip-front{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px;color:#fff;}
.lo-flip-back{background:#fff;-webkit-transform:rotateY(180deg);transform:rotateY(180deg);display:flex;flex-direction:column;}
.lo-flip-back .lo-inner{flex:1;overflow-y:auto;padding:16px 22px 16px;}
.lo-flip-back .lo-hd{margin-bottom:14px;}
.lo-flip-back .lo-icon-wrap{width:54px;height:54px;border-radius:14px;font-size:1.35rem;margin-bottom:8px;}
.lo-flip-back .lo-title{font-size:1.05rem;}
.lo-role-icon{width:80px;height:80px;border-radius:50%;background:rgba(255,255,255,.2);border:3px solid rgba(255,255,255,.4);display:flex;align-items:center;justify-content:center;font-size:2.2rem;margin-bottom:18px;}
.lo-flip-front h3{font-size:1.4rem;font-weight:700;margin:0 0 8px;}
.lo-flip-front p{font-size:.86rem;opacity:.82;text-align:center;line-height:1.55;margin:0 0 22px;}
.lo-flip-btn{padding:10px 28px;border-radius:50px;background:rgba(255,255,255,.22);border:2px solid rgba(255,255,255,.6);color:#fff;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .2s;letter-spacing:.02em;}
.lo-flip-btn:hover{background:rgba(255,255,255,.4);}
.lo-flip-back-btn{background:none;border:none;border-top:1px solid #f0f0f0;color:#bbb;font-size:.76rem;cursor:pointer;display:block;width:100%;text-align:center;padding:9px 0 8px;margin-top:6px;transition:color .15s;}
.lo-flip-back-btn:hover{color:#555;}
[data-theme="dark"] .lo-flip-back{background:#1a1d2e;}
[data-theme="dark"] .lo-flip-back-btn{border-top-color:#282b42;color:rgba(255,255,255,.3);}
[data-theme="dark"] .lo-flip-back-btn:hover{color:rgba(255,255,255,.7);}

/* ── CONSOLIDATED PORTAL LOGIN (login.html) ──────────────── */
.login-front-brand { background: linear-gradient(135deg, #1a1a2e, #0f3460); }

.portal-tabs { display:flex; border-bottom:1px solid #f0f0f0; margin: 0 0 16px; }
[data-theme="dark"] .portal-tabs { border-bottom-color:#22253a; }
.portal-tab {
  flex:1; padding:12px 6px; background:none; border:none; border-bottom:2.5px solid transparent;
  margin-bottom:-1px; font-size:.82rem; font-weight:600; color:#999; cursor:pointer;
  transition: color .15s, border-color .15s;
}
.portal-tab:hover { color:#555; }
[data-theme="dark"] .portal-tab { color: rgba(255,255,255,.4); }
[data-theme="dark"] .portal-tab:hover { color: rgba(255,255,255,.7); }
.portal-tab.active[data-role="tenant"] { color:#4361ee; border-color:#4361ee; }
.portal-tab.active[data-role="client"] { color:#2d9b59; border-color:#2d9b59; }
.portal-tab.active[data-role="agency"] { color:#7209b7; border-color:#7209b7; }

.tab-content { display:none; }
.tab-content.active { display:block; }
.tab-content[data-role="tenant"] { --lo-color:#4361ee; --lo-glow:rgba(67,97,238,.16); --lo-shadow:rgba(67,97,238,.42); }
.tab-content[data-role="client"] { --lo-color:#2d9b59; --lo-glow:rgba(45,155,89,.16); --lo-shadow:rgba(45,155,89,.42); }
.tab-content[data-role="agency"] { --lo-color:#7209b7; --lo-glow:rgba(114,9,183,.16); --lo-shadow:rgba(114,9,183,.42); }
.tab-content[data-role="tenant"] .lo-btn { background: linear-gradient(135deg,#4361ee,#3a0ca3); }
.tab-content[data-role="client"] .lo-btn { background: linear-gradient(135deg,#2d9b59,#1a6b3c); }
.tab-content[data-role="agency"] .lo-btn { background: linear-gradient(135deg,#7209b7,#480088); }
.tab-content[data-role="tenant"] .back-icon-wrap { background: linear-gradient(135deg,#4361ee,#3a0ca3); box-shadow:0 6px 18px rgba(67,97,238,.42); }
.tab-content[data-role="client"] .back-icon-wrap { background: linear-gradient(135deg,#2d9b59,#1a6b3c); box-shadow:0 6px 18px rgba(45,155,89,.42); }
.tab-content[data-role="agency"] .back-icon-wrap { background: linear-gradient(135deg,#7209b7,#480088); box-shadow:0 6px 18px rgba(114,9,183,.42); }

/* ── MASTER ADMIN CONSOLE (master-login.html — deliberately muted, not on the branded gradient) ── */
.master-console-wrap {
  min-height: 100vh; background: #0a0b0f;
  display:flex; align-items:center; justify-content:center; flex-direction:column; gap:0;
  padding: 24px 16px;
}
.master-badge {
  display:inline-flex; align-items:center; gap:6px;
  color: rgba(255,255,255,.4); font-size:.72rem; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase; margin-bottom:18px;
}
.master-badge i { font-size:.7rem; }
.master-console-card {
  background:#14161c; border:1px solid #262a33; border-radius:18px;
  width:100%; max-width:380px; box-shadow:0 24px 70px rgba(0,0,0,.6);
  padding: 30px 28px 26px;
}
.master-console-card .lo-hd { text-align:center; margin-bottom:20px; }
.master-console-card .lo-icon-wrap { background: linear-gradient(135deg,#3a3d47,#1c1e24); box-shadow:0 6px 18px rgba(0,0,0,.5); }
.master-console-card .lo-title { color: rgba(255,255,255,.92); }
.master-console-card .lo-sub { color: rgba(255,255,255,.4); }
.master-console-card .lo-lbl { color: rgba(255,255,255,.4); }
.master-console-card .lo-inp { background:#1c1e26; border-color:#2c2f3a; color: rgba(255,255,255,.9); }
.master-console-card .lo-inp:focus { background:#20222c; }
.master-console-card .lo-hint { background:#1c1e26; color: rgba(255,255,255,.4); }
.master-console-card .lo-link { color: rgba(255,255,255,.32); }
.master-console-card .lo-link:hover { color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); }
.master-console-card .lo-back { color: rgba(255,255,255,.32); }
.master-console-card .lo-back:hover { color: rgba(255,255,255,.7); }
.master-console-card { --lo-shadow: rgba(0,0,0,.45); }
.master-console-card .lo-btn { background: linear-gradient(135deg,#3a3d47,#1c1e24); }
.master-console-footer { text-align:center; color: rgba(255,255,255,.25); font-size:.74rem; margin-top:22px; letter-spacing:.02em; }

/* ── MARKETING SITE (index.html + public pages) ──────────── */
.mkt-page { min-height:100vh; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
[data-theme="dark"] .mkt-page { background: linear-gradient(135deg,#06080f 0%,#0b0e1a 50%,#071525 100%); }

.mkt-nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: rgba(13,13,26,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
[data-theme="dark"] .mkt-nav { background: rgba(5,6,12,.78); }
.mkt-logo { display:flex; align-items:center; gap:10px; color:#fff; font-weight:700; font-size:1.05rem; text-decoration:none; letter-spacing:.01em; }
.mkt-logo i { color:#6d8dff; }
.mkt-nav-links { display:flex; align-items:center; gap:26px; }
.mkt-nav-links a { color: rgba(255,255,255,.68); text-decoration:none; font-size:.88rem; font-weight:500; transition: color .15s; }
.mkt-nav-links a:hover { color:#fff; }
.mkt-nav-cta {
  padding: 9px 22px; border-radius: 50px;
  background: linear-gradient(135deg,#4361ee,#3a0ca3); color:#fff;
  font-size:.86rem; font-weight:600; text-decoration:none; transition: transform .15s, box-shadow .15s;
}
.mkt-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(67,97,238,.4); }
.mkt-hamburger { display:none; background:none; border:none; color:#fff; font-size:1.3rem; cursor:pointer; padding:4px 8px; }

.mkt-hero { padding: 90px 24px 60px; text-align:center; max-width: 880px; margin: 0 auto; }
.mkt-hero h1 { color:#fff; font-size: clamp(2rem, 5vw, 3.2rem); font-weight:800; margin:0 0 18px; line-height:1.15; }
.mkt-hero h1 span { background: linear-gradient(135deg,#7aa3ff,#c9a7ff); -webkit-background-clip:text; background-clip:text; color:transparent; }
.mkt-hero p { color: rgba(255,255,255,.62); font-size:1.05rem; line-height:1.6; max-width:560px; margin:0 auto 34px; }
.mkt-hero-ctas { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.mkt-btn-primary {
  padding: 13px 32px; border-radius:50px; text-decoration:none; display:inline-block;
  background: linear-gradient(135deg,#4361ee,#3a0ca3); color:#fff;
  font-weight:700; font-size:.95rem; transition: transform .15s, box-shadow .15s;
}
.mkt-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(67,97,238,.45); }
.mkt-btn-secondary {
  padding: 13px 32px; border-radius:50px; text-decoration:none; display:inline-block;
  background: rgba(255,255,255,.08); border:1.5px solid rgba(255,255,255,.25); color:#fff;
  font-weight:600; font-size:.95rem; transition: all .15s;
}
.mkt-btn-secondary:hover { background: rgba(255,255,255,.16); }
.mkt-btn-green {
  padding: 13px 32px; border-radius:50px; text-decoration:none; display:inline-block;
  background: linear-gradient(135deg,#2d9b59,#1a6b3c); color:#fff;
  font-weight:700; font-size:.95rem; transition: transform .15s, box-shadow .15s;
}
.mkt-btn-green:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(45,155,89,.45); }
.mkt-btn-orange {
  padding: 13px 32px; border-radius:50px; text-decoration:none; display:inline-block;
  background: linear-gradient(135deg,#d97706,#92400e); color:#fff;
  font-weight:700; font-size:.95rem; transition: transform .15s, box-shadow .15s;
}
.mkt-btn-orange:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(217,119,6,.45); }

.mkt-section { max-width: 1080px; margin: 0 auto; padding: 30px 24px 70px; }
.mkt-section-hd { text-align:center; margin-bottom: 40px; }
.mkt-section-hd h2 { color:#fff; font-size:1.7rem; font-weight:700; margin:0 0 10px; }
.mkt-section-hd p { color: rgba(255,255,255,.55); font-size:.95rem; max-width:520px; margin:0 auto; }

.mkt-feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
@media (max-width: 860px) { .mkt-feature-grid { grid-template-columns:1fr; } }
.mkt-feature-card {
  background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.09);
  border-radius:16px; padding:30px 26px; text-align:center;
  transition: transform .2s, background .2s;
  display:block; text-decoration:none;
}
.mkt-feature-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.08); }
.mkt-feature-icon {
  width:64px; height:64px; border-radius:50%; margin:0 auto 18px;
  display:flex; align-items:center; justify-content:center; font-size:1.6rem; color:#fff;
}
.mkt-feature-card h3 { color:#fff; font-size:1.1rem; font-weight:700; margin:0 0 10px; }
.mkt-feature-card p { color: rgba(255,255,255,.58); font-size:.86rem; line-height:1.55; margin:0; }

.mkt-footer { border-top: 1px solid rgba(255,255,255,.08); padding: 40px 24px 28px; text-align:center; }
.mkt-footer-links { display:flex; flex-wrap:wrap; gap:10px 26px; justify-content:center; margin-bottom: 18px; }
.mkt-footer-links a { color: rgba(255,255,255,.55); text-decoration:none; font-size:.84rem; transition: color .15s; }
.mkt-footer-links a:hover { color:#fff; }
.mkt-footer-legal { color: rgba(255,255,255,.35); font-size:.76rem; }

/* Public content pages (Contact/FAQ/Terms/Privacy/Coming Soon/App Highlights) */
.mkt-content { max-width: 760px; margin:0 auto; padding: 56px 24px 80px; }
.mkt-content h1 { color:#fff; font-size:2.1rem; font-weight:800; margin:0 0 14px; }
.mkt-content .mkt-content-sub { color: rgba(255,255,255,.55); font-size:.98rem; margin:0 0 36px; line-height:1.6; }
.mkt-content-card { background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.09); border-radius:16px; padding:28px 30px; margin-bottom:20px; }
.mkt-content-card h2 { color:#fff; font-size:1.1rem; font-weight:700; margin:0 0 12px; }
.mkt-content-card p, .mkt-content-card li { color: rgba(255,255,255,.65); font-size:.88rem; line-height:1.7; }
.mkt-content-card ul { padding-left: 20px; margin: 0; }
.mkt-updated { color: rgba(255,255,255,.35); font-size:.78rem; margin-bottom: 30px; }

/* FAQ accordion */
.faq-item { background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.09); border-radius:14px; margin-bottom:12px; overflow:hidden; }
.faq-q { width:100%; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:18px 22px; background:none; border:none; color:#fff; font-size:.94rem; font-weight:600; text-align:left; cursor:pointer; }
.faq-q i { transition: transform .25s; color: rgba(255,255,255,.5); flex-shrink:0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height:0; overflow:hidden; transition: max-height .3s ease, padding .3s ease; padding:0 22px; }
.faq-item.open .faq-a { max-height: 320px; padding: 0 22px 18px; }
.faq-a p { color: rgba(255,255,255,.6); font-size:.87rem; line-height:1.65; margin:0; }

/* Contact form textarea (fields reuse existing .lo-field/.lo-lbl/.lo-inp) */
.mkt-textarea {
  display:block; width:100%; padding:10px 12px; border:1.5px solid #eaebf3; border-radius:10px;
  font-size:.88rem; font-family:inherit; resize:vertical; min-height:120px; box-sizing:border-box;
  background:#f6f7fc; color:#1a1a2e; transition:border-color .2s, box-shadow .2s, background .2s;
}
.mkt-textarea:focus { outline:none; border-color:#4361ee; box-shadow:0 0 0 3.5px rgba(67,97,238,.16); background:#fff; }
[data-theme="dark"] .mkt-textarea { background:#12142a; border-color:#282b42; color:#e0e0f0; }
.mkt-contact-info-row { display:flex; align-items:center; gap:12px; margin-bottom:14px; color: rgba(255,255,255,.65); }
.mkt-contact-info-row:last-child { margin-bottom:0; }
.mkt-contact-info-row i { width:34px; height:34px; border-radius:9px; background: rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; color:#8aa4ff; flex-shrink:0; }

@media (max-width: 720px) {
  .mkt-nav-links { display:none; }
  .mkt-hamburger { display:inline-flex; align-items:center; justify-content:center; }
  .mkt-content-card { padding: 22px 20px; }
}
