:root {
    --bs-body-bg: #05070d;
    --bs-body-color: #e8eef9;
    --bg: #05070d;
    --bg-soft: #0a0f1c;
    --surface: rgba(255, 255, 255, .04);
    --surface-2: rgba(255, 255, 255, .06);
    --border: rgba(148, 178, 255, .14);
    --border-strong: rgba(120, 170, 255, .4);
    --accent: #4f8cff;
    --accent-2: #38bdf8;
    --accent-soft: #a8d8ff;
    --grad: linear-gradient(135deg, #4f8cff 0%, #38bdf8 100%);
    --grad-text: linear-gradient(120deg, #7db8ff, #a8e4ff);
    --text: #e8eef9;
    --muted: #93a1bd;
    --ok: #3ddc97;
    --err: #ff6b6b;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(0, 0, 0, .5);
    --glow: 0 0 40px rgba(79, 140, 255, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    background:
        radial-gradient(1100px 480px at 85% -10%, rgba(79, 140, 255, .14), transparent 60%),
        radial-gradient(800px 380px at 5% 110%, rgba(56, 189, 248, .1), transparent 60%),
        var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}
a { color: var(--accent-soft); text-decoration: none; transition: .2s; }
a:hover { color: #d2ecff; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.muted { color: var(--muted); }
.center { text-align: center; }
.text-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.container { max-width: 1160px; }

/* ============ NAVBAR ============ */
.site-header { position: relative; z-index: 100; }
.navbar#mainNav {
    padding: 1rem 0;
    transition: padding .3s ease, background .3s ease, box-shadow .3s ease;
    background: transparent;
}
.navbar#mainNav.scrolled {
    padding: .55rem 0;
    background: rgba(5, 7, 13, .82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark img { height: 42px; filter: drop-shadow(0 0 14px rgba(79, 140, 255, .5)); }
.brand-text { font-size: 1.35rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.brand-text span {
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
#mainNav .nav-link {
    color: var(--muted); font-weight: 600; font-size: .95rem;
    padding: .5rem .9rem !important; border-radius: 10px; margin: 0 .1rem;
}
#mainNav .nav-link:hover, #mainNav .nav-link.active { color: #fff; background: rgba(79, 140, 255, .12); }
#mainNav .nav-link.active { color: var(--accent-soft); }
.navbar-toggler { border: 1px solid var(--border); border-radius: 10px; padding: .55rem .7rem; }
.toggler-bar { display: block; width: 20px; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; }
.offcanvas { background: #0a0f1c; border-left: 1px solid var(--border); }
.offcanvas .nav-link { padding: .8rem .5rem !important; }
.lang-switch { color: var(--muted); font-size: .82rem; display: flex; gap: .3rem; align-items: center; }
.lang-switch a { color: var(--muted); padding: .2rem .35rem; }
.lang-switch a.active { color: var(--accent-soft); font-weight: 700; }
.nav-search input {
    width: 190px; padding: .5rem 1rem; font-size: .88rem;
    border-radius: 999px; border: 1px solid var(--border);
    background: rgba(255, 255, 255, .05); color: #fff; transition: .2s;
}
.nav-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 140, 255, .18); width: 230px; }

/* ============ BUTONLAR ============ */
.btn { font-weight: 700; border-radius: 13px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:active { transform: scale(.97); }
.btn-gradient {
    background: var(--grad); color: #fff; border: none;
    box-shadow: 0 10px 28px rgba(79, 140, 255, .32);
}
.btn-gradient:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(79, 140, 255, .45); }
.btn-glass {
    background: var(--surface-2); color: #fff; border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}
.btn-glass:hover { color: #fff; border-color: var(--border-strong); background: rgba(255, 255, 255, .09); }
.btn.sm { padding: .5rem 1rem; font-size: .88rem; border-radius: 11px; }
.btn.lg { padding: .9rem 1.9rem; font-size: 1rem; }
.btn-primary { background: var(--grad); border: none; color: #fff; box-shadow: 0 8px 24px rgba(79, 140, 255, .28); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(79, 140, 255, .42); }
.btn-outline { border: 1px solid var(--border-strong); color: var(--accent-soft); background: transparent; }
.btn-outline:hover { background: rgba(79, 140, 255, .12); color: #d2ecff; }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .05); }

/* ============ HERO (Evolution X tarzi) ============ */
.hero { padding: 10rem 0 6rem; position: relative; }
.hero-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(120, 170, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 170, 255, .05) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; animation: orbFloat 12s ease-in-out infinite; }
.orb-1 { width: 480px; height: 480px; background: rgba(59, 130, 246, .4); top: -140px; right: -80px; }
.orb-2 { width: 380px; height: 380px; background: rgba(56, 189, 248, .28); bottom: -120px; left: -100px; animation-delay: -4s; }
.orb-3 { width: 260px; height: 260px; background: rgba(147, 197, 253, .22); top: 30%; left: 38%; animation-delay: -8s; }
@keyframes orbFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-34px) scale(1.06); } }

.hero-badge {
    display: inline-flex; align-items: center; gap: .55rem;
    background: var(--surface-2); border: 1px solid var(--border);
    padding: .45rem 1.05rem; border-radius: 999px;
    font-size: .84rem; font-weight: 600; color: var(--accent-soft);
    backdrop-filter: blur(10px); margin-bottom: 1.4rem;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(56, 189, 248, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, .55); } 70% { box-shadow: 0 0 0 9px rgba(56, 189, 248, 0); } 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); } }

.hero-title { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.hero-subtitle { color: var(--muted); font-size: 1.14rem; max-width: 560px; margin: 1.3rem 0 1rem; }
.hero-typing { font-family: 'Cascadia Code', Consolas, monospace; font-size: 1rem; color: var(--accent-soft); min-height: 1.6em; margin-bottom: 1.4rem; }
.typing-cursor { animation: blink 1s step-end infinite; color: var(--accent-2); }
@keyframes blink { 50% { opacity: 0; } }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: .4rem; }
.hero-search { display: flex; gap: .6rem; max-width: 540px; margin-bottom: 1.4rem; }
.hero-search input {
    flex: 1; padding: .9rem 1.25rem; font-size: .98rem; border-radius: 14px;
    border: 1px solid var(--border); background: rgba(255, 255, 255, .05); color: #fff; transition: .2s;
}
.hero-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79, 140, 255, .16); }

