/*
=============================================================================
CorumKuyumcu - Premium Gold Prices Website CSS
Inspired by high-end fintech & istanbulkuyumcu.com
=============================================================================
*/

/* 1. CSS Variables / Design tokens */
:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #1e1e36;
  
  --gold-primary: #d4a853;
  --gold-hover: #e6be6a;
  --gold-dark: #b58d3c;
  --gold-light: #f0d68a;
  
  --gold-gradient: linear-gradient(135deg, #d4a853, #f0d68a, #d4a853);
  --gold-gradient-hover: linear-gradient(135deg, #e6be6a, #f9e5a8, #e6be6a);
  
  --text-white: #ffffff;
  --text-muted: #8a8a9a;
  --text-dark: #0a0a0f;
  
  --color-success: #22c55e;
  --color-success-bg: rgba(34, 197, 94, 0.1);
  --color-danger: #ef4444;
  --color-danger-bg: rgba(239, 68, 68, 0.1);
  
  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Borders & Shadows */
  --border-subtle: rgba(212, 168, 83, 0.1);
  --border-gold: rgba(212, 168, 83, 0.3);
  --shadow-gold: 0 4px 20px rgba(212, 168, 83, 0.15);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.4);
  
  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 50px;
  
  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  
  /* Z-index */
  --z-base: 1;
  --z-nav: 1000;
  --z-modal: 2000;
  --z-tooltip: 3000;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  background: #08080c;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background: transparent;
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 95% 60% at 50% -10%, rgba(212, 168, 83, 0.38) 0%, rgba(212, 168, 83, 0.08) 35%, transparent 62%),
    radial-gradient(ellipse 60% 50% at 0% 90%, rgba(181, 141, 60, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 30%, rgba(240, 214, 138, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(212, 168, 83, 0.06) 0%, transparent 70%);
  animation: gold-base-pulse 10s ease-in-out infinite alternate;
}

body > :not(.ambient-bg):not(.nav-links):not(.nav-overlay):not(.navbar) {
  position: relative;
  z-index: 1;
}

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

ul, ol {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* 3. Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

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

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

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 15. Utility classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

/* Margins */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* Paddings */
.py-5 { padding-top: 4rem; padding-bottom: 4rem; }
.py-4 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-5 { padding-top: 4rem; }
.pb-5 { padding-bottom: 4rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-base);
  gap: 0.5rem;
}

.btn-gold {
  background: var(--gold-gradient);
  color: var(--text-dark);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  background: var(--gold-gradient-hover);
}

.btn-outline {
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(212, 168, 83, 0.1);
}

/* 4. Navigation (.navbar) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
  transition: var(--transition-base);
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--gold-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-white);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition-base);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--gold-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--gold-primary);
}

.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--gold-primary);
  font-size: 1.5rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

/* 17. Last update banner */
.last-update-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 70px; /* Accounts for fixed navbar */
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-success);
  display: inline-block;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* 5. Hero section (.hero) */
.hero {
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(212,168,83,0.1) 0%, rgba(10,10,15,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  color: var(--gold-primary);
  background: rgba(212, 168, 83, 0.05);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
}

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

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* 6. Price ticker strip (.price-ticker) */
.price-ticker-wrapper {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
  display: flex;
}

.price-ticker {
  display: flex;
  white-space: nowrap;
}

.price-ticker.ticker-static {
  justify-content: center;
  width: 100%;
}

.ticker-viewport {
  overflow: hidden;
  width: 100%;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  animation: ticker-scroll 32s linear infinite;
  will-change: transform;
}

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

.ticker-track.ticker-static {
  animation: none;
  width: 100%;
  justify-content: center;
}

.hero-ticker.ticker-loading .ticker-track {
  animation: none;
  width: 100%;
  justify-content: center;
}

.price-ticker-wrapper.ticker-loading {
  padding: 0.75rem 0;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 2rem;
  border-right: 1px solid var(--border-subtle);
}

.ticker-name {
  font-weight: 600;
  color: var(--text-white);
}

.ticker-price {
  font-weight: 700;
  color: var(--gold-primary);
}

.ticker-change {
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.ticker-change.up { color: var(--color-success); }
.ticker-change.down { color: var(--color-danger); }

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

/* 7. Price cards grid (.prices-section) */
.prices-section {
  padding: 5rem 0;
}

.prices-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition-base);
}

.filter-btn:hover {
  color: var(--text-white);
  border-color: var(--border-gold);
}

