/* ============================================
   TÜPRAŞ MALI İŞLER DİGİTALİZASYON PORTALI
   Design System & Complete Styles
   ============================================ */

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

/* ── CSS Custom Properties ── */
:root {
  /* Brand Colors */
  --tupras-red: #E30613;
  --tupras-red-dark: #B8050F;
  --navy: #0A1628;
  --navy-light: #162038;
  --neon-blue: #00B4D8;
  --neon-blue-glow: rgba(0, 180, 216, 0.3);

  /* Status Colors */
  --status-active: #22C55E;
  --status-dev: #FBBF24;
  --status-maint: #EF4444;
  --status-planned: #8B5CF6;

  /* Light Mode (default) */
  --bg-primary: #F0F2F5;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-hero: #F0F2F5;
  /* Solid Light Color (matches primary bg) */
  --bg-navbar: rgba(255, 255, 255, 0.85);
  --bg-modal: #FFFFFF;
  --bg-footer: #0A1628;
  --text-primary: #1A1A2E;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-inverse: #FFFFFF;
  --border-color: #E5E7EB;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 14px 36px rgba(0, 0, 0, 0.16);
  --card-hover-transform: translateY(-4px);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ── Dark Mode ── */
[data-theme="dark"] {
  --bg-primary: #0B0F19;
  --bg-secondary: #111827;
  --bg-card: #1A2234;
  --bg-hero: #050810;
  /* Solid Dark Color */
  --bg-navbar: rgba(11, 15, 25, 0.9);
  --bg-modal: #1A2234;
  --bg-footer: #050810;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border-color: #1E293B;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 14px 36px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--neon-blue);
  border-radius: var(--radius-full);
}

/* ============================================
   PASSWORD OVERLAY
   ============================================ */
.password-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-hero);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.password-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.password-title {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--neon-blue), #48CAE4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.password-card h2 {
  color: white;
  margin-bottom: var(--space-xs);
  font-size: 1.5rem;
}

.password-card p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-lg);
}

.password-input-wrapper {
  display: flex;
  gap: var(--space-sm);
}

.password-input-wrapper input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  color: white;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.password-input-wrapper input:focus {
  border-color: var(--neon-blue);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 4px var(--neon-blue-glow);
}

.password-input-wrapper button {
  padding: 12px 24px;
  background: var(--neon-blue);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
}

.password-input-wrapper button:hover {
  background: #0096B4;
  /* Darker Blue */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.password-error {
  color: #EF4444;
  margin-top: var(--space-md) !important;
  margin-bottom: 0 !important;
  font-size: 0.9rem;
  display: none;
  animation: shake 0.5s ease-in-out;
}

.password-disclaimer {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 0.78rem !important;
  font-style: italic;
  margin-top: var(--space-md) !important;
  margin-bottom: 0 !important;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-navbar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 var(--space-xl);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--tupras-red);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-brand-logo {
  height: 28px;
  width: auto;
}

.nav-brand span {
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================================
   NAVIGATION & HAMBURGER MENU
   Desktop: Fixed Bar | Mobile: Hybrid Overlay
   ============================================ */

/* ─── DESKTOP NAVIGATION (Default) ─── */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  position: static;
  height: auto;
  width: auto;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 1;
  pointer-events: auto;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  transform: none;
}

/* Desktop Hover Effect (Underline slide) */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 0%;
  height: 2px;
  background: var(--neon-blue);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 80%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--neon-blue);
  background: rgba(0, 180, 216, 0.05);
  text-shadow: none;
}

.hamburger {
  display: none !important;
  /* Hidden on Desktop */
}