.hero-visual { position: relative; }
.code-window {
    background: rgba(10, 15, 28, .92); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow), var(--glow);
    transform: rotate(1.5deg);
}
.code-header { display: flex; align-items: center; gap: .45rem; padding: .75rem 1rem; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .03); }
.code-dot { width: 11px; height: 11px; border-radius: 50%; }
.code-title { margin-left: .6rem; color: var(--muted); font-size: .8rem; font-family: monospace; }
.code-content {
    padding: 1.3rem 1.5rem; margin: 0; overflow-x: auto;
    font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace;
    font-size: .86rem; line-height: 1.75; color: #c4d4ef;
}
.code-kw { color: #c792ea; } .code-cl { color: #7dd3fc; } .code-fn { color: #6ee7b7; } .code-str { color: #fcd34d; }
.float-card {
    position: absolute; display: flex; align-items: center; gap: .5rem;
    background: rgba(10, 15, 28, .95); border: 1px solid var(--border);
    padding: .6rem 1rem; border-radius: 13px; font-size: .84rem; font-weight: 600;
    box-shadow: var(--shadow); backdrop-filter: blur(12px);
    animation: floaty 6s ease-in-out infinite;
}
.fc-1 { top: -18px; right: 8%; animation-delay: 0s; }
.fc-2 { bottom: 12%; left: -24px; animation-delay: -2s; }
.fc-3 { bottom: -16px; right: 4%; animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============ BOLUMLER ============ */
.section { padding: 5rem 0; }
.section-sm { padding: 3.2rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.eyebrow {
    display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--accent-soft);
    background: rgba(79, 140, 255, .1); border: 1px solid rgba(79, 140, 255, .25);
    padding: .35rem 1rem; border-radius: 999px; margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }

.stats-bar {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    backdrop-filter: blur(12px); overflow: hidden;
}
.stats-item { padding: 1.6rem 1rem; text-align: center; border-right: 1px solid var(--border); }
.stats-item:last-child { border-right: none; }
.stats-value {
    display: block; font-size: 2.1rem; font-weight: 800;
    background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats-label { color: var(--muted); font-size: .86rem; }

.feature-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.7rem; height: 100%;
    backdrop-filter: blur(12px); transition: .3s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.feature-icon {
    width: 56px; height: 56px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
    background: rgba(79, 140, 255, .12); border: 1px solid rgba(79, 140, 255, .25);
    font-size: 1.5rem; color: var(--accent-soft); margin-bottom: 1rem;
}
.feature-title { font-size: 1.05rem; margin-bottom: .4rem; }
.feature-desc { color: var(--muted); font-size: .92rem; margin: 0; }

.process-step {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.8rem; position: relative; overflow: hidden; height: 100%; transition: .3s ease;
}
.process-step:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.step-number {
    font-size: 3rem; font-weight: 800; line-height: 1; opacity: .9;
    background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step-title { font-size: 1.1rem; margin: .7rem 0 .4rem; }
.step-desc { color: var(--muted); font-size: .92rem; margin: 0; }

.cta-box {
    position: relative; text-align: center;
    background: linear-gradient(135deg, rgba(79, 140, 255, .16), rgba(56, 189, 248, .08));
    border: 1px solid rgba(120, 170, 255, .3);
    border-radius: calc(var(--radius) + 6px); padding: 4rem 2rem; overflow: hidden;
}
.cta-box h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-box p { color: var(--muted); max-width: 520px; margin: .8rem auto 1.6rem; }
.cta-glow {
    position: absolute; width: 560px; height: 260px; left: 50%; top: -160px;
    transform: translateX(-50%); background: radial-gradient(ellipse, rgba(79, 140, 255, .35), transparent 70%);
    filter: blur(50px); pointer-events: none;
}

/* ============ KARTLAR (tum sayfalar) ============ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.35rem; backdrop-filter: blur(12px); transition: .28s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.rom-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.card strong { font-size: 1rem; }

.badge {
    background: rgba(79, 140, 255, .12); color: var(--accent-soft);
    border: 1px solid rgba(79, 140, 255, .3);
    padding: .22rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap;
}
.badge-ok { background: rgba(61, 220, 151, .12); color: var(--ok); border-color: rgba(61, 220, 151, .3); }
.badge-err { background: rgba(255, 107, 107, .13); color: var(--err); border-color: rgba(255, 107, 107, .38); }

/* ============ FORM ============ */
.form-card { display: flex; flex-direction: column; gap: .9rem; }
.form-card label { display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=file], input[type=search], textarea, select, .form-select, .form-control {
    background: rgba(255, 255, 255, .05) !important; border: 1px solid var(--border) !important;
    color: #fff !important; padding: .72rem .95rem; border-radius: 12px; font-size: .95rem; width: 100%; transition: .2s;
}
input:focus, textarea:focus, select:focus, .form-control:focus, .form-select:focus {
    outline: none !important; border-color: var(--accent) !important; box-shadow: 0 0 0 3px rgba(79, 140, 255, .18) !important; background: rgba(255, 255, 255, .07) !important; color: #fff !important;
}
.form-check-input { background-color: rgba(255, 255, 255, .08); border-color: var(--border); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-row.checks { display: flex; gap: 1.5rem; }
.form-row.checks label { flex-direction: row; align-items: center; gap: .45rem; color: #fff; }
.profile-row { display: flex; gap: 1.2rem; align-items: flex-start; flex-wrap: wrap; }
.avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); box-shadow: 0 0 20px rgba(79, 140, 255, .35); }

.auth-page { flex: 1; width: min(480px, 92%); margin: 8.5rem auto 3rem; }
.auth-hero { text-align: center; margin-bottom: 1.6rem; }
.auth-logo { height: 84px; margin-bottom: .8rem; filter: drop-shadow(0 0 24px rgba(79, 140, 255, .5)); }
.auth-hero h1 { font-size: 1.7rem; }
.auth-form { padding: 1.7rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.auth-links { display: flex; gap: .6rem; justify-content: center; align-items: center; font-size: .9rem; margin-top: .4rem; }

/* ============ TABLO / DETAY ============ */
.spec-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.spec-table th, .spec-table td { text-align: left; padding: .65rem .5rem; border-bottom: 1px solid var(--border); }
.spec-table th { color: var(--muted); width: 170px; font-weight: 500; }
.spec-table tr:first-child th { color: #fff; font-weight: 700; }
code { word-break: break-all; font-size: .8rem; color: var(--accent-soft); }
.compare-table td, .compare-table th { vertical-align: top; }
.article-body { line-height: 1.85; }

.filter-bar { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin: 1rem 0 1.5rem; }
.filter-bar select, .filter-bar input { width: auto; min-width: 170px; }
.screenshots { display: flex; gap: .8rem; overflow-x: auto; margin: 1rem 0; padding-bottom: .4rem; }
.screenshots img { height: 210px; border-radius: 12px; border: 1px solid var(--border); transition: .2s; }
.screenshots img:hover { border-color: var(--accent); transform: scale(1.02); }
.comment { border-top: 1px solid var(--border); padding: .9rem 0; }

/* ============ ADMIN / PANEL ============ */
.admin-nav { display: flex; gap: .45rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; }
.admin-nav a {
    padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--border);
    color: var(--muted); font-size: .86rem; font-weight: 600; transition: .2s;
}
.admin-nav a:hover { color: #fff; border-color: var(--border-strong); }
.admin-nav a.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(79, 140, 255, .3); }

.device-hero { position: relative; overflow: hidden; }
.device-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.device-watermark { height: 90px; filter: drop-shadow(0 0 20px rgba(79, 140, 255, .5)); }
.device-rom-card { border-left: 3px solid var(--accent); }
.guide-list { margin: .5rem 0 0 1.2rem; display: flex; flex-direction: column; gap: .55rem; }
.guide-list li::marker { color: var(--accent); font-weight: 700; }

.notification-bell { position: relative; }
.alert { padding: .85rem 1.1rem; border-radius: 12px; margin: 1rem auto; }
.alert-error { background: rgba(255, 107, 107, .1); color: #ff9a9a; border: 1px solid rgba(255, 107, 107, .35); }
.alert-success { background: rgba(61, 220, 151, .1); color: #6fe8b8; border: 1px solid rgba(61, 220, 151, .35); }

/* ============ FOOTER ============ */
.site-footer { position: relative; border-top: 1px solid var(--border); padding: 4rem 0 1.5rem; margin-top: 5rem; background: rgba(5, 7, 13, .7); }
.footer-glow {
    position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
    width: 640px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 140, 255, .7), transparent);
}
.footer-desc { color: var(--muted); font-size: .92rem; max-width: 340px; }
.footer-title { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { color: var(--muted); font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid var(--border); margin-top: 3rem; padding-top: 1.4rem;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    color: var(--muted); font-size: .86rem;
}

.back-to-top {
    position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
    width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border);
    background: rgba(10, 15, 28, .9); color: var(--accent-soft);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    opacity: 0; pointer-events: none; transform: translateY(10px); transition: .3s ease;
    backdrop-filter: blur(10px);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--grad); color: #fff; border-color: transparent; }

/* ============ REVEAL ANIMASYON ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.card-grid .card { animation: cardIn .5s ease backwards; }
.card-grid .card:nth-child(2) { animation-delay: .05s; }
.card-grid .card:nth-child(3) { animation-delay: .1s; }
.card-grid .card:nth-child(4) { animation-delay: .15s; }
.card-grid .card:nth-child(5) { animation-delay: .2s; }
.card-grid .card:nth-child(6) { animation-delay: .25s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    .reveal, .card-grid .card { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
    .orb, .float-card, .pulse-dot { animation: none !important; }
}

/* ============ LIGHT TEMA ============ */
:root[data-theme="light"] {
    --bg: #f2f5fb;
    --bg-soft: #ffffff;
    --surface: rgba(255, 255, 255, .8);
    --surface-2: rgba(255, 255, 255, .92);
    --border: rgba(30, 60, 120, .14);
    --border-strong: rgba(59, 130, 246, .55);
    --text: #16233d;
    --muted: #55658a;
    --shadow: 0 14px 36px rgba(30, 60, 120, .13);
}
:root[data-theme="light"] body {
    background:
        radial-gradient(1100px 480px at 85% -10%, rgba(59, 130, 246, .1), transparent 60%),
        var(--bg);
}
:root[data-theme="light"] .navbar#mainNav.scrolled { background: rgba(255, 255, 255, .85); }
:root[data-theme="light"] .brand-text, :root[data-theme="light"] #mainNav .nav-link:hover { color: #16233d; }
:root[data-theme="light"] .hero-title { color: #0f1c33; }
:root[data-theme="light"] input, :root[data-theme="light"] textarea, :root[data-theme="light"] select,
:root[data-theme="light"] .form-control { background: #f7f9fd !important; color: #16233d !important; }
:root[data-theme="light"] .code-window { background: #0d1526; }
:root[data-theme="light"] .stats-item { border-color: rgba(30, 60, 120, .1); }

/* ============ MOBIL ============ */
@media (max-width: 991px) {
    .hero { padding: 8rem 0 4rem; }
}
@media (max-width: 720px) {
    .form-row { grid-template-columns: 1fr; }
    .device-head { flex-direction: column; }
    .device-watermark { height: 60px; }
    .hero-search { flex-direction: column; }
    .stats-item { border-right: none; border-bottom: 1px solid var(--border); }
    .stats-item:last-child { border-bottom: none; }
    .auth-page { margin-top: 7rem; }
    .float-card { display: none; }
}

/* ============================================================
   DUZELTMELER v6.1
   ============================================================ */

/* 1) Navbar her zaman gorunur (hero'suz sayfalarda icerik altinda kaliyordu) */
.navbar#mainNav {
    background: rgba(5, 7, 13, .82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
}
.navbar#mainNav.scrolled { border-bottom-color: var(--border); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
:root[data-theme="light"] .navbar#mainNav { background: rgba(255, 255, 255, .85); }

/* 2) Sabit navbar'a gore icerik boslugu (sayfalar ustten kesiliyordu) */
.site-main { padding-top: 4.6rem; }
.hero { padding: 5.5rem 0 5rem; }
.auth-page { margin: 5.5rem auto 3rem; }

/* 3) Logo karesi: koyu zeminiyle kasitli gorunen rozet haline getir (light temada bozuk gorunuyordu) */
.brand-mark {
    width: 46px; height: 46px; border-radius: 13px; overflow: hidden;
    background: #06070c; border: 1px solid var(--border);
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 0 18px rgba(79, 140, 255, .3);
}
.brand-mark img { height: 100%; width: 100%; object-fit: cover; filter: none; }
.auth-logo { border-radius: 18px; border: 1px solid var(--border); }
.hero .brand-mark, .footer .brand-mark { box-shadow: 0 0 18px rgba(79, 140, 255, .25); }

/* 4) Icerik girisleri: inline margin-top olan container'lar navbar'a yapismasin */
.site-main > .container > h1:first-child, .site-main > .container > h2:first-child { margin-top: 1.5rem; }

/* 5) Sayfa basliklari icin standart baslik stili (bozuk gorunen sayfalar) */
.page-head { padding: 2.2rem 0 .5rem; }
.page-head .eyebrow { margin-bottom: .6rem; }
.page-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0; }
.page-head .lead { color: var(--muted); margin-top: .5rem; }

/* Premium dokunuşlar */
::selection { background: rgba(79, 140, 255, .35); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #05070d; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #2b5cb8, #1a3a7d); border-radius: 6px; }

/* Rozet etiketleri (Discord tarzi) */
.role-badge {
    display: inline-block; padding: .12rem .55rem; border-radius: 6px;
    font-size: .68rem; font-weight: 800; letter-spacing: .06em;
    margin: .1rem .18rem .1rem 0; vertical-align: middle; line-height: 1.5;
    text-transform: uppercase;
}
.rb-owner { background: linear-gradient(135deg, #b45309, #f59e0b); color: #fff; box-shadow: 0 0 12px rgba(245, 158, 11, .4); }
.rb-admin { background: linear-gradient(135deg, #dc2626, #ef4444); color: #fff; box-shadow: 0 0 12px rgba(239, 68, 68, .4); }
.rb-mod { background: linear-gradient(135deg, #0369a1, #0ea5e9); color: #fff; }
.rb-dev { background: linear-gradient(135deg, #047857, #10b981); color: #fff; }
.rb-veteran { background: linear-gradient(135deg, #6d28d9, #a78bfa); color: #fff; }
.rb-activity { background: rgba(79, 140, 255, .18); color: var(--accent-soft); border: 1px solid rgba(79, 140, 255, .35); }
.rb-special { background: linear-gradient(135deg, #be185d, #ec4899); color: #fff; }

/* Cevrimici noktasi */
.online-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 8px rgba(61, 220, 151, .7); margin-right: .35rem; }
.online-dot.offline { background: #64748b; box-shadow: none; }

/* Uyelik rozetleri: kahverengi / gumus / altin */
.rb-month1 { background: linear-gradient(135deg, #78350f, #a16207); color: #fde68a; }
.rb-month6 { background: linear-gradient(135deg, #6b7280, #d1d5db); color: #111827; }
.rb-year { background: linear-gradient(135deg, #b45309, #fbbf24); color: #451a03; box-shadow: 0 0 12px rgba(251, 191, 36, .35); }

.rb-dev { background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: #fff; box-shadow: 0 0 10px rgba(59, 130, 246, .35); }

/* ============================================================
   ANIMASYON PAKETI v7
   ============================================================ */

/* 1) Sayfa acilis gecisi */
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.site-main { animation: pageIn .5s ease both; }

/* 2) Nav link alti cizgi animasyonu */
#mainNav .nav-link { position: relative; }
#mainNav .nav-link::after {
    content: ''; position: absolute; left: .9rem; right: .9rem; bottom: .3rem;
    height: 2px; background: var(--grad); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
#mainNav .nav-link:hover::after, #mainNav .nav-link.active::after { transform: scaleX(1); }

/* 3) Buton ripple efekti */
.btn { position: relative; overflow: hidden; }
.btn .ripple {
    position: absolute; border-radius: 50%; background: rgba(255,255,255,.35);
    transform: scale(0); animation: rippleAnim .55s ease-out; pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(3.5); opacity: 0; } }

/* 4) Kartlara giris (stagger) - IntersectionObserver .anim-in ekler */
.anim-up { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s ease; }
.anim-up.in { opacity: 1; transform: translateY(0); }
.anim-left { opacity: 0; transform: translateX(-30px); transition: opacity .65s ease, transform .65s ease; }
.anim-left.in { opacity: 1; transform: translateX(0); }
.anim-zoom { opacity: 0; transform: scale(.92); transition: opacity .6s ease, transform .6s ease; }
.anim-zoom.in { opacity: 1; transform: scale(1); }

/* 5) Gradyan yazi parlamasi */
@keyframes shine { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
.text-gradient, .hero-title .text-gradient {
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

/* 6) Kart hover: 3D hafif tilt + isik */
.card, .feature-card, .process-step, .stat-card {
    transform-style: preserve-3d;
}
.card::before, .feature-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(120,170,255,.08), transparent 45%);
    opacity: 0; transition: opacity .3s;
}
.card:hover::before, .feature-card:hover::before { opacity: 1; }
.card, .feature-card, .process-step { position: relative; }

/* 7) Buton hover parlama surusmesi */
.btn-primary::after, .btn-gradient::after {
    content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg); transition: none;
}
.btn-primary:hover::after, .btn-gradient:hover::after { animation: btnShine .7s ease; }
@keyframes btnShine { to { left: 130%; } }

/* 8) Rozetlerde hafif yukselme */
.role-badge { transition: transform .18s ease, box-shadow .18s ease; }
.role-badge:hover { transform: translateY(-2px) scale(1.06); }

/* 9) Tablo satirlari hover */
.spec-table tbody tr { transition: background .18s; }
.spec-table tbody tr:hover { background: rgba(79,140,255,.05); }

/* 10) Input odak alt cizgi dolgusu */
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], textarea, select {
    background-image: linear-gradient(var(--accent), var(--accent-2));
    background-repeat: no-repeat;
    background-position: 50% 100%;
    background-size: 0% 2px;
    transition: background-size .25s ease, border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { background-size: 100% 2px; }

/* 11) Yildiz oylama hoplamasi */
button[style*="font-size:1.5rem"] { transition: transform .15s ease; }
button[style*="font-size:1.5rem"]:hover { transform: scale(1.25) rotate(8deg); }

/* 12) Yukari cik butonu nefes alma */
@keyframes breathe { 0%,100% { box-shadow: 0 0 0 0 rgba(79,140,255,.45); } 50% { box-shadow: 0 0 0 8px rgba(79,140,255,0); } }
.back-to-top.visible { animation: breathe 2.4s ease-in-out infinite; }

/* 13) Istek karti oy butonu tiklamasi */
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.btn:active { animation: pop .3s ease; }

/* 14) Kayan bara yumuşak giriş */
.stats-bar { animation: cardIn .7s ease backwards; }

/* 15) Breadcrumb okları */
nav[aria-label="breadcrumb"] a { transition: color .2s; }
nav[aria-label="breadcrumb"] a:hover { color: var(--accent-soft); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   AUTH SPLIT TASARIM v7
   ============================================================ */
.auth-split {
    display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh;
    margin-top: -4.6rem; /* sabit navbar telafisi */
    padding-top: 4.6rem;
}
.auth-brand {
    position: relative; overflow: hidden;
    background: radial-gradient(ellipse 80% 60% at 30% 20%, rgba(59, 130, 246, .22), transparent 60%),
                linear-gradient(160deg, #070b16 0%, #0a1230 100%);
    display: flex; flex-direction: column; justify-content: center;
    padding: 3rem 3.5rem; color: #fff;
}
.auth-brand .orb { opacity: .55; }
.auth-brand-logo { height: 88px; margin-bottom: 1.6rem; filter: drop-shadow(0 0 30px rgba(79, 140, 255, .55)); animation: float 5s ease-in-out infinite; }
.auth-brand h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.02em; }
.auth-brand .brand-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-direction: column; gap: .9rem; }
.auth-brand .brand-points li { display: flex; gap: .7rem; align-items: center; font-size: .95rem; color: #c4d4ef; animation: slideRight .6s ease both; }
.auth-brand .brand-points li:nth-child(1) { animation-delay: .15s; }
.auth-brand .brand-points li:nth-child(2) { animation-delay: .3s; }
.auth-brand .brand-points li:nth-child(3) { animation-delay: .45s; }
.auth-brand .brand-points .bi { color: #38bdf8; font-size: 1.15rem; }
@keyframes slideRight { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: translateX(0); } }
.auth-brand-stats { display: flex; gap: 2rem; margin-top: 2.2rem; }
.auth-brand-stats div strong { font-size: 1.4rem; display: block; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-brand-stats div span { font-size: .78rem; color: #8fa3c8; }

.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; position: relative; }
.auth-card2 {
    width: min(440px, 100%); background: var(--surface); border: 1px solid var(--border);
    border-radius: 20px; padding: 2.2rem; backdrop-filter: blur(14px);
    box-shadow: var(--shadow); animation: cardIn2 .6s ease both;
}
@keyframes cardIn2 { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.auth-card2 .form-field { animation: slideUp .5s ease both; }
.auth-card2 .form-field:nth-child(1) { animation-delay: .1s; }
.auth-card2 .form-field:nth-child(2) { animation-delay: .18s; }
.auth-card2 .form-field:nth-child(3) { animation-delay: .26s; }
.auth-card2 .form-field:nth-child(4) { animation-delay: .34s; }
.auth-card2 .form-field:nth-child(5) { animation-delay: .42s; }
@keyframes slideUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* Sifre guc olceri */
.pw-meter { height: 5px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; margin-top: .45rem; }
.pw-meter > div { height: 100%; width: 0; border-radius: 99px; transition: width .35s ease, background .35s ease; }
.pw-label { font-size: .75rem; margin-top: .3rem; color: var(--muted); min-height: 1em; }

/* Foto yukleme alani (dropzone) */
.avatar-drop {
    border: 2px dashed rgba(120, 170, 255, .35); border-radius: 16px;
    padding: 1.4rem; text-align: center; cursor: pointer; transition: .25s ease;
    background: rgba(79, 140, 255, .04);
}
.avatar-drop:hover, .avatar-drop.dragover { border-color: var(--accent); background: rgba(79, 140, 255, .1); transform: scale(1.01); }
.avatar-drop .bi { font-size: 2rem; color: var(--accent-soft); }
.avatar-preview-wrap { display: none; align-items: center; gap: 1rem; text-align: left; }
.avatar-preview-wrap img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); box-shadow: 0 0 18px rgba(79,140,255,.35); }
.avatar-preview-info { flex: 1; min-width: 0; }
.avatar-preview-info strong { display: block; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-preview-info span { font-size: .78rem; color: var(--muted); }
.avatar-remove { background: none; border: 1px solid rgba(255,107,107,.4); color: var(--err); border-radius: 8px; padding: .35rem .7rem; font-size: .8rem; cursor: pointer; }
.avatar-remove:hover { background: rgba(255,107,107,.12); }

/* Kurallar kontrol listesi */
.rules-list { list-style: none; padding: 0; margin: .4rem 0 0; font-size: .8rem; display: flex; flex-direction: column; gap: .25rem; }
.rules-list li { color: var(--muted); transition: color .3s; }
.rules-list li::before { content: '○ '; }
.rules-list li.ok { color: var(--ok); }
.rules-list li.ok::before { content: '● '; }

/* Sifre goster/gizle */
.pw-toggle { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--muted); cursor: pointer; }
.pw-wrap { position: relative; }

/* Guvenlik rozetleri */
.sec-badges { display: flex; gap: 1.2rem; justify-content: center; margin-top: 1.4rem; flex-wrap: wrap; }
.sec-badges span { font-size: .72rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; }
.sec-badges .bi { color: var(--ok); }

@media (max-width: 900px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
}
:root[data-theme="light"] .auth-brand { background: linear-gradient(160deg, #0d1830 0%, #12244d 100%); }

/* ============================================================
   SONUC OVERLAY ANIMASYONLARI (basari / hata / hos geldin)
   ============================================================ */
.result-overlay {
    position: fixed; inset: 0; z-index: 600;
    display: flex; align-items: center; justify-content: center;
    background: rgba(5, 7, 13, .82); backdrop-filter: blur(10px);
    animation: ovIn .3s ease both;
}
@keyframes ovIn { from { opacity: 0; } to { opacity: 1; } }
.result-overlay.hide { animation: ovOut .45s ease both; }
@keyframes ovOut { to { opacity: 0; } }

.result-box {
    text-align: center; padding: 2.5rem 3rem;
    background: rgba(10, 15, 28, .95); border: 1px solid var(--border);
    border-radius: 24px; box-shadow: var(--shadow);
    animation: boxPop .55s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes boxPop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* Yesil tik: SVG cizim animasyonu */
.result-icon { width: 96px; height: 96px; margin: 0 auto 1.2rem; position: relative; }
.result-icon svg { width: 100%; height: 100%; }
.result-icon .circle {
    fill: none; stroke-width: 4; stroke-linecap: round;
    stroke-dasharray: 290; stroke-dashoffset: 290;
    animation: drawCircle .6s ease forwards;
}
.result-icon.success .circle { stroke: #3ddc97; }
.result-icon.error .circle { stroke: #ff6b6b; }
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
.result-icon .mark {
    fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 60; stroke-dashoffset: 60;
    animation: drawMark .4s ease .5s forwards;
}
.result-icon.success .mark { stroke: #3ddc97; }
.result-icon.error .mark { stroke: #ff6b6b; }
@keyframes drawMark { to { stroke-dashoffset: 0; } }

/* Hata kutusu sallanma */
.result-overlay.error .result-box { animation: boxPop .55s cubic-bezier(.2, 1.4, .4, 1) both, shakeX .5s ease .45s; }
@keyframes shakeX {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); } 40% { transform: translateX(10px); }
    60% { transform: translateX(-6px); } 80% { transform: translateX(6px); }
}

.result-title { font-size: 1.4rem; font-weight: 800; margin: 0 0 .4rem; }
.result-overlay.success .result-title { color: #3ddc97; }
.result-overlay.error .result-title { color: #ff6b6b; }
.result-overlay.welcome .result-title {
    background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.result-sub { color: var(--muted); font-size: .95rem; margin: 0; }
.result-bar { height: 4px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; margin-top: 1.4rem; }
.result-bar > div { height: 100%; width: 100%; transform-origin: left; animation: barDrain 2.2s linear both; }
.result-overlay.success .result-bar > div, .result-overlay.welcome .result-bar > div { background: var(--grad); }
.result-overlay.error .result-bar > div { background: var(--err); }
@keyframes barDrain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
