/**
 * YAHYA GULF — INVESTOR PORTAL DESIGN SYSTEM
 * Theme: Saudi Emerald & Champagne Gold Luxe
 * Mobile-First, Touch-Optimized, PWA-Ready
 */

:root {
  --primary-dark: #062316;
  --primary-rich: #0B3B24;
  --primary-light: #125435;
  --gold-primary: #C8A951;
  --gold-light: #DFBF6B;
  --gold-bright: #D4AF37;
  --gold-dark: #9A7B2C;
  --bg-page: #F1F5F9;
  --bg-card: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --danger: #EF4444;
  --success: #10B981;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(6,35,22,0.1);
  --font-family: 'Noto Sans Bengali', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px; /* Space for mobile bottom nav */
}

@media (min-width: 900px) {
  body {
    padding-bottom: 30px;
  }
}

a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--gold-primary);
}

/* TOP NAVBAR */
.portal-navbar {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-rich) 100%);
  color: #FFFFFF;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border-bottom: 2px solid rgba(200, 169, 81, 0.4);
}

.portal-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.portal-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 19px;
  box-shadow: 0 2px 8px rgba(200,169,81,0.4);
}

.portal-brand-text h1 {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: 0.3px;
}

.portal-brand-text p {
  font-size: 11px;
  color: var(--gold-light);
  margin: 0;
}

.portal-user-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(200,169,81,0.3);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12.5px;
  color: #FFFFFF;
}

.btn-nav-action {
  background: rgba(255,255,255,0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-nav-action:hover {
  background: var(--gold-primary);
  color: var(--primary-dark);
  border-color: var(--gold-primary);
}

/* MAIN CONTAINER */
.portal-main {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
}

/* GREETING HERO CARD */
.investor-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0D4028 100%);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(200, 169, 81, 0.3);
  margin-bottom: 24px;
}

.investor-hero::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(200, 169, 81, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.investor-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.investor-hero-title {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.investor-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #CBD5E1;
}

.badge-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: #FEF3C7;
  border: 1px solid #D97706;
  color: #92400E;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
}

/* KPI GRID */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (min-width: 800px) {
  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

.kpi-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6,35,22,0.08);
}

.kpi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(11, 59, 36, 0.08);
  color: var(--primary-rich);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}

.kpi-subvalue {
  font-size: 11.5px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-top: 4px;
}

/* SECTION CARDS */
.section-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
  overflow: hidden;
}

.section-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FAFAFA;
}

.section-card-header h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-card-body {
  padding: 20px;
}

/* TABLES & RESPONSIVE CARDS */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.portal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  text-align: left;
}

.portal-table th {
  background: #F8FAFC;
  padding: 12px 14px;
  font-weight: 700;
  color: #475569;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.portal-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.portal-table tr:hover td {
  background-color: #F8FAFC;
}

/* Deed Ref Badge */
.deed-ref-badge {
  display: inline-flex;
  align-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: #064E3B;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

/* Shares Pill Badge */
.shares-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: #FFFBEB;
  border: 1px solid #F59E0B;
  color: #92400E;
  font-weight: 700;
  font-size: 11.5px;
  padding: 4px 12px;
  border-radius: 9999px;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(245, 158, 11, 0.1);
}

/* Document & Deed Action Buttons */
.deed-actions-inline {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.btn-doc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid transparent;
  cursor: pointer;
  box-sizing: border-box;
}

.btn-doc svg {
  flex-shrink: 0;
}

.btn-doc-deed {
  background: #064E3B;
  color: #FFFFFF;
  border-color: #064E3B;
}

.btn-doc-deed:hover {
  background: #022C22;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(6,78,59,0.25);
}

.btn-doc-deposit {
  background: #059669;
  color: #FFFFFF;
  border-color: #059669;
}

.btn-doc-deposit:hover {
  background: #047857;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(5,150,105,0.25);
}

.btn-doc-receipt {
  background: #C8A951;
  color: #062316;
  border-color: #B3933B;
}

.btn-doc-receipt:hover {
  background: #DFBF6B;
  color: #062316;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(200,169,81,0.3);
}

/* MOBILE RECORD CARDS */
.mobile-card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-record-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.mobile-record-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.mobile-record-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
}

.mobile-record-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-bottom: 14px;
  font-size: 12px;
  background: #F8FAFC;
  padding: 10px 12px;
  border-radius: 8px;
}

