:root {
  --bg-dark: #f5f5f7;
  --bg-card: #ffffff;
  --bg-card2: #f0f0f3;
  --accent: #6c63ff;
  --accent2: #0071e3;
  --accent3: #d63c5e;
  --gold: #b8730a;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --border: rgba(0, 0, 0, 0.1);
  --glass: rgba(255, 255, 255, 0.85);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  --shadow-accent: 0 0 40px rgba(108, 99, 255, 0.15);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(108, 99, 255, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 113, 227, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(214, 60, 94, 0.02) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ========== NAVBAR ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  -webkit-text-fill-color: white;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: rgba(108, 99, 255, 0.08);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent), #8b5cf6) !important;
  color: white !important;
  padding: 8px 20px !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(108, 99, 255, 0.3) !important;
  background: linear-gradient(135deg, var(--accent), #8b5cf6) !important;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  overflow: hidden;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.2);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: white;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
  background: rgba(0,0,0,0.04);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(108, 99, 255, 0.06);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 7px 18px;
  font-size: 0.82rem;
}

.btn-danger {
  background: rgba(214, 60, 94, 0.08);
  color: var(--accent3);
  border: 1px solid rgba(214, 60, 94, 0.2);
}

.btn-danger:hover {
  background: rgba(214, 60, 94, 0.14);
}

/* ========== STATS ========== */
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  animation: fadeInUp 0.7s ease 0.4s both;
}

.stat-item strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== FLOATING CARDS DISPLAY ========== */
.hero-visual {
  position: relative;
  height: 500px;
  animation: fadeInRight 0.8s ease 0.2s both;
}

.floating-card {
  position: absolute;
  width: 320px;
  height: 200px;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.floating-card:nth-child(1) { top: 40px; left: 60px; animation: float1 6s ease-in-out infinite; z-index: 3; }
.floating-card:nth-child(2) { top: 160px; left: 20px; animation: float2 6s ease-in-out infinite 1s; z-index: 2; }
.floating-card:nth-child(3) { top: 280px; left: 100px; animation: float3 6s ease-in-out infinite 2s; z-index: 1; }

@keyframes float1 {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-15px) rotate(-5deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(-2deg); }
}

/* ========== REAL CARD PHOTO ========== */
.card-photo {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.15));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.card-photo:hover {
  transform: translateY(-5px) scale(1.02);
  filter: drop-shadow(0 14px 30px rgba(0,0,0,0.2));
}
/* All sizes share the 480:303 aspect ratio */
.card-photo-sm { width: 160px; height: 101px; }
.card-photo-md { width: 260px; height: 164px; }
.card-photo-lg { width: 100%; max-width: 400px; aspect-ratio: 480/303; }

