/* ============================================================
   TruckMarket — main.css
   Theme: Dark Navy + Yellow #f0de2c
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:         #0D1B2A;
  --navy-2:       #132236;
  --navy-3:       #1a2f45;
  --yellow:       #f0de2c;
  --yellow-light: #FFD95A;
  --yellow-dark:  #c9a000;
  --white:        #FFFFFF;
  --text:         #e2e8f0;
  --text-muted:   #94a3b8;
  --border:       rgba(255,255,255,.08);
  --card-bg:      #132236;
  --input-bg:     #0D1B2A;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 4px 24px rgba(0,0,0,.35);
  --tr:           all .2s ease;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--text);
  min-height: 100vh;
}

h1,h2,h3,h4,h5,.brand-name,.section-title {
  font-family: 'Rajdhani', sans-serif;
  color: var(--white);
}

a { text-decoration: none; }
img { max-width: 100%; }

/* ── Navbar ────────────────────────────────────────────────── */
.tm-navbar {
  background: rgba(13,27,42,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  z-index: 1000;
}

.tm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white) !important;
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 600;
}

.tm-brand .brand-icon {
  width: 38px; height: 38px;
  background: var(--yellow);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--navy);
}

.tm-brand strong { color: var(--yellow); }

.tm-navbar .nav-link {
  color: var(--text-muted) !important;
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: var(--tr);
}
.tm-navbar .nav-link:hover,
.tm-navbar .nav-link.active {
  color: var(--yellow) !important;
  background: rgba(244,196,48,.08);
}

.nav-avatar {
  width: 32px; height: 32px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  vertical-align: middle;
}

.nav-username {
  margin-left: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text) !important;
}

.user-menu-toggle { display: flex !important; align-items: center; }

.tm-dropdown {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 210px;
  padding: 6px;
}
.tm-dropdown .dropdown-item {
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  transition: var(--tr);
}
.tm-dropdown .dropdown-item:hover {
  background: rgba(255,255,255,.06);
  color: var(--white);
}
.tm-dropdown .dropdown-divider { border-color: var(--border); }

/* ── Buttons ────────────────────────────────────────────────── */
.tm-btn-primary {
  background: var(--yellow) !important;
  color: var(--navy) !important;
  border: none !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm) !important;
  transition: var(--tr) !important;
  display: inline-flex; align-items: center; gap: 6px;
}
.tm-btn-primary:hover {
  background: var(--yellow-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(244,196,48,.3);
}

.tm-btn-outline {
  background: transparent !important;
  color: var(--text) !important;
  border: 1.5px solid rgba(255,255,255,.2) !important;
  font-weight: 500 !important;
  border-radius: var(--radius-sm) !important;
  transition: var(--tr) !important;
  display: inline-flex; align-items: center; gap: 6px;
}
.tm-btn-outline:hover {
  border-color: var(--yellow) !important;
  color: var(--yellow) !important;
}

.tm-btn-ghost {
  background: rgba(255,255,255,.06) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  font-weight: 500 !important;
  border-radius: var(--radius-sm) !important;
  transition: var(--tr) !important;
}
.tm-btn-ghost:hover {
  background: rgba(255,255,255,.1) !important;
  color: var(--white) !important;
}

/* ── Form inputs ─────────────────────────────────────────────── */
.tm-input {
  background: var(--input-bg) !important;
  border: 1.5px solid rgba(255,255,255,.12) !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm) !important;
  padding: 10px 14px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important;
  transition: var(--tr) !important;
}
.tm-input::placeholder { color: rgba(255,255,255,.3) !important; }
.tm-input:focus {
  border-color: var(--yellow) !important;
  box-shadow: 0 0 0 3px rgba(244,196,48,.15) !important;
  outline: none !important;
  background: var(--navy-2) !important;
}
.tm-input option {
  background: var(--navy-2);
  color: var(--text);
}

.form-label-custom {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
}

/* ── Section ─────────────────────────────────────────────────── */
.tm-section { padding: 72px 0; }
.tm-section-sm { padding: 48px 0; }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.section-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ── Hero ────────────────────────────────────────────────────── */
.tm-hero {
  background:
    linear-gradient(135deg, rgba(13,27,42,.97) 0%, rgba(13,27,42,.8) 100%),
    url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?w=1600') center/cover no-repeat;
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244,196,48,.12);
  border: 1px solid rgba(244,196,48,.3);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title span { color: var(--yellow); }

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-stat-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--yellow);
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Hero search card */
.hero-search-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(8px);
}

.hero-search-card h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

/* ── Filter bar ──────────────────────────────────────────────── */
.filter-bar {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.filter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  flex: 1;
  min-width: 140px;
}

.filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
  display: block;
}

.filter-btn-group { max-width: 130px; }

.filter-search-wrap {
  position: relative;
}
.filter-search-wrap i {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}
.filter-search-wrap input { padding-left: 36px !important; }

/* ── Truck Card ──────────────────────────────────────────────── */
.truck-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--tr);
  height: 100%;
}

.truck-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.4);
  border-color: rgba(244,196,48,.25);
}

.truck-card-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--navy-3);
}