/* ─── MOBILE NAVIGATION (Max Width 768px) ─── */
@media (max-width: 768px) {
  .hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    z-index: 2001;
    /* Above overlay */
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-out;
    backdrop-filter: blur(4px);
  }

  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  }

  /* Open State Animation */
  .nav-links.open~.nav-right .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
    background-color: white;
  }

  .nav-links.open~.nav-right .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .nav-links.open~.nav-right .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    background-color: white;
  }

  /* FULL SCREEN OVERLAY MENU (Mobile Only) */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 25, 47, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }

  /* Mobile Links Styling */
  .nav-links a {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    transform: translateY(20px);
    opacity: 0;
    /* Stagger start */
    transition: transform 0.4s ease, opacity 0.4s ease, color 0.3s;
    background: transparent !important;
    /* No pill on mobile */
    padding: 10px;
  }

  .nav-links a::after {
    display: none;
    /* No underline on mobile */
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: white;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  }

  /* Staggered Animation */
  .nav-links.open a {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links.open li:nth-child(1) a {
    transition-delay: 0.1s;
  }

  .nav-links.open li:nth-child(2) a {
    transition-delay: 0.2s;
  }

  .nav-links.open li:nth-child(3) a {
    transition-delay: 0.3s;
  }

  .nav-links.open li:nth-child(4) a {
    transition-delay: 0.4s;
  }

  .nav-links.open li:nth-child(5) a {
    transition-delay: 0.5s;
  }
}




/* Staggered Animation on Open */
.nav-links.open a {
  transform: translateY(0);
}

.nav-links.open li:nth-child(1) a {
  transition-delay: 0.1s;
}

.nav-links.open li:nth-child(2) a {
  transition-delay: 0.2s;
}

.nav-links.open li:nth-child(3) a {
  transition-delay: 0.3s;
}

.nav-links.open li:nth-child(4) a {
  transition-delay: 0.4s;
}

.nav-links.open li:nth-child(5) a {
  transition-delay: 0.5s;
}

/* Admin Button */
.admin-nav-btn {
  padding: 6px 14px;
  background: rgba(0, 180, 216, 0.15);
  color: var(--neon-blue);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid rgba(0, 180, 216, 0.3);
}

.admin-nav-btn:hover {
  background: rgba(0, 180, 216, 0.25);
  border-color: var(--neon-blue);
  transform: translateY(-1px);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  z-index: 2002;
  /* Above everything */
}



/* Theme Toggle */
.theme-toggle {
  width: 48px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--border-color);
  position: relative;
  transition: background var(--transition-base);
  cursor: pointer;
}

.theme-toggle::after {
  content: '☀️';
  font-size: 14px;
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-toggle {
  background: var(--neon-blue);
}

[data-theme="dark"] .theme-toggle::after {
  content: '🌙';
  left: 25px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: var(--bg-hero);
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  position: relative;
  overflow: hidden;
  margin-top: 64px;
}

.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  /* Slightly larger */
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -1px;
  margin-bottom: var(--space-lg);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.hero-title .accent {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(135deg, var(--neon-blue), #48CAE4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: var(--space-xs);
}

/* Floating Keywords Background */
/* Floating Keywords Background */
.hero-floating-words {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-floating-word {
  position: absolute;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  letter-spacing: 2px;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
}

[data-theme="dark"] .hero-floating-word {
  color: rgba(0, 180, 216, 0.3);
}

.hero-floating-word.right {
  right: -10%;
  animation-name: floatFromRight;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.hero-floating-word.left {
  left: -10%;
  animation-name: floatFromLeft;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes floatFromRight {
  0% {
    transform: translateX(0);
    opacity: 0;
  }

  10% {
    opacity: var(--word-opacity, 0.5);
  }

  90% {
    opacity: var(--word-opacity, 0.5);
  }

  100% {
    transform: translateX(calc(-50vw - 100%));
    /* Move to center */
    opacity: 0;
  }
}

@keyframes floatFromLeft {
  0% {
    transform: translateX(0);
    opacity: 0;
  }

  10% {
    opacity: var(--word-opacity, 0.5);
  }

  90% {
    opacity: var(--word-opacity, 0.5);
  }

  100% {
    transform: translateX(calc(50vw + 100%));
    /* Move to center */
    opacity: 0;
  }
}

/* Collision Line */
.hero-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

/* Collision Drop */
.collision-drop {
  position: absolute;
  left: 50%;
  /* Relative to hero-line parent if possible, but here relative to hero */
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--neon-blue), transparent);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  border-radius: 4px;
  box-shadow: 0 0 15px var(--neon-blue), 0 0 30px var(--neon-blue);
  animation: dropFlow 1.5s ease-out forwards;
}

.hero-line-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--neon-blue);
  box-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
  transition: height 0.3s ease-out;
  opacity: 0.8;
}

@keyframes dropFlow {
  0% {
    height: 0;
    opacity: 1;
    top: var(--drop-start, 0);
  }

  20% {
    height: 80px;
    opacity: 1;
  }

  100% {
    top: 100%;
    /* Move to bottom */
    opacity: 0;
    height: 20px;
  }
}

/* ── DISCHARGE EFFECTS ── */

/* 1. Shockwave Ripple (Soft Rectangular) */
.hero-shockwave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 180px;
  background: transparent;
  border-radius: 30px;
  /* Softer corners */
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.hero-shockwave.active {
  animation: shockwaveSoftRect 1.5s ease-out forwards;
}

@keyframes shockwaveSoftRect {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.8), inset 0 0 0 0 rgba(0, 180, 216, 0.8);
    opacity: 0;
  }

  10% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 30px 0 var(--neon-blue), inset 0 0 30px 0 var(--neon-blue);
  }

  100% {
    transform: translate(-50%, -50%) scale(2.5);
    box-shadow: 0 0 100px 50px rgba(0, 180, 216, 0), inset 0 0 100px 50px rgba(0, 180, 216, 0);
    opacity: 0;
  }
}

