/* ==========================================================================
   UGC Creator Scout - Design System & Custom Styles
   Theme: FIFA Ultimate Team Neon Obsidian
   ========================================================================== */

/* 1. Global Reset & Variables */
:root {
  --bg-obsidian: #050505;
  --bg-panel: #111111;
  --bg-pitch: #040906;
  --border-color: rgba(255, 255, 255, 0.08);
  --text-main: #f3f4f6;
  --text-muted: #8e939e;

  /* Metallic Silver Accents */
  --neon-teal: #e2e8f0;
  --neon-teal-glow: rgba(255, 255, 255, 0.15);
  --neon-blue: #cbd5e1;
  --neon-blue-glow: rgba(203, 213, 225, 0.10);
  --neon-green: #39ff14;
  --neon-green-glow: rgba(57, 255, 20, 0.4);
  --neon-orange: #ff9f0a;
  --neon-orange-glow: rgba(255, 159, 10, 0.35);
  --neon-red: #ff3b30;

  /* FUT Card Tiers */
  --fut-gold-start: #ffe066;
  --fut-gold-end: #d4af37;
  --fut-gold-glow: rgba(212, 175, 55, 0.45);
  --fut-silver-start: #e2e8f0;
  --fut-silver-end: #94a3b8;
  --fut-bronze-start: #b45309;
  --fut-bronze-end: #78350f;
  --fut-inform-start: #d946ef;
  --fut-inform-end: #8b5cf6;
  --fut-inform-glow: rgba(217, 70, 239, 0.45);

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  height: 100vh;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}

::-webkit-scrollbar-thumb {
  background: #272f3d;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-teal);
}

/* 2. Page Structure Layout */
.app-layout {
  display: grid;
  grid-template-rows: 64px 1fr 280px;
  height: 100vh;
  min-width: 1200px;
  background-color: #060913;
}

/* Top Header Bar */
.app-header {
  grid-row: 1;
  background-color: rgba(17, 22, 34, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand i {
  font-size: 1.6rem;
}

.brand h1 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-main);
}

.brand-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

/* Brand logo link – subtle hover animation */
.brand-logo-link {
  display: inline-block;
  transition: var(--transition-smooth);
}

.brand-logo-link:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 8px var(--neon-teal-glow));
}


.brand h1 span {
  color: var(--neon-teal);
  text-shadow: 0 0 10px var(--neon-teal-glow);
}

.badge-fut {
  background: linear-gradient(135deg, var(--fut-gold-end), var(--fut-gold-start));
  color: #000;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}

/* Header Service Status drawer */
.service-status-panel {
  display: flex;
  gap: 20px;
  background: rgba(0, 0, 0, 0.2);
  padding: 6px 16px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: help;
}

.status-indicator .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.status-indicator .dot.green {
  background-color: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green-glow);
}

.status-indicator .dot.yellow {
  background-color: var(--neon-orange);
  box-shadow: 0 0 8px var(--neon-orange-glow);
}

.status-indicator .dot.red {
  background-color: var(--neon-red);
  box-shadow: 0 0 8px rgba(255, 59, 48, 0.5);
}

/* 3. Dashboard Grid Columns */
.dashboard-grid {
  grid-row: 2;
  display: grid;
  grid-template-columns: 340px 1fr 340px;
  height: 100%;
  overflow: hidden;
}

/* Panels */
.panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--bg-obsidian);
  border-right: 1px solid var(--border-color);
  overflow: hidden;
}

.panel-header {
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-header h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.panel-body {
  padding: 20px 24px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Inputs & Form Groups */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.textarea-wrapper {
  position: relative;
  display: flex;
}

textarea {
  width: 100%;
  height: 90px;
  background-color: #121824;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.4;
  resize: none;
  transition: var(--transition-smooth);
}

textarea:focus {
  outline: none;
  border-color: var(--neon-teal);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

/* Filter layouts */
.filter-row {
  display: flex;
  gap: 16px;
}

.flex-1 {
  flex: 1;
}

select {
  background-color: #121824;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text-main);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

select:focus {
  outline: none;
  border-color: var(--neon-teal);
}

/* Range Slider */
.slider-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #121824;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  height: 38px;
}

.slider-container input[type="range"] {
  flex: 1;
  accent-color: var(--neon-teal);
  cursor: pointer;
}

.slider-container span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--neon-teal);
  min-width: 55px;
  text-align: right;
  white-space: nowrap;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.slider-container span:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--neon-teal-glow);
}

.budget-inline-input {
  width: 65px;
  background: #151c28;
  border: 1px solid var(--neon-teal);
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: right;
  padding: 2px 4px;
  outline: none;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.3);
}