.truck-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.truck-card:hover .truck-card-img-wrap img {
  transform: scale(1.04);
}

.truck-card-badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex; gap: 6px; flex-wrap: wrap;
}

.badge-featured {
  background: var(--yellow);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}

.badge-new {
  background: #10b981;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}

.truck-card-body {
  padding: 16px;
}

.truck-card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.truck-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.truck-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255,255,255,.05);
  padding: 3px 8px;
  border-radius: 20px;
}

.truck-card-meta i { font-size: 11px; }

.truck-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.truck-card-price {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--yellow);
}


/* ── Status badges ───────────────────────────────────────────── */
.badge-status-pending  { background: rgba(245,158,11,.15); color: #f59e0b; padding:4px 12px; border-radius:20px; font-size:12px; font-weight:700; }
.badge-status-confirmed  { background: rgba(245,158,11,.15); color: rgb(241, 97, 40); padding:4px 12px; border-radius:20px; font-size:12px; font-weight:700; }
.badge-status-completed { background: rgba(16,185,129,.15); color: #10b981; padding:4px 12px; border-radius:20px; font-size:12px; font-weight:700; }
.badge-status-cancelled { background: rgba(239,68,68,.15);  color: #ef4444; padding:4px 12px; border-radius:20px; font-size:12px; font-weight:700; }

/* ── Truck details page ──────────────────────────────────────── */
.detail-gallery-main {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-3);
  cursor: pointer;
}

.detail-gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.detail-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.detail-thumb {
  width: 76px; height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--tr);
  background: var(--navy-3);
}

.detail-thumb img { width:100%;height:100%;object-fit:cover; }
.detail-thumb.active { border-color: var(--yellow); }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.spec-item {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.spec-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.spec-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.detail-price-box {
  background: linear-gradient(135deg, var(--navy-3), var(--navy-2));
  border: 1px solid rgba(244,196,48,.2);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}

.detail-price-label { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.detail-price-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--yellow);
}

/* ── Auth page ───────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(13,27,42,.98) 0%, rgba(13,27,42,.9) 100%),
    url('https://images.unsplash.com/photo-1519003300449-424ad0405076?w=1200') center/cover;
  padding: 40px 20px;
}

.auth-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-logo .brand-icon {
  width: 42px; height: 42px;
  background: var(--yellow);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--navy);
}

.auth-logo span {
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

.auth-logo strong { color: var(--yellow); }

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  padding: 8px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--tr);
  border: none;
  background: none;
}
.auth-tab.active {
  background: var(--yellow);
  color: var(--navy);
}

.auth-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* ── Sell form ───────────────────────────────────────────────── */
.sell-form-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.sell-form-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ── Cards for pages ─────────────────────────────────────────── */
.tm-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--tr);
}

.tm-card:hover {
  border-color: rgba(244,196,48,.2);
}

/* Purchase / sell request row card */
.req-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--tr);
  margin-bottom: 12px;
}

.req-card:hover { border-color: rgba(244,196,48,.2); }

.req-img {
  width: 88px; height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--navy-3);
}

.req-info { flex: 1; min-width: 0; }
.req-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.req-meta { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.req-price { font-family: 'Rajdhani', sans-serif; font-size: 18px; font-weight: 700; color: var(--yellow); }

/* ── Profile ──────────────────────────────────────────────────── */
.profile-avatar {
  width: 80px; height: 80px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.profile-header {
  text-align: center;
  padding: 28px;
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

/* ── CTA section ─────────────────────────────────────────────── */
.tm-cta {
  background: linear-gradient(135deg, var(--navy-2) 0%, var(--navy-3) 100%);
  border: 1px solid rgba(244,196,48,.15);
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tm-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(244,196,48,.06), transparent);
  pointer-events: none;
}

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-muted);
}
.empty-state i { font-size: 52px; display: block; margin-bottom: 16px; opacity: .4; }
.empty-state h5 { font-family: 'Rajdhani', sans-serif; font-size: 22px; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* ── Toast ────────────────────────────────────────────────────── */
.tm-toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--navy-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;

  max-width: 340px;
}
.tm-toast.show { opacity: 1; transform: translateX(0); }

/* ── Breadcrumb ───────────────────────────────────────────────── */
.tm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tm-breadcrumb a { color: var(--text-muted); transition: color .18s; }
.tm-breadcrumb a:hover { color: var(--yellow); }
.tm-breadcrumb .sep { opacity: .4; }
.tm-breadcrumb .current { color: var(--text); }

/* ── Page header ──────────────────────────────────────────────── */
.page-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.page-header-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
}

/* ── Footer ───────────────────────────────────────────────────── */
.tm-footer {
  background: var(--navy-2);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 80px;
}

.footer-brand {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.footer-brand .brand-icon {
  width: 30px; height: 30px;
  background: var(--yellow);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--navy);
}
.footer-brand strong { color: var(--yellow); }

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
  transition: color .18s;
}
.footer-links a:hover { color: var(--yellow); }

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ── Verification code input ──────────────────────────────────── */
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}
.otp-input {
  width: 52px; height: 56px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  background: var(--input-bg);
  border: 2px solid rgba(255,255,255,.12);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-family: 'Rajdhani', sans-serif;
  transition: var(--tr);
}
.otp-input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(244,196,48,.15);
  outline: none;
}

