﻿
  :root {
    --navy: #0a1628;
    --blue: #1a3a6e;
    --accent: #0e8ce6;
    --gold: #f0a500;
    --light: #f4f7fb;
    --white: #ffffff;
    --gray: #6b7280;
    --lightgray: #e5e7eb;
    --green: #10b981;
    --red: #ef4444;
    --text: #1f2937;
    --shadow: 0 4px 24px rgba(10,22,40,0.10);
    --nav-active: rgba(14,140,230,0.20);
  }

  /* ---- Role-based dashboard themes (clearly distinguish EXIM vs FF after login) ---- */
  /* EXIM keeps the default navy / blue look. */
  .theme-exim { }
  /* FF gets a distinct deep-teal / emerald palette. */
  .theme-ff {
    --navy: #0d2f2b;
    --blue: #14534c;
    --accent: #0f9d8f;
    --gold: #f0a500;
    --shadow: 0 4px 24px rgba(13,47,43,0.12);
    --nav-active: rgba(15,157,143,0.22);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: 'Segoe UI', Arial, sans-serif; background: var(--light); color: var(--text); }

  /* ---- NAVBAR ---- */
  nav {
    background: var(--navy);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0,0,0,0.3);
  }
  .logo { display: flex; align-items: center; gap: 12px; cursor: pointer; }
  .logo-icon { font-size: 32px; }
  .logo-text { color: var(--white); font-size: 22px; font-weight: 800; letter-spacing: 0.5px; }
  .logo-text span { color: var(--gold); }
  .nav-links { display: flex; gap: 6px; align-items: center; }
  .nav-links a {
    color: #c8d6e5;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
  }
  .nav-links a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
  .nav-links a.active { color: var(--white); background: rgba(14,140,230,0.18); }
  .nav-btns { display: flex; gap: 10px; }
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 20px; border-radius: 7px; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; border: none; text-decoration: none; transition: all 0.2s; }
  .btn-outline { background: transparent; border: 1.5px solid #c8d6e5; color: var(--white); }
  .btn-outline:hover { background: rgba(255,255,255,0.1); }
  .btn-primary { background: var(--accent); color: var(--white); }
  .btn-primary:hover { background: #0c7dd0; transform: translateY(-1px); }
  .btn-gold { background: var(--gold); color: var(--navy); }
  .btn-gold:hover { background: #e09400; }
  .btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 8px; }
  .btn-green { background: var(--green); color: white; }
  .btn-red { background: var(--red); color: white; }

  /* ---- PAGES ---- */
  .page { display: none; }
  .page.active { display: block; }

  /* ---- HERO ---- */
  .hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 60%, #1a5276 100%);
    padding: 90px 40px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }
  .hero h1 { color: var(--white); font-size: 52px; font-weight: 900; line-height: 1.15; margin-bottom: 20px; }
  .hero h1 span { color: var(--gold); }
  .hero p { color: #a8c4d8; font-size: 19px; max-width: 640px; margin: 0 auto 40px; line-height: 1.7; }
  .hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
  .hero-stats { display: flex; gap: 60px; justify-content: center; margin-top: 70px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; }
  .stat { text-align: center; }
  .stat-num { font-size: 36px; font-weight: 800; color: var(--gold); }
  .stat-label { color: #a8c4d8; font-size: 14px; margin-top: 4px; }

  /* ---- HOW IT WORKS ---- */
  .section { padding: 80px 40px; }
  .section-alt { background: var(--white); }
  .section-title { text-align: center; font-size: 34px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
  .section-sub { text-align: center; color: var(--gray); font-size: 17px; max-width: 580px; margin: 0 auto 56px; line-height: 1.7; }
  .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; max-width: 1100px; margin: 0 auto; }
  .step-card { background: var(--light); border-radius: 16px; padding: 36px 28px; text-align: center; border: 1px solid var(--lightgray); transition: all 0.3s; }
  .step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
  .step-num { width: 52px; height: 52px; background: var(--accent); color: white; border-radius: 50%; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
  .step-icon { font-size: 36px; margin-bottom: 16px; }
  .step-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
  .step-card p { color: var(--gray); font-size: 14px; line-height: 1.7; }

  /* ---- FEATURES ---- */
  .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; max-width: 1100px; margin: 0 auto; }
  .feature-card { background: var(--white); border-radius: 14px; padding: 32px 28px; border: 1px solid var(--lightgray); transition: all 0.3s; }
  .feature-card:hover { box-shadow: var(--shadow); border-color: var(--accent); }
  .feature-icon { font-size: 38px; margin-bottom: 18px; }
  .feature-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
  .feature-card p { color: var(--gray); font-size: 14px; line-height: 1.7; }

  /* ---- SUBSCRIPTION CARDS ---- */
  .plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; max-width: 1050px; margin: 0 auto; }
  .plan-card { background: var(--white); border-radius: 18px; padding: 40px 32px; border: 2px solid var(--lightgray); text-align: center; position: relative; transition: all 0.3s; }
  .plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
  .plan-card.featured { border-color: var(--accent); }
  .plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: white; padding: 5px 18px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
  .plan-name { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
  .plan-price { font-size: 42px; font-weight: 900; color: var(--accent); margin: 18px 0 6px; }
  .plan-price span { font-size: 16px; color: var(--gray); font-weight: 400; }
  .plan-desc { color: var(--gray); font-size: 14px; margin-bottom: 28px; }
  .plan-features { text-align: left; margin-bottom: 32px; }
  .plan-features li { list-style: none; padding: 8px 0; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--lightgray); display: flex; align-items: center; gap: 10px; }
  .plan-features li:last-child { border-bottom: none; }
  .check { color: var(--green); font-weight: 700; }
  .cross { color: #ccc; }

  /* ---- FORMS ---- */
  .form-page { max-width: 560px; margin: 60px auto; background: var(--white); border-radius: 20px; padding: 48px 44px; box-shadow: var(--shadow); border: 1px solid var(--lightgray); }
  .form-page.wide { max-width: 800px; }
  .form-header { text-align: center; margin-bottom: 36px; }
  .form-header .form-icon { font-size: 48px; margin-bottom: 12px; }
  .form-header h2 { font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
  .form-header p { color: var(--gray); font-size: 15px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .form-group { margin-bottom: 20px; }
  .form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.5px; }
  .form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--lightgray);
    border-radius: 9px;
    font-size: 15px;
    color: var(--text);
    background: var(--light);
    transition: border 0.2s;
    font-family: inherit;
  }
  .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
  }
  .form-group textarea { min-height: 100px; resize: vertical; }
  .charge-input-group { display: flex; gap: 8px; }
  .charge-input-group input { flex: 1.6; }
  .charge-input-group select { flex: 1; min-width: 78px; }
  .form-divider { text-align: center; color: var(--gray); font-size: 13px; margin: 20px 0; position: relative; }
  .form-divider::before, .form-divider::after { content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--lightgray); }
  .form-divider::before { left: 0; } .form-divider::after { right: 0; }
  .form-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--gray); }
  .form-footer a { color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: none; }
  .radio-group { display: flex; gap: 16px; }
  .radio-card { flex: 1; border: 2px solid var(--lightgray); border-radius: 10px; padding: 14px; cursor: pointer; text-align: center; transition: all 0.2s; }
  .radio-card:hover, .radio-card.selected { border-color: var(--accent); background: rgba(14,140,230,0.05); }
  .radio-card .rc-icon { font-size: 28px; margin-bottom: 6px; }
  .radio-card .rc-label { font-size: 13px; font-weight: 700; color: var(--navy); }
  .tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .tag { padding: 6px 14px; border: 1.5px solid var(--lightgray); border-radius: 20px; font-size: 13px; cursor: pointer; color: var(--gray); transition: all 0.2s; }
  .tag.active { border-color: var(--accent); background: rgba(14,140,230,0.08); color: var(--accent); font-weight: 600; }

  /* ---- DASHBOARD ---- */
  .dashboard { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 68px); }
  .sidebar { background: var(--navy); padding: 30px 0; }
  .sidebar-logo { padding: 0 24px 28px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 16px; }
  .sidebar-logo .role-badge { font-size: 11px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
  .sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 24px; color: #a8c4d8; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; text-decoration: none; }
  .sidebar-nav a:hover { background: rgba(255,255,255,0.06); color: var(--white); }
  .sidebar-nav a.active { background: var(--nav-active); color: var(--white); border-right: 3px solid var(--accent); }
  .sidebar-nav a .nav-icon { font-size: 18px; width: 22px; text-align: center; }
  .sidebar-nav a .nav-badge { margin-left: auto; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; padding: 3px 7px; border-radius: 10px; }
  .sidebar-section { padding: 10px 24px 6px; font-size: 11px; font-weight: 700; color: #4a6a8a; text-transform: uppercase; letter-spacing: 1px; margin-top: 10px; }
  .dash-main { padding: 36px 40px; background: var(--light); overflow-y: auto; }
  .dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
  .dash-header h1 { font-size: 26px; font-weight: 800; color: var(--navy); }
  .dash-header p { color: var(--gray); font-size: 15px; margin-top: 4px; }
  .stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
  .stat-card { background: var(--white); border-radius: 14px; padding: 24px 22px; border: 1px solid var(--lightgray); display: flex; align-items: center; gap: 18px; }
  .stat-card .sc-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
  .sc-blue { background: rgba(14,140,230,0.1); }
  .sc-green { background: rgba(16,185,129,0.1); }
  .sc-gold { background: rgba(240,165,0,0.1); }
  .sc-red { background: rgba(239,68,68,0.1); }
  .stat-card .sc-info .sc-num { font-size: 26px; font-weight: 800; color: var(--navy); }
  .stat-card .sc-info .sc-label { font-size: 13px; color: var(--gray); margin-top: 2px; }
  .card { background: var(--white); border-radius: 14px; border: 1px solid var(--lightgray); margin-bottom: 24px; }
  .card-header { padding: 20px 24px; border-bottom: 1px solid var(--lightgray); display: flex; align-items: center; justify-content: space-between; }
  .card-header h3 { font-size: 17px; font-weight: 700; color: var(--navy); }
  .card-body { padding: 24px; }
  table { width: 100%; border-collapse: collapse; }
  th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; background: var(--light); border-bottom: 1px solid var(--lightgray); }
  td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--lightgray); color: var(--text); vertical-align: middle; }
  tr:last-child td { border-bottom: none; }
  tr:hover td { background: rgba(14,140,230,0.03); }
  .badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
  .badge-green { background: rgba(16,185,129,0.12); color: #065f46; }
  .badge-blue { background: rgba(14,140,230,0.12); color: #1a3a6e; }
  .badge-gold { background: rgba(240,165,0,0.15); color: #92400e; }
  .badge-gray { background: var(--lightgray); color: var(--gray); }
  .badge-red { background: rgba(239,68,68,0.12); color: #991b1b; }

  /* ---- QUOTE DETAIL ---- */
  .quote-detail { background: var(--white); border-radius: 14px; padding: 32px; border: 1px solid var(--lightgray); max-width: 880px; }
  .qd-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--lightgray); }
  .qd-id { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }
  .qd-title { font-size: 22px; font-weight: 800; color: var(--navy); margin-top: 4px; }
  .info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
  .info-item { background: var(--light); border-radius: 10px; padding: 16px 18px; }
  .info-item .ii-label { font-size: 11px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
  .info-item .ii-value { font-size: 15px; font-weight: 700; color: var(--navy); }

  /* ---- CHAT ---- */
  .chat-box { background: var(--light); border-radius: 12px; padding: 20px; min-height: 300px; max-height: 400px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
  .msg { max-width: 72%; }
  .msg-right { align-self: flex-end; }
  .msg-left { align-self: flex-start; }
  .msg-bubble { padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.6; }
  .msg-right .msg-bubble { background: var(--accent); color: white; border-bottom-right-radius: 4px; }
  .msg-left .msg-bubble { background: white; color: var(--text); border-bottom-left-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
  .msg-meta { font-size: 11px; color: var(--gray); margin-top: 4px; }
  .msg-right .msg-meta { text-align: right; }
  .admin-notice { background: rgba(240,165,0,0.12); border: 1px solid rgba(240,165,0,0.3); border-radius: 10px; padding: 12px 16px; font-size: 13px; color: #92400e; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
  .chat-input-row { display: flex; gap: 10px; margin-top: 16px; }
  .chat-input-row input { flex: 1; }

  /* ---- ABOUT / STATIC PAGES ---- */
  .static-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); padding: 70px 40px; text-align: center; }
  .static-hero h1 { color: var(--white); font-size: 38px; font-weight: 800; margin-bottom: 12px; }
  .static-hero p { color: #a8c4d8; font-size: 17px; max-width: 560px; margin: 0 auto; }
  .static-content { max-width: 880px; margin: 60px auto; padding: 0 40px 80px; }
  .static-content h2 { font-size: 22px; font-weight: 800; color: var(--navy); margin: 36px 0 14px; }
  .static-content h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin: 24px 0 10px; }
  .static-content p, .static-content li { color: var(--gray); font-size: 15px; line-height: 1.85; margin-bottom: 12px; }
  .static-content ul { padding-left: 22px; }
  .team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
  .team-card { background: var(--white); border-radius: 16px; padding: 32px 24px; text-align: center; border: 1px solid var(--lightgray); }
  .team-avatar { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--navy)); display: flex; align-items: center; justify-content: center; font-size: 28px; color: white; margin: 0 auto 16px; }
  .team-card h4 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
  .team-card p { color: var(--gray); font-size: 13px; }

  /* ---- FOOTER ---- */
  footer { background: var(--navy); color: #a8c4d8; padding: 60px 40px 30px; }
  .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto 50px; }
  .footer-brand p { font-size: 14px; line-height: 1.8; margin-top: 14px; color: #7a9bbf; }
  .footer-col h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.5px; }
  .footer-col a { display: block; color: #7a9bbf; font-size: 14px; margin-bottom: 10px; text-decoration: none; cursor: pointer; transition: color 0.2s; }
  .footer-col a:hover { color: var(--white); }
  .footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px; text-align: center; font-size: 13px; color: #4a6a8a; max-width: 1200px; margin: 0 auto; }
  .social-links { display: flex; gap: 12px; margin-top: 18px; }
  .social-links a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center; color: #a8c4d8; text-decoration: none; font-size: 16px; transition: all 0.2s; }
  .social-links a:hover { background: var(--accent); color: white; }

  /* ---- ALERT ---- */
  .alert { padding: 14px 18px; border-radius: 10px; font-size: 14px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
  .alert-info { background: rgba(14,140,230,0.1); color: #1a3a6e; border: 1px solid rgba(14,140,230,0.25); }
  .alert-success { background: rgba(16,185,129,0.1); color: #065f46; border: 1px solid rgba(16,185,129,0.25); }
  .alert-warning { background: rgba(240,165,0,0.12); color: #92400e; border: 1px solid rgba(240,165,0,0.3); }

  /* ---- RESPONSIVE ---- */
  @media (max-width: 900px) {
    .dashboard { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .stats-row { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .info-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero h1 { font-size: 34px; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    nav { padding: 0 20px; }
    .nav-links { display: none; }
  }
  @media (max-width: 600px) {
    .stats-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-page { margin: 20px; padding: 30px 24px; }
  }

  /* Smooth transitions */
  .page { animation: fadeIn 0.3s ease; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

  .route-map { background: linear-gradient(90deg, rgba(14,140,230,0.08) 0%, rgba(240,165,0,0.08) 100%); border: 1px dashed var(--accent); border-radius: 14px; padding: 24px 32px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
  .route-point { text-align: center; }
  .route-point .rp-city { font-size: 20px; font-weight: 800; color: var(--navy); }
  .route-point .rp-port { font-size: 13px; color: var(--gray); margin-top: 2px; }
  .route-arrow { font-size: 28px; color: var(--accent); flex: 1; text-align: center; }
  .tab-row { display: flex; gap: 4px; margin-bottom: 28px; border-bottom: 2px solid var(--lightgray); }
  .tab { padding: 10px 22px; font-size: 14px; font-weight: 600; color: var(--gray); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
  .tab.active { color: var(--accent); border-bottom-color: var(--accent); }
  .ff-reply-card { background: var(--white); border: 1.5px solid var(--lightgray); border-radius: 14px; padding: 24px; margin-bottom: 16px; transition: all 0.2s; }
  .ff-reply-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
  .ff-reply-card .ff-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
  .ff-name { font-size: 17px; font-weight: 700; color: var(--navy); }
  .ff-rating { color: var(--gold); font-size: 14px; }
  .charge-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 16px 0; }
  .charge-item { background: var(--light); border-radius: 8px; padding: 12px 14px; }
  .charge-item .ci-label { font-size: 11px; color: var(--gray); font-weight: 600; text-transform: uppercase; }
  .charge-item .ci-val { font-size: 15px; font-weight: 700; color: var(--navy); margin-top: 4px; }
  .charge-total { background: var(--navy); color: white; border-radius: 10px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
  .charge-total .ct-label { font-size: 14px; font-weight: 600; }
  .charge-total .ct-amount { font-size: 22px; font-weight: 800; color: var(--gold); }

  /* ---- ICONS ---- */
  .icon { width: 1em; height: 1em; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.125em; }
  .icon-brand { stroke: none; }
  .logo-icon { color: var(--gold); display: flex; align-items: center; }
  .feature-icon, .form-icon, .rc-icon { color: var(--accent); }
  .sc-blue { color: var(--accent); }
  .sc-green { color: var(--green); }
  .sc-gold { color: var(--gold); }
  .sc-red { color: var(--red); }
  .sidebar { position: relative; }
  .btn-social { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--light); color: var(--text); border: 1px solid var(--lightgray); padding: 11px; }
  .btn-social:hover { border-color: var(--accent); background: white; }

  /* ---- TOAST ---- */
  .toast { position: fixed; top: 84px; right: 24px; z-index: 500; background: var(--navy); color: var(--white); padding: 14px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 30px rgba(10,22,40,0.35); border-left: 4px solid var(--green); opacity: 0; transform: translateX(20px); transition: all 0.3s ease; pointer-events: none; max-width: 340px; }
  .toast.show { opacity: 1; transform: translateX(0); }

  /* ---- MODAL (SSO) ---- */
  .modal-overlay { position: fixed; inset: 0; background: rgba(10,22,40,0.55); z-index: 400; display: none; align-items: center; justify-content: center; padding: 20px; }
  .modal-overlay.open { display: flex; }
  .modal { background: var(--white); border-radius: 16px; padding: 32px; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(10,22,40,0.4); }
  .modal h3 { font-size: 19px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
  .modal .modal-sub { font-size: 13px; color: var(--gray); margin-bottom: 20px; line-height: 1.6; }
  .sso-account { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--lightgray); border-radius: 10px; cursor: pointer; margin-bottom: 10px; transition: all 0.2s; }
  .sso-account:hover { border-color: var(--accent); background: rgba(14,140,230,0.05); }
  .sso-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--navy)); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
  .sso-name { font-size: 14px; font-weight: 700; color: var(--navy); }
  .sso-email { font-size: 12px; color: var(--gray); }

  /* ---- VALIDATION ---- */
  input.invalid, select.invalid, textarea.invalid { border-color: var(--red) !important; background: rgba(239,68,68,0.04) !important; }

  /* ---- SCROLL TO TOP ---- */
  .scroll-top { position: fixed; bottom: 28px; right: 24px; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(10,22,40,0.3); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s; z-index: 300; }
  .scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
  .scroll-top:hover { background: var(--accent); }

  /* ---- TABLE SEARCH ---- */
  .table-search { display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-bottom: 1px solid var(--lightgray); }
  .table-search input { flex: 1; max-width: 320px; padding: 9px 14px; border: 1.5px solid var(--lightgray); border-radius: 8px; font-size: 14px; background: var(--light); }
  .table-search input:focus { outline: none; border-color: var(--accent); background: white; }

  /* ---- MOBILE SIDEBAR ---- */
  .menu-btn { display: none; background: var(--white); border: 1px solid var(--lightgray); border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--navy); align-items: center; flex-shrink: 0; }
  .sidebar .sidebar-close { display: none; background: none; border: none; color: #a8c4d8; cursor: pointer; position: absolute; top: 18px; right: 16px; }
  .sidebar-backdrop { position: fixed; inset: 0; background: rgba(10,22,40,0.5); z-index: 250; display: none; }
  @media (max-width: 900px) {
    .menu-btn { display: inline-flex; }
    .sidebar.mobile-open { display: block; position: fixed; top: 0; left: 0; width: 260px; height: 100vh; z-index: 260; overflow-y: auto; }
    .sidebar.mobile-open .sidebar-close { display: block; }
    .sidebar-backdrop.show { display: block; }
  }


/* ===== Laravel app additions ===== */
label.tag { display: inline-flex; align-items: center; }
label.tag input { position: absolute; opacity: 0; width: 0; height: 0; }
label.tag:has(input:checked) { border-color: var(--accent); background: rgba(14,140,230,0.08); color: var(--accent); font-weight: 600; }
.charge-input-group { display: flex; gap: 8px; }
.charge-input-group input { flex: 1.6; }
.charge-input-group select { flex: 1; min-width: 84px; }
.charge-remove { flex: 0 0 auto; width: 40px; border: 1.5px solid var(--lightgray); border-radius: 8px; background: var(--white); color: var(--gray); font-size: 20px; line-height: 1; cursor: pointer; transition: all 0.15s; }
.charge-remove:hover { border-color: var(--red); background: rgba(239,68,68,0.06); color: var(--red); }
.field-error { color: var(--red); font-size: 12px; margin-top: 6px; }
.input-error { border-color: var(--red) !important; background: rgba(239,68,68,0.04) !important; }

/* ---- Live invalid-field highlighting (after the user has interacted) ---- */
.form-group input:user-invalid,
.form-group select:user-invalid,
.form-group textarea:user-invalid { border-color: var(--red) !important; background: rgba(239,68,68,0.05); }

/* ---- Scroll-to-agree Terms & Conditions ---- */
.tnc-box { max-height: 230px; overflow-y: auto; border: 1px solid var(--lightgray); border-radius: 10px; padding: 16px 18px; background: #fcfdff; font-size: 13px; line-height: 1.65; color: var(--text); }
.tnc-box h2 { font-size: 15px; margin: 14px 0 6px; color: var(--navy); }
.tnc-box h3 { font-size: 13.5px; margin: 10px 0 4px; color: var(--navy); }
.tnc-box p, .tnc-box li { font-size: 13px; }
.tnc-box ul { margin: 6px 0 6px 18px; }
.tnc-box.tnc-read { border-color: var(--green); }
.tnc-end { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--lightgray); text-align: center; color: var(--gray); font-style: italic; }
.tnc-agree { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--text); cursor: pointer; text-transform: none; letter-spacing: normal; }
.tnc-agree input { margin-top: 3px; }
.tnc-agree input:disabled { cursor: not-allowed; }
.tnc-agree-error { color: var(--red); }
.tnc-hint { font-size: 12.5px; color: var(--gray); margin-top: 6px; }
.tnc-popup { position: fixed; inset: 0; background: rgba(10,22,40,0.55); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.tnc-popup.show { display: flex; }
.tnc-popup-box { background: var(--white); border-radius: 14px; padding: 28px; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.tnc-popup-icon { color: var(--gold); margin-bottom: 6px; }
.tnc-popup-box h3 { color: var(--navy); font-size: 18px; margin-bottom: 10px; }
.tnc-popup-box p { color: var(--gray); font-size: 14px; line-height: 1.6; margin-bottom: 18px; }

/* ---- Verified trust badge ---- */
.verified-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; color: #0f7a4d; background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.35); vertical-align: middle; white-space: nowrap; }
.verified-badge .icon { color: #10b981; }

/* ---- No-contact-exchange warning under free-text fields ---- */
.field-warn { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; padding: 10px 12px; font-size: 12.5px; line-height: 1.55; color: #92400e; background: rgba(240,165,0,0.10); border: 1px solid rgba(240,165,0,0.40); border-radius: 8px; }
.field-warn .icon { color: var(--gold); flex-shrink: 0; margin-top: 1px; }

/* ---- Home page refresh ---- */
.hero-eyebrow { display: inline-block; padding: 6px 16px; border-radius: 30px; background: rgba(240,165,0,0.15); border: 1px solid rgba(240,165,0,0.45); color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 22px; }
.hero-tagline { letter-spacing: -1px; }
.hero-tagline .t-connect { color: #fff; }
.hero-tagline .t-quote { color: #fff; }
.hero-sublinks { margin-top: 20px; font-size: 14px; color: #a8c4d8; }
.hero-sublinks a { color: #cfe0f2; text-decoration: none; font-weight: 600; }
.hero-sublinks a:hover { color: var(--gold); }
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; padding: 22px 40px; background: var(--navy); color: #cfe0f2; }
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.trust-strip .icon { width: 18px; height: 18px; color: var(--gold); }
.home-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; max-width: 980px; margin: 0 auto; }
.path-card { background: var(--white); border: 1px solid var(--lightgray); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); text-align: left; }
.path-card-gold { border-color: rgba(240,165,0,0.5); }
.path-ic { width: 60px; height: 60px; border-radius: 14px; background: var(--light); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.path-card-gold .path-ic { color: var(--gold); background: rgba(240,165,0,0.10); }
.path-card h3 { font-size: 21px; color: var(--navy); margin-bottom: 8px; }
.path-card > p { color: var(--gray); font-size: 15px; line-height: 1.6; margin-bottom: 16px; }
.path-list { list-style: none; margin: 0 0 22px; padding: 0; }
.path-list li { display: flex; align-items: center; gap: 9px; padding: 5px 0; color: var(--text); font-size: 14.5px; }
.path-list .icon { width: 16px; height: 16px; color: var(--green); }
a.feature-card { text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.lane-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lane-chip { padding: 11px 20px; border-radius: 26px; background: var(--white); border: 1px solid var(--lightgray); color: var(--navy); font-weight: 600; font-size: 14px; text-decoration: none; transition: all .15s; }
.lane-chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.home-link { color: var(--accent); font-weight: 700; text-decoration: none; }
.home-link:hover { text-decoration: underline; }
.home-cta { background: linear-gradient(135deg, var(--navy), var(--blue)); text-align: center; padding: 78px 40px; }
.home-cta h2 { color: #fff; font-size: 34px; font-weight: 800; margin-bottom: 14px; }
.home-cta > p { color: #a8c4d8; font-size: 17px; max-width: 540px; margin: 0 auto 32px; line-height: 1.7; }
.home-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.home-cta-links { margin-top: 26px; font-size: 14px; color: #a8c4d8; }
.home-cta-links a { color: #cfe0f2; text-decoration: none; font-weight: 600; }
.home-cta-links a:hover { color: var(--gold); }

/* ===== Home page — richer theme & polish (overrides win, loaded last) ===== */
.hero {
  background:
    radial-gradient(1200px 480px at 50% -8%, rgba(56,189,248,0.22), transparent 60%),
    radial-gradient(900px 420px at 88% 18%, rgba(240,165,0,0.18), transparent 55%),
    linear-gradient(135deg, #06101f 0%, #0c2747 52%, #0e3a63 100%);
  padding: 100px 40px 88px;
}
.hero::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -160px; transform: translateX(-50%);
  width: 760px; height: 320px;
  background: radial-gradient(closest-side, rgba(56,189,248,0.18), transparent);
  filter: blur(20px); pointer-events: none;
}
.hero h1, .hero-tagline { font-size: 60px; font-weight: 900; letter-spacing: -1.5px; text-shadow: 0 6px 40px rgba(0,0,0,0.35); }
.hero-tagline .t-connect { color: #ffffff; }
.hero-tagline .t-quote { background: linear-gradient(90deg, #38bdf8, #7dd3fc); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-tagline span:not(.t-connect):not(.t-quote) { background: linear-gradient(90deg, var(--gold), #ffcf5c); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: #c4d6ea; font-size: 19px; }
.hero-stats { gap: 20px; margin-top: 60px; border-top: 1px solid rgba(255,255,255,0.10); padding-top: 44px; }
.hero-stats .stat { background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 20px 30px; min-width: 158px; }
.hero-stats .stat-num { background: linear-gradient(90deg, var(--gold), #ffcf5c); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Section heading accent underline */
.section-title { position: relative; padding-bottom: 18px; }
.section-title::after { content: ''; display: block; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 64px; height: 4px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--gold)); }

/* Feature icons as soft gradient tiles */
.feature-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(14,140,230,0.14), rgba(240,165,0,0.14)); margin-bottom: 18px; }
.feature-icon .icon { color: var(--accent); }
.feature-card { border-radius: 16px; }
a.feature-card:hover { border-color: transparent; box-shadow: 0 14px 40px rgba(10,22,40,0.14); }

/* Step number badges */
.step-num { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 18px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), #0b6fc0); box-shadow: 0 6px 18px rgba(14,140,230,0.35); }

/* Path cards: accent top bar */
.path-card { position: relative; overflow: hidden; border-radius: 18px; }
.path-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--accent), #7dd3fc); }
.path-card-gold::before { background: linear-gradient(90deg, var(--gold), #ffcf5c); }

/* Trust strip a touch richer */
.trust-strip { background: linear-gradient(90deg, #0a1b30, #103253); border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }

/* Keep the decorative hero pattern/glow behind content and non-interactive,
   so the hero buttons and links stay clickable. */
.hero::before, .hero::after { pointer-events: none; z-index: 0; }
.hero > * { position: relative; z-index: 1; }

@media (max-width: 640px) {
  .hero h1, .hero-tagline { font-size: 38px; }
}
.menu-btn { margin-bottom: 18px; }

/* ---- Notification bell + panel ---- */
.notif { position: fixed; top: 16px; right: 22px; z-index: 240; }
.notif-btn { position: relative; background: var(--white); border: 1px solid var(--lightgray); width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--navy); cursor: pointer; box-shadow: 0 2px 8px rgba(10,22,40,0.06); }
.notif-btn:hover { background: var(--light); }
.notif-dot { position: absolute; top: -4px; right: -4px; background: var(--red, #e23b3b); color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.user-greet { position: fixed; top: 24px; right: 78px; z-index: 240; font-size: 14px; color: var(--gray); }
.user-greet strong { color: var(--navy); }
@media (max-width: 640px) { .user-greet { display: none; } }
.notif-panel { position: absolute; right: 0; top: 50px; width: 340px; max-width: 88vw; background: var(--white); border: 1px solid var(--lightgray); border-radius: 14px; box-shadow: 0 18px 50px rgba(10,35,66,0.18); overflow: hidden; display: none; }
.notif-panel.open { display: block; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--lightgray); font-weight: 700; color: var(--navy); font-size: 14px; }
.notif-readall { background: none; border: none; color: var(--accent); font-size: 12px; font-weight: 600; cursor: pointer; }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #f0f3f7; text-decoration: none; color: var(--navy); }
.notif-item:hover { background: var(--light); }
.notif-item.unread { background: #f3f8ff; }
.notif-ic { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; background: var(--gray); }
.notif-ic.new_lead { background: #2f7be0; }
.notif-ic.quote_received { background: #1f9d57; }
.notif-ic.quote_rejected { background: #e23b3b; }
.notif-tx { display: flex; flex-direction: column; gap: 2px; font-size: 13px; min-width: 0; }
.notif-tx strong { color: var(--navy); font-size: 13px; }
.notif-tx span { color: var(--gray); font-size: 12px; line-height: 1.4; }
.notif-tx time { color: #9aa7b5; font-size: 11px; margin-top: 2px; }
.notif-empty { padding: 26px 16px; text-align: center; color: var(--gray); font-size: 13px; }
.notif-all { display: block; text-align: center; padding: 12px; color: var(--accent); font-weight: 600; font-size: 13px; text-decoration: none; border-top: 1px solid var(--lightgray); }
.notif-all:hover { background: var(--light); }
.notif-row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #f0f3f7; text-decoration: none; color: var(--navy); }
.notif-row:hover { background: var(--light); }
.notif-row.unread { background: #f3f8ff; }
.notif-row-tx { display: flex; flex-direction: column; gap: 2px; }
.notif-row-tx span { color: var(--gray); font-size: 13px; }
.notif-row time { margin-left: auto; color: #9aa7b5; font-size: 12px; white-space: nowrap; }

/* ---- Two-price pricing display ---- */
.pp-was { text-decoration: line-through; color: var(--gray); font-size: 18px; font-weight: 600; margin-right: 8px; }
.pp-now { color: var(--navy); font-weight: 800; }
.pp-period { font-size: 14px; color: var(--gray); font-weight: 500; }
.pp-tax { font-size: 12px; color: var(--gray); margin-top: 4px; }
.currency-switch { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 28px; font-size: 14px; color: var(--gray); }
.currency-switch select { padding: 8px 12px; border: 1.5px solid var(--lightgray); border-radius: 8px; font-size: 14px; background: var(--white); color: var(--navy); font-weight: 600; }

/* ---- Decline quote inline form ---- */
.decline-box { display: inline-block; }
.decline-box > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 8px; border: 1.5px solid var(--lightgray); color: var(--gray); font-size: 13px; font-weight: 600; }
.decline-box > summary::-webkit-details-marker { display: none; }
.decline-box[open] > summary { border-color: #e23b3b; color: #c0392b; }
.decline-panel { margin-top: 10px; padding: 14px; border: 1px solid var(--lightgray); border-radius: 10px; background: var(--light); max-width: 460px; }
.decline-panel input[type=text] { width: 100%; padding: 9px 12px; border: 1.5px solid var(--lightgray); border-radius: 8px; font-size: 13px; }
.decline-panel label { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--navy); margin: 10px 0; text-transform: none; letter-spacing: normal; cursor: pointer; }

/* ---- User dashboard list filter toolbar ---- */
.table-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--lightgray); background: var(--white); }
.table-toolbar .tf-search { position: relative; flex: 1; min-width: 200px; max-width: 340px; }
.table-toolbar .tf-search .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--gray); pointer-events: none; }
.table-toolbar .tf-search input { width: 100%; padding: 9px 12px 9px 36px; border: 1.5px solid var(--lightgray); border-radius: 8px; font-size: 14px; background: var(--light); }
.table-toolbar .tf-search input:focus { outline: none; border-color: var(--accent); background: var(--white); }
.table-toolbar select { padding: 9px 12px; border: 1.5px solid var(--lightgray); border-radius: 8px; font-size: 14px; background: var(--white); color: var(--navy); font-weight: 500; }
.table-toolbar .tf-reset { margin-left: auto; background: none; border: none; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; }
.table-toolbar .tf-reset:hover { text-decoration: underline; }

/* ---- In-portal chat ---- */
.chat-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid #f0f3f7; text-decoration: none; color: var(--navy); }
.chat-row:hover { background: var(--light); }
.chat-row-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.chat-row-main { flex: 1; min-width: 0; }
.chat-row-top { display: flex; align-items: center; gap: 8px; }
.chat-row-ref { font-size: 12px; color: var(--gray); font-weight: 600; }
.chat-row-snippet { font-size: 13px; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row-meta { text-align: right; flex-shrink: 0; }
.chat-row-time { font-size: 11px; color: #9aa7b5; margin-top: 4px; }

.contact-card { background: #f0fbf4; border: 1px solid #bfe8cd; border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; }
.contact-card-head { font-weight: 700; color: #1f7a45; font-size: 14px; }

.chat-window { background: var(--light); border: 1px solid var(--lightgray); border-radius: 14px; padding: 18px; max-height: 460px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.chat-msg { display: flex; }
.chat-msg.mine { justify-content: flex-end; }
.chat-bubble { max-width: 72%; background: var(--white); border: 1px solid var(--lightgray); border-radius: 14px; padding: 10px 14px; }
.chat-msg.mine .chat-bubble { background: var(--navy); border-color: var(--navy); color: #fff; }
.chat-meta { font-size: 11px; color: var(--gray); margin-bottom: 4px; }
.chat-msg.mine .chat-meta { color: #c4d4e4; }
.chat-body { font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.chat-compose { display: flex; gap: 10px; align-items: flex-end; }
.chat-compose textarea { flex: 1; padding: 11px 14px; border: 1.5px solid var(--lightgray); border-radius: 10px; font-size: 14px; font-family: inherit; resize: vertical; background: var(--white); }
.chat-compose textarea:focus { outline: none; border-color: var(--accent); }
.chat-compose .btn { padding: 12px 24px; }

/* ---- Submit-confirmation pop-up ---- */
.confirm-modal { position: fixed; inset: 0; background: rgba(10,22,40,0.55); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.confirm-modal.open { display: flex; }
.confirm-box { background: var(--white); border-radius: 16px; max-width: 460px; width: 100%; padding: 30px; text-align: center; box-shadow: 0 24px 60px rgba(10,22,40,0.3); }
.confirm-icon { width: 56px; height: 56px; border-radius: 50%; background: #fff6e6; color: #d98300; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.confirm-box h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.confirm-box p { font-size: 15px; color: var(--gray); line-height: 1.5; margin-bottom: 22px; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.confirm-actions .btn { padding: 12px 22px; }

/* Admin impersonation ("login as user") banner */
.impersonate-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: #fff4d6; border: 1px solid #f1c40f; color: #7a5b00; border-radius: 10px; padding: 10px 16px; margin-bottom: 18px; font-size: 14px; }
.impersonate-bar a { color: #b9770e; font-weight: 700; text-decoration: none; white-space: nowrap; }
.impersonate-bar a:hover { text-decoration: underline; }

/* Pagination bar (portal tables + dashboards) */
.pagination-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--lightgray); }
.pagination-bar .pg-count { font-size: 13px; color: var(--gray); }
.pagination-bar .pg-count strong { color: var(--navy); }
.pagination-bar .pg-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pagination-bar .pg-perpage { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray); }
.pagination-bar .pg-perpage select { padding: 6px 10px; border: 1.5px solid var(--lightgray); border-radius: 8px; font-size: 13px; background: var(--white); color: var(--navy); font-weight: 600; cursor: pointer; }
.pagination-bar .pg-nav { display: flex; align-items: center; gap: 4px; }
.pagination-bar .pg-link { min-width: 32px; height: 32px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--lightgray); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--navy); text-decoration: none; background: var(--white); }
.pagination-bar .pg-link:hover { border-color: var(--accent); color: var(--accent); }
.pagination-bar .pg-link.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination-bar .pg-link.disabled { color: var(--lightgray); cursor: not-allowed; background: var(--light); }

/* Location combobox (AJAX typeahead: country + port/city) */
.combobox { position: relative; }
.combobox-input { width: 100%; }
.combobox-menu { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; margin-top: 4px; background: var(--white); border: 1.5px solid var(--lightgray); border-radius: 8px; box-shadow: 0 8px 24px rgba(15,23,42,0.12); max-height: 260px; overflow-y: auto; }
.combobox-option { padding: 9px 13px; font-size: 14px; color: var(--navy); cursor: pointer; }
.combobox-option:hover, .combobox-option.active { background: rgba(14,140,230,0.08); color: var(--accent); }
.combobox-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.combobox-chips:empty { margin-bottom: 0; }
.combobox-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; background: rgba(14,140,230,0.10); color: var(--accent); border-radius: 20px; font-size: 13px; font-weight: 600; }
.combobox-chip-x { border: none; background: transparent; color: inherit; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; }
.combobox-chip-x:hover { color: var(--red); }
