/* FİDESK — mobil başlangıç ekranı */
:root { --zemin: #070b16; --yuzey: #111a30; --yuzey2: #18233f; --cizgi: rgba(160, 175, 210, .14); --yazi: #eef1f8; --ikincil: #9aa6c2; --marka: #e11d2e; --marka2: #b8111f; --yesil: #22c55e; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--zemin); color: var(--yazi); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
body { min-height: 100dvh; background: radial-gradient(900px 420px at 50% -120px, rgba(225, 29, 46, .22), transparent 70%), var(--zemin); }
button, input { font: inherit; color: inherit; }
.md { max-width: 560px; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom)); position: relative; }
.md-ust { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.md-marka { height: 26px; width: auto; }
.md-ikon { width: 42px; height: 42px; border: 0; border-radius: 12px; background: transparent; font-size: 22px; cursor: pointer; }
.md-ikon:active { background: var(--yuzey); }
.md-menu { position: absolute; right: 16px; top: 60px; z-index: 20; min-width: 240px; padding: 6px; border-radius: 14px; background: var(--yuzey2); border: 1px solid var(--cizgi); box-shadow: 0 18px 48px rgba(0,0,0,.5); display: grid; }
.md-menu[hidden] { display: none; }
.md-menu button, .md-menu a { text-align: left; padding: 12px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--yazi); text-decoration: none; cursor: pointer; }
.md-menu button:active, .md-menu a:active { background: rgba(255,255,255,.06); }
.md-govde { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 10px; }
.md-kart, .md-bolum { min-width: 0; }
.md-kart { background: linear-gradient(180deg, rgba(255,255,255,.03), transparent), var(--yuzey); border: 1px solid var(--cizgi); border-radius: 20px; padding: 18px; }
.md-baglan h1 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.01em; }
.md-alt { margin: 0 0 14px; color: var(--ikincil); font-size: 14px; }
.md-girdi { display: flex; gap: 8px; }
.md-girdi input { flex: 1; min-width: 0; width: 100%; height: 58px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--cizgi); background: #0b1224; font: 700 24px/1 ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .06em; outline: none; }
.md-girdi input:focus { border-color: var(--marka); box-shadow: 0 0 0 4px rgba(225, 29, 46, .18); }
.md-girdi input::placeholder { color: #4d5875; }
.md-git { width: 58px; height: 58px; flex: none; border: 0; border-radius: 14px; background: linear-gradient(180deg, #ff3646, var(--marka2)); color: #fff; font-size: 26px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 22px rgba(225, 29, 46, .35); }
.md-git:active { transform: scale(.97); }
.md-yukleniyor { font-size: 0; position: relative; }
.md-yukleniyor::after { content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: md-don .8s linear infinite; }
@keyframes md-don { to { transform: rotate(360deg); } }
.md-sec { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--ikincil); font-size: 14px; }
.md-sec input { width: 18px; height: 18px; accent-color: var(--marka); }
.md-hata { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(225, 29, 46, .12); border: 1px solid rgba(225, 29, 46, .35); color: #ffb3ba; font-size: 14px; }
.md-hata[hidden] { display: none; }
.md-bolum__bas { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 8px; }
.md-bolum h2 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ikincil); }
.md-kucuk { border: 0; background: transparent; color: var(--ikincil); font-size: 13px; cursor: pointer; }
.md-son { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.md-son li { position: relative; }
.md-son__oge { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 44px 12px 12px; border: 1px solid var(--cizgi); border-radius: 16px; background: var(--yuzey); text-align: left; cursor: pointer; }
.md-son__oge:active { background: var(--yuzey2); }
.md-son__ikon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #0b1224; font-size: 20px; position: relative; }
.md-son__ikon::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: #4b5570; border: 2px solid var(--yuzey); }
.md-son__ikon.md-acik::after { background: var(--yesil); }
.md-son__metin { display: grid; min-width: 0; }
.md-son__metin b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-son__metin small { color: var(--ikincil); font-size: 12.5px; }
.md-son__sil { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--ikincil); font-size: 20px; cursor: pointer; }
.md-bilgi .md-satir { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ikincil); }
.md-rozet { flex: none; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.08); color: var(--yazi); }
.md-rozet--lisans { background: rgba(34, 197, 94, .16); color: #86efac; }
.md-ozellik { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ikincil); }
.md-perde { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; background: rgba(3, 6, 14, .6); backdrop-filter: blur(2px); }
.md-perde[hidden] { display: none; }
.md-pencere { width: 100%; max-width: 560px; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain; margin: 0 auto; padding: 20px 18px max(20px, env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--yuzey2); border: 1px solid var(--cizgi); }
.md-pencere[hidden] { display: none; }
.md-pencere h2 { margin: 0 0 6px; font-size: 18px; }
.md-pencere form { display: grid; gap: 10px; }
.md-pencere input { height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--cizgi); background: #0b1224; font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; outline: none; }
.md-dugme { height: 50px; border: 0; border-radius: 12px; background: var(--marka); color: #fff; font-weight: 700; cursor: pointer; }
.md-dugme--ikincil { width: 100%; background: transparent; border: 1px solid var(--cizgi); color: var(--yazi); }
.md-kapat { width: 100%; margin-top: 12px; height: 46px; border: 0; border-radius: 12px; background: rgba(255,255,255,.06); cursor: pointer; }
.md-tost { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px; background: #1c2747; border: 1px solid var(--cizgi); font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.md-tost[hidden] { display: none; }