/* ── Image upload zone ────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--tr);
  background: rgba(255,255,255,.02);
}
.upload-zone:hover {
  border-color: var(--yellow);
  background: rgba(244,196,48,.03);
}
.upload-zone i { font-size: 36px; color: var(--text-muted); display: block; margin-bottom: 10px; }
.upload-zone p { font-size: 14px; color: var(--text-muted); }
.upload-zone .preview-img { max-height: 180px; border-radius: var(--radius-sm); margin-top: 12px; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-title { font-size: 38px; }
  .hero-stats { gap: 20px; }
  .filter-group { min-width: 100%; }
  .filter-btn-group { max-width: 100%; }
  .req-card { flex-wrap: wrap; }
  .auth-card { padding: 28px 20px; }
  .spec-grid { grid-template-columns: 1fr; }
  .tm-section { padding: 48px 0; }
}
/* ── Topbar icon buttons ── */
.tm-topbar-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  padding: 7px 11px;
  transition: all .2s;
  font-family: 'DM Sans', sans-serif;
}

.tm-topbar-btn:hover {
  background: rgba(244,196,48,.1);
  border-color: rgba(244,196,48,.3);
  color: var(--yellow);
}

.tm-bell-btn {
  padding: 7px 10px;
}

/* Badge */
.tm-notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 20px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--navy, #0D1B2A);
  line-height: 1;
  pointer-events: none;
}

/* Panel wrap */
.tm-panel-wrap {
  position: relative;
}

/* Dropdown panel */
.tm-topbar-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #132236;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,.4);
    z-index: 1500;

    opacity: 0;
    transform: translateY(-8px) scale(.97);
    pointer-events: none;

    transition: opacity .18s ease, transform .18s ease;
}

.tm-topbar-panel.tm-panel-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Notif panel header */
.tm-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.tm-mark-all-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--yellow, #f0de2c);
  padding: 0;
}

/* Lang options */
.tm-lang-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  transition: background .15s;
  margin: 2px;
}

.tm-lang-opt:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}

.tm-lang-opt.active {
  background: rgba(244,196,48,.1);
  color: var(--yellow, #f0de2c);
}
.tm-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
        html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.main-content {
    flex: 1;
}
/* ============================================================
   Brand Strip — ki-nfz.de style
   Colors: #0a2e49 (navy) · #f0de2c (yellow) · #f8fcfb (off-white) · #ffffff (white)
   Supports Dark / Light mode via .brand-strip-light class
   ============================================================ */

.brand-strip-wrap {
  position: relative;
  background: #0a2e49;
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .25s ease, border-color .25s ease;
}

.brand-strip-wrap.brand-strip-light {
  background: #f8fcfb;
  border-top: 1px solid rgba(10,46,73,.08);
  border-bottom: 1px solid rgba(10,46,73,.08);
}

.brand-strip-heading {
  text-align: center;
  margin-bottom: 28px;
  position: relative;
}

.brand-strip-rule {
  display: inline-block;
  width: 64px;
  height: 3px;
  background: #f0de2c;
  border-radius: 2px;
  margin-bottom: 12px;
}

.brand-strip-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  transition: color .25s ease;
}

.brand-strip-light .brand-strip-title {
  color: #0a2e49;
}

/* ── Mode toggle button ── */
.brand-strip-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all .2s ease;
}

.brand-strip-toggle:hover {
  border-color: #f0de2c;
  color: #f0de2c;
}

.brand-strip-light .brand-strip-toggle {
  background: rgba(10,46,73,.06);
  border-color: rgba(10,46,73,.18);
  color: #0a2e49;
}

.brand-strip-light .brand-strip-toggle:hover {
  border-color: #f0de2c;
  color: #0a2e49;
}

@media (max-width: 576px) {
  .brand-strip-toggle { position: static; transform: none; margin-top: 12px; }
}

.brand-strip-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
  flex-wrap: wrap;
}

.brand-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-strip-card {
  width: 150px;
  height: 150px;
  background: #f8fcfb;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.brand-strip-light .brand-strip-card {
  background: #ffffff;
  border: 1px solid rgba(10,46,73,.12);
  box-shadow: 0 2px 10px rgba(10,46,73,.06);
}

.brand-strip-card:hover {
  transform: translateY(-3px);
  background: #ffffff;
  border-color: #f0de2c;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}

.brand-strip-light .brand-strip-card:hover {
  background: #ffffff;
  border-color: #f0de2c;
  box-shadow: 0 10px 28px rgba(10,46,73,.12);
}

.brand-strip-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-strip-label {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  opacity: .7;
  margin-top: 10px;
  transition: color .25s ease;
}

.brand-strip-light .brand-strip-label {
  color: #0a2e49;
  opacity: .65;
}

@media (max-width: 576px) {
  .brand-strip-card { width: 110px; height: 110px; padding: 16px; }
  .brand-strip-grid { gap: 12px; }
}