.filter-btn.active {
  background: rgba(212, 168, 83, 0.1);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.prices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: var(--transition-base);
}

.price-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-card), var(--shadow-gold);
  background: var(--bg-card-hover);
}

.price-card:hover::before {
  opacity: 1;
}

.price-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.price-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.price-card-title {
  flex-grow: 1;
}

.price-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.125rem;
}

.price-card-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.price-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.price-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.price-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  font-family: monospace;
}

.price-change-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.price-change {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
}

.price-change.up {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.price-change.down {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.price-card-footer {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}

/* 18. Sparkline mini charts placeholder */
.mini-chart {
  height: 40px;
  width: 100%;
  margin-top: 1rem;
  background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><path d="M0,30 Q20,25 40,35 T80,20 T120,25 T160,10 T200,15 L200,40 L0,40 Z" fill="rgba(212,168,83,0.1)" stroke="%23d4a853" stroke-width="2"/></svg>');
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  margin-bottom: -1.5rem;
  margin-left: -1.5rem;
  width: calc(100% + 3rem);
}

/* 8. Calculator section (.calculator-section) */
.calculator-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.calculator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.calculator-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.calculator-info p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.calculator-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.calc-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-white);
}

.calc-feature-icon {
  color: var(--gold-primary);
  background: rgba(212, 168, 83, 0.1);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition-base);
}

.form-control:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(212, 168, 83, 0.2);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4a853' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.calc-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}

.calc-result {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(212, 168, 83, 0.05);
  border: 1px dashed var(--gold-primary);
  border-radius: var(--radius-md);
  text-align: left;
  overflow: hidden;
}

.calc-result-grid {
  display: grid;
  gap: 1rem;
}

.calc-result-grid--units {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.calc-result-grid--totals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calc-result-item {
  min-width: 0;
}

.calc-result-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 1rem 0;
}

.calc-result-amount {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.calc-result-amount--unit {
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  color: var(--text-white);
}

.calc-result-amount--alis {
  color: var(--color-success);
}

.calc-result-amount--satis {
  color: var(--gold-primary);
}

.calc-result-amount--fark {
  color: var(--color-danger);
}

.calc-result-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.calc-result-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-primary);
  font-family: monospace;
}

/* 9. Info/Features section */
.features-section {
  padding: 5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  transition: var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  background: var(--bg-card-hover);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: var(--gold-gradient);
  color: var(--text-dark);
  transform: scale(1.1);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 10. About section (.about-section) */
.about-section {
  padding: 5rem 0;
  background: rgba(18, 18, 26, 0.45);
}

.about-values-title {
  margin-top: 5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h2 {
  color: var(--text-white);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.about-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.about-stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.about-stat-label {
  color: var(--text-muted);
  font-weight: 500;
}

/* 12. Gold prices table (.prices-table-section) */
.prices-table-section {
  padding: 5rem 0;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
}

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

.prices-table th {
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold-primary);
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-gold);
  white-space: nowrap;
}

.prices-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-white);
  vertical-align: middle;
}

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

.prices-table tbody tr {
  transition: var(--transition-base);
}

.prices-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

.table-name-cell {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
}

.table-val {
  font-family: monospace;
  font-weight: 600;
  font-size: 1.1rem;
}

.table-change {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
}