/* 2. Title Flash */
.hero-title.flash {
  animation: titleFlash 0.5s ease-out forwards;
}

@keyframes titleFlash {
  0% {
    text-shadow: 0 0 50px white, 0 0 100px var(--neon-blue);
    color: white;
    transform: scale(1.05);
  }

  100% {
    text-shadow: none;
    color: white;
    transform: scale(1);
  }
}

/* 3. Screen Shake */
.shake-effect {
  animation: screenShake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes screenShake {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section {
  padding: var(--space-3xl) var(--space-xl);
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ============================================
   METRICS DASHBOARD
   ============================================ */
/* METRICS DASHBOARD */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--neon-blue), var(--tupras-red));
  opacity: 0.8;
  transition: width var(--transition-base);
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.metric-card:hover::before {
  width: 6px;
}

.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.metric-value {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  margin: var(--space-md) 0;
  letter-spacing: -1px;
}

.metric-value .prefix {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 600;
  vertical-align: super;
  margin-right: 4px;
}

.metric-value .suffix {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-left: 4px;
}

.metric-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .metric-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-change {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.metric-change.positive {
  color: var(--status-active);
}

.metric-change.negative {
  color: var(--status-maint);
}

.metric-change-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   THREE-PANEL LAYOUT
   ============================================ */
/* ============================================
   TABBED PANEL LAYOUT
   ============================================ */
.panel-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.panel-tab {
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-tab:hover {
  border-color: var(--neon-blue);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.panel-tab.active {
  background: var(--neon-blue);
  border-color: var(--neon-blue);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.panel-tab .tab-icon {
  font-size: 1.2rem;
}

.panels-container-tabs {
  min-height: 400px;
}

.panel-tab-content {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.panel-tab-content.active {
  display: block;
}

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

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

.panel-header {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.panel-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Agent / Project Cards Enhanced for Full Width */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

/* Response for mobile */
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* Cleaned up */

.agent-card,
.project-card,
.sap-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Specific overrides for better visibility in Light Mode */
:root:not([data-theme="dark"]) .agent-card,
:root:not([data-theme="dark"]) .project-card,
:root:not([data-theme="dark"]) .sap-card {
  background: #ffffff;
  border-color: #d1d5db;
  /* Darker gray for visibility */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.agent-card:hover,
.project-card:hover,
.sap-card:hover {
  transform: var(--card-hover-transform);
  box-shadow: var(--shadow-md);
  border-color: var(--neon-blue);
}

.agent-card .card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.agent-card .card-name,
.sap-card .card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.agent-card .card-module,
.sap-card .card-module {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.agent-card .card-status,
.sap-card .card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

/* Status Colors & Effects */
.card-status.active {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-dot.active {
  background: #22c55e;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
  animation: pulse-green 2s infinite;
}

.card-status.pilot {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-dot.pilot {
  background: #3b82f6;
}

.card-status.dev {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-dot.dev {
  background: #f59e0b;
}

.card-status.maint {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-dot.maint {
  background: #ef4444;
}

.card-status.planned {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.status-dot.planned {
  background: #64748b;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Progress dots */
.progress-dots {
  display: flex;
  gap: 3px;
  justify-content: center;
  margin-top: auto;
  padding-top: var(--space-md);
}

.progress-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
}

.progress-dots .dot.filled {
  background: var(--neon-blue);
}

/* SAP Progress Tracker */
.sap-card,
.agent-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  cursor: pointer;
  transition: all var(--transition-base);
}

.sap-card:hover,
.agent-card:hover {
  transform: var(--card-hover-transform);
  box-shadow: var(--shadow-md);
  border-color: var(--neon-blue);
}

.sap-card .card-title,
.agent-card .card-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
}

.sap-card .card-module,
.agent-card .card-module {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.progress-tracker {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-sm);
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.progress-step .step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  background: var(--bg-card);
  position: relative;
  z-index: 1;
}

.progress-step .step-dot.completed {
  background: var(--status-active);
  border-color: var(--status-active);
  color: white;
}

.progress-step .step-dot.current {
  background: var(--status-dev);
  border-color: var(--status-dev);
  animation: pulse 2s infinite;
}

.progress-step .step-line {
  flex: 1;
  height: 2px;
  background: var(--border-color);
}

.progress-step .step-line.completed {
  background: var(--status-active);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.sap-card .card-target,
.agent-card .card-target {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: var(--space-sm);
}

/* Filter buttons */
.filter-bar {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--neon-blue);
  color: white;
  border-color: var(--neon-blue);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--bg-modal);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--space-xl);
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-base);
  position: relative;
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--tupras-red);
  color: white;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-right: var(--space-2xl);
}

.modal-header .modal-icon {
  font-size: 2.5rem;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-header .modal-status {
  font-size: 0.8rem;
  margin-top: 4px;
}

.modal-section {
  margin-bottom: var(--space-xl);
}

.modal-section h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.modal-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-meta {
  display: flex;
  gap: var(--space-xl);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: var(--space-md);
}

/* Before / After Table */
.comparison-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.comparison-col {
  background: var(--bg-primary);
  padding: var(--space-md);
}

.comparison-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.comparison-col.before h4 {
  color: var(--status-maint);
}

.comparison-col.after h4 {
  color: var(--status-active);
}

.comparison-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: 0.85rem;
}

/* Savings highlight */
.savings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.savings-card {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}

.savings-card .value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--neon-blue);
}

.savings-card .label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

/* Mini Chart */
.mini-chart {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.mini-chart .bar {
  flex: 1;
  background: linear-gradient(to top, var(--neon-blue), rgba(0, 180, 216, 0.3));
  border-radius: 3px 3px 0 0;
  min-height: 8px;
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Version History */
.version-list {
  list-style: none;
}

.version-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.version-item:last-child {
  border-bottom: none;
}

.version-tag {
  font-weight: 700;
  color: var(--neon-blue);
  white-space: nowrap;
}

.version-date {
  color: var(--text-muted);
  white-space: nowrap;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
}

.btn {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-blue), #0077B6);
  color: white;
}

.btn-primary:hover {
  box-shadow: 0 4px 16px var(--neon-blue-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
}

/* ============================================
   BULLETINS - FAN / ARC CARD LAYOUT
   ============================================ */
.bulletins-section {
  position: relative;
  padding: var(--space-3xl) var(--space-xl);
  margin-top: var(--space-2xl);
  overflow: hidden;
}

.bulletin-header {
  text-align: center;
  margin-bottom: var(--space-sm);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.bulletin-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.bulletin-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.bulletin-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

/* Bulletin Stack Container */
.bulletin-stack {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: visible;
  min-height: 500px;
}

/* Kart Tasarımı - Soft & Modern */
.bulletin-card {
  width: 240px;
  height: 340px;
  background: #ffffff;
  border-radius: 16px;
  /* Daha yuvarlak köşeler */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  /* Yumuşak gölge */
  position: relative;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  overflow: hidden;
  margin-left: -50px;
  flex-shrink: 0;
  padding: 10px;
  /* İç boşluk */
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* İlk karta negatif margin verme */
.bulletin-card:first-child {
  margin-left: 0;
}

.bulletin-card:hover {
  transform: translateY(-50px) scale(1.15) rotate(0deg) !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  z-index: 1000 !important;
  background: white;
  border-color: rgba(255, 255, 255, 0.8);
}

/* Hover edilince diğer kartların flu olması */
.bulletin-stack:hover .bulletin-card:not(:hover) {
  opacity: 0.8;
  filter: blur(2px) grayscale(0.3);
  transform: scale(0.95) !important;
  /* Mevcut transformun üstüne eklenmeli ama inline-style bunu ezer. JS'siz zor. Sadece opacity/blur yeterli. */
}

/* Kart Görseli */
.bulletin-card .card-cover {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
  /* Görsel köşeleri de yuvarlak */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bulletin-card:hover .card-cover {
  transform: scale(1.02);
}

.bulletin-card .card-cover-placeholder {
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

/* Başlık Alanı */
.bulletin-card .card-title-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 5px 5px;
  background: transparent;
}

.bulletin-card .card-title-sm {
  color: #1a1a1a;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  /* Modern font */
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.4;
  opacity: 0.9;
}

/* En çok okunan rozeti */
.bulletin-card .most-read {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: #F59E0B;
  padding: 4px;
  border-radius: 50%;
  font-size: 0.8rem;
  z-index: 10;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .bulletin-stack {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-left: 20px;
    padding-right: 20px;
  }

  .bulletin-card {
    margin-left: -40px;
    width: 160px;
    height: 240px;
  }
}




/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-footer);
  color: var(--text-inverse);
  padding: var(--space-3xl) var(--space-xl) var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: var(--space-sm);
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--neon-blue);
}

.footer-bottom {
  text-align: center;
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   ROADMAP PAGE
   ============================================ */
.page-header {
  padding: calc(64px + var(--space-2xl)) var(--space-xl) var(--space-xl);
  text-align: center;
  background: var(--bg-hero);
  color: white;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
}

.page-header p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-sm);
}

.view-toggle {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
  margin-bottom: var(--space-xl);
  background: var(--bg-primary);
  padding: 4px;
  border-radius: var(--radius-full);
  display: inline-flex;
}

.view-toggle .toggle-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  transition: all var(--transition-fast);
}

.view-toggle .toggle-btn.active {
  background: var(--neon-blue);
  color: white;
}

/* 2026 Progress Bar */
.year-progress-wrapper {
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
  padding: 0 var(--space-xl);
  text-align: center;
}

.year-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--neon-blue);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}

.year-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  position: relative;
  width: 100%;
}

.year-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-blue), var(--tupras-red));
  border-radius: var(--radius-full);
  width: 0%;
  /* JS will set this */
  transition: width 1s ease-out;
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.5);
  position: relative;
}