/* ========== CREDIT CARD COMPONENT ========== */
.credit-card {
  width: 100%;
  aspect-ratio: 1.586;
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

.credit-card:hover {
  transform: translateY(-8px) rotateX(3deg);
  box-shadow: 0 30px 70px rgba(0,0,0,0.2);
}

.credit-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.card-shine {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
}

.card-chip {
  width: 42px;
  height: 32px;
  background: linear-gradient(135deg, #d4af37, #ffd700, #b8960c);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.card-chip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 60%;
  border: 1.5px solid rgba(0,0,0,0.3);
  border-radius: 3px;
}

.card-chip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1.5px;
  background: rgba(0,0,0,0.3);
  transform: translateY(-50%);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-bank-name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.9;
}

.card-network {
  font-size: 1.8rem;
  opacity: 0.9;
}

.card-number {
  font-size: 1.05rem;
  letter-spacing: 4px;
  font-family: 'Courier New', monospace;
  opacity: 0.85;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-holder { font-size: 0.75rem; font-weight: 600; letter-spacing: 1px; opacity: 0.9; }
.card-expiry { font-size: 0.72rem; opacity: 0.7; }
.card-name { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.5px; }

/* ========== SECTIONS ========== */
.section {
  padding: 5rem 2rem;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  background: rgba(108, 99, 255, 0.08);
  color: var(--accent);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section h2 span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== GRID ========== */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }

/* ========== GLASS CARD ========== */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(108, 99, 255, 0.25);
  box-shadow: var(--shadow-accent);
  transform: translateY(-4px);
}

/* ========== CARD LIST ITEM ========== */
.card-list-item {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.card-list-item:hover {
  border-color: rgba(108, 99, 255, 0.25);
  box-shadow: var(--shadow-accent);
  transform: translateY(-4px);
}

.card-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.card-info p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

/* ========== TAGS ========== */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}

.tag-visa { background: rgba(26, 115, 232, 0.1); color: #1a6bd6; border: 1px solid rgba(26, 115, 232, 0.2); }
.tag-mastercard { background: rgba(200, 30, 30, 0.1); color: #b91c1c; border: 1px solid rgba(200, 30, 30, 0.2); }
.tag-amex { background: rgba(0, 120, 80, 0.1); color: #15803d; border: 1px solid rgba(0, 120, 80, 0.2); }
.tag-premium { background: rgba(180, 120, 0, 0.1); color: var(--gold); border: 1px solid rgba(180, 120, 0, 0.2); }
.tag-ultra { background: rgba(214, 60, 94, 0.1); color: var(--accent3); border: 1px solid rgba(214, 60, 94, 0.2); }
.tag-rewards { background: rgba(108, 99, 255, 0.1); color: var(--accent); border: 1px solid rgba(108, 99, 255, 0.2); }
.tag-everyday { background: rgba(100, 100, 110, 0.08); color: var(--text-muted); border: 1px solid rgba(100, 100, 110, 0.15); }

/* ========== STATS ROW ========== */
.stats-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.78rem;
}

.stat-pill strong { color: var(--accent2); }

/* ========== FEATURE BADGES ========== */
.feature-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 113, 227, 0.07);
  border: 1px solid rgba(0, 113, 227, 0.15);
  color: var(--accent2);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.67rem;
  font-weight: 500;
}
.feature-badge-star-alliance {
  background: rgba(30, 20, 0, 0.06);
  border-color: rgba(180, 140, 0, 0.4);
  color: #8a6500;
}

/* ========== OFFER CARD ========== */
.offer-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.offer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.offer-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 99, 255, 0.25);
  box-shadow: var(--shadow-accent);
}

.offer-card.featured-offer {
  border-color: rgba(180, 120, 0, 0.3);
  box-shadow: 0 0 30px rgba(180, 120, 0, 0.08);
}

.offer-card.featured-offer::before {
  background: linear-gradient(90deg, var(--gold), #e07c00);
}

.offer-bonus {
  font-size: 1.9rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), #e07c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin: 0.5rem 0;
}

/* ========== FILTERS ========== */
.filters {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}

.filter-group label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-group select {
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.86rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  font-family: inherit;
}

.filter-group select:focus {
  border-color: var(--accent);
}

/* ========== BANK PILLS ========== */
.bank-pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.bank-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.bank-pill:hover, .bank-pill.active {
  border-color: var(--accent);
  background: rgba(108, 99, 255, 0.07);
  transform: translateY(-2px);
}

.bank-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ========== RECOMMENDATION FORM ========== */
.recommender-form {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input, .form-group select, .form-group textarea {
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 15px;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
  width: 100%;
  font-family: inherit;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(108, 99, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.08);
}

.input-prefix {
  position: relative;
}

.input-prefix span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-weight: 600;
}

.input-prefix input { padding-left: 28px; }

.form-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.toggle-switch {
  width: 50px;
  height: 26px;
  background: rgba(0,0,0,0.12);
  border-radius: 13px;
  position: relative;
  transition: all 0.3s;
  flex-shrink: 0;
}

input[type="checkbox"]:checked + .toggle-switch {
  background: var(--accent);
}

.toggle-switch::after {
  content: '';
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: left 0.3s;
}

input[type="checkbox"]:checked + .toggle-switch::after {
  left: 27px;
}

input[type="checkbox"] { display: none; }