/* 13. Page header (.page-header) */
.page-header {
  padding: 8rem 0 4rem;
  background: linear-gradient(to bottom, rgba(212, 168, 83, 0.07), transparent);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.page-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.page-breadcrumb a {
  color: var(--gold-primary);
}

.page-breadcrumb a:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

/* 11. Footer (.footer) */
.footer {
  background: rgba(18, 18, 26, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-base);
}

.social-link:hover {
  background: var(--gold-primary);
  color: var(--text-dark);
  border-color: var(--gold-primary);
}

.footer-title {
  color: var(--text-white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-icon {
  color: var(--gold-primary);
  font-size: 1.1rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a:hover {
  color: var(--gold-primary);
}

/* 14. Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

@keyframes pulse-gold {
  0% { box-shadow: 0 0 0 0 rgba(212, 168, 83, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(212, 168, 83, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 168, 83, 0); }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.loading {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(to right, var(--bg-card) 4%, rgba(212,168,83,0.1) 25%, var(--bg-card) 36%);
  background-size: 1000px 100%;
}

/* 16. Responsive breakpoints */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 1024px) {
  .prices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .calculator-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobil düzen: css/mobile.css */

@media (min-width: 769px) {
  .nav-overlay,
  .mobile-menu-head-item {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .price-ticker-wrapper {
    padding: 0.5rem 0;
  }
  
  .ticker-item {
    padding: 0 1rem;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .calculator-card {
    padding: 1.5rem;
  }
  
  .calc-result-value {
    font-size: 2rem;
  }
}

/* Extra finishing touches for premium feel */
.glass-effect {
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glow-effect {
  position: relative;
}

.glow-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  box-shadow: 0 0 15px rgba(212, 168, 83, 0.3);
  opacity: 0;
  transition: var(--transition-base);
  pointer-events: none;
}

.glow-effect:hover::after {
  opacity: 1;
}

::selection {
  background: var(--gold-primary);
  color: var(--text-dark);
}

::-moz-selection {
  background: var(--gold-primary);
  color: var(--text-dark);
}

/* ===== Additional Styles for Inner Pages ===== */

/* Logo class for inner pages */
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Navbar brand gold gradient text */
.navbar-brand {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Price ticker legacy cleanup — animasyon .ticker-track üzerinde */
.price-ticker {
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 0;
  overflow: visible;
}

.ticker-track span {
  display: inline-block;
  padding: 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Update bar - fix margin-top since ticker now has margin-top */
.price-ticker + .hero {
  /* No extra top margin needed since ticker already has it */
}

.last-update-bar {
  margin-top: 0;
}

/* Hero section text alignment */
.hero {
  text-align: center;
}

/* Hero stat items */
.hero-stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 700;
}

.hero-stat-label {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.section-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Update dot */
.update-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-success);
  display: inline-block;
  animation: pulse-green 2s infinite;
  margin-right: 0.5rem;
}

/* Mobile menu button hamburger lines */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--gold-primary);
  transition: var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Price updated highlight effect */
.price-card.price-updated {
  border-color: var(--gold-primary);
  box-shadow: 0 0 20px rgba(212, 168, 83, 0.3);
}

/* Breadcrumb styling */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--gold-primary);
}

.breadcrumb a:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

/* Footer content for inner pages */
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: var(--gold-primary);
  margin-bottom: 1rem;
}

.footer-section p {
  color: var(--text-muted);
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-section ul a {
  color: var(--text-muted);
}

.footer-section ul a:hover {
  color: var(--gold-primary);
}

/* Footer description text */
.footer-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

.footer-disclaimer {
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Calc result note */
.calc-result-note {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.75rem;
}

/* Positive/negative text colors for table */
.positive {
  color: var(--color-success);
  font-weight: 600;
}

.negative {
  color: var(--color-danger);
  font-weight: 600;
}

/* Info section for hesaplama page */
.info-section {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

.info-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gold-primary);
}

.info-section p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* About content — metin akışı (grid sadece .about-grid üzerinde) */
.about-text h2 {
  color: var(--text-white);
  margin-top: 2rem;
}

.about-text h2:first-child {
  margin-top: 0;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* Stat card for about page */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition-base);
}

.stat-card:hover {
  border-color: var(--gold-primary);
}

.stat-card h3 {
  font-size: 2rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.stat-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Form inputs (select and input) */
select,
input[type="number"] {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition-base);
}

select:focus,
input[type="number"]:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(212, 168, 83, 0.2);
  outline: none;
}

/* Features grid 4 column on about page */
.about-section .features-grid {
  grid-template-columns: repeat(4, 1fr);
}

.price-card.visible,
.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobil footer / about: css/mobile.css */

@media (max-width: 1024px) {
  .about-section .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Category tabs & History section ===== */
.category-tabs,
.period-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.category-tab,
.period-tab {
  padding: 0.55rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-base);
}

.category-tab:hover,
.period-tab:hover {
  color: var(--text-white);
  border-color: var(--border-gold);
}

.category-tab.active,
.period-tab.active {
  background: rgba(212, 168, 83, 0.12);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.category-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.cat-altin { background: rgba(212,168,83,0.15); color: var(--gold-primary); }
.cat-gumus { background: rgba(192,192,192,0.15); color: #c0c0c0; }
.cat-doviz { background: rgba(34,197,94,0.12); color: var(--color-success); }
.cat-diger { background: rgba(147,112,219,0.15); color: #b794f6; }

.hidden-row { display: none; }

.table-name-cell small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.15rem;
}

.btn-detail {
  padding: 0.35rem 0.85rem;
  background: rgba(212,168,83,0.12);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  color: var(--gold-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
}

.btn-detail:hover {
  background: var(--gold-primary);
  color: var(--text-dark);
}

.history-section {
  padding: 4rem 0 5rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.history-controls {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2rem;
}

.history-select-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.history-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.history-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
}

.history-stat span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.history-stat strong {
  font-size: 1rem;
  color: var(--text-white);
}

.history-loading,
.history-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem !important;
}

.history-note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.85;
}

.category-section-title {
  grid-column: 1 / -1;
  font-size: 1.25rem;
  color: var(--gold-primary);
  margin: 2rem 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.clickable-card {
  cursor: pointer;
  transition: var(--transition-base);
}

.clickable-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-card), var(--shadow-gold);
}

.clickable-card::after {
  content: 'Detay →';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  color: var(--gold-primary);
  opacity: 0;
  transition: var(--transition-base);
}

.clickable-card:hover::after {
  opacity: 1;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: rgba(212, 168, 83, 0.06);
}

.detail-live-section {
  padding: 0 0 2rem;
}

.detail-live-card {
  max-width: 480px;
  margin: 0 auto;
  opacity: 1;
  transform: none;
}

.detail-icon {
  font-size: 2.5rem;
  margin-right: 0.5rem;
}

.detail-history-section {
  border-top: 1px solid var(--border-subtle);
}

.related-section {
  padding: 4rem 0 5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
  text-align: center;
}

.related-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.related-icon {
  font-size: 1.75rem;
}

.related-name {
  font-weight: 600;
  color: var(--text-white);
  font-size: 0.95rem;
}

.related-price {
  color: var(--gold-primary);
  font-weight: 700;
  font-family: monospace;
}

a.btn-detail {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

/* Mobil geçmiş kontrolleri: css/mobile.css */

/* =============================================================================
   Midas-style tablo (gerçek HTML table)
   ============================================================================= */
.midas-app {
  min-height: calc(100vh - 72px);
  padding: 1.5rem 0 3rem;
}

.midas-header {
  margin-bottom: 1.25rem;
}

.midas-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.35rem 0 0.25rem;
}

.midas-live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.midas-update {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.midas-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.midas-tabs .category-tab,
.midas-tabs .period-tab {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.midas-tabs .category-tab.active,
.midas-tabs .period-tab.active {
  color: var(--text-dark);
  background: var(--gold-primary);
  border-color: var(--gold-primary);
}

.midas-table-wrap {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: auto;
  box-shadow: var(--shadow-card);
}

.midas-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.midas-table thead th {
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-gold);
  text-align: left;
  white-space: nowrap;
}

.midas-table thead th.col-num {
  text-align: right;
}

.midas-table tbody td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

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

.midas-data-row {
  transition: background 0.15s ease;
}

.midas-data-row:hover {
  background: var(--bg-card-hover);
}

.midas-data-row td {
  padding: 0;
  vertical-align: middle;
}

.midas-cell-link {
  display: block;
  padding: 0.85rem 1rem;
  color: inherit;
  text-decoration: none;
}

.midas-cell-link:hover {
  color: inherit;
}

.midas-cell-link.midas-row-change.up {
  color: var(--color-success);
}

.midas-cell-link.midas-row-change.down {
  color: var(--color-danger);
}

.midas-symbol-cell {
  min-width: 160px;
}

.midas-row-name {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-white);
}

.midas-row-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.midas-val {
  text-align: right;
}

.midas-val .midas-cell-link {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.9rem;
  color: var(--text-white);
  text-align: right;
  white-space: nowrap;
}

.midas-val-bold {
  font-weight: 700;
  color: var(--gold-light);
}

.midas-time {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.midas-row-change {
  font-weight: 700;
  font-size: 0.85rem;
  font-family: ui-monospace, monospace;
  text-align: right;
  white-space: nowrap;
}

.midas-row-change.up {
  color: var(--color-success);
}

.midas-row-change.down {
  color: var(--color-danger);
}

.midas-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem !important;
  font-size: 0.9rem;
}

.midas-hint {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.midas-back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--gold-primary);
}

