*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #1a1a1a;
  --surface:     #242424;
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --text:        #f0f0f0;
  --text-muted:  #888;
  --error:       #ff8a80;
  --ok:          #8fdca8;
}

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  min-height: 100%;
}

body {
  /* Görsel yüklenemezse düz koyu zemin okunabilirliği korur */
  background-color: var(--bg);
  background-image: url('background-web.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100svh;
  /* grid + place-items tüm mobil tarayıcılarda güvenilir ortalar */
  display: grid;
  place-items: center;
  padding:
    calc(2rem + env(safe-area-inset-top))
    calc(1rem + env(safe-area-inset-right))
    calc(2rem + env(safe-area-inset-bottom))
    calc(1rem + env(safe-area-inset-left));
  /* NOT: burada opacity:0 YOK — JS çalışmasa da sayfa görünür kalır. */
}

/* Fade-in yalnızca JS etkinken, kendi kendine tamamlanan bir animasyon olarak */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

html.js body {
  animation: pageFadeIn 0.3s ease both;
}

/* Sıcak koyu overlay — hafifletildi, salon görünür */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 4, 2, 0.52) 0%,
    rgba(10, 6, 3, 0.44) 45%,
    rgba(6, 4, 2, 0.62) 100%
  );
  z-index: 0;
  pointer-events: none;
}

/* ── noscript uyarısı ── */
.noscript-note {
  position: relative;
  z-index: 2;
  max-width: 400px;
  margin: 0 auto 1rem;
  padding: 0.85rem 1rem;
  background: rgba(120, 20, 20, 0.85);
  border: 1px solid rgba(255, 138, 128, 0.5);
  border-radius: 12px;
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

/* ── Container — cam kart efekti ── */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 2.5rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(16, 10, 6, 0.62);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 168, 76, 0.20);
  border-radius: 22px;
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.60),
    inset 0 1px 0 rgba(201, 168, 76, 0.10);
}

/* ── Tezgâh rozeti ── */
.kisi-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 20px;
}

.kisi-badge[hidden] { display: none; }

/* ── Logo ── */
.logo-wrap {
  margin-bottom: 1.5rem;
}

.logo-wrap img {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  aspect-ratio: 1 / 1;   /* yerleşim sıçramasını (CLS) önler */
  margin: 0 auto;
}

/* Logo yüklenemediğinde gösterilir */
.logo-placeholder[hidden] { display: none; }

.logo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* ── Başlık ── */
h1.business-name {
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  overflow-wrap: break-word;
}

/* ── Tagline ── */
.tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ── Durum alanı ── */
.status {
  width: 100%;
  margin-bottom: 1.25rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: break-word;
}

.status[hidden] { display: none; }

.status--error {
  color: var(--error);
  background: rgba(160, 40, 30, 0.22);
  border: 1px solid rgba(255, 138, 128, 0.38);
}

.status--ok {
  color: var(--ok);
  background: rgba(40, 120, 70, 0.20);
  border: 1px solid rgba(143, 220, 168, 0.32);
}

