/* AnkaRemote — arayüz stilleri */
:root {
  --bg: #0a1120;
  --bg2: #0d1628;
  --yuzey: #111b30;
  --yuzey2: #16223b;
  --yuzey3: #1c2a47;
  --cizgi: rgba(148, 170, 210, .12);
  --cizgi2: rgba(148, 170, 210, .2);
  --metin: #e8eef9;
  --soluk: #8b9ab5;
  --soluk2: #64748b;
  --vurgu: #2dd4bf;
  --vurgu2: #38bdf8;
  --vurgu-zemin: rgba(45, 212, 191, .12);
  --iyi: #34d399;
  --uyari: #fbbf24;
  --tehlike: #f87171;
  --mor: #a78bfa;
  --golge: 0 10px 30px -12px rgba(0, 0, 0, .55);
  --r: 16px;
  --r-k: 10px;
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--metin);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(56, 189, 248, .09), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(45, 212, 191, .07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; color: inherit; }
a { color: var(--vurgu); text-decoration: none; }
.gizli { display: none !important; }
.sayi { font-variant-numeric: tabular-nums; }

/* ---------- logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; user-select: none; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo-yazi { font-size: 19px; letter-spacing: .06em; line-height: 1; }
.logo-yazi b { font-weight: 800; color: #fff; }
.logo-yazi span { font-weight: 300; color: var(--vurgu); margin-left: 2px; }

/* ---------- giriş ---------- */
.giris {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px;
}
.giris-kart {
  width: 100%; max-width: 400px;
  background: linear-gradient(180deg, rgba(22, 34, 59, .9), rgba(17, 27, 48, .9));
  border: 1px solid var(--cizgi2); border-radius: 22px;
  padding: 36px 30px 30px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  backdrop-filter: blur(10px);
}
.giris-kart .logo { justify-content: center; margin-bottom: 8px; }
.giris-kart .logo svg { width: 48px; height: 48px; }
.giris-kart .logo-yazi { font-size: 26px; }
.giris-alt { text-align: center; color: var(--soluk); font-size: 13.5px; margin: 0 0 28px; }
.giris-kart .alan { margin-bottom: 14px; }
.giris-kart .btn { width: 100%; justify-content: center; padding: 13px; margin-top: 8px; font-size: 15px; }
.giris-hata { color: var(--tehlike); font-size: 13.5px; min-height: 20px; margin-top: 10px; text-align: center; }
.giris-dalga { display: flex; justify-content: center; gap: 4px; margin: 26px 0 0; opacity: .5; }
.giris-dalga i { width: 4px; border-radius: 2px; background: var(--vurgu); animation: dalga 1.6s ease-in-out infinite; }
@keyframes dalga { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }

/* ---------- form ---------- */
.alan { display: flex; flex-direction: column; gap: 6px; }
.alan label { font-size: 12.5px; color: var(--soluk); font-weight: 500; letter-spacing: .02em; }
.alan small { color: var(--soluk2); font-size: 12px; }
.girdi {
  background: var(--bg2); border: 1px solid var(--cizgi2); border-radius: var(--r-k);
  padding: 11px 13px; outline: none; transition: border-color .15s, box-shadow .15s; width: 100%;
}
.girdi:focus { border-color: var(--vurgu); box-shadow: 0 0 0 3px var(--vurgu-zemin); }
.girdi::placeholder { color: var(--soluk2); }
select.girdi { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--soluk) 50%), linear-gradient(135deg, var(--soluk) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.satir2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form { display: flex; flex-direction: column; gap: 14px; }

/* ---------- düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--cizgi2); background: var(--yuzey2); color: var(--metin);
  padding: 9px 14px; border-radius: var(--r-k); font-weight: 600; font-size: 14px;
  transition: background .15s, border-color .15s, transform .05s; white-space: nowrap;
}
.btn:hover { background: var(--yuzey3); border-color: rgba(148, 170, 210, .32); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-ana { background: linear-gradient(135deg, #2dd4bf, #22b8cf); border-color: transparent; color: #04211d; }
.btn-ana:hover { background: linear-gradient(135deg, #3fe0cb, #2cc3da); border-color: transparent; }
.btn-tehlike { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .35); color: #fca5a5; }
.btn-tehlike:hover { background: rgba(248, 113, 113, .18); border-color: rgba(248, 113, 113, .5); }
.btn-hayalet { background: transparent; border-color: transparent; color: var(--soluk); }
.btn-hayalet:hover { background: var(--yuzey2); color: var(--metin); border-color: var(--cizgi); }
.btn-ikon { padding: 8px; }
.btn-kucuk { padding: 6px 10px; font-size: 13px; }

/* ---------- üst çubuk ---------- */
.ust {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 17, 32, .78); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--cizgi);
  padding: calc(env(safe-area-inset-top) + 12px) 20px 12px;
}
.ust-ic { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.ust-bosluk { flex: 1; }
.kisi {
  display: flex; align-items: center; gap: 9px; padding: 5px 6px 5px 5px; border-radius: 999px;
  border: 1px solid var(--cizgi); background: var(--yuzey);
}
.kisi-avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 13px; color: #04211d; background: linear-gradient(135deg, var(--vurgu), var(--vurgu2));
}
.kisi-ad { font-size: 13.5px; font-weight: 600; }
.kisi-rol { font-size: 11px; color: var(--soluk); }
.kisi .btn { padding: 6px; border-radius: 999px; }

