@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --navy: #0F172A;
  --navy-light: #1E293B;
  --royal: #1E40AF;
  --royal-light: #3B82F6;
  --gold: #D4AF37;
  --gold-dark: #AA8C2C;
  --white: #FFFFFF;
  --card: #F8FAFC;
  --border: #E2E8F0;
  --text-main: #334155;
  --text-muted: #64748B;
  --success: #16A34A;
  --error: #DC2626;
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: var(--font-main);
  background-color: #F1F5F9;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
}

/* Auth Container */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: var(--navy);
  background-image: radial-gradient(circle at 10% 20%, rgba(30, 64, 175, 0.15) 0%, transparent 80%);
}

.auth-card {
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2rem;
  overflow: hidden;
}

.brand-header {
  text-align: center;
  background-color: var(--navy);
  margin: -2.5rem -2rem 2rem -2rem;
  padding: 2rem;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  border-bottom: 3px solid var(--gold);
}

.brand-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--navy);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.brand-logo span {
  color: var(--gold);
}

.brand-tagline {
  font-size: 0.8rem;
  color: #94A3B8;
  margin-top: 0.5rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar for desktop */
.sidebar {
  width: 260px;
  background-color: var(--navy);
  color: var(--white);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 10;
}

.sidebar .brand-logo {
  color: var(--white);
  margin-bottom: 3rem;
  justify-content: flex-start;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: #94A3B8;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
  background-color: var(--navy-light);
}

.nav-link.active {
  border-left: 3px solid var(--gold);
  padding-left: calc(1rem - 3px);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-light);
}

.user-badge {
  font-size: 0.875rem;
  color: #94A3B8;
  margin-bottom: 0.75rem;
  word-break: break-all;
}

/* Main Area */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-bottom: 70px; /* Space for mobile bottom navigation */
}

.top-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.content-body {
  padding: 2rem;
  flex-grow: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Screen visibility */
.app-screen {
  display: none;
}

.app-screen.active {
  display: block;
}

/* Form Styles */
.card-section {
  background: var(--white);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--navy);
}

.card-section.gold-border {
  border-left: 4px solid var(--gold);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  position: relative;
}

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-light);
}

input, select, textarea {
  font-family: var(--font-main);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--white);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--royal-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

input[readonly] {
  background-color: #F8FAFC;
  cursor: not-allowed;
}

/* Auto-complete dropdown for customer search */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

.autocomplete-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #F1F5F9;
  transition: background-color 0.1s;
}

.autocomplete-item:hover {
  background-color: #F8FAFC;
}

.autocomplete-item .mobile {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Calculations Summary Panel */
.calc-summary {
  background: var(--navy);
  color: var(--white);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.calc-summary-item {
  display: flex;
  flex-direction: column;
}

.calc-summary-label {
  font-size: 0.875rem;
  color: #94A3B8;
  font-weight: 500;
  text-transform: uppercase;
}

.calc-summary-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-heading);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--navy);
  color: var(--white);
}

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

.btn-royal {
  background-color: var(--royal);
  color: var(--white);
}

.btn-royal:hover {
  background-color: var(--royal-light);
}

.btn-accent {
  background-color: var(--gold);
  color: var(--navy);
}

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

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

.btn-outline:hover {
  background-color: var(--card);
}

.btn-danger {
  background-color: var(--error);
  color: var(--white);
}

.btn-danger:hover {
  opacity: 0.9;
}

.btn-whatsapp-sender {
  background-color: #25D366;
  color: var(--white);
}

.btn-whatsapp-sender:hover {
  background-color: #20BA5A;
}

.btn-whatsapp-receiver {
  background-color: #128C7E;
  color: var(--white);
}

.btn-whatsapp-receiver:hover {
  background-color: #0E7569;
}

.btn-full {
  width: 100%;
}

.btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Dashboard UI */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 4px solid var(--border);
}

.stat-card.primary {
  border-bottom-color: var(--navy);
}

.stat-card.accent {
  border-bottom-color: var(--gold);
}

.stat-card.success {
  border-bottom-color: var(--success);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--navy);
}

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

/* Tables and Lists */
.table-container {
  background: var(--white);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  overflow-x: auto;
  margin-bottom: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background-color: #F8FAFC;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

tr:last-child td {
  border-bottom: none;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-paid {
  background-color: #DEF7EC;
  color: var(--success);
}

.badge-topay {
  background-color: #FEF3C7;
  color: var(--gold-dark);
}

.badge-credit {
  background-color: #E0F2FE;
  color: var(--royal);
}

/* Navigation & Mobile optimization */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--navy);
  height: 64px;
  border-top: 1px solid var(--navy-light);
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.bottom-nav-item {
  color: #94A3B8;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  font-size: 0.75rem;
  gap: 0.25rem;
  font-weight: 500;
  cursor: pointer;
}

.bottom-nav-item.active {
  color: var(--gold);
}

.bottom-nav-item svg {
  width: 20px;
  height: 20px;
}

/* Toast Container */
#toastContainer {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  max-width: 400px;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-left: 4px solid var(--royal);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  border-left-color: var(--success);
}