.midas-back:hover {
  color: var(--gold-hover);
}

.midas-detail-header {
  margin-bottom: 1rem;
}

.midas-detail-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.history-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.history-stat {
  flex: 1 1 120px;
  padding: 0.65rem 0.85rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
}

.history-stat span {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.history-stat strong {
  font-size: 0.9rem;
}

.history-stat .positive {
  color: var(--color-success);
}

.history-stat .negative {
  color: var(--color-danger);
}

.midas-history-scroll {
  max-height: 420px;
  overflow-y: auto;
}

.footer-compact {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-compact p {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =============================================================================
   Midas mobil liste + detay (hızlı, sade)
   ============================================================================= */
.midas-list-body {
  background: #000;
}

.midas-list {
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.midas-list-loading {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.midas-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: inherit;
  text-decoration: none;
  transition: background 0.12s ease;
}

.midas-list-row:last-child {
  border-bottom: none;
}

.midas-list-row:active,
.midas-list-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.midas-list-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.midas-list-code {
  flex-shrink: 0;
  width: 2.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.midas-list-meta {
  min-width: 0;
}

.midas-list-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.midas-list-sub {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.1rem;
}

.midas-list-right {
  text-align: right;
  flex-shrink: 0;
}

.midas-list-price {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  font-variant-numeric: tabular-nums;
}

.midas-list-change {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.15rem;
  font-variant-numeric: tabular-nums;
}

.midas-list-change.up {
  color: #4ade80;
}

.midas-list-change.down {
  color: #f87171;
}

/* Detay sayfası — Midas tarzı */
.midas-detail-body {
  background: #000;
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.midas-detail-body .navbar {
  display: none;
}

.midas-detail-app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
}

.midas-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
}

.midas-detail-back,
.midas-detail-calc {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  text-decoration: none;
  font-size: 1.25rem;
  border-radius: 50%;
}

.midas-detail-back:active,
.midas-detail-calc:active {
  background: rgba(255, 255, 255, 0.08);
}

.midas-detail-top-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.midas-detail-spacer {
  width: 2.5rem;
}

.midas-detail-hero {
  padding: 0 1.25rem 0.5rem;
}

.midas-detail-symbol {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-white);
}

.midas-detail-name {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
}

.midas-detail-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0.15rem 0 0.75rem;
}

.midas-detail-price-line {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.midas-detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-white);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.midas-detail-change {
  font-size: 1.1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.midas-detail-change.up {
  color: #4ade80;
}

.midas-detail-change.down {
  color: #f87171;
}

.midas-chart-block {
  position: relative;
  margin: 0.5rem 0 0;
  height: 168px;
}

.midas-chart {
  display: block;
  width: 100%;
  height: 168px;
}

.midas-chart-grid {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.midas-chart-fill.up {
  fill: rgba(74, 222, 128, 0.12);
}

.midas-chart-fill.down {
  fill: rgba(248, 113, 113, 0.12);
}

.midas-chart-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
}

.midas-period-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.midas-period-tabs::-webkit-scrollbar {
  display: none;
}

.midas-period-tabs .period-tab {
  flex-shrink: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.midas-period-tabs .period-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
}

.midas-detail-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}

.midas-stat-pill {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
}

.midas-stat-pill span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.midas-stat-pill strong {
  font-size: 0.88rem;
  color: var(--text-white);
  font-variant-numeric: tabular-nums;
}

.midas-stat-pill .positive {
  color: #4ade80;
}

.midas-stat-pill .negative {
  color: #f87171;
}

.midas-history-list {
  padding: 0 1rem 1.5rem;
}

.midas-history-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
}

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

.midas-history-date {
  color: var(--text-muted);
}

.midas-history-price {
  color: var(--text-white);
  font-variant-numeric: tabular-nums;
}

.midas-history-change.up {
  color: #4ade80;
}

.midas-history-change.down {
  color: #f87171;
}

.midas-detail-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, #000 70%, transparent);
}

