:root{
    --bg:#0b0f17; --panel:#141b26; --line:#233042;
    --txt:#e7ecf3; --muted:#8a98ab; --c:#3b82f6;
}
*{box-sizing:border-box}
html,body{margin:0}
[hidden]{display:none !important} /* display:flex vb. kurallar hidden'ı ezmesin */
body{
    font-family:"Poppins",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
    background:radial-gradient(1200px 600px at 50% -10%,#182234,var(--bg));
    color:var(--txt); min-height:100vh; -webkit-font-smoothing:antialiased;
}

/* ---- SVG ikonlar ---- */
svg{display:inline-block; vertical-align:middle}
.ic svg{width:26px; height:26px}
.wrap{max-width:900px; margin:0 auto; padding:clamp(24px,5vw,64px) 20px}
.wrap.center{display:flex; align-items:center; justify-content:center; min-height:100vh}
.muted{color:var(--muted)}
code{background:#0c121c; padding:2px 6px; border-radius:6px; border:1px solid var(--line)}

/* ---- Biyografi (ana sayfa) ---- */
.bio-wrap{min-height:100vh; display:flex; flex-direction:column; justify-content:center}
.bio{
    max-width:560px; margin:0 auto; text-align:center;
    background:var(--panel); border:1px solid var(--line); border-radius:24px;
    padding:clamp(28px,6vw,48px); box-shadow:0 30px 80px rgba(0,0,0,.45);
    animation:rise .5s ease both;
}
@keyframes rise{from{opacity:0; transform:translateY(14px)} to{opacity:1; transform:none}}
.bio .badge{margin-bottom:20px}
.soon{
    display:inline-block; font-size:12px; font-weight:600; letter-spacing:.5px;
    color:#a5b4fc; background:rgba(99,102,241,.14); border:1px solid rgba(99,102,241,.35);
    padding:5px 12px; border-radius:999px; margin-bottom:14px;
}
.bio h1{font-size:clamp(28px,6vw,40px); margin:0 0 6px}
.tagline{color:#a9b6c8; font-size:16px; font-weight:500; margin:0 0 20px}
.bio-text{color:var(--muted); font-size:16px; line-height:1.7; margin:0 auto; max-width:44ch}
.facts{
    list-style:none; padding:0; margin:26px 0 0; display:flex; flex-wrap:wrap;
    gap:10px; justify-content:center;
}
.facts li{
    display:inline-flex; align-items:center; gap:8px; font-size:14px; color:var(--txt);
    background:#0c121c; border:1px solid var(--line); padding:8px 14px; border-radius:999px;
}
.facts svg{width:16px; height:16px; color:#8b5cf6}
.links{display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-top:22px}

/* ---- Hero ---- */
.hero{text-align:center; margin-bottom:40px}
.badge{
    width:64px; height:64px; margin:0 auto 18px; border-radius:20px;
    display:grid; place-items:center; font-weight:700; letter-spacing:1px;
    background:linear-gradient(135deg,#3b82f6,#8b5cf6); color:#fff; font-size:20px;
    box-shadow:0 10px 30px rgba(59,130,246,.35);
}
.hero h1{font-size:clamp(28px,5vw,44px); margin:0 0 8px}
.lead{color:var(--muted); font-size:18px; margin:0}

/* ---- Panel kartları ---- */
.grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px}
.card{
    display:flex; align-items:center; gap:14px; text-decoration:none; color:inherit;
    background:var(--panel); border:1px solid var(--line); border-radius:16px;
    padding:18px 20px; transition:.18s ease; position:relative; overflow:hidden;
}
.card::before{content:""; position:absolute; inset:0 auto 0 0; width:4px; background:var(--c)}
.card:hover{transform:translateY(-3px); border-color:var(--c); box-shadow:0 12px 28px rgba(0,0,0,.35)}
.card .ic{color:var(--c); display:flex}
.card .ic svg{width:28px; height:28px}
.card .ct{display:flex; flex-direction:column; flex:1}
.card .ct strong{font-size:17px}
.card .ct small{color:var(--muted)}
.card .go{color:var(--c); opacity:.55; transition:.18s; display:flex}
.card .go svg{width:20px; height:20px}
.card:hover .go{opacity:1; transform:translateX(3px)}

/* ---- Footer ---- */
.foot{display:flex; justify-content:space-between; margin-top:44px; color:var(--muted); font-size:14px}
.lock{color:#10b981; display:inline-flex; align-items:center; gap:6px}
.lock svg{width:15px; height:15px}
.pill{
    display:inline-flex; align-items:center; gap:7px;
    text-decoration:none; color:var(--txt); border:1px solid var(--line);
    padding:7px 14px; border-radius:999px; font-size:14px; background:var(--panel); transition:.15s;
}
.pill svg{width:16px; height:16px}
.pill:hover{border-color:var(--c)}

/* ---- Giriş ---- */
.auth{
    width:100%; max-width:380px; background:var(--panel); border:1px solid var(--line);
    border-radius:20px; padding:28px; box-shadow:0 20px 60px rgba(0,0,0,.4);
    border-top:3px solid var(--c);
}
.auth-head{text-align:center; margin-bottom:18px}
.auth-head .ic{color:var(--c); display:inline-flex}
.auth-head .ic svg{width:38px; height:38px}
.auth-head h1{margin:8px 0 4px; font-size:24px}
.form{display:flex; flex-direction:column; gap:10px}
.form label{font-size:13px; color:var(--muted)}
.form label:not(.check){text-align:center}
.form input{
    background:#0c121c; border:1px solid var(--line); color:var(--txt);
    padding:13px 14px; border-radius:12px; font-size:18px; letter-spacing:2px; text-align:center;
}
.form input:focus{outline:none; border-color:var(--c); box-shadow:0 0 0 3px color-mix(in srgb,var(--c) 25%,transparent)}
.form button{
    margin-top:6px; background:var(--c); color:#fff; border:0; padding:13px;
    border-radius:12px; font-size:16px; font-weight:600; cursor:pointer; transition:.15s;
}
.form button:hover{filter:brightness(1.08)}
.check{display:flex; flex-direction:row!important; align-items:center; gap:9px; cursor:pointer;
    font-size:13.5px; color:var(--muted); text-align:left; letter-spacing:0}
.check input{width:18px; height:18px; accent-color:var(--c); cursor:pointer; margin:0; flex:0 0 auto}
.check span{flex:1}
.resend{margin-top:12px; text-align:center}
.link{background:none!important; border:0; color:var(--muted); cursor:pointer; font-size:14px; padding:0!important}
.link:hover{color:var(--txt)}
.back{display:flex; align-items:center; justify-content:center; gap:6px; margin-top:16px; color:var(--muted); text-decoration:none; font-size:14px}
.back svg{width:15px; height:15px}
.back:hover{color:var(--txt)}
.flash{padding:11px 14px; border-radius:12px; font-size:14px; margin-bottom:14px}
.flash.ok{background:rgba(16,185,129,.12); color:#34d399; border:1px solid rgba(16,185,129,.3)}
.flash.err{background:rgba(239,68,68,.12); color:#f87171; border:1px solid rgba(239,68,68,.3)}

/* ---- Panel üst ---- */
.panel-top{
    display:flex; justify-content:space-between; align-items:center; gap:16px;
    background:var(--panel); border:1px solid var(--line); border-left:4px solid var(--c);
    border-radius:16px; padding:18px 20px; margin-bottom:30px; flex-wrap:wrap;
}
.pt-left{display:flex; align-items:center; gap:14px}
.pt-left .ic{color:var(--c); display:inline-flex}
.pt-left .ic svg{width:32px; height:32px}
.pt-left h1{margin:0; font-size:22px}
.pt-right{display:flex; gap:8px}
.empty{text-align:center; padding:60px 20px; color:var(--muted)}
.empty-ic{color:var(--c); margin:0}
.empty-ic svg{width:54px; height:54px}
.empty h2{color:var(--txt); margin:14px 0 8px}

/* ==================================================================
   2026 GİRİŞ EKRANI
   ================================================================== */
@property --angle { syntax:'<angle>'; inherits:false; initial-value:0deg; }

.login{
    position:fixed; inset:0; display:flex; align-items:center; justify-content:center;
    padding:22px; overflow:auto; background:#0a0d14;
}

/* ---- Sade arka plan: tek, çok hafif accent parıltı ---- */
.aurora{position:fixed; inset:0; overflow:hidden; z-index:0}
.blob{position:absolute; border-radius:50%; filter:blur(130px); will-change:transform}
.blob.b1{width:60vw; height:60vw; background:var(--c); opacity:.10;
    top:-22vw; left:50%; transform:translateX(-50%); animation:drift1 26s ease-in-out infinite}
.blob.b2, .blob.b3, .noise{display:none}
@keyframes drift1{50%{transform:translateX(-50%) translateY(6vw) scale(1.08)}}

/* ---- Cam kart ---- */
.glass{
    position:relative; z-index:1; width:100%; max-width:400px;
    padding:38px 32px 26px; border-radius:28px;
    background:linear-gradient(160deg, rgba(23,30,46,.72), rgba(12,17,28,.78));
    backdrop-filter:blur(24px) saturate(150%); -webkit-backdrop-filter:blur(24px) saturate(150%);
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
    animation:pop .6s cubic-bezier(.2,.9,.3,1.2) both;
}
@keyframes pop{from{opacity:0; transform:translateY(20px) scale(.96)} to{opacity:1; transform:none}}
/* dönen gradyan kenar ışığı */
.glass::before{
    content:""; position:absolute; inset:0; border-radius:inherit; padding:1px;
    background:linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.02) 45%);
    -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite:xor; mask-composite:exclude;
    pointer-events:none;
}

/* ---- Marka / logo ---- */
.brand{text-align:center; margin-bottom:24px}
.logo{
    width:72px; height:72px; margin:0 auto 16px; border-radius:22px; display:grid; place-items:center;
    color:#fff; background:linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 60%, #000));
    box-shadow:0 10px 26px color-mix(in srgb, var(--c) 26%, transparent), inset 0 1px 0 rgba(255,255,255,.35);
    animation:float 4s ease-in-out infinite;
}
.logo svg{width:34px; height:34px}
@keyframes float{50%{transform:translateY(-6px)}}
.brand h1{margin:0 0 6px; font-size:27px; font-weight:700; letter-spacing:-.5px}
.brand .sub{margin:0; color:#93a1b8; font-size:14.5px}

/* ---- Flash ---- */
.login .flash{display:flex; align-items:center; gap:9px; padding:11px 14px; border-radius:14px; font-size:13.5px; margin-bottom:16px}
.login .flash svg{width:17px; height:17px; flex:0 0 auto}
.login .flash.ok{background:rgba(16,185,129,.12); color:#4ade80; border:1px solid rgba(16,185,129,.28)}
.login .flash.err{background:rgba(244,63,94,.12); color:#fb7185; border:1px solid rgba(244,63,94,.28)}

/* ---- Form ---- */
.login .form{display:flex; flex-direction:column; gap:16px}

/* telefon alanı */
.field{
    display:flex; align-items:center; gap:10px; padding:0 16px; height:58px;
    background:rgba(8,12,20,.6); border:1.5px solid rgba(255,255,255,.09); border-radius:16px;
    transition:border-color .2s, box-shadow .2s, background .2s;
}
.field:focus-within{border-color:var(--c); background:rgba(8,12,20,.85);
    box-shadow:0 8px 26px -12px color-mix(in srgb, var(--c) 55%, transparent)}
.field .prefix{color:#8595ac; font-weight:600; font-size:16px; padding-right:10px; border-right:1px solid rgba(255,255,255,.1)}
.field input{
    flex:1; background:none; border:0; outline:0; color:#fff; font-family:inherit;
    font-size:18px; letter-spacing:1.5px; text-align:left;
}
.field input::placeholder{color:#4c5a72; letter-spacing:1.5px}
.login .field input:focus{box-shadow:none; outline:none; border:0} /* iç halkayı iptal et -> tek çizgi */

/* toggle beni hatırla */
.switch{display:flex; align-items:center; gap:11px; cursor:pointer; user-select:none; padding:2px 2px}
.switch input{position:absolute; opacity:0; width:0; height:0}
.switch .track{
    width:46px; height:27px; border-radius:999px; background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.1); position:relative; transition:.25s; flex:0 0 auto;
}
.switch .thumb{
    position:absolute; top:2.5px; left:3px; width:20px; height:20px; border-radius:50%;
    background:#fff; transition:.28s cubic-bezier(.4,1.4,.5,1); box-shadow:0 2px 6px rgba(0,0,0,.4);
}
.switch input:checked + .track{background:var(--c); border-color:transparent;
    box-shadow:0 0 16px color-mix(in srgb, var(--c) 55%, transparent)}
.switch input:checked + .track .thumb{transform:translateX(19px)}
.switch input:focus-visible + .track{box-shadow:0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent)}
.switch-txt{color:#c4cede; font-size:14px}

/* CTA buton */
.login .cta{
    position:relative; overflow:hidden; margin-top:4px; height:54px; border:0; border-radius:16px; cursor:pointer;
    display:flex; align-items:center; justify-content:center; gap:9px;
    font-family:inherit; font-size:16px; font-weight:600; color:#140c02;
    background:linear-gradient(135deg, color-mix(in srgb, var(--c) 88%, #fff), var(--c));
    box-shadow:0 12px 28px color-mix(in srgb, var(--c) 40%, transparent);
    transition:transform .15s, box-shadow .2s, filter .2s;
}
.login .cta svg{width:19px; height:19px}
.login .cta:hover{transform:translateY(-2px); box-shadow:0 16px 36px color-mix(in srgb, var(--c) 52%, transparent); filter:brightness(1.05)}
.login .cta:active{transform:translateY(0)}
.login .cta::after{content:""; position:absolute; top:0; left:-120%; width:60%; height:100%;
    background:linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform:skewX(-18deg);}
.login .cta:hover::after{left:130%; transition:left .7s ease}

/* OTP kutuları */
.otp{display:flex; gap:9px; justify-content:center; margin:4px 0}
.login .otp-box{
    width:100%; max-width:52px; aspect-ratio:1/1.15; text-align:center; font-size:24px; font-weight:600; color:#fff;
    background:rgba(8,12,20,.6); border:1.5px solid rgba(255,255,255,.09); border-radius:14px; outline:0;
    font-family:inherit; transition:.18s; caret-color:var(--c);
}
.login .otp-box:focus{border-color:var(--c); background:rgba(8,12,20,.9);
    box-shadow:0 8px 22px -12px color-mix(in srgb, var(--c) 55%, transparent); transform:translateY(-2px)}

/* alt linkler */
.login .resend{text-align:center; margin-top:14px}
.login .link{background:none; border:0; color:#8595ac; cursor:pointer; font-family:inherit; font-size:13.5px; transition:.15s}
.login .link:hover{color:var(--c)}
.secure{display:flex; align-items:center; justify-content:center; gap:7px; margin-top:22px;
    color:#5e6c85; font-size:12.5px}
.secure svg{width:14px; height:14px; color:#10b981}

@media (max-width:420px){
    .glass{padding:30px 22px 22px}
    .otp{gap:6px}
    .login .otp-box{font-size:20px}
}

/* ==================================================================
   NOTLAR UYGULAMASI (iCloud tarzı)
   ================================================================== */
.notes-app{position:fixed; inset:0; display:flex; background:#0b0f17; color:var(--txt)}

/* --- SOL: liste --- */
.n-list{width:340px; flex:0 0 340px; display:flex; flex-direction:column; background:#0d121c; border-right:1px solid var(--line)}
.n-list-top{display:flex; align-items:center; justify-content:space-between; padding:16px 16px 10px}
.n-brand{display:flex; align-items:center; gap:9px; font-weight:600; font-size:18px}
.n-brand svg{width:20px; height:20px; color:var(--c)}
.n-new{width:34px; height:34px; border-radius:10px; border:1px solid var(--line); background:#141b26;
    color:var(--c); cursor:pointer; display:grid; place-items:center; transition:.15s}
.n-new svg{width:18px; height:18px}
.n-new:hover{border-color:var(--c); background:color-mix(in srgb, var(--c) 12%, #141b26)}
.n-search{display:flex; align-items:center; gap:8px; margin:4px 12px 8px; padding:0 12px; height:40px;
    background:#0a0e16; border:1px solid var(--line); border-radius:12px}
.n-search svg{width:16px; height:16px; color:var(--muted)}
.n-search input{flex:1; background:none; border:0; outline:0; color:var(--txt); font-family:inherit; font-size:14px}
.n-items{list-style:none; margin:0; padding:4px 8px; overflow-y:auto; flex:1}
.n-item{padding:11px 12px; border-radius:12px; cursor:pointer; margin-bottom:2px; border:1px solid transparent}
.n-item:hover{background:#131a26}
.n-item.dragging{opacity:.45; background:#131a26; cursor:grabbing}
.n-item.active{background:color-mix(in srgb, var(--c) 15%, #131a26); border-color:color-mix(in srgb, var(--c) 30%, transparent)}
.n-item-title{font-weight:600; font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.n-item-sub{font-size:13px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px}
.n-item-time{color:var(--txt); opacity:.7}
.n-empty-list{color:var(--muted); text-align:center; padding:30px 20px; font-size:14px; line-height:1.6}
.n-logout{display:flex; align-items:center; gap:8px; padding:14px 18px; border-top:1px solid var(--line);
    color:var(--muted); text-decoration:none; font-size:14px}
.n-logout svg{width:16px; height:16px}
.n-logout:hover{color:var(--c)}

/* --- SAĞ: editör --- */
.n-editor{flex:1; display:flex; flex-direction:column; position:relative; min-width:0}
.n-editor-empty{margin:auto; text-align:center; color:var(--muted)}
.n-editor-empty svg{width:58px; height:58px; opacity:.3; color:var(--c)}
.n-editor-empty p{margin-top:14px; font-size:15px}
.n-editor-body{display:flex; flex-direction:column; height:100%; width:100%; max-width:820px; margin:0 auto; padding:0 28px}
.n-toolbar{display:flex; align-items:center; justify-content:space-between; padding:16px 0 4px}
.n-date{color:var(--muted); font-size:13px}
.n-back{display:none; align-items:center; gap:5px; background:none; border:0; color:var(--c);
    cursor:pointer; font-family:inherit; font-size:14px; padding:4px}
.n-back svg{width:16px; height:16px}
.n-del{background:none; border:0; color:var(--muted); cursor:pointer; padding:6px; border-radius:8px; transition:.15s; margin-left:auto}
.n-del svg{width:18px; height:18px}
.n-del:hover{color:#f87171; background:rgba(248,113,113,.1)}
.n-title{background:none; border:0; outline:0; color:var(--txt); font-family:inherit; font-weight:700; font-size:27px; padding:8px 0}
.n-title::placeholder{color:#3a4657}
.n-content{flex:1; background:none; border:0; outline:0; resize:none; color:#d4dceb; font-family:inherit;
    font-size:16px; line-height:1.7; padding:6px 0 30px}
.n-content::placeholder{color:#3a4657}
.n-saved{position:absolute; bottom:14px; right:24px; font-size:12px; color:var(--muted)}

@media (max-width:720px){
    .n-list{width:100%; flex-basis:100%; border-right:0}
    .n-editor{position:fixed; inset:0; z-index:5; background:#0b0f17; transform:translateX(100%); transition:transform .25s ease}
    .notes-app.show-editor .n-editor{transform:none}
    .n-back{display:inline-flex}
}