/* Buttons */
.btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-teal), var(--neon-blue));
  color: #000;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.35);
}

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

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

.btn-icon-only {
  width: 40px;
  height: 90px;
  border-radius: 0 8px 8px 0;
  position: absolute;
  right: 0;
  top: 0;
  border-left: none;
  background-color: rgba(255, 255, 255, 0.04);
}

.textarea-wrapper textarea {
  padding-right: 50px;
}

.btn-block {
  width: 100%;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 6px;
}

/* 4. Results List Catalog */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.results-header h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cache-badge {
  background-color: rgba(57, 255, 20, 0.1);
  color: var(--neon-green);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(57, 255, 20, 0.2);
}

.cache-badge.hidden {
  display: none;
}

.results-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  text-align: center;
  height: 200px;
  border: 2px dashed rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 20px;
}

.empty-state i {
  font-size: 2.2rem;
  color: #1f293d;
}

.empty-state p {
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Interactive Candidate Row Cards */
.creator-row-card {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.creator-row-card:hover {
  transform: translateX(4px);
  border-color: var(--neon-teal);
  box-shadow: 0 4px 12px rgba(0, 242, 254, 0.1);
}

.card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.card-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.card-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #272f3d;
}

.platform-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  border: 1px solid var(--text-muted);
}

.platform-badge.youtube {
  color: #ff0000;
}

.platform-badge.tiktok {
  color: #fff;
}

.platform-badge.instagram {
  color: #e1306c;
}

.platform-badge.linkedin {
  color: #0077b5;
}

.creator-info {
  min-width: 0;
  flex: 1;
}

.creator-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.card-stat-mini {
  text-align: right;
}

.card-stat-mini .lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.card-stat-mini .val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}

.card-stat-mini .val.price {
  color: var(--neon-teal);
}

.match-percentage-badge {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--neon-teal);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.match-percentage-badge span {
  font-size: 0.55rem;
  font-weight: 500;
}

/* 5. Squad Synergy Pitch Canvas */
.pitch-panel {
  border-right: none;
  background-color: var(--bg-obsidian);
}

.pitch-container {
  position: relative;
  background: radial-gradient(circle at center, #0f2419 0%, #050505 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  overflow-y: auto;
}

/* Pitch stats dashboard overlay */
.pitch-stats-overlay {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  z-index: 10;
  width: 100%;
}

.metric-block {
  text-align: center;
}

.metric-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.metric-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.metric-value.glow-orange {
  color: var(--neon-orange);
  text-shadow: 0 0 10px var(--neon-orange-glow);
}

.metric-separator {
  width: 1px;
  height: 30px;
  background-color: var(--border-color);
}

/* Pitch field board */
.pitch-field {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 20px 40px;
  /* Soccer field markings */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 2px, transparent 2px),
    radial-gradient(circle at center, transparent 38%, rgba(255, 255, 255, 0.015) 38%, rgba(255, 255, 255, 0.015) 40%, transparent 40%);
  background-size: 100% 50%, 100% 100%;
}

/* SVG Line connector overlay */
.chemistry-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.lineup-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  z-index: 2;
}

.row-top {
  gap: 0;
}

.row-middle {
  gap: 140px;
}

.row-bottom {
  gap: 140px;
}

/* Squad Slots */
.squad-slot {
  width: 110px;
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slot Placeholders */
.slot-placeholder {
  width: 100%;
  height: 100%;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slot-placeholder:hover {
  background-color: rgba(0, 242, 254, 0.03);
  border-color: var(--neon-teal);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.slot-placeholder .plus-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.slot-placeholder:hover .plus-icon {
  color: var(--neon-teal);
  background-color: rgba(0, 242, 254, 0.1);
  border-color: var(--neon-teal);
}

.slot-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  padding: 0 6px;
}

/* 6. Premium FUT Athlete Cards */
.fut-card {
  width: 140px;
  height: 200px;
  position: relative;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.fut-card:hover {
  transform: translateY(-8px) scale(1.05);
}

/* FUT Tiers */
.fut-card.gold {
  background-image: linear-gradient(135deg, var(--fut-gold-start) 0%, var(--fut-gold-end) 50%, #ae8a1b 100%);
  border: 1.5px solid #fff2a3;
  color: #271f05;
  box-shadow: 0 10px 25px var(--fut-gold-glow);
}

.fut-card.silver {
  background-image: linear-gradient(135deg, var(--fut-silver-start) 0%, var(--fut-silver-end) 100%);
  border: 1.5px solid #f8fafc;
  color: #1e293b;
}

.fut-card.bronze {
  background-image: linear-gradient(135deg, var(--fut-bronze-start) 0%, var(--fut-bronze-end) 100%);
  border: 1.5px solid #d97706;
  color: #fef3c7;
}

.fut-card.inform {
  background-image: linear-gradient(135deg, var(--fut-inform-start) 0%, var(--fut-inform-end) 100%);
  border: 1.5px solid #f472b6;
  color: #fff;
  box-shadow: 0 10px 25px var(--fut-inform-glow);
}

/* Top Section: Rating, Position, Platform, Flag */
.fut-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  height: 48px;
}

.fut-rating-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.fut-ovr {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
}

.fut-pos {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.55rem;
  text-transform: uppercase;
  opacity: 0.9;
}

.fut-badge-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.fut-platform-logo {
  font-size: 0.65rem;
}

.fut-flag {
  font-size: 0.6rem;
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  padding: 1px 3px;
  font-weight: 700;
}

/* Middle Section: Avatar and Name */
.fut-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -6px;
}

.fut-card-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.fut-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.65rem;
  text-align: center;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 90px;
}

/* Bottom Section: Key Stats grid */
.fut-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 3px;
  font-size: 0.5rem;
  font-weight: 700;
}