/* ---------- sayfa ---------- */
.sayfa { max-width: 1280px; margin: 0 auto; padding: 26px 20px calc(60px + env(safe-area-inset-bottom)); }
.baslik-satir { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.baslik-satir h1 { margin: 0; font-size: 26px; font-weight: 750; letter-spacing: -.01em; }
.baslik-satir p { margin: 4px 0 0; color: var(--soluk); font-size: 14px; }
.geri { display: inline-flex; align-items: center; gap: 6px; color: var(--soluk); font-size: 13.5px; margin-bottom: 10px; cursor: pointer; background: none; border: 0; padding: 0; }
.geri:hover { color: var(--metin); }
.geri svg { width: 16px; height: 16px; }
.eylemler { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- özet şeridi ---------- */
.ozet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.ozet-kutu {
  background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r);
  padding: 16px 18px; display: flex; align-items: center; gap: 14px;
}
.ozet-ikon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.ozet-ikon svg { width: 22px; height: 22px; }
.ozet-deger { font-size: 24px; font-weight: 750; line-height: 1.1; }
.ozet-etiket { font-size: 12.5px; color: var(--soluk); }

/* ---------- müze kartları ---------- */
.izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.muze-kart {
  position: relative; overflow: hidden; cursor: pointer; text-align: left;
  background: linear-gradient(180deg, var(--yuzey2), var(--yuzey)); border: 1px solid var(--cizgi);
  border-radius: 20px; padding: 20px; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.muze-kart:hover { transform: translateY(-2px); border-color: rgba(45, 212, 191, .4); box-shadow: var(--golge); }
.muze-kart::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, .12), transparent 70%); pointer-events: none;
}
.muze-kart.alarmli::after { background: radial-gradient(circle, rgba(248, 113, 113, .16), transparent 70%); }
.muze-ust { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.muze-ad { font-size: 18px; font-weight: 700; margin: 0; }
.muze-sehir { color: var(--soluk); font-size: 13px; display: flex; align-items: center; gap: 5px; margin-top: 3px; }
.muze-sehir svg { width: 14px; height: 14px; }
.muze-nem { margin: 22px 0 18px; display: flex; align-items: baseline; gap: 8px; }
.muze-nem .deger { font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.muze-nem .birim { font-size: 20px; color: var(--soluk); font-weight: 500; }
.muze-nem .aciklama { font-size: 12.5px; color: var(--soluk); margin-left: 6px; }
.durumlar { display: flex; gap: 8px; flex-wrap: wrap; }
.cip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  padding: 5px 10px; border-radius: 999px; background: var(--yuzey3); color: var(--soluk);
}
.cip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cip.iyi { color: var(--iyi); background: rgba(52, 211, 153, .1); }
.cip.alarm { color: var(--tehlike); background: rgba(248, 113, 113, .12); }
.cip.kapali { color: #94a3b8; background: rgba(148, 163, 184, .1); }
.cip.kod { font-family: var(--mono); font-weight: 500; color: var(--soluk); background: var(--bg2); border: 1px solid var(--cizgi); }

/* ---------- sekmeler ---------- */
.sekmeler { display: flex; gap: 4px; border-bottom: 1px solid var(--cizgi); margin-bottom: 22px; overflow-x: auto; }
.sekme {
  background: none; border: 0; padding: 11px 14px; cursor: pointer; color: var(--soluk); font-weight: 600; font-size: 14px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; gap: 7px; align-items: center; white-space: nowrap;
}
.sekme:hover { color: var(--metin); }
.sekme.aktif { color: var(--metin); border-bottom-color: var(--vurgu); }
.sekme .rozet { font-size: 11.5px; background: var(--yuzey3); color: var(--soluk); padding: 1px 7px; border-radius: 999px; }

/* ---------- filtre ---------- */
.filtre { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.filtre .girdi { max-width: 280px; padding: 9px 12px; }
.segment { display: inline-flex; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 12px; padding: 3px; }
.segment button { background: none; border: 0; padding: 6px 12px; border-radius: 9px; cursor: pointer; color: var(--soluk); font-size: 13px; font-weight: 600; }
.segment button.aktif { background: var(--yuzey3); color: var(--metin); }

/* ---------- cihaz kartları ---------- */
.cihaz-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.cihaz {
  position: relative; cursor: pointer; text-align: left;
  background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r);
  padding: 16px 16px 12px; transition: border-color .15s, transform .15s, box-shadow .15s; overflow: hidden;
}
.cihaz:hover { border-color: var(--cizgi2); transform: translateY(-2px); box-shadow: var(--golge); }
.cihaz::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--iyi); opacity: .85; }
.cihaz.d-dusuk::before, .cihaz.d-yuksek::before { background: var(--tehlike); }
.cihaz.d-cevrimdisi::before, .cihaz.d-veri-yok::before { background: var(--soluk2); }
.cihaz.d-dusuk, .cihaz.d-yuksek { border-color: rgba(248, 113, 113, .35); background: linear-gradient(180deg, rgba(248, 113, 113, .07), var(--yuzey) 60%); }
.cihaz-ust { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.cihaz-ad { font-weight: 650; font-size: 14.5px; margin: 0; }
.cihaz-konum { color: var(--soluk); font-size: 12.5px; margin-top: 2px; }
.tip-ikon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--bg2); color: var(--soluk); flex: none; }
.tip-ikon svg { width: 16px; height: 16px; }
.cihaz-orta { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 14px 0 6px; }
.cihaz-nem { line-height: 1; }
.cihaz-nem .deger { font-size: 36px; font-weight: 800; letter-spacing: -.03em; }
.cihaz-nem .birim { font-size: 16px; color: var(--soluk); margin-left: 2px; }
.cihaz.d-cevrimdisi .cihaz-nem .deger, .cihaz.d-veri-yok .cihaz-nem .deger { color: var(--soluk2); }
.cihaz.d-dusuk .cihaz-nem .deger, .cihaz.d-yuksek .cihaz-nem .deger { color: #fca5a5; }
.cihaz-sic { font-size: 13px; color: var(--soluk); margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.cihaz-sic svg { width: 14px; height: 14px; }
.spark { width: 100px; height: 40px; flex: none; }
.cihaz-alt { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--soluk); border-top: 1px solid var(--cizgi); padding-top: 9px; margin-top: 8px; gap: 8px; }
.durum-yazi { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.durum-yazi i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.durum-yazi.normal { color: var(--iyi); }
.durum-yazi.normal i { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: nabiz 2.2s infinite; }
.durum-yazi.dusuk, .durum-yazi.yuksek { color: var(--tehlike); }
.durum-yazi.cevrimdisi, .durum-yazi.veri-yok { color: #94a3b8; }
@keyframes nabiz { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.aralik-cizgi { position: relative; height: 5px; border-radius: 3px; background: var(--bg2); margin-top: 10px; }
.aralik-cizgi .bant { position: absolute; top: 0; bottom: 0; background: rgba(52, 211, 153, .3); border-radius: 3px; }
.aralik-cizgi .nokta { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #fff; border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--cizgi2); }

/* ---------- boş durum ---------- */
.bos {
  text-align: center; padding: 56px 20px; border: 1px dashed var(--cizgi2); border-radius: 20px; color: var(--soluk);
  background: rgba(17, 27, 48, .5);
}
.bos svg { width: 44px; height: 44px; color: var(--soluk2); margin-bottom: 10px; }
.bos h3 { color: var(--metin); margin: 0 0 6px; font-size: 17px; }
.bos p { margin: 0 auto 18px; max-width: 420px; font-size: 14px; }

/* ---------- uyarı şeridi ---------- */
.serit {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; margin-bottom: 20px;
  background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .28); color: #fde68a; font-size: 14px;
}
.serit svg { width: 22px; height: 22px; flex: none; }
.serit .bosluk { flex: 1; }

/* ---------- tablo / liste ---------- */
.kart { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r); }
.kart-baslik { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--cizgi); }
.kart-baslik h3 { margin: 0; font-size: 15.5px; }
.kart-govde { padding: 18px; }
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--cizgi); }
.liste li:last-child { border-bottom: 0; }
.liste .ana { flex: 1; min-width: 0; }
.liste .ana b { display: block; font-weight: 600; }
.liste .ana span { color: var(--soluk); font-size: 12.5px; }
.ayar-izgara { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; }
.kod-kutu {
  font-family: var(--mono); font-size: 13px; background: var(--bg2); border: 1px solid var(--cizgi); border-radius: 10px;
  padding: 12px 14px; color: #c7f9ef; overflow-x: auto; white-space: pre;
}
.bilgi { color: var(--soluk); font-size: 13.5px; margin: 0 0 12px; }

