:root {
  --koyu: #0d4a3f;
  --koyu2: #0a3a32;
  --yesil: #1fa56b;
  --zemin: #efe8da;
  --kart: #fffdf8;
  --yazi: #1d2b28;
  --soluk: #5b6b67;
  --cizgi: #ddd3c0;
  --amber: #f0a43a;
  --balon: #dff3d8;
  --golge: 0 1px 0 rgba(13, 74, 63, .06), 0 8px 24px -14px rgba(13, 74, 63, .45);
  --font: 'Rubik', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--yazi); font: 400 17px/1.5 var(--font); min-height: 100vh;
  background-color: var(--zemin);
  background-image:
    radial-gradient(circle at 12px 12px, rgba(13, 74, 63, .07) 2px, transparent 2.5px),
    radial-gradient(circle at 36px 30px, rgba(240, 164, 58, .10) 3px, transparent 3.5px);
  background-size: 48px 48px;
}
button, input { font: inherit; color: inherit; }
a { color: inherit; }

/* WhatsApp benzeri üst bant: seçilen ad burada görünür */
.ust-bant { position: sticky; top: 0; z-index: 5; background: var(--koyu); color: #fff; padding: env(safe-area-inset-top) 0 0; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.ust-ic { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
.geri { font-size: 30px; line-height: 1; opacity: .8; margin-top: -4px; }
.avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; background: #e7efe9; display: grid; place-items: center; font-size: 23px; }
.ust-yazi { min-width: 0; }
.ust-ad { margin: 0; font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ust-alt { margin: 0; font-size: 13px; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ust-bant.degisti .avatar { animation: zipla .5s ease; }
@keyframes zipla { 40% { transform: scale(1.25) rotate(-8deg); } }

.sayfa { max-width: 560px; margin: 0 auto; padding: 18px 16px 40px; }
.giris h1 { font-size: 40px; line-height: 1.02; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 10px; color: var(--koyu); }
.giris h1 span { background: var(--amber); color: var(--koyu2); padding: 0 8px; border-radius: 8px; display: inline-block; transform: rotate(-2deg); }
.giris p { margin: 0 0 18px; color: var(--soluk); }

.kutu { background: var(--kart); border-radius: 16px; padding: 14px 14px 16px; margin: 12px 0; box-shadow: var(--golge); }
h2 { font-size: 17px; margin: 0 0 10px; font-weight: 700; }
h2 small { font-weight: 400; color: var(--soluk); font-size: 14px; }

.turler { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.turler button {
  border: 2px solid var(--cizgi); background: #fff; border-radius: 14px; padding: 10px 4px 8px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; line-height: 1.2; text-align: center;
}
.turler button .e { font-size: 26px; }
.turler button[aria-pressed="true"] { border-color: var(--koyu); background: #e6f4ee; font-weight: 700; box-shadow: inset 0 0 0 1px var(--koyu); }

.tonlar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: #f2ede2; border-radius: 12px; padding: 4px; }
.tonlar button { border: 0; background: transparent; border-radius: 9px; padding: 9px 2px; font-size: 14px; font-weight: 500; cursor: pointer; }
.tonlar button[aria-pressed="true"] { background: var(--koyu); color: #fff; font-weight: 700; }

.ek summary { cursor: pointer; list-style: none; }
.ek summary::-webkit-details-marker { display: none; }
.ek summary h2 { margin: 0; display: inline; }
.ek summary::after { content: ' ＋'; color: var(--koyu); font-weight: 700; }
.ek[open] summary::after { content: ' －'; }
.alan { display: block; margin: 12px 0 0; }
.alan > span { display: block; font-weight: 500; font-size: 15px; margin-bottom: 4px; }
.alan small { color: var(--soluk); font-weight: 400; }
input { width: 100%; border: 2px solid var(--cizgi); border-radius: 12px; background: #fff; padding: 11px 12px; font-size: 17px; }
input:focus { outline: none; border-color: var(--koyu); }
.ipucu { font-size: 14px; color: var(--soluk); margin: 10px 0 0; }

.sonuc { margin-top: 22px; }
.sonuc-bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sonuc-bas h2 { font-size: 22px; margin: 0; }
.yenile { border: 0; background: var(--amber); color: var(--koyu2); font-weight: 700; border-radius: 999px; padding: 8px 14px; cursor: pointer; box-shadow: 0 3px 0 #c9822a; }
.yenile:active { transform: translateY(2px); box-shadow: 0 1px 0 #c9822a; }
.yenile.buyuk { display: block; width: 100%; padding: 14px; font-size: 18px; margin-top: 14px; border-radius: 14px; }

.oneriler { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.oneri {
  display: flex; align-items: center; gap: 12px; background: var(--kart); border-radius: 14px; padding: 10px 10px 10px 12px;
  box-shadow: var(--golge); animation: gel .35s ease both;
}
.oneriler.sade .oneri { box-shadow: none; border: 1px solid var(--cizgi); }
@keyframes gel { from { opacity: 0; transform: translateY(8px); } }
.oneri .avatar { width: 46px; height: 46px; font-size: 25px; background: #eef3ee; }
.oneri .kopyala { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 4px 0; cursor: pointer; }
.oneri .ad { display: block; font-weight: 700; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.oneri .etiket { display: block; font-size: 13px; color: var(--soluk); margin-top: 2px; }
.oneri.kopyalandi { background: var(--balon); }
.oneri.kopyalandi .etiket { color: var(--koyu); font-weight: 700; }
.oneri .yildiz { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; font-size: 20px; cursor: pointer; filter: grayscale(1); opacity: .55; }
.oneri .yildiz[aria-pressed="true"] { filter: none; opacity: 1; }

.gizlilik { font-size: 14px; color: var(--soluk); text-align: center; margin: 26px 0 8px; }
.alt { text-align: center; margin-top: 8px; }
.alt a { font-weight: 700; color: var(--koyu); }

.bildirim {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 9;
  background: var(--koyu2); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 500; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  max-width: calc(100% - 32px); text-align: center;
}

@media (max-width: 360px) {
  .turler button { font-size: 13px; }
  .tonlar button { font-size: 13px; }
  .giris h1 { font-size: 34px; }
}