.fut-stat-item {
  display: flex;
  justify-content: center;
  gap: 1px;
}

.fut-stat-val {
  font-family: var(--font-display);
}

.fut-stat-lbl {
  opacity: 0.75;
}

/* Hover Details tooltip */
.card-dismiss {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  z-index: 10;
}

.fut-card:hover .card-dismiss {
  display: flex;
}

.card-dismiss:hover {
  background-color: var(--neon-red);
}

/* 7. Bottom Console Control Panel */
.app-console {
  grid-row: 3;
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Tabs */
.console-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
  padding: 0 16px;
}

.console-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 14px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
  border-bottom: 3px solid transparent;
}

.console-tab-btn:hover {
  color: #fff;
}

.console-tab-btn.active {
  color: #fff;
  border-bottom-color: var(--neon-teal);
  text-shadow: 0 0 10px var(--neon-teal-glow);
}

.console-tab-btn.active i {
  color: var(--neon-teal);
}

.console-tab-content {
  flex: 1;
  overflow: hidden;
  padding: 16px 24px;
}

.tab-pane {
  display: none;
  height: 100%;
}

.tab-pane.active {
  display: block;
}

/* Tab 1: Outreach Design */
.outreach-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  height: 100%;
}

.outreach-members-list {
  border-right: 1px solid var(--border-color);
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.outreach-members-list h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.outreach-mini-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empty-mini-state {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 24px;
}

.outreach-mini-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.outreach-mini-row:hover,
.outreach-mini-row.active {
  background-color: rgba(0, 242, 254, 0.06);
  border-color: var(--neon-teal);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.outreach-mini-row img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.outreach-mini-row span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

/* Template viewer styling */
.outreach-templates-viewer {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.viewer-header h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.viewer-actions {
  display: flex;
  gap: 10px;
}

.templates-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.sub-tabs {
  display: flex;
  gap: 10px;
}

.sub-tab-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sub-tab-btn.active {
  background-color: rgba(0, 242, 254, 0.15);
  color: #fff;
  border-color: var(--neon-teal);
  font-weight: 700;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.2);
}

.template-text-box {
  flex: 1;
  background-color: #0c101b;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  overflow-y: auto;
}

.template-text-box pre {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Tab 2: Dataiku pipeline layout */
.dataiku-layout {
  display: grid;
  grid-template-columns: 320px 1fr 300px;
  gap: 24px;
  height: 100%;
}

.dataiku-sync-control {
  border-right: 1px solid var(--border-color);
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dataiku-sync-control h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.dataiku-sync-control p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.pipeline-card {
  background-color: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pipeline-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
}

.pipeline-item .label {
  color: var(--text-muted);
}

.text-teal {
  color: var(--neon-teal) !important;
}

.dataiku-log-console {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dataiku-log-console h4 {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.console-logger {
  flex: 1;
  background-color: #05070a;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
  overflow-y: auto;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-line {
  color: #94a3b8;
  line-height: 1.4;
}

.log-line.system {
  color: var(--neon-blue);
}

.log-line.success {
  color: var(--neon-green);
}

.log-line.info {
  color: var(--neon-teal);
}

.dataiku-history-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dataiku-history-panel h4 {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.history-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px;
  font-size: 0.65rem;
}

.history-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.history-time {
  color: var(--text-muted);
  font-weight: 500;
}

.history-status {
  font-weight: 700;
}

.history-status.success {
  color: var(--neon-green);
}

.history-status.failed {
  color: var(--neon-red);
}

.history-desc {
  color: #cbd5e1;
  line-height: 1.3;
}

/* ==========================================================================
   Marque: Build Your Brand - Landing, Auth, & View Toggling Styles
   ========================================================================== */

/* 1. View Toggling & Base Layouts */
.app-view {
  display: none;
  opacity: 0;
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

#view-dashboard.app-view.active {
  display: grid;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2. Landing Page Layout */
.landing-container {
  min-height: 100vh;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.landing-header {
  height: 80px;
  padding: 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background: rgba(8, 11, 17, 0.6);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.landing-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.landing-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.landing-nav a:hover {
  color: var(--neon-teal);
}

.hero-section {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px 60px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.brand-badge {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--neon-teal);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
  }

  50% {
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
  }

  100% {
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-title span.grad-blue {
  background: linear-gradient(135deg, var(--neon-teal) 0%, var(--neon-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span.grad-gold {
  background: linear-gradient(135deg, var(--fut-gold-start) 0%, var(--fut-gold-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 720px;
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
}

.cta-row {
  display: flex;
  gap: 20px;
  margin-bottom: 80px;
}

.btn-large {
  padding: 16px 36px;
  font-size: 0.95rem;
  border-radius: 10px;
}

/* Feature Grid Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  margin-top: 20px;
}

.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: left;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 12px 30px rgba(0, 242, 254, 0.05);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.feature-card.f-scout .feature-icon-box {
  color: var(--neon-teal);
  background: rgba(0, 242, 254, 0.05);
}

.feature-card.f-chem .feature-icon-box {
  color: var(--neon-orange);
  background: rgba(255, 159, 10, 0.05);
}

.feature-card.f-outreach .feature-icon-box {
  color: var(--fut-inform-start);
  background: rgba(217, 70, 239, 0.05);
}

.feature-card.f-pipeline .feature-icon-box {
  color: var(--neon-green);
  background: rgba(57, 255, 20, 0.05);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Pricing Section Styles */
.pricing-section {
  margin-top: 100px;
  width: 100%;
  text-align: center;
}

.pricing-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 50px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.pricing-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 242, 254, 0.2);
  box-shadow: 0 16px 40px rgba(0, 242, 254, 0.04);
}

.pricing-card.premium {
  border: 2px solid var(--fut-inform-start);
  background: linear-gradient(180deg, rgba(21, 27, 43, 0.9) 0%, rgba(13, 17, 28, 0.95) 100%);
  box-shadow: 0 8px 30px rgba(217, 70, 239, 0.08);
}

.pricing-card.premium:hover {
  border-color: var(--fut-inform-end);
  box-shadow: 0 16px 45px rgba(217, 70, 239, 0.15);
}

.badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--fut-inform-start), var(--fut-inform-end));
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 99px;
  letter-spacing: 1.5px;
}

.pricing-header h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
}

.price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  min-height: 38px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 35px 0;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-features li i.fa-check {
  color: var(--neon-teal);
}

.pricing-features li i.fa-xmark {
  color: var(--neon-orange);
}

.pricing-features li.disabled {
  color: var(--text-muted);
  opacity: 0.5;
}

.btn-select-tier {
  margin-top: auto;
}

/* 3. Authentication View Styles */
.auth-container {
  min-height: 100vh;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 440px;
  background: rgba(17, 22, 34, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 242, 254, 0.03);
  overflow: hidden;
  position: relative;
  transition: var(--transition-smooth);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-teal), var(--neon-blue), var(--fut-gold-end));
}

.auth-body {
  padding: 40px 32px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.auth-logo i {
  font-size: 1.8rem;
}

.auth-logo h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.auth-logo h2 span {
  color: var(--neon-teal);
  text-shadow: 0 0 10px var(--neon-teal-glow);
}

.auth-subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.auth-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.auth-tab-btn.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.form-input-wrapper input {
  width: 100%;
  background-color: #121824;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 14px 12px 42px !important;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.form-input-wrapper input:focus {
  outline: none;
  border-color: var(--neon-teal);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.checkbox-label input {
  accent-color: var(--neon-teal);
}

.auth-options a {
  color: var(--neon-teal);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.auth-options a:hover {
  text-decoration: underline;
}

.auth-error-msg {
  color: #ff3b30;
  font-size: 0.75rem;
  text-align: center;
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.2);
  padding: 8px 12px;
  border-radius: 6px;
  display: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider:not(:empty)::before {
  margin-right: .75em;
}

.auth-divider:not(:empty)::after {
  margin-left: .75em;
}

.social-btns {
  display: flex;
  gap: 12px;
}

.btn-social {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  padding: 10px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-social:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
}

/* Auth Progress Overlay (Micro-animations) */
.auth-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 11, 17, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.auth-loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.spinner-circle {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(0, 242, 254, 0.1);
  border-radius: 50%;
  border-top-color: var(--neon-teal);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.success-checkmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(57, 255, 20, 0.1);
  border: 2px solid var(--neon-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--neon-green);
  box-shadow: 0 0 15px var(--neon-green-glow);
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.success-checkmark.active {
  transform: scale(1);
  opacity: 1;
}

.loading-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  min-height: 20px;
  text-align: center;
}

/* 4. Dashboard Header Profiles */
.user-profile-widget {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.user-profile-widget:hover {
  border-color: var(--neon-teal);
  background: rgba(0, 242, 254, 0.03);
}

.user-avatar-initials {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-teal), var(--neon-blue));
  color: #000;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-email-label {
  font-size: 0.75rem;
  font-weight: 600;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #121824;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  width: 180px;
  padding: 6px 0;
  z-index: 200;
  display: none;
  flex-direction: column;
}

.profile-dropdown-menu.active {
  display: flex;
}

.profile-menu-item {
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 10px 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.profile-menu-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--neon-teal);
}

.profile-menu-item.logout-btn {
  color: var(--neon-red);
  border-top: 1px solid var(--border-color);
  margin-top: 4px;
  padding-top: 12px;
}

.profile-menu-item.logout-btn:hover {
  background: rgba(255, 59, 48, 0.04);
  color: var(--neon-red);
}

.glow-teal {
  color: var(--neon-teal);
  text-shadow: 0 0 10px var(--neon-teal-glow);
}

/* 5. Document Upload Dropzone & File Card Styles */
.document-upload-zone {
  border: 2px dashed rgba(0, 242, 254, 0.25);
  background: rgba(18, 24, 36, 0.3);
  padding: 14px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  margin-top: 8px;
}

.document-upload-zone:hover {
  border-color: var(--neon-teal);
  background-color: rgba(0, 242, 254, 0.03);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.05);
}

.document-upload-zone.dragover {
  border-color: var(--neon-green);
  background-color: rgba(57, 255, 20, 0.04);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.08);
}

.document-upload-zone .upload-icon {
  font-size: 1.6rem;
  color: var(--neon-teal);
  transition: transform 0.25s ease;
}

.document-upload-zone:hover .upload-icon,
.document-upload-zone.dragover .upload-icon {
  transform: translateY(-2px);
}

.document-upload-zone.dragover .upload-icon {
  color: var(--neon-green);
}

.upload-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.75rem;
  color: var(--text-main);
}

.upload-text strong {
  color: var(--neon-teal);
}

.document-upload-zone.dragover .upload-text strong {
  color: var(--neon-green);
}

.upload-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.uploaded-file-card {
  background: rgba(0, 242, 254, 0.03);
  border: 1px solid rgba(0, 242, 254, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.file-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  flex: 1;
  margin-right: 12px;
}

.file-icon {
  font-size: 1.4rem;
  color: var(--neon-teal);
  flex-shrink: 0;
}

.file-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.file-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.file-size {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.file-card-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.file-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0;
  overflow: hidden;
}

.file-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-teal), var(--neon-blue));
  border-radius: 0;
  transition: width 0.1s linear;
}

.btn-remove-file {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  z-index: 5;
}

.btn-remove-file:hover {
  color: var(--neon-red);
  transform: scale(1.1);
}

/* 6. Brand Website input wrapper and Strategy Center layout styles */
.brand-website-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.brand-website-wrapper i.globe-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.brand-website-wrapper input {
  width: 100%;
  background-color: #121824;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px 10px 42px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.brand-website-wrapper input:focus {
  outline: none;
  border-color: var(--neon-teal);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.strategy-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  height: 100%;
  padding: 10px 0;
}

@media (max-width: 1024px) {
  .strategy-layout {
    grid-template-columns: 1fr;
  }
}

.strategy-left,
.strategy-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding-right: 4px;
}

.role-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.role-name-input {
  flex-grow: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.15);
  color: var(--neon-teal);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  outline: none;
  transition: all 0.3s ease;
}

.role-name-input:focus {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--neon-teal);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.2);
}