.year-progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.year-milestone {
  position: absolute;
  top: 12px;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

.year-milestone::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
}

/* Subtle Line for Timeline - Removed */
.timeline-line {
  display: none;
}

/* Timeline View Enhanced */
.timeline-container {
  position: relative;
  padding: var(--space-2xl) 0;
  overflow-x: auto;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Center everything */
}

/* Gradient Line Removed */

.timeline-items {
  display: flex;
  gap: var(--space-3xl);
  /* Increased gap */
  padding: 0 40px;
  min-width: max-content;
  position: relative;
  z-index: 1;
  justify-content: center;
  /* Center items */
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 200px;
  /* SLightly wider */
  position: relative;
}

.timeline-item .quarter-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Enhanced Dots */
.timeline-item .timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 4px solid var(--border-color);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 2;
  margin-bottom: var(--space-xl);
  transition: all var(--transition-base);
}

.timeline-item .timeline-dot.completed {
  border-color: var(--status-active);
  background: var(--status-active);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.timeline-item .timeline-dot.in-progress {
  border-color: var(--status-dev);
  background: var(--status-dev);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
  animation: pulse-glow 2s infinite;
}

.timeline-item .timeline-dot.planned {
  border-color: var(--text-muted);
  background: var(--bg-card);
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
    transform: scale(1.1);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    transform: scale(1);
  }
}