.toast-error {
  border-left-color: var(--error);
}

/* Invoice Page */
.invoice-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  color: #1e293b;
  font-family: 'Outfit', sans-serif;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Invoice Header Band */
.invoice-header-band {
  text-align: center;
  background-color: var(--navy);
  margin: -3rem -3rem 2rem -3rem;
  padding: 2rem 3rem;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
  border-bottom: 3px solid var(--gold);
}

.invoice-header-logo {
  height: 50px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.5rem auto;
}

.invoice-header-sub {
  font-size: 0.85rem;
  color: #94A3B8;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.invoice-brand h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
}

.invoice-brand span {
  color: var(--gold);
}

.invoice-meta {
  text-align: right;
}

.invoice-meta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.invoice-addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.invoice-address-block h3 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
  margin-bottom: 0.75rem;
}

.invoice-details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--card);
  padding: 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.invoice-details-item {
  display: flex;
  flex-direction: column;
}

.invoice-details-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.invoice-details-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.invoice-table {
  width: 100%;
  margin-bottom: 2rem;
}

.invoice-table th {
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
}

.invoice-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.invoice-totals {
  width: 300px;
  margin-left: auto;
  margin-bottom: 2rem;
}

.invoice-totals-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.invoice-totals-row.grand {
  border-top: 2px solid var(--navy);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  padding-top: 0.75rem;
}

.invoice-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 3rem;
}

/* Print Styling */
@media print {
  body { background: white !important; color: #000 !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .sidebar, .top-bar, .bottom-nav, #toastContainer, .btn-group, #landingPage, #authScreen { display: none !important; }
  .app-screen:not(#invoiceScreen) { display: none !important; }
  .app-container { display: block !important; }
  .main-content { padding-bottom: 0 !important; }
  .content-body { padding: 0 !important; }
  .invoice-wrapper { box-shadow: none !important; padding: 0 !important; margin: 0 !important; max-width: 100% !important; }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  
  .bottom-nav {
    display: flex;
  }
  
  .top-bar {
    padding: 1rem;
  }

  #currentDateDisplay {
    display: none;
  }

  .landing-header {
    padding: 0.75rem 1rem;
  }

  .landing-nav-link {
    display: none;
  }
  
  .content-body {
    padding: 1rem;
    padding-bottom: 80px; /* Prevent bottom-nav from overlapping page content */
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .btn-group .btn {
    width: 100%;
  }

  .btn-group > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .invoice-addresses {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .invoice-details-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  
  .invoice-wrapper {
    padding: 1.5rem;
  }
  .invoice-header-band {
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    padding: 1.5rem;
  }
}

/* Landing Page Styles */
.landing-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #F8FAFC;
}

.landing-header {
  background-color: var(--navy);
  color: var(--white);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--gold);
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.landing-nav-link {
  color: #94A3B8;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.landing-nav-link:hover {
  color: var(--white);
}

.landing-hero {
  background-color: var(--navy);
  color: var(--white);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  background-image: radial-gradient(circle at 50% 50%, rgba(30, 64, 175, 0.2) 0%, transparent 80%);
}

.landing-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.landing-hero h1 span {
  color: var(--white);
}

.landing-hero p {
  font-size: 1.2rem;
  color: #94A3B8;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

/* Tracking Card */
.tracking-container {
  max-width: 650px;
  margin: -3rem auto 3rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 5;
  width: 100%;
}

.tracking-card {
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  border-top: 4px solid var(--gold);
}

.tracking-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.tracking-search-bar {
  display: flex;
  gap: 0.5rem;
}

/* Services section */
.services-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.services-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  border-bottom-color: var(--gold);
}

.service-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.landing-footer {
  background-color: var(--navy);
  color: #94A3B8;
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--navy-light);
  margin-top: auto;
}

.landing-footer-logo {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1rem;
}

.landing-footer-logo span {
  color: var(--gold);
}

/* Password eye/eyelash styles */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  padding-right: 3rem;
}

.password-toggle-btn {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  transition: color 0.2s;
}

.password-toggle-btn:hover {
  color: var(--navy);
}

/* Public tracking invoice display modal */
.public-tracking-result {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* Back button style */
.btn-back-landing {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 10;
}

.service-card-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--gold);
}

.stat-icon svg {
  width: 24px;
  height: 24px;
  color: var(--navy);
}

/* ============================================================
   DT Logo Image — Unified Responsive Styles
   Uploaded PNG already has rounded corners + navy background.
   Do NOT add border-radius, background, or box-shadow here.
   ============================================================ */

/* Shared base for ALL logo placements */
.dt-logo {
  width: auto;
  height: auto;
  max-height: 70px;       /* Desktop */
  max-width: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
  /* No border-radius — PNG has rounded corners built in */
}

/* ---- Placement-specific layout ---- */

/* Sidebar: flush left, space below nav items */
.sidebar-logo-img {
  max-height: 70px;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
  margin-bottom: 3rem;
}

/* Auth card: centred above login form */
.auth-logo-img {
  max-height: 50px;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
  margin: 0 auto;
}