.role-name-input:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.role-desc-input {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 4px 6px;
  resize: none;
  min-height: 50px;
  outline: none;
  transition: all 0.3s ease;
}

.role-desc-input:focus {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-color);
}

.role-desc-input:disabled {
  color: #64748b;
  cursor: not-allowed;
}

.btn-lock-role {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-lock-role:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.role-directive-item[data-locked="true"] {
  border-color: rgba(239, 68, 68, 0.25) !important;
  background: rgba(239, 68, 68, 0.01) !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.05);
}

.role-directive-item[data-locked="true"] .btn-lock-role {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}

.role-directive-item[data-locked="true"] .role-name-input {
  background: rgba(239, 68, 68, 0.03) !important;
  border-color: rgba(239, 68, 68, 0.1) !important;
  color: #f87171 !important;
}


.strategy-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.strategy-header h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.strategy-brand-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  gap: 32px;
}

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-row .label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.stat-row strong {
  font-size: 0.9rem;
  color: var(--text-main);
}

.strategy-positioning-box,
.strategy-tactics-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.strategy-positioning-box h4,
.strategy-tactics-box h4 {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.strategy-positioning-box p {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.tactics-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.tactics-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: #e2e8f0;
  line-height: 1.3;
}

.tactics-list li i {
  color: var(--neon-green);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.strategy-roles-directives {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-directive-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.role-badge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.65rem;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--neon-teal);
  padding: 3px 10px;
  border-radius: 4px;
  align-self: flex-start;
  letter-spacing: 0.5px;
}

.role-directive-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Custom Substitutes Bench & FUT Improvements */

.pitch-field .squad-slot {
  height: 185px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
}

.bench-section {
  flex: 0 0 auto;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.65) 0%, rgba(8, 8, 8, 0.95) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.7);
  border-radius: 0;
  padding: 14px 20px;
  z-index: 5;
  position: relative;
}