.mobile-record-grid .label {
  color: var(--text-muted);
  font-size: 11px;
}

.mobile-record-grid .val {
  font-weight: 700;
  color: var(--text-main);
}

.mobile-record-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-rich);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #FFFFFF;
}

.btn-gold {
  background: var(--gold-primary);
  color: var(--primary-dark);
  font-weight: 700;
}

.btn-gold:hover {
  background: var(--gold-light);
  color: var(--primary-dark);
}

.btn-secondary {
  background: #F1F5F9;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
}

.btn-secondary:hover {
  background: #E2E8F0;
  color: var(--primary-dark);
  border-color: #CBD5E1;
}

.form-grid-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-grid-responsive {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
}

.file-preview-box {
  margin-top: 10px;
  background: #FDFBF7;
  border: 1.5px dashed var(--gold-primary);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.file-preview-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-rich);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.file-chip {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #0F172A;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.file-chip.file-error {
  background: #FEE2E2;
  border-color: #F87171;
  color: #991B1B;
}

.file-chip-remove {
  background: rgba(0,0,0,0.06);
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748B;
  font-size: 13px;
  line-height: 1;
}

.file-chip-remove:hover {
  background: #EF4444;
  color: #FFFFFF;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background: #F1F5F9;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 11.5px;
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
}

.btn-whatsapp:hover {
  background: #1EBE5D;
  color: #FFFFFF;
}

/* STATUS BADGES */
.status-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.status-active, .status-paid {
  background: #DEF7EC;
  color: #03543F;
}

.status-pending, .status-scheduled {
  background: #FEF08A;
  color: #713F12;
}

.status-locked {
  background: #FEE2E2;
  color: #991B1B;
}

/* MOBILE BOTTOM NAVIGATION */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
  z-index: 1000;
  padding: 6px 10px;
}

@media (max-width: 899px) {
  body {
    padding-bottom: 74px !important;
  }
  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  }
  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 900px) {
  .mobile-only {
    display: none !important;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #64748B;
  font-size: 10.5px;
  font-weight: 600;
  padding: 6px 2px;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.bottom-nav-item.active {
  color: #062316;
  font-weight: 700;
}

.bottom-nav-item.active svg {
  stroke: #059669;
  filter: drop-shadow(0 2px 4px rgba(5, 150, 105, 0.25));
}

.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: 2px;
  width: 16px;
  height: 2.5px;
  background: #C8A951;
  border-radius: 2px;
}

.bottom-nav-item svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.bottom-nav-item:active svg {
  transform: scale(0.92);
}

/* LOGIN SCREEN STYLING */
.portal-login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #041B11 0%, #062316 50%, #0B3B24 100%);
  padding: 20px;
}

.portal-login-card {
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border: 1px solid rgba(200, 169, 81, 0.4);
}

.portal-login-header {
  text-align: center;
  margin-bottom: 26px;
}

.portal-login-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 26px;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(200,169,81,0.4);
}

.portal-login-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary-dark);
}

.portal-login-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(200,169,81,0.2);
}

.alert-box {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.alert-danger {
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}

.alert-success {
  background: #DEF7EC;
  border: 1px solid #86EFAC;
  color: #03543F;
}

.alert-warning {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  color: #92400E;
}

/* REGISTRATION SCREEN STYLING */
.portal-reg-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #041B11 0%, #062316 40%, #0B3B24 100%);
  padding: 30px 16px 60px;
}

.portal-reg-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.portal-reg-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.35);
  border: 1px solid rgba(200, 169, 81, 0.4);
}

@media (max-width: 640px) {
  .portal-reg-card {
    padding: 22px 16px;
  }
}

.reg-section-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 22px;
}

.reg-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1.5px solid #E2E8F0;
  padding-bottom: 8px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

