/* ==========================================================================
   ATİG DÖVİZ - MODERN KURUMSAL TASARIM SİSTEMİ
   CSS Variables, Modern Flexbox & CSS Grid, Responsive System
   ========================================================================== */

:root {
  /* Color Palette */
  --primary: #0a1f38;
  --primary-rgb: 10, 31, 56;
  --primary-light: #16365c;
  --primary-dark: #061424;
  --secondary: #1a4270;
  
  --accent-gold: #c59b27;
  --accent-gold-light: #dfb238;
  --accent-gold-dark: #a07d18;
  --accent-gold-soft: rgba(197, 155, 39, 0.12);
  
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-subtle: #f8fafc;
  --bg-dark: #0a1f38;
  
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #c59b27;
  
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.12);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.12);
  --warning: #f59e0b;
  
  /* Typography */
  --font-main: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Inter', Roboto, sans-serif;
  --font-heading: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Inter', Roboto, sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(197, 155, 39, 0.25);
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;
  
  /* Containers */
  --container-max: 1240px;
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

/* Top Announcement / Info Bar */
.top-bar {
  background: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  fill: var(--accent-gold);
}

.top-bar-item a:hover {
  color: var(--accent-gold);
}

.top-badge {
  background: rgba(197, 155, 39, 0.2);
  color: var(--accent-gold-light);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(197, 155, 39, 0.3);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.brand-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.brand-group {
  font-size: 0.68rem;
  color: var(--accent-gold-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.25;
}

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--bg-muted);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(10, 31, 56, 0.06);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent-gold);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
  box-shadow: 0 2px 4px rgba(10, 31, 56, 0.2);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(10, 31, 56, 0.3);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: var(--text-white);
  box-shadow: 0 2px 8px rgba(197, 155, 39, 0.3);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-medium);
  color: var(--text-primary);
}

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

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--primary);
}

.mobile-nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* Currency Marquee Ticker */
.rate-ticker {
  background: #061424;
  color: #f1f5f9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
  font-size: 0.85rem;
  height: 40px;
  display: flex;
  align-items: center;
}

.ticker-label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 10;
  background: linear-gradient(90deg, #061424 85%, transparent 100%);
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent-gold);
  white-space: nowrap;
}

.ticker-label::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: tickerSlide 45s linear infinite;
  padding-left: 200px;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 32px;
  font-weight: 500;
}

.ticker-item .code {
  font-weight: 700;
  color: #ffffff;
}

.ticker-item .rate {
  font-family: monospace;
  font-size: 0.9rem;
}

.ticker-item .trend {
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.trend.up {
  color: #34d399;
}

.trend.down {
  color: #f87171;
}

.trend.nochange {
  color: #94a3b8;
}

@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0a1f38 0%, #112e52 50%, #061424 100%);
  color: var(--text-white);
  padding: var(--space-3xl) 0 var(--space-2xl) 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(197, 155, 39, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(26, 66, 112, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold-light);
  width: fit-content;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--accent-gold-light);
}

.hero-lead {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-gold-light);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Hero Live Rates Widget Card */
.hero-widget-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.widget-card-header {
  background: #0a1f38;
  color: var(--text-white);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-title-group svg {
  width: 20px;
  height: 20px;
  fill: var(--accent-gold);
}

.widget-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.widget-date {
  font-size: 0.75rem;
  color: #94a3b8;
}

.widget-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulseAnim 1.8s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.widget-card-body {
  padding: var(--space-md);
  max-height: 380px;
  overflow-y: auto;
}

/* Currency Mini Table */
.mini-rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.mini-rate-table th {
  text-align: right;
  padding: 8px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-light);
}

.mini-rate-table th:first-child {
  text-align: left;
}

.mini-rate-table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--border-light);
  text-align: right;
  font-family: monospace;
  font-size: 0.92rem;
  font-weight: 600;
}

.mini-rate-table td:first-child {
  text-align: left;
  font-family: var(--font-main);
  font-weight: normal;
}

.mini-rate-table tr:hover {
  background: var(--bg-muted);
}

.currency-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.currency-flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.currency-meta {
  display: flex;
  flex-direction: column;
}

.currency-code {
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

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

.widget-card-footer {
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sections Common */
.section {
  padding: var(--space-3xl) 0;
}

.section-muted {
  background-color: var(--bg-muted);
}

.section-white {
  background-color: var(--bg-surface);
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-white);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-2xl) auto;
}

.section-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  margin-bottom: var(--space-xs);
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: var(--space-sm);
}

.section-dark .section-title {
  color: var(--text-white);
}

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

.section-dark .section-desc {
  color: #cbd5e1;
}

/* Trust Badges Bar */
.trust-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-lg) 0;
}

.trust-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.trust-item:hover {
  opacity: 1;
}

.trust-item img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.trust-text {
  display: flex;
  flex-direction: column;
}

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

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

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent-gold);
  transition: height var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(197, 155, 39, 0.4);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-gold-soft);
  color: var(--accent-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.service-icon-box svg {
  width: 28px;
  height: 28px;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-md);
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features svg {
  width: 16px;
  height: 16px;
  fill: var(--success);
  flex-shrink: 0;
}

/* Currency Rates Full Board Section */
.rates-board-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.rates-board-header {
  padding: var(--space-lg) var(--space-xl);
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.board-search-box {
  position: relative;
  min-width: 280px;
}

.board-search-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.board-search-box input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.15);
}