.bench-header {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bench-header i {
  color: var(--neon-teal);
  text-shadow: 0 0 8px var(--neon-teal-glow);
}

.bench-slots {
  display: flex;
  justify-content: center;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0;
}

.bench-slots .squad-slot {
  width: 95px;
  height: 156px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
}

.bench-slots .slot-placeholder {
  width: 95px;
  height: 138px;
  gap: 8px;
  border: 1.5px dashed rgba(255, 255, 255, 0.08);
}

.bench-slots .slot-placeholder .plus-icon {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
}

.bench-slots .slot-placeholder .slot-label {
  font-size: 0.52rem;
  letter-spacing: 0.2px;
}

/* Bench Card Size Modifications */
.bench-slots .fut-card {
  width: 95px;
  height: 138px;
  padding: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.bench-slots .fut-top {
  height: 38px;
}

.bench-slots .fut-ovr {
  font-size: 1.05rem;
}

.bench-slots .fut-pos {
  font-size: 0.48rem;
}

.bench-slots .fut-platform-logo {
  font-size: 0.55rem;
}

.bench-slots .fut-flag {
  font-size: 0.48rem;
  padding: 0px 2px;
}

.bench-slots .fut-mid {
  margin-top: -6px;
}

.bench-slots .fut-card-img {
  width: 36px;
  height: 36px;
  border-width: 1px;
}

.bench-slots .fut-name {
  font-size: 0.58rem;
  margin-top: 2px;
  width: 80px;
}

.bench-slots .fut-stats {
  font-size: 0.45rem;
  padding-top: 2px;
  gap: 1px 2px;
}

/* Bench Slot Label under Card */
.bench-slot-label {
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Individual Card Chemistry Dots */
.slot-chemistry-dots {
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
  height: 12px;
}

.slot-chemistry-dots .chem-dot {
  font-size: 5px;
  color: rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
}

.slot-chemistry-dots .chem-dot.active {
  color: #39ff14;
  text-shadow: 0 0 5px rgba(57, 255, 20, 0.8), 0 0 10px rgba(57, 255, 20, 0.4);
}

/* Interactive SVG Line Tooltip */
.chemistry-tooltip {
  position: fixed;
  background: rgba(13, 22, 38, 0.95);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 242, 254, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  z-index: 10000;
  pointer-events: none;
  font-size: 0.7rem;
  line-height: 1.4;
  min-width: 180px;
  transition: opacity 0.15s ease, transform 0.15s ease;
  opacity: 0;
  transform: scale(0.95);
}

.chemistry-tooltip.active {
  opacity: 1;
  transform: scale(1);
}

.chemistry-tooltip h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--neon-teal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.chemistry-tooltip .tooltip-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}

.chemistry-tooltip .tooltip-row .label {
  color: var(--text-muted);
}

.chemistry-tooltip .tooltip-row .val {
  font-weight: 600;
}

.chemistry-tooltip .tooltip-row.total {
  margin-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  padding-top: 4px;
  font-weight: 700;
  color: var(--neon-green);
}

.chemistry-tooltip .tooltip-row.total.poor {
  color: var(--neon-red);
}

.chemistry-tooltip .tooltip-row.total.mid {
  color: #ff9f0a;
}

/* Context/Placement Dropdown and Swapping */
.dropdown-opt-btn {
  transition: var(--transition-smooth);
}

.dropdown-opt-btn:hover {
  background-color: rgba(0, 242, 254, 0.1) !important;
  color: var(--neon-teal) !important;
}

/* Glowing outline for active connection hover */
svg line {
  cursor: pointer;
}

svg line:hover {
  stroke-width: 5.5px !important;
}

/* Custom scroll panel layout fixes for improved UX */
.search-inputs {
  overflow-y: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 6px;
}

.candidates-panel-body {
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  height: 100%;
}

/* Custom premium scrollbar for panels */
.search-inputs::-webkit-scrollbar,
.results-list::-webkit-scrollbar {
  width: 5px;
}

.search-inputs::-webkit-scrollbar-track,
.results-list::-webkit-scrollbar-track {
  background: transparent;
}

.search-inputs::-webkit-scrollbar-thumb,
.results-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.search-inputs::-webkit-scrollbar-thumb:hover,
.results-list::-webkit-scrollbar-thumb:hover {
  background: var(--neon-teal);
}

/* Dynamic Floating Ambient Background Blobs */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  /* Stays behind everything, including pitch grid canvas lines */
  overflow: hidden;
  pointer-events: none;
  background-color: #060913;
  /* Deep obsidian base */
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
  mix-blend-mode: screen;
  animation: floatAround 25s ease-in-out infinite alternate;
  will-change: transform;
}

.blob-1 {
  top: -15%;
  left: 10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--neon-teal) 0%, rgba(0, 242, 254, 0) 70%);
  animation-duration: 22s;
}