@media (max-width: 720px) {
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* PRINT MEDIA STYLES FOR OFFICIAL DEED & RECEIPTS */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .portal-navbar,
  .mobile-bottom-nav,
  .no-print,
  .btn,
  .btn-nav-action {
    display: none !important;
  }
  .print-page-container {
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .print-card {
    border: 2px solid #000000 !important;
    page-break-inside: avoid;
  }
}

/* ==========================================================================
   PWA INSTALL BANNER & PROMPT STYLES
   ========================================================================== */
.pwa-install-banner {
  background: linear-gradient(135deg, #062316 0%, #0B3B24 100%);
  border: 1.5px solid #C8A951;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(6, 35, 22, 0.25);
  animation: slideDown 0.35s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pwa-banner-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1.5px solid #DFBF6B;
  box-shadow: 0 4px 10px rgba(200, 169, 81, 0.3);
  flex-shrink: 0;
}

.pwa-banner-text h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 3px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pwa-banner-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(200, 169, 81, 0.25);
  color: #DFBF6B;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(200, 169, 81, 0.4);
}

.pwa-banner-text p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.4;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-pwa-install {
  background: linear-gradient(135deg, #C8A951 0%, #DFBF6B 100%);
  color: #062316;
  border: none;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(200, 169, 81, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-pwa-install:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 18px rgba(200, 169, 81, 0.6);
}

.btn-pwa-dismiss {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.btn-pwa-dismiss:hover {
  color: #FFFFFF;
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
  .pwa-install-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .pwa-banner-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 4px;
  }
  .btn-pwa-install {
    flex: 1;
    justify-content: center;
  }
}

/* ==========================================================================
   UNIVERSAL IMAGE PREVIEW / LIGHTBOX MODAL
   ========================================================================== */
.img-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 27, 17, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: imgFadeIn 0.25s ease-out;
}

@keyframes imgFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.img-preview-container {
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: imgScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes imgScaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.img-preview-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
  padding: 0 4px;
}

.img-preview-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.img-preview-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(200, 169, 81, 0.2);
  color: #DFBF6B;
  border: 1px solid rgba(200, 169, 81, 0.5);
  padding: 3px 9px;
  border-radius: 12px;
  white-space: nowrap;
}

.img-preview-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.img-preview-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.img-control-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.2s ease;
}

.img-control-btn:hover {
  background: #C8A951;
  color: #062316;
  border-color: #C8A951;
  transform: scale(1.08);
}

.img-control-btn.close-btn {
  font-size: 22px;
  line-height: 1;
}

.img-preview-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 82vh;
}

.img-preview-img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 14px;
  border: 2px solid #C8A951;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  background: #062316;
}

.previewable-img {
  cursor: zoom-in !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.previewable-img:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(200, 169, 81, 0.35) !important;
}

/* INCOMPLETE PROFILE CALLOUT CARD */
.incomplete-profile-card {
  background: linear-gradient(135deg, #FFFDF5 0%, #FEF9E7 100%);
  border: 2px solid #C8A951;
  border-left: 6px solid #D97706;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 25px rgba(200, 169, 81, 0.18);
  animation: subtlePulse 3s infinite ease-in-out;
}

@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 8px 25px rgba(200, 169, 81, 0.18); }
  50% { box-shadow: 0 10px 30px rgba(217, 119, 6, 0.28); }
}

.incomplete-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.incomplete-icon-pill {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #FEF3C7;
  color: #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid #FCD34D;
}

.incomplete-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 800;
  background: #FEE2E2;
  color: #DC2626;
  padding: 2px 8px;
  border-radius: 6px;
}

.completeness-score-badge {
  font-size: 11.5px;
  font-weight: 800;
  background: #FEF3C7;
  color: #B45309;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #FCD34D;
}

.incomplete-title {
  font-size: 16px;
  font-weight: 800;
  color: #78350F;
  margin: 6px 0 4px;
}

.incomplete-desc {
  font-size: 13px;
  color: #92400E;
  line-height: 1.5;
  max-width: 650px;
}

.incomplete-action-box {
  flex-shrink: 0;
}

.btn-complete-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #062316 0%, #0B3B24 100%);
  color: #DFBF6B !important;
  border: 1.5px solid #C8A951;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13.5px;
  box-shadow: 0 4px 14px rgba(6,35,22,0.25);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-complete-profile:hover {
  transform: translateY(-2px);
  background: #0B3B24;
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(200, 169, 81, 0.4);
}

.incomplete-progress-wrap {
  background: rgba(200, 169, 81, 0.2);
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  margin: 16px 0 12px;
}

.incomplete-progress-bar {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #D97706 0%, #F59E0B 50%, #10B981 100%);
  transition: width 0.6s ease;
}

.missing-items-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.missing-item-pill {
  background: #FFFFFF;
  border: 1px solid #FCD34D;
  color: #B45309;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