/* Landing page header: inline in nav bar */
.landing-logo-img {
  max-height: 70px;
  width: auto;
  height: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  background: transparent;
}

/* Hero section centred logo */
.landing-hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.landing-hero-logo {
  max-height: 70px;
  width: auto;
  height: auto;
  max-width: 260px;
  object-fit: contain;
  background: transparent;
  /* No box-shadow — transparent PNG blends naturally */
}

/* Contact & footer logo */
.contact-logo-img {
  max-height: 50px;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  background: transparent;
}

.landing-footer-logo-img {
  max-height: 70px;
  width: auto;
  height: auto;
  max-width: 180px;
  object-fit: contain;
  background: transparent;
  opacity: 1;
}

/* ---- Hero CTA buttons row ---- */
.landing-hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* ---- Responsive breakpoints ---- */

/* Tablet: ≤ 1024px → 60px */
@media (max-width: 1024px) {
  .sidebar-logo-img,
  .auth-logo-img,
  .landing-logo-img,
  .landing-hero-logo,
  .contact-logo-img,
  .landing-footer-logo-img {
    max-height: 60px;
  }
}

/* Mobile: ≤ 768px → 50px */
@media (max-width: 768px) {
  .sidebar-logo-img,
  .auth-logo-img,
  .landing-logo-img,
  .landing-hero-logo,
  .contact-logo-img,
  .landing-footer-logo-img {
    max-height: 50px;
  }
}

/* ---- Company Intro Section ---- */
.company-intro-section {
  background: var(--white);
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
}

.company-intro-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-badge {
  display: inline-block;
  background: rgba(30, 64, 175, 0.08);
  color: var(--royal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  border: 1px solid rgba(30, 64, 175, 0.15);
}

.section-badge-light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.3);
}

.company-intro-text h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.company-intro-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.company-intro-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.intro-stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--card);
  border-radius: 0.75rem;
  border-left: 4px solid var(--gold);
}

.intro-stat-val {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.intro-stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- Coverage Section ---- */
.coverage-section {
  background: var(--navy);
  padding: 5rem 2rem;
  color: var(--white);
}

.coverage-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.coverage-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.coverage-subtitle {
  font-size: 1.1rem;
  color: #94A3B8;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.coverage-item {
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #CBD5E1;
  transition: all 0.25s;
}

.coverage-item:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

.coverage-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---- Contact Section ---- */
.contact-section {
  background: #F8FAFC;
  padding: 5rem 2rem;
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2rem;
}

.contact-card {
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  overflow: hidden;
}

.contact-logo-wrap {
  background-color: var(--navy);
  margin: -2.5rem -2rem 1rem -2rem;
  padding: 2rem;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  border-bottom: 3px solid var(--gold);
  width: calc(100% + 4rem);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* contact-logo-img responsive rules defined in DT Logo section above */

.contact-details {
  width: 100%;
  text-align: center;
}

.contact-company-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-main);
  font-size: 1.05rem;
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-icon {
  color: var(--gold);
  flex-shrink: 0;
}

.contact-link {
  color: var(--royal);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--navy);
}

/* ---- Footer branding update ---- */
.landing-footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* landing-footer-logo-img responsive rules defined in DT Logo section above */

.landing-footer-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

/* Responsive: intro section */
@media (max-width: 900px) {
  .company-intro-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .company-intro-stats {
    flex-direction: row;
    justify-content: center;
  }

  .intro-stat {
    flex: 1;
    min-width: 120px;
  }

  .coverage-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

@media (max-width: 540px) {
  .company-intro-stats {
    flex-direction: column;
  }

  .coverage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .admin-label {
    display: none;
  }
}


/* ============================================================
   Administrator Dropdown (Top-Bar)
   ============================================================ */
.admin-dropdown {
  position: relative;
}

.admin-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem 0.875rem;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.admin-dropdown-btn:hover {
  background: var(--card);
  border-color: var(--royal-light);
}

.admin-label {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 1000;
  overflow: hidden;
}

.admin-dropdown-menu.open {
  display: block;
  animation: dropdownFade 0.15s ease;
}

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

.admin-dropdown-user {
  padding: 0.875rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  word-break: break-all;
}

.admin-dropdown-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.admin-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  text-align: left;
  transition: background 0.15s;
}

.admin-dropdown-item:hover {
  background: var(--card);
}

.admin-dropdown-logout {
  color: var(--error);
}

.admin-dropdown-logout:hover {
  background: #FEF2F2;
}

/* ============================================================
   Hero Phone Badge + Since 2022 Tagline
   ============================================================ */
.hero-tagline {
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem !important;
}

.hero-sub {
  font-size: 1rem;
  color: #94A3B8;
  max-width: 600px;
  margin: 0 auto 1.5rem auto !important;
}

.hero-contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 2rem;
  padding: 0.5rem 1.25rem;
  margin-bottom: 2rem;
  color: #94A3B8;
}

/* Bottom nav — ensure exactly 4 items fill evenly */
.bottom-nav {
  grid-template-columns: unset;
}
.bottom-nav .bottom-nav-item {
  flex: 1;
}