.status--info {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* ── Kişiye ait ödeme bilgisi ── */
.iban-dialog {
  position: fixed;
  inset: 0;
  width: min(420px, calc(100vw - 2rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
  max-width: none;
  max-height: calc(100svh - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  margin: auto;
  padding: 1.25rem;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 18px;
  background: #211912;
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
  overflow-y: auto;
}
.iban-dialog::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(3px); }
.iban-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.iban-dialog-header h2 { min-width: 0; color: var(--gold-light); font-size: clamp(0.95rem, 3.5vw, 1.1rem); line-height: 1.35; overflow-wrap: anywhere; }
.iban-dialog-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.iban-dialog-close span { font-size: 1.5rem; line-height: 1; }
.iban-cards { display: grid; gap: 0.75rem; }
.iban-card {
  padding: 0.9rem;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  text-align: center;
}
.iban-caption, .iban-owner { display: block; color: var(--text-muted); font-size: 0.75rem; }
.iban-bank-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 0.35rem; }
.iban-bank { color: var(--gold-light); font-size: 0.85rem; font-weight: 600; }
.iban-bank-logo { flex-shrink: 0; width: 28px; height: 28px; padding: 2px; border-radius: 6px; background: #fff; object-fit: contain; }
.iban-bank-logo[hidden] { display: none; }
.iban-number-row { display: flex; align-items: center; gap: 0.3rem; width: 100%; }
.iban-value {
  display: block;
  flex: 1;
  min-width: 0;
  margin: 0.55rem 0;
  color: var(--text);
  font-size: clamp(0.75rem, 3.2vw, 0.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  text-align: center;
  user-select: all;
}
.iban-owner { margin-top: 0.1rem; text-align: center; overflow-wrap: anywhere; }
.iban-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201, 168, 76, 0.6);
  border-radius: 8px;
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold-light);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.iban-copy:hover { background: rgba(201, 168, 76, 0.24); }
.iban-copy svg { width: 17px; height: 17px; }
.iban-copy:disabled { opacity: 0.45; cursor: not-allowed; }
.iban-copy:focus-visible, .iban-dialog-close:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.copy-toast[hidden] { display: none; }
.copy-toast {
  width: fit-content;
  max-width: 100%;
  margin: 1rem auto 0;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: #245637;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}
.copy-toast--error { background: #73332d; }

/* ── Buttons wrapper ── */
.buttons-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

/* ── Buton — temel stil ── */
.btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
}

.btn:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.btn:not(:disabled):hover {
  transform: scale(1.02);
  opacity: 0.93;
}

.btn:not(:disabled):active,
.btn.btn--tap {
  transform: scale(0.96);
}

/* ── Devre dışı durum — net görünür ── */
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
  filter: grayscale(0.7);
  box-shadow: none;
  transform: none;
}

/* ── Buton 1 — İletişim (altın) ── */
.btn-contact {
  background: var(--gold);
  color: #1a1a1a;
}

.btn-contact:not(:disabled):hover {
  background: var(--gold-light);
  box-shadow: 0 4px 18px rgba(201, 168, 76, 0.35);
}

/* ── IBAN ve Instagram ── */
.btn-iban { background: #f4e5b4; color: #1a1a1a; }
.btn-iban:not(:disabled):hover { background: #fff0c4; }
.btn-instagram { background: #8a3ab9; color: #fff; }
.btn-instagram:not(:disabled):hover { background: #9f4fca; }

/* ── Google Yorum (beyaz + altın kenarlık) ── */
.btn-google {
  background: #fff;
  color: #1a1a1a;
  border: 2px solid var(--gold);
}

.btn-google:not(:disabled):hover {
  background: #fdf6e3;
  box-shadow: 0 4px 18px rgba(201, 168, 76, 0.2);
}

/* ── Footer ── */
.footer {
  margin-top: 1.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.5;
}

/* ── Buton içi ikon ve metin ── */
.btn-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.btn-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.btn-sub {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.3;
  opacity: 0.75;
  overflow-wrap: anywhere;
}

/* ── Responsive — Mobil ── */
@media (max-width: 480px) {
  body {
    padding:
      calc(1.25rem + env(safe-area-inset-top))
      calc(0.875rem + env(safe-area-inset-right))
      calc(1.25rem + env(safe-area-inset-bottom))
      calc(0.875rem + env(safe-area-inset-left));
  }

  .container {
    padding: clamp(1.4rem, 5vw, 2rem) clamp(1rem, 4vw, 1.25rem) 1.5rem;
    border-radius: 18px;
  }

  h1.business-name {
    font-size: clamp(1.2rem, 5.8vw, 1.35rem);
  }

  .btn {
    min-height: 56px;
    padding: 0.5rem 1rem;
  }

  .buttons-wrap { gap: 0.85rem; }
  .tagline { margin-bottom: 1.25rem; }

  .logo-wrap {
    margin-bottom: 1.25rem;
  }

  .logo-wrap img {
    max-width: min(150px, 38vw);
  }

  .iban-dialog { padding: 1rem; }
  .iban-card { padding: 0.75rem; }
  .iban-dialog-header { gap: 0.5rem; }
}

/* ── Çok dar ekranlar (320–360px) ── */
@media (max-width: 360px) {
  body {
    padding:
      calc(0.75rem + env(safe-area-inset-top))
      calc(0.5rem + env(safe-area-inset-right))
      calc(0.75rem + env(safe-area-inset-bottom))
      calc(0.5rem + env(safe-area-inset-left));
  }
  .container { padding: 1.25rem 0.9rem; }
  .kisi-badge { margin-bottom: 0.9rem; }
  .logo-wrap { margin-bottom: 1rem; }
  .logo-wrap img { max-width: min(128px, 38vw); }
  .btn { gap: 10px; padding: 0.5rem 0.85rem; }
  .btn-title { font-size: 0.95rem; }
  .btn-sub { font-size: 0.72rem; }
  .footer { margin-top: 1.25rem; }
  .iban-dialog {
    width: calc(100vw - 1rem - env(safe-area-inset-left) - env(safe-area-inset-right));
    padding: 0.85rem;
  }
  .iban-card { padding: 0.65rem; }
  .iban-bank-logo { width: 24px; height: 24px; }
  .iban-value { font-size: 0.75rem; }
  .iban-copy { width: 34px; height: 34px; }
}

@media (max-height: 640px) and (orientation: landscape) {
  body { place-items: start center; padding-top: calc(0.75rem + env(safe-area-inset-top)); }
  .container { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .logo-wrap { margin-bottom: 0.75rem; }
  .logo-wrap img { max-width: 110px; }
  .tagline { margin-bottom: 1rem; }
  .buttons-wrap { gap: 0.7rem; }
  .footer { margin-top: 1rem; }
}

/* ── Hareket azaltma tercihi ── */
@media (prefers-reduced-motion: reduce) {
  html.js body { animation: none; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn:not(:disabled):hover,
  .btn:not(:disabled):active,
  .btn.btn--tap { transform: none; }
}
