/* ═══════════════════════════════════════════════════
   Teleradar Premium — Ödeme Sayfası Stilleri
   Warm dark theme with copper/amber accents
   ═══════════════════════════════════════════════════ */

:root {
  /* ─── Background Colors ─── */
  --bg-primary: #1a1817;
  --bg-secondary: #242220;
  --bg-card: rgba(58, 54, 50, 0.55);
  --bg-card-hover: rgba(58, 54, 50, 0.8);
  --bg-popular: rgba(224, 138, 95, 0.06);
  --bg-yearly: rgba(240, 153, 106, 0.06);

  /* ─── Border Colors ─── */
  --border-default: rgba(163, 154, 144, 0.12);
  --border-popular: rgba(224, 138, 95, 0.45);
  --border-yearly: rgba(240, 153, 106, 0.35);

  /* ─── Text Colors ─── */
  --text-primary: #eee9e3;
  --text-secondary: #a39a90;
  --text-muted: #6b6560;

  /* ─── Accent Colors ─── */
  --accent-primary: #e08a5f;
  --accent-primary-light: #f0996a;
  --accent-secondary: #c1673a;
  --accent-dark: #a8562f;
  --accent-green: #7dba6a;
  --accent-red: #d4534b;

  /* ─── Surfaces ─── */
  --surface-light: #e4e0da;
  --surface-off-white: #f7f6f3;

  /* ─── Gradients ─── */
  --gradient-primary: linear-gradient(135deg, #c1673a, #e08a5f);
  --gradient-warm: linear-gradient(135deg, #a8562f, #c1673a);
  --gradient-gold: linear-gradient(135deg, #e08a5f, #f0996a);
  --gradient-bg: radial-gradient(ellipse at top, rgba(224, 138, 95, 0.08) 0%, transparent 60%);

  /* ─── Shadows ─── */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-popular: 0 8px 32px rgba(224, 138, 95, 0.12);
  --shadow-button: 0 4px 16px rgba(193, 103, 58, 0.3);

  /* ─── Spacing & Radius ─── */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 100px;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-bg);
  pointer-events: none;
  z-index: 0;
}

/* ─── App Container ─── */
.app {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 32px;
  min-height: 100vh;
}

/* ─── Header ─── */
.header {
  padding: 12px 0 20px;
  animation: slideDown 0.5s ease-out;
}

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

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface-off-white);
  box-shadow: 0 4px 16px rgba(193, 103, 58, 0.35);
}

.logo-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 1px;
}

/* ─── Tax Warning Banner ─── */
.tax-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(168, 86, 47, 0.1);
  border: 1px solid rgba(193, 103, 58, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 20px;
  animation: fadeIn 0.6s ease-out 0.2s both;
}

.tax-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.tax-banner p {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--accent-primary);
  font-weight: 500;
}

/* ─── Plans Section ─── */
.plans-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

/* ─── Plan Card ─── */
.plan-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
  animation: slideUp 0.5s ease-out both;
  cursor: default;
}

.plan-card:nth-child(2) { animation-delay: 0.1s; }
.plan-card:nth-child(3) { animation-delay: 0.2s; }
.plan-card:nth-child(4) { animation-delay: 0.3s; }

.plan-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  border-color: rgba(163, 154, 144, 0.2);
}

/* Popular card */
.plan-card.popular {
  background: var(--bg-popular);
  border-color: var(--border-popular);
  box-shadow: var(--shadow-popular);
}

.popular-label {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: var(--surface-off-white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(193, 103, 58, 0.4);
}

/* Yearly card */
.plan-card.yearly {
  background: var(--bg-yearly);
  border-color: var(--border-yearly);
}

/* ─── Plan Badge ─── */
.plan-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.plan-badge.monthly {
  background: rgba(224, 138, 95, 0.12);
  color: var(--accent-primary-light);
}

.plan-badge.yearly-badge {
  background: rgba(193, 103, 58, 0.15);
  color: var(--accent-secondary);
}

/* ─── Plan Header ─── */
.plan-header {
  margin-bottom: 14px;
}

.plan-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.price-period {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.plan-savings {
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 4px;
}

.plan-savings::before {
  content: '🎉';
  font-size: 0.8rem;
}

/* ─── Plan Features ─── */
.plan-features {
  list-style: none;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.plan-features li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.3;
}

/* ─── Plan Button ─── */
.plan-button {
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: var(--surface-off-white);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-button);
  position: relative;
  overflow: hidden;
}

.plan-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transition: left 0.5s ease;
}

.plan-button:hover::before {
  left: 100%;
}

.plan-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(193, 103, 58, 0.4);
}

.plan-button:active {
  transform: translateY(0);
}

.plan-button.pro-btn {
  background: var(--gradient-gold);
  box-shadow: 0 4px 16px rgba(224, 138, 95, 0.3);
  color: var(--bg-primary);
}

.plan-button.pro-btn:hover {
  box-shadow: 0 8px 24px rgba(224, 138, 95, 0.4);
}

/* ─── Footer ─── */
.footer {
  text-align: center;
  padding: 28px 0 12px;
  animation: fadeIn 0.6s ease-out 0.5s both;
}

.footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.footer strong {
  color: var(--text-secondary);
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 1.1rem;
  opacity: 0.6;
}

/* ─── Animations ─── */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ─── Responsive ─── */
@media (max-width: 380px) {
  .app {
    padding: 12px 12px 28px;
  }

  .price-amount {
    font-size: 1.75rem;
  }

  .plan-card {
    padding: 16px;
  }
}

/* ─── Telegram Theme Adaptations ─── */
body.tg-theme-dark {
  --bg-primary: var(--tg-theme-bg-color, #1a1817);
  --text-primary: var(--tg-theme-text-color, #eee9e3);
}