.midas-detail-bar-inner {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.midas-bar-btn {
  border-radius: 14px;
  padding: 0.75rem 1rem;
  text-align: center;
}

.midas-bar-alis {
  background: rgba(255, 255, 255, 0.08);
}

.midas-bar-satis {
  background: #6366f1;
}

.midas-bar-label {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.15rem;
}

.midas-bar-btn strong {
  font-size: 0.95rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 769px) {
  .midas-detail-app {
    padding-top: 1rem;
  }

  .midas-list {
    max-width: 640px;
    margin: 0 auto;
  }
}

/* =============================================================================
   Altın ambient arka plan — görünür, şeffaf, hareketli
   ============================================================================= */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}

.ambient-bg::before {
  content: '';
  position: absolute;
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  background:
    radial-gradient(circle at 30% 40%, rgba(212, 168, 83, 0.18) 0%, transparent 32%),
    radial-gradient(circle at 72% 58%, rgba(230, 190, 106, 0.12) 0%, transparent 28%),
    radial-gradient(circle at 48% 88%, rgba(181, 141, 60, 0.1) 0%, transparent 26%);
  animation: ambient-mesh 20s ease-in-out infinite alternate;
}

.ambient-bg::after {
  content: '';
  position: absolute;
  inset: -80%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(212, 168, 83, 0.06) 40deg,
    transparent 90deg,
    rgba(240, 214, 138, 0.05) 160deg,
    transparent 220deg,
    rgba(212, 168, 83, 0.04) 300deg,
    transparent 360deg
  );
  animation: ambient-rotate 50s linear infinite;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.9;
  will-change: transform;
  animation: ambient-float 12s ease-in-out infinite;
}