/* ========== RESULT CARDS ========== */
.result-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  transition: all 0.3s ease;
  animation: slideInUp 0.5s ease both;
}

.result-card:nth-child(1) { animation-delay: 0.1s; border-color: rgba(180, 120, 0, 0.3); }
.result-card:nth-child(2) { animation-delay: 0.2s; }
.result-card:nth-child(3) { animation-delay: 0.3s; }
.result-card:nth-child(4) { animation-delay: 0.4s; }
.result-card:nth-child(5) { animation-delay: 0.5s; }

.result-rank {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--text-muted);
  min-width: 50px;
}

.result-card:first-child .result-rank {
  background: linear-gradient(135deg, var(--gold), #e07c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent2);
}

/* ========== TRACKER ========== */
.tracker-header {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.07), rgba(0, 113, 227, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tracker-stats {
  display: flex;
  gap: 2rem;
}

.tracker-stat {
  text-align: center;
}

.tracker-stat-value {
  font-size: 1.9rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tracker-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.application-row {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: 180px 1fr auto auto auto;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.application-row:hover {
  border-color: rgba(108, 99, 255, 0.2);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-approved { background: rgba(0, 150, 80, 0.1); color: #16a34a; border: 1px solid rgba(0, 150, 80, 0.2); }
.status-approved::before { background: #16a34a; }
.status-pending { background: rgba(215, 120, 0, 0.1); color: #d97706; border: 1px solid rgba(215, 120, 0, 0.2); }
.status-pending::before { background: #d97706; }
.status-declined { background: rgba(214, 60, 94, 0.1); color: var(--accent3); border: 1px solid rgba(214, 60, 94, 0.2); }
.status-declined::before { background: var(--accent3); }
.status-cancelled { background: rgba(100, 100, 110, 0.08); color: var(--text-muted); border: 1px solid rgba(100, 100, 110, 0.15); }
.status-cancelled::before { background: var(--text-muted); }

.reapply-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.can-reapply { background: rgba(0, 113, 227, 0.1); color: var(--accent2); border: 1px solid rgba(0, 113, 227, 0.2); }
.cannot-reapply { background: rgba(100, 100, 110, 0.06); color: var(--text-muted); border: 1px solid var(--border); }

/* ========== CARD DETAIL ========== */
.card-detail-hero {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.card-detail-visual { position: relative; }

.detail-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.detail-tab {
  padding: 11px 18px;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.86rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
}

.detail-tab.active, .detail-tab:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.detail-section { display: none; }
.detail-section.active { display: block; animation: fadeIn 0.3s ease; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.detail-item {
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.detail-item label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
}

.detail-item strong {
  font-size: 1.05rem;
  font-weight: 700;
}

/* ========== FOOTER ========== */
footer {
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

footer a { color: var(--accent); text-decoration: none; }

/* ========== ANIMATIONS ========== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== MESSAGES ========== */
.messages { padding: 0 2rem; margin-top: 1rem; position: relative; z-index: 1; }
.message {
  padding: 11px 18px;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInUp 0.3s ease;
}

.message-success { background: rgba(0, 150, 80, 0.08); border: 1px solid rgba(0, 150, 80, 0.2); color: #16a34a; }
.message-error { background: rgba(214, 60, 94, 0.08); border: 1px solid rgba(214, 60, 94, 0.2); color: var(--accent3); }
.message-info { background: rgba(0, 113, 227, 0.08); border: 1px solid rgba(0, 113, 227, 0.2); color: var(--accent2); }

/* ========== AUTH FORMS ========== */
.auth-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  width: 100%;
  max-width: 420px;
  animation: slideInUp 0.5s ease;
}

.auth-card h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.auth-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ========== PROGRESS BAR ========== */
.progress-bar {
  background: rgba(0,0,0,0.06);
  border-radius: 50px;
  height: 6px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.8s ease;
}

/* ========== CONTAINER ========== */
.container { max-width: 1200px; margin: 0 auto; }

/* ========== BREADCRUMB ========== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 2rem;
}

.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text); }

/* ========== TOOLTIP ========== */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.74rem;
  white-space: nowrap;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ========== CARDS LAYOUT (sidebar + list) ========== */
.cards-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ========== FILTERS SIDEBAR ========== */
.filters-sidebar {
  position: sticky;
  top: 86px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.sidebar-section {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.sidebar-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  margin-bottom: 3px;
}

.sidebar-opt:hover { color: var(--text); background: rgba(0,0,0,0.04); }

.sidebar-opt.active {
  color: var(--text);
  background: rgba(108,99,255,0.07);
  border-color: rgba(108,99,255,0.18);
}

.sidebar-opt input[type="radio"] {
  display: none;
}

/* Program colour dots */
.prog-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.prog-qantas  { background: #e40000; }
.prog-velocity { background: #0057b8; }
.prog-bank    { background: var(--accent); }

/* Range slider */
.sidebar-range {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
  margin: 0.5rem 0 0.25rem;
}

.sidebar-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ========== PROGRAM FILTER PILLS (top bar) ========== */
.prog-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.03);
  color: var(--text-muted);
  transition: all 0.18s ease;
  font-family: inherit;
}
.prog-pill:hover { color: var(--text); background: rgba(0,0,0,0.06); }

.prog-pill-active                              { color: var(--text); background: rgba(0,0,0,0.07); border-color: rgba(0,0,0,0.18); }
.prog-pill-qantas.prog-pill-active             { background: rgba(228,0,0,0.08); border-color: rgba(228,0,0,0.35); color: #c00000; }
.prog-pill-velocity.prog-pill-active           { background: rgba(0,87,184,0.08); border-color: rgba(0,87,184,0.35); color: #0057b8; }
.prog-pill-bank.prog-pill-active               { background: rgba(108,99,255,0.08); border-color: rgba(108,99,255,0.35); color: var(--accent); }
.prog-pill-cashback.prog-pill-active           { background: rgba(22,163,74,0.08); border-color: rgba(22,163,74,0.35); color: #16a34a; }

/* ========== PROGRAM BADGE (inline in list rows) ========== */
.program-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.program-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.program-tab:hover { color: var(--text); background: rgba(0,0,0,0.06); }

.program-tab.active {
  color: white;
  background: rgba(108,99,255,0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.program-tab-qantas.active { background: rgba(228,0,0,0.1); border-color: #e40000; color: #c00000; }
.program-tab-velocity.active { background: rgba(0,87,184,0.1); border-color: #0057b8; color: #0057b8; }
.program-tab-bank.active { background: rgba(108,99,255,0.1); border-color: var(--accent); color: var(--accent); }

/* ========== CARDS GRID ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

/* ========== CARD TILE ========== */
.card-tile {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.card-tile:hover {
  border-color: rgba(108, 99, 255, 0.25);
  box-shadow: var(--shadow-accent);
  transform: translateY(-5px);
}

/* Promo Banner */
.tile-promo {
  padding: 9px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.3px;
  color: white;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
}
.tile-promo-qantas { background: linear-gradient(90deg, #c00000, #e40000); }
.tile-promo-velocity { background: linear-gradient(90deg, #003d8f, #0057b8); }
.tile-promo-bank { background: linear-gradient(90deg, var(--accent), #8b5cf6); }

/* Tile body */
.tile-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }

.tile-card-thumb { width: 100%; max-width: 220px; }

.tile-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.tile-bank-name {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Sections */
.tile-section {
  padding: 0.85rem 0 0;
  margin-top: 0.85rem;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.tile-stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.tile-bonus-value {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold), #e07c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tile-bonus-value.tile-bonus-qantas {
  background: linear-gradient(135deg, #c00000, #e40000);
  -webkit-background-clip: text;
  background-clip: text;
}

.tile-bonus-value.tile-bonus-velocity {
  background: linear-gradient(135deg, #0057b8, #003d8f);
  -webkit-background-clip: text;
  background-clip: text;
}

.tile-bonus-unit {
  font-size: 0.86rem;
  font-weight: 600;
}

.tile-earn-rate {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.tile-fee {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.tile-stat-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Program badge */
.program-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.program-qantas {
  background: rgba(228,0,0,0.08);
  color: #c00000;
  border: 1px solid rgba(228,0,0,0.2);
}

.program-velocity {
  background: rgba(0,87,184,0.08);
  color: #0057b8;
  border: 1px solid rgba(0,87,184,0.2);
}

.program-bank {
  background: rgba(108,99,255,0.08);
  color: var(--accent);
  border: 1px solid rgba(108,99,255,0.15);
}

/* ========== TRANSFER PARTNER BADGES ========== */
.transfer-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  border-style: dashed;
  border-width: 1px;
}
.transfer-velocity {
  background: rgba(0, 87, 184, 0.06);
  color: #0057b8;
  border-color: rgba(0, 87, 184, 0.3);
}
.transfer-qantas {
  background: rgba(228, 0, 0, 0.06);
  color: #c00000;
  border-color: rgba(228, 0, 0, 0.3);
}

/* Card ownership status badges */
.card-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.card-status-holding {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.35);
}
.card-status-cooldown {
  background: rgba(234, 179, 8, 0.1);
  color: #b45309;
  border: 1px solid rgba(234, 179, 8, 0.4);
}
.card-cooldown-btn {
  font-size: 0.72rem;
  padding: 5px 10px;
  cursor: default;
}
.card-apply-btn {
  display: inline-block;
  cursor: pointer;
  border: none;
}

/* Feature pills */
.tile-features {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.tile-feature {
  font-size: 0.67rem;
  color: var(--text-muted);
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Tile footer */
.tile-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(0,0,0,0.07);
  background: rgba(0,0,0,0.02);
  margin-top: auto;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .card-list-item { grid-template-columns: 1fr; }
  .card-detail-hero { grid-template-columns: 1fr; }
  .application-row { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .tracker-stats { gap: 1rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
}

/* ========== ISSUER MAP ========== */
.issuer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.issuer-tile {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.issuer-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

.issuer-tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  gap: 0.75rem;
}

.issuer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  flex-shrink: 0;
}

.issuer-chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
}

.issuer-chip:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.issuer-chip-qantas {
  background: rgba(228,0,0,0.08);
  color: #c00000;
  border: 1px solid rgba(228,0,0,0.15);
}

.issuer-chip-velocity {
  background: rgba(0,87,184,0.08);
  color: #0057b8;
  border: 1px solid rgba(0,87,184,0.15);
}

.issuer-chip-bank {
  background: rgba(108,99,255,0.07);
  color: var(--accent);
  border: 1px solid rgba(108,99,255,0.13);
}

@media (max-width: 640px) {
  .issuer-grid { grid-template-columns: 1fr; }
}

/* ── Application history filter pills ─────────────────────── */
.app-filter-pill {
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.app-filter-pill:hover {
  background: var(--border);
  color: var(--text);
}
.app-filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Application Timeline ──────────────────────────────────── */
.tl-section { margin-top: 2.5rem; }

.tl-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.tl-zoom-btn {
  width: 28px; height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem; font-weight: 700;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.tl-zoom-btn:hover { background: var(--border); }
#tlToday { width: auto; padding: 0 10px; font-size: 0.72rem; }
.tl-zoom-label { font-size: 0.75rem; color: var(--text-muted); min-width: 38px; text-align: center; }

/* Horizontal timeline scroll container */
.htl-outer {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: grab;
  scrollbar-width: thin;
  height: 312px;
}
.htl-outer::-webkit-scrollbar { height: 5px; }
.htl-outer::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Inner canvas (width set by JS) */
/* Inner canvas — width set by JS */
.htl-inner { position: relative; min-width: 100%; height: 310px; overflow: hidden; }

/* Horizontal rail */
.htl-rail {
  position: absolute;
  height: 4px;
  left: 0;
  background: var(--border);
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
}

/* Month/year ruler labels */
.htl-month {
  position: absolute;
  top: 6px;
  font-size: 0.62rem;
  color: var(--text-muted);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  border-left: 1px solid var(--border);
  padding-left: 4px;
  line-height: 1.2;
}
.htl-month-jan { color: var(--text); border-left-color: rgba(108,99,255,0.4); }
.htl-year { display: block; font-size: 0.68rem; font-weight: 700; color: var(--accent); }

/* Today vertical line */
.htl-today-line {
  position: absolute;
  top: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0.6;
  pointer-events: none;
  z-index: 6;
}
.htl-today-lbl {
  position: absolute;
  top: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  pointer-events: none;
  z-index: 7;
}

/* Segments overlaid on the rail */
.htl-seg {
  position: absolute;
  height: 10px;
  border-radius: 3px;
  cursor: pointer;
  z-index: 2;
  min-width: 4px;
  transition: filter 0.12s, height 0.12s, top 0.12s;
}
.htl-seg:hover { filter: brightness(1.2); height: 14px; z-index: 8; }

.htl-seg-hold {
  background: rgba(22,163,74,0.22);
  border: 1.5px solid rgba(22,163,74,0.5);
}
.htl-seg-hold-active {
  background: rgba(22,163,74,0.32);
  border: 1.5px solid rgba(22,163,74,0.7);
}
.htl-seg-cooldown {
  background: repeating-linear-gradient(
    45deg,
    rgba(245,158,11,0.08) 0px, rgba(245,158,11,0.08) 4px,
    rgba(245,158,11,0.2)  4px, rgba(245,158,11,0.2)  8px
  );
  border: 1.5px solid rgba(245,158,11,0.55);
}
.htl-seg-pending {
  background: rgba(99,102,241,0.1);
  border: 1.5px dashed rgba(99,102,241,0.55);
}

/* Tick (vertical line at applied date) */
.htl-tick {
  position: absolute;
  width: 2px;
  border-radius: 1px;
  z-index: 3;
  cursor: pointer;
  transition: transform 0.12s;
}
.htl-tick:hover { transform: scaleX(2); }

/* Stem connecting tick to info card */
.htl-stem {
  position: absolute;
  width: 1px;
  background: var(--border);
  pointer-events: none;
  z-index: 2;
}

/* Info card */
.htl-card {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 7px 9px;
  cursor: pointer;
  z-index: 4;
  transition: box-shadow 0.15s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.htl-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
  transform: translateY(-2px);
  z-index: 9;
}
.htl-card-planned {
  border-style: dashed;
  background: rgba(99,102,241,0.04);
}
.htl-card-img {
  width: 40px;
  height: 26px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.htl-card-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.htl-card-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.htl-card-bank {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 1px;
}
.htl-card-status {
  font-size: 0.63rem;
  font-weight: 600;
  margin-top: 3px;
}
.htl-card-cooldown {
  font-size: 0.6rem;
  color: #b45309;
  margin-top: 2px;
}

/* Legend */
.htl-legend {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}
.htl-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.htl-legend-swatch {
  display: inline-block;
  width: 22px; height: 8px;
  border-radius: 3px;
  border: 1.5px solid transparent;
}
.htl-swatch-cooldown {
  background: repeating-linear-gradient(45deg, rgba(245,158,11,0.12) 0px, rgba(245,158,11,0.12) 3px, rgba(245,158,11,0.28) 3px, rgba(245,158,11,0.28) 6px);
  border-color: rgba(245,158,11,0.55);
}
.htl-swatch-pending {
  background: rgba(99,102,241,0.1);
  border: 1.5px dashed rgba(99,102,241,0.55);
}

/* Tooltip */
.tl-tooltip {
  position: fixed;
  z-index: 9999;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.78rem;
  min-width: 190px;
  max-width: 270px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  pointer-events: none;
  line-height: 1.5;
}
.tl-tooltip strong { display: block; font-size: 0.84rem; margin-bottom: 1px; }
.tl-tt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.71rem;
  margin-top: 2px;
}
.tl-tt-row span:last-child { color: var(--text); font-weight: 600; }