.blob-2 {
  bottom: -10%;
  right: 5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%);
  animation-duration: 30s;
  animation-delay: -7s;
}

.blob-3 {
  top: 35%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #0ea5e9 0%, rgba(14, 165, 233, 0) 70%);
  animation-duration: 25s;
  animation-delay: -12s;
}

@keyframes floatAround {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  33% {
    transform: translate(60px, -90px) scale(1.15) rotate(120deg);
  }

  66% {
    transform: translate(-50px, 70px) scale(0.85) rotate(240deg);
  }

  100% {
    transform: translate(0, 0) scale(1) rotate(360deg);
  }
}

/* Header Actions & Fullscreen Toggle Button Styles */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-header-action {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.btn-header-action:hover {
  background: rgba(0, 242, 254, 0.05);
  border-color: var(--neon-teal);
  color: var(--neon-teal);
  box-shadow: 0 0 10px var(--neon-teal-glow);
  transform: scale(1.05);
}

/* Pitch Panel Header layout */
.pitch-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-panel-action {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
}

.btn-panel-action:hover {
  background: rgba(255, 159, 10, 0.05);
  border-color: var(--neon-orange);
  color: var(--neon-orange);
  box-shadow: 0 0 8px rgba(255, 159, 10, 0.3);
  transform: scale(1.05);
}

/* Expanded Pitch Panel layout overrides */
.app-layout.pitch-expanded {
  grid-template-rows: 0px 1fr 0px !important;
  min-width: 0 !important;
  width: 100% !important;
}

.app-layout.pitch-expanded .app-header,
.app-layout.pitch-expanded .app-console {
  display: none !important;
}

.app-layout.pitch-expanded .dashboard-grid {
  grid-template-columns: 0px 1fr 0px !important;
}

.app-layout.pitch-expanded .search-panel,
.app-layout.pitch-expanded .candidates-panel {
  display: none !important;
}

.app-layout.pitch-expanded .pitch-panel {
  border-left: none;
  border-right: none;
}

.app-layout.pitch-expanded .pitch-container {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.app-layout.pitch-expanded .pitch-field {
  flex: 1;
  justify-content: center;
  min-height: 0;
  /* Clear min-height restriction so it stretches flexibly */
}

/* HTML5 Native Fullscreen API compatibility overrides */
.app-layout:fullscreen {
  display: grid !important;
  grid-template-rows: 0px 1fr 0px !important;
  min-width: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: #060913 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.app-layout:fullscreen .app-header,
.app-layout:fullscreen .app-console {
  display: none !important;
}

.app-layout:fullscreen .dashboard-grid {
  display: grid !important;
  grid-template-columns: 0px 1fr 0px !important;
  height: 100% !important;
}

.app-layout:fullscreen .search-panel,
.app-layout:fullscreen .candidates-panel {
  display: none !important;
}

.app-layout:fullscreen .pitch-panel {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  border: none !important;
}

.app-layout:fullscreen .pitch-container {
  overflow: hidden !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.app-layout:fullscreen .pitch-field {
  flex: 1 !important;
  justify-content: center !important;
  min-height: 0 !important;
}

/* ==========================================================================
   8. Settings & Subscription View Styles
   ========================================================================== */
.settings-content-wrapper {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 32px;
  height: calc(100vh - 80px);
  overflow-y: auto;
  background-color: #080808;
}

.settings-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #8e8e93;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-tab-btn i {
  font-size: 1.1rem;
  width: 20px;
}

.settings-tab-btn:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.settings-tab-btn.active {
  color: #00f2fe;
  background-color: rgba(0, 242, 254, 0.1);
  box-shadow: inset 3px 0 0 #00f2fe;
}

.settings-panes {
  display: flex;
  flex-direction: column;
}

.settings-pane {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.settings-pane.active {
  display: block;
}

/* Form elements inside settings */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input {
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #00f2fe;
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.15);
}

.form-group input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: rgba(255, 255, 255, 0.01);
}

.form-help-text {
  font-size: 0.75rem;
  color: #71717a;
  margin-top: 4px;
}

.border-separator {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent);
  margin: 12px 0;
}

.settings-subheading {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.settings-subheading i {
  color: #00f2fe;
}

/* Switch / toggles */
.toggle-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.switch-container {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  user-select: none;
}

.switch-container input {
  display: none;
}

.switch-slider {
  position: relative;
  width: 44px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: background-color 0.3s;
}

.switch-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.switch-container input:checked+.switch-slider {
  background-color: #00f2fe;
}

.switch-container input:checked+.switch-slider::before {
  transform: translateX(20px);
}

.switch-label {
  font-size: 0.95rem;
  color: #d1d5db;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
}

.save-status-msg {
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.save-status-msg.success {
  color: #10b981;
}

.save-status-msg.error {
  color: #ef4444;
}

/* Subscription View Layout */
.subscription-status-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.status-left,
.status-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-label,
.expiry-label {
  color: #a1a1aa;
  font-size: 0.9rem;
}

.status-value {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-value.free {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.status-value.pro {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #000000;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

.expiry-value {
  color: #ffffff;
  font-weight: 600;
}

/* Pricing Cards Grid */
.upgrade-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
  padding: 12px 0;
}

.pricing-card {
  position: relative;
  background-color: rgba(17, 17, 17, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.pricing-card.premium-card {
  border: 2px solid #00f2fe;
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.1);
}

.ribbon-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
}

.pricing-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.price-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: baseline;
}

.price-period {
  font-size: 1rem;
  color: #a1a1aa;
  font-weight: 500;
}

.pricing-body ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-body li {
  font-size: 0.95rem;
  color: #d1d5db;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-body li i {
  font-size: 0.85rem;
  color: #00f2fe;
}

.pricing-footer {
  margin-top: auto;
}

.btn-block {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

/* Portal Panel */
.portal-management-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 32px;
  max-width: 600px;
  margin: 40px auto 0;
}

.portal-description {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
}

.portal-description i {
  font-size: 2.2rem;
  color: #00f2fe;
}

.portal-description h4 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.portal-description p {
  font-size: 0.9rem;
  color: #a1a1aa;
  line-height: 1.4;
}

/* Responsive Styles for Settings Grid */
@media (max-width: 768px) {
  .settings-content-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px;
  }

  .settings-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .settings-tab-btn {
    white-space: nowrap;
  }
}

/* ==========================================================================
   Recent Searches Component Styles
   ========================================================================== */
.recent-searches-section {
  margin-top: 15px;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recent-searches-section.hidden {
  display: none !important;
}

.recent-searches-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.recent-searches-header i {
  margin-right: 6px;
  font-size: 10px;
}

.btn-clear-recent {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.btn-clear-recent:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.recent-searches-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.recent-search-item {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.recent-search-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.recent-search-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.recent-search-brief {
  font-size: 12px;
  color: var(--text-main);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
  text-align: left;
}

.recent-search-time {
  font-size: 9px;
  color: var(--text-muted);
  white-space: nowrap;
}

.recent-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.recent-search-tag {
  font-size: 9px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Console Paywall Overlay */
.console-paywall-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.85); /* Slate 900 translucent backdrop */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100; /* Ensure overlay covers active tab elements */
  text-align: center;
  padding: 24px;
}

.console-paywall-content {
  max-width: 480px;
  animation: fadeIn 0.3s ease-out;
}

.console-paywall-icon {
  font-size: 2.2rem;
  color: var(--neon-orange);
  text-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
  margin-bottom: 16px;
}

.console-paywall-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.console-paywall-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.console-paywall-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  padding: 10px 24px;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}