/* ---------- modal ---------- */
.perde {
  position: fixed; inset: 0; z-index: 50; background: rgba(3, 7, 16, .66); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px; animation: belir .15s ease-out;
}
.modal {
  width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow: auto;
  background: var(--yuzey); border: 1px solid var(--cizgi2); border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  animation: kay .18s ease-out;
}
.modal.genis { max-width: 920px; }
.modal-baslik { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 0; }
.modal-baslik h2 { margin: 0; font-size: 19px; }
.modal-baslik p { margin: 4px 0 0; color: var(--soluk); font-size: 13.5px; }
.modal-govde { padding: 18px 22px 22px; }
.modal-alt { display: flex; justify-content: flex-end; gap: 8px; padding: 0 22px 22px; flex-wrap: wrap; }
.modal-alt .sol { margin-right: auto; }
.form-hata { color: var(--tehlike); font-size: 13.5px; min-height: 0; }
@keyframes belir { from { opacity: 0; } }
@keyframes kay { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------- detay ---------- */
.detay-ust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.mini { background: var(--bg2); border: 1px solid var(--cizgi); border-radius: 12px; padding: 12px 14px; }
.mini .e { font-size: 12px; color: var(--soluk); }
.mini .d { font-size: 22px; font-weight: 750; margin-top: 2px; }
.mini .d small { font-size: 13px; color: var(--soluk); font-weight: 500; }
.grafik-kutu { position: relative; background: var(--bg2); border: 1px solid var(--cizgi); border-radius: 14px; padding: 10px 6px 4px; }
.grafik { width: 100%; height: 300px; display: block; touch-action: pan-y; }
.grafik .eksen text { fill: var(--soluk2); font-size: 11px; font-family: var(--font); }
.grafik .izgara-c { stroke: rgba(148, 170, 210, .08); }
.ipucu {
  position: absolute; pointer-events: none; background: rgba(10, 17, 32, .95); border: 1px solid var(--cizgi2);
  border-radius: 10px; padding: 8px 10px; font-size: 12.5px; white-space: nowrap; transform: translate(-50%, -110%);
  box-shadow: var(--golge);
}
.ipucu b { font-size: 15px; }
.lejant { display: flex; gap: 16px; font-size: 12.5px; color: var(--soluk); margin: 10px 4px 0; flex-wrap: wrap; }
.lejant span { display: inline-flex; align-items: center; gap: 6px; }
.lejant i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }

/* ---------- bildirim ---------- */
#bildirim { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.tost {
  background: var(--yuzey3); border: 1px solid var(--cizgi2); color: var(--metin); padding: 11px 16px; border-radius: 12px;
  box-shadow: var(--golge); font-size: 14px; animation: kay .2s ease-out; display: flex; gap: 8px; align-items: center;
}
.tost.hata { border-color: rgba(248, 113, 113, .5); }
.tost svg { width: 18px; height: 18px; }

/* ---------- yükleniyor ---------- */
.iskelet { background: linear-gradient(90deg, var(--yuzey) 0%, var(--yuzey2) 50%, var(--yuzey) 100%); background-size: 200% 100%; animation: parilti 1.3s infinite; border-radius: 20px; height: 190px; border: 1px solid var(--cizgi); }
@keyframes parilti { to { background-position: -200% 0; } }
.yenileme { font-size: 12.5px; color: var(--soluk); display: inline-flex; align-items: center; gap: 6px; }
.yenileme i { width: 6px; height: 6px; border-radius: 50%; background: var(--iyi); }

/* ---------- mobil ---------- */
@media (max-width: 860px) {
  .ozet { grid-template-columns: repeat(2, 1fr); }
  .ayar-izgara { grid-template-columns: 1fr; }
  .detay-ust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .ust { padding-left: 14px; padding-right: 14px; }
  .sayfa { padding: 18px 14px calc(50px + env(safe-area-inset-bottom)); }
  .baslik-satir h1 { font-size: 22px; }
  .kisi-metin { display: none; }
  .logo-yazi { font-size: 17px; }
  .ozet { gap: 10px; }
  .ozet-kutu { padding: 12px; gap: 10px; }
  .ozet-ikon { width: 36px; height: 36px; }
  .ozet-deger { font-size: 20px; }
  .izgara { grid-template-columns: 1fr; }
  .cihaz-izgara { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cihaz { padding: 13px 12px 10px; }
  .cihaz-nem .deger { font-size: 30px; }
  .spark { display: none; }
  .perde { padding: 0; place-items: end center; }
  .modal { border-radius: 20px 20px 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom); }
  .grafik { height: 240px; }
  .satir2 { grid-template-columns: 1fr; }
  .btn-yazi-gizle span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ================= açılış animasyonu ================= */
.acilis {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(900px 600px at 50% 40%, #12203a, #070c18 70%);
  transition: opacity 1.2s ease, visibility 1.2s;
}
.acilis.ac-kapan { opacity: 0; visibility: hidden; }
.ac-bolum { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; transition: opacity .9s ease, transform 1.1s ease; }
.ac-bolum1 { animation: acBelir .6s ease-out backwards; }
.ac-asama2 .ac-bolum1 { opacity: 0; transform: scale(.94); }
.ac-bolum2 { opacity: 0; pointer-events: none; }
.ac-asama2 .ac-bolum2 { opacity: 1; }
.ac-sahne { height: min(54vh, 470px); width: auto; max-width: 80vw; overflow: visible; }
.ac-ciz { stroke-dasharray: 1; stroke-dashoffset: 1; animation: acCiz 1.1s cubic-bezier(.6,.1,.3,1) forwards; }
.ac-cam { opacity: 0; animation: acBelir .8s ease-out .9s forwards; }
.ac-spot { opacity: 0; transform-origin: 200px 0; animation: acSpot 1.4s ease-out 3s forwards; }
.ac-eser { opacity: 0; animation: acEser .9s ease-out 3.1s forwards; }
.ac-dolap { opacity: 0; animation: acBelir .6s ease-out .5s forwards; }
.ac-cihaz { opacity: 0; animation: acBelir .6s ease-out 1.1s forwards; }
.ac-cihaz-isik { opacity: 0; animation: acNabiz 1.6s ease-in-out 1.5s infinite; }
.ac-led { opacity: 0; animation: acLed 1s steps(2) 1.3s infinite; }
.ac-akis { stroke-dashoffset: 1; opacity: 0; animation: acAkis 1s linear 1.6s infinite; }
.ac-dalga { opacity: 0; animation: acDalgaGel 1s ease-out 1.8s forwards, acDalga 3s linear infinite; }
.ac-dalga2 { animation-duration: 1s, 4.2s; animation-direction: normal, reverse; }
.ac-damlalar circle { opacity: 0; animation: acDamla 2.2s ease-in infinite; animation-delay: calc(1.8s + var(--g)); }
.ac-marka { margin-top: 18px; font-size: 28px; letter-spacing: .16em; opacity: 0; animation: acYukari .8s ease-out 4s forwards; }
.ac-marka b { font-weight: 800; color: #fff; }
.ac-marka span { font-weight: 300; color: var(--vurgu); margin-left: 4px; }
.ac-alt { margin-top: 6px; color: var(--soluk); font-size: 13px; letter-spacing: .28em; text-transform: uppercase; opacity: 0; animation: acYukari .8s ease-out 4.3s forwards; }
.ac-slogan {
  margin: 22px 0; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  font-weight: 400; font-style: italic; font-size: clamp(38px, 9vw, 76px); letter-spacing: .02em; color: #f5ecd7; white-space: nowrap;
  text-shadow: 0 0 40px rgba(253, 230, 138, .25);
}
.ac-slogan span { display: inline-block; opacity: 0; transform: translateY(14px); filter: blur(6px); }
.ac-asama2 .ac-slogan span { animation: acHarf .7s ease-out forwards; }
.ac-cizgi { width: 0; height: 1px; background: linear-gradient(90deg, transparent, #d6b77a, transparent); transition: width 1.2s ease .2s; }
.ac-asama2 .ac-cizgi { width: min(70vw, 420px); }
.ac-gec {
  position: absolute; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.06); border: 1px solid var(--cizgi2);
  color: var(--soluk); padding: 7px 14px; border-radius: 999px; font-size: 13px; cursor: pointer;
}
.ac-gec:hover { color: var(--metin); }
@keyframes acBelir { from { opacity: 0; } to { opacity: 1; } }
@keyframes acCiz { to { stroke-dashoffset: 0; } }
@keyframes acSpot { from { opacity: 0; transform: scaleY(.3); } to { opacity: 1; transform: scaleY(1); } }
@keyframes acEser { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes acNabiz { 0%, 100% { opacity: .25; } 50% { opacity: .8; } }
@keyframes acLed { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .2; } }
@keyframes acAkis { 0% { opacity: .9; stroke-dashoffset: 1; } 100% { opacity: .9; stroke-dashoffset: 0; } }
@keyframes acDalgaGel { to { opacity: 1; } }
@keyframes acDalga { from { transform: translateX(0); } to { transform: translateX(-80px); } }
@keyframes acDamla { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--x), -170px); } }
@keyframes acYukari { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes acHarf { to { opacity: 1; transform: none; filter: none; } }

/* ================= giriş arka planı: müze salonu ================= */
.muze-arka { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ma-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ma-sahne { transform-origin: 50% 60%; animation: maYakin 40s ease-in-out infinite alternate; }
.ma-spot { transform-box: fill-box; transform-origin: 50% 0; animation: maSpot 7s ease-in-out var(--g) infinite; }
.ma-led { animation: acLed 1.4s steps(2) infinite; }
.ma-toz { position: absolute; inset: 0; }
.ma-toz i { position: absolute; border-radius: 50%; background: #fde68a; filter: blur(.4px); animation: maToz linear infinite; }
.ma-perde { position: absolute; inset: 0; background: radial-gradient(ellipse 55% 65% at 50% 50%, rgba(10,17,32,.55), rgba(10,17,32,.25) 80%), linear-gradient(180deg, rgba(10,17,32,.05), rgba(10,17,32,.45)); }
@keyframes maYakin { from { transform: scale(1) translateX(0); } to { transform: scale(1.09) translateX(-1.5%); } }
@keyframes maSpot { 0%, 100% { opacity: .65; transform: skewX(0); } 50% { opacity: 1; transform: skewX(-2deg); } }
@keyframes maToz { 0% { transform: translate(0, 0); } 50% { transform: translate(18px, -40px); } 100% { transform: translate(-10px, -90px); } }
.giris { position: relative; }
.giris-kart { position: relative; z-index: 1; animation: kay .6s ease-out; }

.giris-yukle { display: flex; justify-content: center; margin-top: 14px; }
.giris-yukle .btn span { display: inline !important; }
.zil-btn { border-radius: 999px; }
.zil-btn.zil-acik { color: var(--vurgu); border-color: rgba(45, 212, 191, .4); background: var(--vurgu-zemin); }
.bildirim-serit { background: rgba(45, 212, 191, .08); border-color: rgba(45, 212, 191, .3); color: #ccfbf1; }
.kart-sil { color: var(--soluk2); cursor: pointer; transition: color .15s, background .15s; }
.kart-sil:hover { color: #fca5a5; background: rgba(248, 113, 113, .14); }

/* iPhone ekleme rehberi */
.ios-rehber { display: flex; flex-direction: column; gap: 12px; }
.ios-adim { display: grid; grid-template-columns: 28px 52px 1fr; gap: 12px; align-items: center; background: var(--bg2); border: 1px solid var(--cizgi); border-radius: 14px; padding: 12px; }
.ios-adim b { font-size: 15.5px; }
.ios-no { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #04211d; background: linear-gradient(135deg, var(--vurgu), var(--vurgu2)); }
.ios-simge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--yuzey3); color: #60a5fa; }
.ios-simge svg { width: 30px; height: 30px; }
.ios-alt { color: var(--soluk); font-size: 13px; margin-top: 3px; line-height: 1.5; }
.ios-mini { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--yuzey3); color: #60a5fa; vertical-align: middle; }
.ios-mini svg { width: 15px; height: 15px; }
.ios-ok { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--vurgu); font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.ios-ok svg { width: 26px; height: 26px; animation: iosOk 1.2s ease-in-out infinite; }
@keyframes iosOk { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

.ios-cubuk { border-radius: 16px; overflow: hidden; border: 1px solid var(--cizgi2); }
.ios-cubuk svg { display: block; width: 100%; height: auto; }
.ios-halka { transform-box: fill-box; transform-origin: center; animation: iosHalka 1.4s ease-in-out infinite; }
@keyframes iosHalka { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.18); opacity: .55; } }

/* yeni cihazlar */
.yeni-kart { margin-bottom: 22px; border-color: rgba(56, 189, 248, .35); background: linear-gradient(180deg, rgba(56, 189, 248, .06), var(--yuzey)); }
.yeni-kart h3 { display: flex; align-items: center; gap: 6px; }
.yeni-kart h3 svg { width: 18px; height: 18px; color: var(--vurgu2); }
.yeni-kart .liste li { flex-wrap: wrap; }
.tip-ikon.canli { color: var(--iyi); box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); animation: nabiz 2.2s infinite; }
.sinyal { display: inline-flex; align-items: flex-end; gap: 2px; margin-left: 6px; vertical-align: middle; }
.sinyal i { width: 4px; border-radius: 1px; display: inline-block; }

.bakim-serit { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .45); color: #fde68a; }
textarea.girdi { font: inherit; line-height: 1.5; color: var(--metin); }

/* ================= mevsim ve gün/gece ================= */
.mevsim { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.mevsim canvas, .mevsim-on canvas { position: absolute; inset: 0; }
.mevsim-on { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; opacity: .85; }
.sayfa { position: relative; z-index: 2; }
.giris-kart { z-index: 3; }
.mv-gok { position: absolute; inset: 0; }

/* gökyüzü renk tonları */
html[data-zaman="gece"] body {
  background: radial-gradient(1000px 600px at 80% -10%, rgba(99, 102, 241, .14), transparent 60%),
              linear-gradient(180deg, #050914 0%, #0a1120 55%, #0a1120 100%);
  background-attachment: fixed;
}
html[data-zaman="gunduz"][data-mevsim="kis"] body {
  background: radial-gradient(1100px 650px at 75% -15%, rgba(186, 230, 253, .30), transparent 60%),
              radial-gradient(800px 500px at -10% 110%, rgba(203, 213, 225, .14), transparent 60%), var(--bg);
  background-attachment: fixed;
}
html[data-zaman="gunduz"][data-mevsim="ilkbahar"] body {
  background: radial-gradient(1100px 650px at 80% -15%, rgba(253, 230, 138, .20), transparent 60%),
              radial-gradient(900px 550px at -10% 110%, rgba(134, 239, 172, .22), transparent 60%),
              radial-gradient(700px 400px at 30% -10%, rgba(249, 168, 212, .16), transparent 60%), var(--bg);
  background-attachment: fixed;
}
html[data-zaman="gunduz"][data-mevsim="yaz"] body {
  background: radial-gradient(1200px 700px at 85% -20%, rgba(253, 224, 71, .34), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(56, 189, 248, .16), transparent 60%), var(--bg);
  background-attachment: fixed;
}
html[data-zaman="gunduz"][data-mevsim="sonbahar"] body {
  background: radial-gradient(1100px 650px at 80% -15%, rgba(251, 146, 60, .30), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(180, 83, 9, .22), transparent 60%), var(--bg);
  background-attachment: fixed;
}

/* güneş */
.mv-gunes { position: absolute; right: -50px; top: 10px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 240, 138, .55) 0%, rgba(253, 224, 71, .22) 28%, rgba(253, 224, 71, 0) 65%); }
.mv-gunes-yok { opacity: .75; }
.mv-gunes-kis { opacity: .45; } .mv-gunes-ilkbahar { opacity: .7; } .mv-gunes-sonbahar { opacity: .6; filter: hue-rotate(-18deg); } .mv-gunes-yaz { opacity: 1; }
.mv-isinlar { position: absolute; inset: -60px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(254, 240, 138, .10) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%); mask: radial-gradient(circle, #000 20%, transparent 70%);
  animation: mvDon 90s linear infinite; }
@keyframes mvDon { to { transform: rotate(360deg); } }

/* ay */
.mv-ay { position: absolute; right: 9%; top: 90px; width: 54px; height: 54px; border-radius: 50%;
  box-shadow: 14px -8px 0 0 #f1f5f9; transform: rotate(-20deg);
  filter: drop-shadow(0 0 18px rgba(241, 245, 249, .45)); }
@media (max-width: 560px) { .mv-ay { top: 74px; width: 40px; height: 40px; box-shadow: 10px -6px 0 0 #f1f5f9; } .mv-gunes { width: 220px; height: 220px; } }

/* karşılama */
.karsilama { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 18px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(45, 212, 191, .12), rgba(56, 189, 248, .06)); border: 1px solid rgba(45, 212, 191, .28); animation: kay .5s ease-out; }
.karsilama.k-alarm { background: linear-gradient(135deg, rgba(248, 113, 113, .14), rgba(248, 113, 113, .04)); border-color: rgba(248, 113, 113, .35); }
.karsilama.k-uyari { background: linear-gradient(135deg, rgba(251, 191, 36, .12), rgba(251, 191, 36, .03)); border-color: rgba(251, 191, 36, .3); }
.k-simge { font-size: 30px; line-height: 1; }
.k-selam { font-size: 18px; } .k-selam b { font-weight: 750; }
.k-mesaj { color: var(--soluk); font-size: 14px; margin-top: 2px; }
.k-seri { color: #fde68a; font-weight: 600; }
button.kisi-avatar { border: 0; cursor: pointer; padding: 0; }
/* kutlama */
.kutlama { position: relative; text-align: center; padding: 10px 6px 6px; overflow: hidden; }
.konfeti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.kt-kupa { font-size: 64px; line-height: 1; animation: ktZipla 1s cubic-bezier(.3,1.6,.5,1) both; filter: drop-shadow(0 8px 24px rgba(251, 191, 36, .45)); }
.kt-gun { margin-top: 10px; font-size: 18px; color: var(--soluk); } .kt-gun b { font-size: 54px; color: #fde68a; font-weight: 800; letter-spacing: -.02em; }
.kt-baslik { margin: 2px 0 8px; font-size: 26px; }
.kt-metin { color: var(--soluk); max-width: 360px; margin: 0 auto 18px; line-height: 1.55; }
@keyframes ktZipla { 0% { transform: scale(.2) rotate(-20deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.k-muze { color: var(--metin); font-weight: 600; }
.kt-muze { color: var(--vurgu); font-weight: 600; font-size: 14px; margin-bottom: 6px; }

/* ===== ilk giriş karşılaması ===== */
.ilk-karsilama { position: fixed; inset: 0; z-index: 9000; background: var(--bg); display: flex; padding: 28px; opacity: 0; transition: opacity .6s ease; overflow: auto; }
.ilk-karsilama.ik-acik { opacity: 1; }
.ilk-karsilama.ik-kapan { opacity: 0; }
.ilk-karsilama > svg, .ilk-karsilama > .muze-arka { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .6; pointer-events: none; }
.ik-icerik { position: relative; max-width: 440px; width: 100%; margin: auto; text-align: center; }
.ik-icerik > * { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.ik-acik .ik-icerik > * { opacity: 1; transform: none; }
.ik-acik .ik-icerik > :nth-child(2) { transition-delay: .5s; }
.ik-acik .ik-icerik > :nth-child(3) { transition-delay: 1.3s; }
.ik-acik .ik-icerik > :nth-child(4) { transition-delay: 2s; }
.ik-acik .ik-icerik > :nth-child(5) { transition-delay: 2.8s; }
.ik-acik .ik-icerik > :nth-child(6) { transition-delay: 3.6s; }
.ik-ust { font-size: 18px; color: var(--soluk); }
.ik-isim { margin: 6px 0 18px; font-size: clamp(34px, 9vw, 48px); font-weight: 700; letter-spacing: -.5px; background: linear-gradient(90deg, var(--vurgu), var(--vurgu2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ik-metin { margin: 0 0 8px; font-size: 18px; color: var(--metin); }
.ik-muze { margin: 0 0 26px; font-size: 16px; line-height: 1.5; color: var(--soluk); }
.ik-muze b { color: var(--metin); font-size: 18px; }
.ik-liste { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.ik-liste li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-k); background: var(--yuzey); border: 1px solid var(--cizgi); font-size: 15px; }
.ik-liste svg { width: 20px; height: 20px; flex: none; color: var(--vurgu); }
.ik-btn { width: 100%; height: 52px; font-size: 16px; }