.board-search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
}

.board-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.rates-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.rates-table th {
  background: var(--bg-muted);
  padding: 14px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-medium);
}

.rates-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.rates-table tr:last-child td {
  border-bottom: none;
}

.rates-table tr:hover {
  background: #f8fafc;
}

.rates-table .rate-num {
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.rates-table .buy-rate {
  color: var(--primary);
}

.rates-table .sell-rate {
  color: var(--primary-light);
}

.rates-table .align-right {
  text-align: right;
}

/* Converter Widget */
.converter-card {
  background: linear-gradient(135deg, #0a1f38 0%, #16365c 100%);
  color: var(--text-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xl);
  margin-top: var(--space-2xl);
}

.converter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  align-items: flex-end;
}

.converter-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.converter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
}

.converter-input-wrap {
  position: relative;
}

.converter-input-wrap input,
.converter-input-wrap select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  transition: all var(--transition-fast);
}

.converter-input-wrap input:focus,
.converter-input-wrap select:focus {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.15);
}

.converter-input-wrap select option {
  background: #0a1f38;
  color: var(--text-white);
}

.converter-result {
  background: rgba(197, 155, 39, 0.15);
  border: 1px solid rgba(197, 155, 39, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
}

.converter-result-label {
  font-size: 0.75rem;
  color: var(--accent-gold-light);
  font-weight: 600;
}

.converter-result-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  font-family: monospace;
}

/* Document & Reports Portal (Bilgi Toplum Merkezi) */
.docs-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.doc-filter-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.doc-pill:hover {
  background: var(--bg-muted);
  border-color: var(--primary);
  color: var(--primary);
}

.doc-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

.doc-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.doc-search-box {
  position: relative;
  min-width: 240px;
}

.doc-search-box input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  outline: none;
}

.doc-search-box input:focus {
  border-color: var(--accent-gold);
}

.doc-search-box svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  fill: var(--text-muted);
}

.doc-sort-select {
  padding: 8px 12px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  background: #ffffff;
  color: var(--text-secondary);
  outline: none;
}

/* Document Grid */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-lg);
}

.doc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-medium);
}

.doc-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.doc-badge-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.badge-pdf {
  background: #fee2e2;
  color: #991b1b;
}

.badge-zip {
  background: #fef3c7;
  color: #92400e;
}

.badge-cat {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-year {
  background: #f1f5f9;
  color: #475569;
}

.doc-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #fee2e2;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-icon-wrap.zip {
  background: #fef3c7;
  color: #d97706;
}

.doc-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.doc-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 8px;
}

.doc-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.doc-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.doc-card-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.doc-card-actions .btn {
  flex: 1;
}

/* Company Info Table (Bilgi Toplum Hizmetleri) */
.company-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-2xl);
}

.company-info-header {
  background: var(--primary);
  color: var(--text-white);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.company-info-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.company-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border-light);
}

.info-item {
  background: #ffffff;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.info-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
}

.info-value.highlight {
  color: var(--accent-gold-dark);
}

/* Compliance & AML Section */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.compliance-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-normal);
}

.compliance-box:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 155, 39, 0.4);
}

.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-gold-soft);
  color: var(--accent-gold-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.compliance-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.compliance-box p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Corporate Values List */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.value-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.value-card:hover {
  border-color: var(--accent-gold);
  transform: translateX(4px);
}

.value-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
  background: var(--accent-gold-soft);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Contact Page Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: flex-start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-lg);
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-gold-soft);
  color: var(--accent-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-text-group {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.contact-val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-val a:hover {
  color: var(--accent-gold-dark);
}

/* Contact Form */
.contact-form-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
}

.contact-form-panel h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.contact-form-panel p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
  background: #ffffff;
}

.form-control:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.15);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

/* Security Quiz Box */
.security-quiz-box {
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.quiz-challenge {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  background: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
}

/* Map Embed */
.map-container {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  margin-top: var(--space-2xl);
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Posts / Announcements Engine */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-medium);
}

.post-card-content {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.post-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: var(--space-sm);
}

.post-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.post-tag {
  font-size: 0.72rem;
  background: var(--bg-muted);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* Footer */
.site-footer {
  background: #061424;
  color: #cbd5e1;
  padding: var(--space-3xl) 0 var(--space-xl) 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-brand img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent-gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-links a {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--accent-gold);
  transform: translateX(4px);
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
  color: #94a3b8;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.82rem;
  color: #64748b;
}

.footer-legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  background: #0a1f38;
  color: var(--text-white);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Back To Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-gold);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 3rem;
    --space-2xl: 2rem;
  }
  
  .top-bar {
    display: none;
  }
  
  .hero-title {
    font-size: 2.1rem;
  }
  
  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl);
    gap: var(--space-sm);
    box-shadow: var(--shadow-xl);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    z-index: 999;
    overflow-y: auto;
  }
  
  .main-nav.open {
    transform: translateX(0);
  }
  
  .nav-link {
    width: 100%;
    font-size: 1.1rem;
    padding: 12px 16px;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .header-actions .btn {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}