/* Glassmorphism Card */
.timeline-card {
  background: rgba(30, 41, 59, 0.7);
  /* Semi-transparent */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  width: 100%;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  transition: all var(--transition-base);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.timeline-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-blue);
  box-shadow: 0 10px 20px rgba(0, 180, 216, 0.2);
  background: rgba(30, 41, 59, 0.9);
}

.timeline-card .card-name {
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  color: var(--text-primary);
}

.timeline-card .card-status-icon {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Duplicate and Unused CSS Removed */

/* Roadmap Summary */
.roadmap-summary {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ============================================
   TRAINING PAGE
   ============================================ */
.training-tabs {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.training-tabs .tab-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.training-tabs .tab-btn.active {
  background: var(--neon-blue);
  color: white;
  border-color: var(--neon-blue);
}

.search-bar {
  max-width: 500px;
  margin: 0 auto var(--space-xl);
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 12px 20px 12px 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 3px var(--neon-blue-glow);
}

.search-bar .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.training-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
}

.training-card:hover {
  transform: var(--card-hover-transform);
  box-shadow: var(--shadow-hover);
  border-color: var(--neon-blue);
}

.training-card .card-type-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.training-card .card-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.training-card .card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.training-card .card-meta {
  font-size: 0.8rem;
  color: var(--neon-blue);
  font-weight: 600;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
  background: var(--bg-card);
}

.faq-question {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: none;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
}

.faq-question:hover {
  color: var(--neon-blue);
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
}

/* ============================================
   PRESENTATION MODE
   ============================================ */
body.presentation-mode .navbar,
body.presentation-mode .footer {
  display: none;
}

body.presentation-mode .hero {
  margin-top: 0;
}

body.presentation-mode {
  cursor: none;
}

body.presentation-mode .section {
  max-width: 100%;
  padding: var(--space-xl) var(--space-2xl);
}

.presentation-controls {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  display: flex;
  gap: var(--space-sm);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

body.presentation-mode .presentation-controls {
  opacity: 1;
  pointer-events: auto;
}

.presentation-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(251, 191, 36, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .panels-container {
    grid-template-columns: 1fr;
  }

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

  .kanban-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-navbar);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-base);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2rem;
  }

  .comparison-table {
    grid-template-columns: 1fr;
  }

  .training-grid {
    grid-template-columns: 1fr;
  }

  .btn-presentation {
    display: none;
  }

  .bulletin-carousel-wrapper {
    margin: 0;
  }

  .carousel-nav {
    display: none;
  }

  .bulletin-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .bulletin-card {
    scroll-snap-align: start;
  }
}

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

  .section {
    padding: var(--space-2xl) var(--space-md);
  }

  .navbar {
    padding: 0 var(--space-md);
  }
}