.ambient-orb-1 {
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  top: -8%;
  left: -8%;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.7) 0%, rgba(212, 168, 83, 0.2) 40%, transparent 72%);
}

.ambient-orb-2 {
  width: min(52vw, 400px);
  height: min(52vw, 400px);
  top: 32%;
  right: -12%;
  background: radial-gradient(circle, rgba(240, 214, 138, 0.4) 0%, rgba(212, 168, 83, 0.08) 50%, transparent 72%);
  animation-delay: -5s;
  animation-duration: 17s;
}

.ambient-orb-3 {
  width: min(44vw, 340px);
  height: min(44vw, 340px);
  bottom: -5%;
  left: 15%;
  background: radial-gradient(circle, rgba(181, 141, 60, 0.45) 0%, rgba(212, 168, 83, 0.06) 50%, transparent 70%);
  animation-delay: -9s;
  animation-duration: 19s;
}

.ambient-orb-4 {
  width: min(36vw, 280px);
  height: min(36vw, 280px);
  top: 55%;
  left: -5%;
  background: radial-gradient(circle, rgba(230, 190, 106, 0.35) 0%, transparent 68%);
  animation-delay: -3s;
  animation-duration: 22s;
}

.ambient-wave {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 20%;
  height: 60%;
  opacity: 0.7;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(212, 168, 83, 0.03) 25%,
    rgba(240, 214, 138, 0.07) 50%,
    rgba(212, 168, 83, 0.03) 75%,
    transparent 100%
  );
  animation: ambient-wave-slide 8s ease-in-out infinite alternate;
}

.ambient-shimmer {
  position: absolute;
  inset: -50%;
  opacity: 0.85;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(212, 168, 83, 0.06) 48%,
    rgba(255, 230, 160, 0.09) 50%,
    rgba(212, 168, 83, 0.06) 52%,
    transparent 58%
  );
  animation: ambient-shimmer 9s ease-in-out infinite;
}

@keyframes gold-base-pulse {
  0% { opacity: 0.9; transform: scale(1) translateY(0); }
  100% { opacity: 1; transform: scale(1.06) translateY(-1%); }
}

@keyframes ambient-mesh {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(4%, -3%) rotate(2deg); }
}

@keyframes ambient-wave-slide {
  0% { transform: translateX(-6%) skewY(-2deg); opacity: 0.5; }
  100% { transform: translateX(6%) skewY(2deg); opacity: 0.85; }
}

@keyframes ambient-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(6%, -7%) scale(1.08); }
  66% { transform: translate(-5%, 6%) scale(0.95); }
}

@keyframes ambient-shimmer {
  0%, 100% { transform: translateX(-25%) rotate(0deg); opacity: 0.6; }
  50% { transform: translateX(25%) rotate(0deg); opacity: 1; }
}

@keyframes ambient-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .ambient-bg::before,
  .ambient-bg::after,
  .ambient-orb,
  .ambient-shimmer,
  .ambient-wave {
    animation: none !important;
  }

  .ticker-track:not(.ticker-static) {
    animation: ticker-scroll 90s linear infinite !important;
  }
}

.hero::before {
  opacity: 0.15;
}

.hero-home {
  padding-bottom: 0;
  padding-top: 5rem;
}

.hero-home .hero-subtitle {
  margin-bottom: 1.5rem;
}

.hero-home .hero-stats {
  border-top: none;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  gap: 2rem;
}

.hero-ticker {
  margin-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  padding: 0.65rem 0;
}

.hero-ticker .ticker-viewport {
  width: 100%;
}

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

@media (min-width: 900px) {
  .home-featured-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.detail-live-card {
  max-width: 520px;
}

.cards-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem 1rem;
}

.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.history-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

@media (min-width: 640px) {
  .history-row {
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: 1rem;
  }
}

.history-row-date {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.history-row-prices {
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.navbar {
  z-index: var(--z-nav);
}
