*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --red:        #c0392b;
    --red-deep:   #8b1a0e;
    --red-light:  #f9e8e6;
    --green:      #2e6b3e;
    --green-deep: #1a3d25;
    --green-light:#e8f4ec;
    --gold:       #c9a84c;
    --cream:      #faf7f2;
    --text-dark:  #1c1008;
    --text-muted: #7a6a5a;
    --surface:    rgba(250,247,242,0.78);
    --border:     rgba(201,168,76,0.28);
    --radius:     26px;
    --radius-sm:  16px;
  }

  html, body {
    min-height: 100vh;
    font-family: 'DM Sans', sans-serif;
  }

  body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #100a04;
    overflow: hidden;
    position: relative;
  }

  /* ── Background ── */
  .bg {
    position: fixed;
    inset: 0;
    z-index: 0;
  }

  .bg-base {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, #2e0c08 0%, #100a04 55%, #0a1a0e 100%);
  }

  .bg-red {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(160,40,20,0.45) 0%, transparent 70%);
    top: -180px;
    left: -180px;
    animation: driftA 13s ease-in-out infinite alternate;
  }

  .bg-green {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30,80,45,0.4) 0%, transparent 70%);
    bottom: -160px;
    right: -120px;
    animation: driftB 10s ease-in-out infinite alternate;
  }

  .bg-gold {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(180,130,40,0.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 6s ease-in-out infinite;
  }

  .bg-texture {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    opacity: 0.5;
  }

  @keyframes driftA { from { transform: translate(0,0) scale(1); } to { transform: translate(60px,70px) scale(1.12); } }
  @keyframes driftB { from { transform: translate(0,0) scale(1); } to { transform: translate(-50px,-60px) scale(1.1); } }
  @keyframes pulse  { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }

  /* ── Card ── */
  .card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    backdrop-filter: blur(28px) saturate(140%);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 52px 44px 48px;
    text-align: center;
    box-shadow:
      0 0 0 0.5px rgba(201,168,76,0.15),
      0 12px 50px rgba(0,0,0,0.45),
      0 2px 10px rgba(0,0,0,0.2);
    animation: cardIn 0.75s cubic-bezier(0.22,1,0.36,1) both;
  }

  .card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.8;
  }

  @keyframes cardIn {
    from { opacity: 0; transform: translateY(36px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
  }

  /* ── Logo ── */
  .logo-wrap {
    width: 184px;
    height: 84px;
    margin: 0 auto 28px;
    border-radius: 20px;
    
    box-shadow:
      0 8px 28px rgba(160,40,20,0.4),
      0 0 0 1px rgba(201,168,76,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: logoIn 0.7s 0.12s cubic-bezier(0.22,1,0.36,1) both;
  }

  .logo-wrap img { height: 60px; object-fit: contain; }

  .logo-placeholder {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: -1px;
  }

  @keyframes logoIn {
    from { opacity: 0; transform: scale(0.75) rotate(-8deg); }
    to   { opacity: 1; transform: scale(1)    rotate(0deg); }
  }

  /* ── Typography ── */
  .brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-dark);
    line-height: 1.1;
    animation: fadeUp 0.6s 0.22s both;
  }

  .brand-sub {
    display: inline-block;
    margin-top: 8px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    animation: fadeUp 0.6s 0.3s both;
  }

  .brand-tagline {
    margin-top: 12px;
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 400;
    animation: fadeUp 0.6s 0.36s both;
  }

  /* ── Ornament divider ── */
  .ornament {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0;
    animation: fadeUp 0.6s 0.42s both;
  }

  .ornament-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.35), transparent);
  }

  .ornament-icon {
    font-size: 14px;
    color: var(--gold);
    letter-spacing: 4px;
  }

  /* ── Buttons ── */
  .btn-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: fadeUp 0.6s 0.48s both;
  }

  .lang-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition:
      transform 0.24s cubic-bezier(0.34,1.56,0.64,1),
      box-shadow 0.22s ease;
    border: 1.5px solid transparent;
    position: relative;
    overflow: hidden;
  }

  .lang-btn .flag { font-size: 28px; flex-shrink: 0; line-height: 1; }
  .lang-btn .btn-text { flex: 1; text-align: left; }
  .lang-btn .btn-label { display: block; font-size: 15.5px; font-weight: 500; }
  .lang-btn .btn-sub   { display: block; font-size: 12px; font-weight: 400; opacity: 0.65; margin-top: 2px; }

  .lang-btn .arrow {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: transform 0.22s ease, background 0.18s ease;
  }

  .lang-btn .arrow svg { width: 15px; height: 15px; }

  /* Turkish — deep red */
  .btn-tr {
    background: linear-gradient(135deg, var(--red-deep) 0%, var(--red) 100%);
    color: #fff;
    border-color: rgba(201,168,76,0.25);
    box-shadow: 0 4px 20px rgba(139,26,14,0.35);
  }

  .btn-tr .btn-sub { opacity: 0.7; }
  .btn-tr .arrow { background: rgba(255,255,255,0.15); }
  .btn-tr .arrow svg { stroke: rgba(255,255,255,0.9); }

  .btn-tr:hover {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 10px 32px rgba(139,26,14,0.5);
  }

  .btn-tr:hover .arrow { transform: translateX(4px); background: rgba(255,255,255,0.25); }

  /* English — deep green */
  .btn-en {
    background: linear-gradient(135deg, var(--green-deep) 0%, var(--green) 100%);
    color: #fff;
    border-color: rgba(201,168,76,0.25);
    box-shadow: 0 4px 20px rgba(26,61,37,0.4);
  }

  .btn-en .btn-sub { opacity: 0.7; }
  .btn-en .arrow { background: rgba(255,255,255,0.15); }
  .btn-en .arrow svg { stroke: rgba(255,255,255,0.9); }

  .btn-en:hover {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 10px 32px rgba(26,61,37,0.55);
  }

  .btn-en:hover .arrow { transform: translateX(4px); background: rgba(255,255,255,0.25); }

  .lang-btn:active { transform: translateY(0) scale(0.98); }

  /* ── Bottom ── */
  .bottom-note {
    margin-top: 30px;
    font-size: 11.5px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    animation: fadeUp 0.6s 0.58s both;
  }

  .bottom-note span { color: var(--gold); margin: 0 5px; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @media (max-width: 480px) {
    .card { padding: 40px 26px 36px; }
    .brand-name { font-size: 32px; }
  }

/* ── Ek: çoklu dil + küçük ekran düzeltmeleri ── */
body { overflow-x: hidden; overflow-y: auto; }
.bg { pointer-events: none; }
.btn-x {
  background: linear-gradient(135deg, #b8913a, #8a6a22);
  color: #fff;
  box-shadow: 0 4px 20px rgba(138,106,34,0.35);
}
.btn-x .btn-sub { opacity: 0.75; }
.btn-x .arrow { background: rgba(255,255,255,0.15); }
.btn-x .arrow svg { stroke: rgba(255,255,255,0.9); }
.btn-x:hover { transform: translateY(-3px) scale(1.015); box-shadow: 0 10px 32px rgba(138,106,34,0.5); }
.btn-x:hover .arrow { transform: translateX(4px); background: rgba(255,255,255,0.25); }
[dir="rtl"] .lang-btn .btn-text { text-align: right; }
@media (max-width: 380px) {
  body { padding: 14px; }
  .card { padding: 32px 18px 28px; }
  .logo-wrap { width: 150px; height: 70px; margin-bottom: 20px; }
  .lang-btn { padding-left: 14px; padding-right: 14px; }
}
@media (max-height: 640px) { body { align-items: flex-start; } }
.logo-wrap img { max-width: 92%; max-height: 72px; height: auto; object-fit: contain; }

/* ── Giriş sayfası her zaman tek ekrana sığar (dil sayısı ne olursa olsun) ── */
html, body { height: 100%; }
body {
  min-height: 100vh; min-height: 100dvh; height: 100vh; height: 100dvh;
  overflow: hidden; align-items: center; padding: 16px;
}
.card {
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  display: flex; flex-direction: column;
}
.card > * { flex-shrink: 0; }

/* 3+ dil: 2 sütunlu kompakt kutucuklar; sığmazsa yalnızca bu alan kendi içinde kayar */
.btn-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 4px; margin: -4px; scrollbar-width: thin;
}
.btn-grid .lang-btn {
  padding: 12px 12px; gap: 9px; border-radius: 14px; min-height: 56px; min-width: 0;
  justify-content: flex-start;
}
.btn-grid .lang-btn .flag { font-size: 22px; }
.btn-grid .lang-btn .btn-text { min-width: 0; }
.btn-grid .lang-btn .btn-label { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-grid .lang-btn .btn-sub, .btn-grid .lang-btn .arrow { display: none; }
.btn-grid .lang-btn:last-child:nth-child(odd) { grid-column: 1 / -1; justify-content: center; }
.btn-grid .lang-btn:last-child:nth-child(odd) .btn-text { flex: 0 1 auto; }
.btn-grid .lang-btn:hover { transform: translateY(-2px); }

/* kısa ekranlar: üst kısmı sıkıştır */
@media (max-height: 760px) {
  .card { padding-top: 30px; padding-bottom: 24px; }
  .logo-wrap { height: 66px; margin-bottom: 16px; }
  .logo-wrap img { max-height: 56px; }
  .brand-name { font-size: 32px; }
  .brand-tagline { margin-top: 8px; }
  .ornament { margin-top: 14px; margin-bottom: 14px; }
  .bottom-note { margin-top: 16px; }
}
@media (max-height: 620px) {
  .card { padding-top: 20px; padding-bottom: 16px; }
  .logo-wrap { height: 54px; margin-bottom: 10px; }
  .logo-wrap img { max-height: 44px; }
  .brand-name { font-size: 26px; }
  .brand-sub, .bottom-note { display: none; }
  .ornament { margin-top: 8px; margin-bottom: 10px; }
}

/* ── Diğer diller için uyumlu renkler (Türkçe kırmızı, İngilizce yeşil gibi) ── */
.btn-x.c-teal   { background: linear-gradient(135deg, #0d4f4c 0%, #1b7a72 100%); box-shadow: 0 4px 18px rgba(13,79,76,.35); }
.btn-x.c-navy   { background: linear-gradient(135deg, #172a52 0%, #2c4a8a 100%); box-shadow: 0 4px 18px rgba(23,42,82,.35); }
.btn-x.c-plum   { background: linear-gradient(135deg, #4e1840 0%, #84306b 100%); box-shadow: 0 4px 18px rgba(78,24,64,.35); }
.btn-x.c-copper { background: linear-gradient(135deg, #7a2f10 0%, #b5581f 100%); box-shadow: 0 4px 18px rgba(122,47,16,.35); }
.btn-x.c-olive  { background: linear-gradient(135deg, #3f4c17 0%, #6b7f28 100%); box-shadow: 0 4px 18px rgba(63,76,23,.35); }
.btn-x.c-indigo { background: linear-gradient(135deg, #2a2060 0%, #4b3c9e 100%); box-shadow: 0 4px 18px rgba(42,32,96,.35); }
.btn-x.c-amber  { background: linear-gradient(135deg, #8a5a10 0%, #c08a24 100%); box-shadow: 0 4px 18px rgba(138,90,16,.35); }
.btn-x.c-slate  { background: linear-gradient(135deg, #252d33 0%, #4a5862 100%); box-shadow: 0 4px 18px rgba(37,45,51,.35); }
.btn-x[class*=" c-"] { border-color: rgba(201,168,76,0.25); }
.btn-x[class*=" c-"]:hover { filter: brightness(1.08); }