/* ============================================
   PRESENTATION MODE
   ============================================ */
body.presentation-mode .navbar,
body.presentation-mode .footer {
  display: none !important;
}

body.presentation-mode .hero {
  display: none !important;
}

body.presentation-mode {
  padding-top: 20px !important;
  overflow: auto;
}

body.presentation-mode .section {
  padding: 20px 0;
  min-height: auto;
}

.presentation-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.9);
  padding: 10px;
  border-radius: var(--radius-full);
  display: none;
  gap: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
}

body.presentation-mode .presentation-controls {
  display: flex;
}

.presentation-controls button {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.presentation-controls button:hover {
  background: var(--tupras-red);
  color: white;
  border-color: var(--tupras-red);
}

@media (max-width: 768px) {
  .btn-presentation {
    display: none;
  }
}

/* ============================================
   BULLETINS - FAN / ARC LAYOUT
   ============================================ */
.bulletins-section {
  padding: var(--space-3xl) var(--space-xl);
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  min-height: 800px;
  /* ample space for fan */
}

.bulletin-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 2;
}

.bulletin-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.bulletin-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.fan-container {
  position: relative;
  width: 100%;
  height: 400px;
  /* height for the cards arc */
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  margin-top: 2rem;
}

.fan-card {
  position: absolute;
  width: 260px;
  height: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform-origin: 50% 120%;
  /* Pivot at bottom far below */
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s, box-shadow 0.3s;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
}

.fan-card.active {
  z-index: 50 !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
  border-color: var(--neon-blue);
}

.fan-card:hover {
  border-color: var(--neon-blue);
}

.card-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-primary);
}

.card-cover-placeholder {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: rgba(255, 255, 255, 0.3);
}

.card-info {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card-month {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.card-year {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  opacity: 0.8;
  margin-bottom: var(--space-md);
}

.card-title-sm {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.most-read {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--status-dev);
  color: var(--navy);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Nav buttons for fan */
.fan-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.fan-nav:hover {
  background: var(--neon-blue);
  color: white;
  border-color: var(--neon-blue);
}

.fan-nav.prev {
  left: 20px;
}

.fan-nav.next {
  right: 20px;
}

/* Active Bulletin Detail below fan */
.active-bulletin-detail {
  margin-top: 4rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  min-height: 120px;
  /* prevent jump */
}

.detail-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.detail-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}

.btn {
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.btn-primary:hover {
  background: #0096c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--neon-blue-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-primary);
  border-color: var(--text-muted);
}

/* ============================================
   FLOATING CHAT WIDGET
   ============================================ */

/* ── Chat Bubble ── */
.chat-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-blue), #0077B6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 5000;
  box-shadow: 0 6px 24px rgba(0, 119, 182, 0.4);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: chatPulse 3s ease-in-out infinite;
  border: none;
}

.chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(0, 119, 182, 0.55);
}

.chat-bubble.active {
  animation: none;
  background: linear-gradient(135deg, var(--tupras-red), #c0392b);
  transform: rotate(90deg) scale(1);
}

.chat-bubble.active:hover {
  transform: rotate(90deg) scale(1.1);
}

@keyframes chatPulse {

  0%,
  100% {
    box-shadow: 0 6px 24px rgba(0, 119, 182, 0.4);
  }

  50% {
    box-shadow: 0 6px 32px rgba(0, 119, 182, 0.6), 0 0 0 10px rgba(0, 180, 216, 0.1);
  }
}

/* ── Chat Panel ── */
.chat-panel {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 400px;
  height: 560px;
  max-height: calc(100vh - 140px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  z-index: 4999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ── Chat Header ── */
.chat-header {
  background: linear-gradient(135deg, var(--neon-blue), #0077B6);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chat-header-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

.chat-header-text span {
  font-size: 0.75rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-header-text .online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}

.chat-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.chat-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ── Chat Messages ── */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-primary);
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  animation: msgFadeIn 0.3s ease;
}

.chat-msg.user {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-msg.bot,
.chat-msg.system {
  align-self: flex-start;
  align-items: flex-start;
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.chat-msg.user .msg-bubble {
  background: linear-gradient(135deg, var(--neon-blue), #0077B6);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-msg.bot .msg-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chat-msg.system .msg-bubble {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
  padding: 4px;
}

.msg-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 4px;
  padding: 0 4px;
}

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

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

/* ── Typing Indicator ── */
.typing-dots {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* ── Chat Input ── */
.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  flex-shrink: 0;
}

.chat-input-bar input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.chat-input-bar input:focus {
  outline: none;
  border-color: var(--neon-blue);
}

.chat-input-bar input::placeholder {
  color: var(--text-muted);
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-blue), #0077B6);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.4);
}

/* ── Adaptive / Hero Card ── */
.card-bubble {
  padding: 14px !important;
}

.card-bubble p {
  margin: 4px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.card-action-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(0, 180, 216, 0.1);
  color: var(--neon-blue);
  border: 1px solid rgba(0, 180, 216, 0.3);
  cursor: pointer;
  transition: all 0.2s;
}

.card-action-btn:hover {
  background: var(--neon-blue);
  color: white;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .chat-panel {
    width: calc(100vw - 16px);
    right: 8px;
    bottom: 80px;
    height: calc(100vh - 120px);
    border-radius: var(--radius-lg);
  }

  .chat-bubble {
    bottom: 16px;
    right: 16px;
    width: 54px;
    height: 54px;
    font-size: 1.4rem;
  }
}

/* ── WebChat Container ── */
#webchat-container {
  flex: 1;
  overflow: hidden;
}

#webchat-container>* {
  height: 100% !important;
}

/* ── Chat Loading State ── */
.chat-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Chat Error State ── */
.chat-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  text-align: center;
}

.chat-error .error-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.chat-error .error-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.chat-error .error-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  word-break: break-word;
}

.chat-error .error-hints {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: left;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  margin-bottom: 16px;
  width: 100%;
}

.chat-error .error-hints ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.chat-error .error-hints li {
  margin-bottom: 4px;
}

.retry-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--neon-blue);
  color: white;
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.retry-btn:hover {
  background: #0077B6;
  transform: scale(1.05);
}