:root {
            --primary:       #4f46e5;
            --primary-dark:  #3730a3;
            --primary-light: #ede9fe;
            --secondary:     #06b6d4;
            --success:       #10b981;
            --warning:       #f59e0b;
            --bg:            #f8fafc;
            --card:          #ffffff;
            --border:        #e2e8f0;
            --text:          #1e293b;
            --muted:         #64748b;
            --shadow:        0 4px 24px rgba(79,70,229,.10);
            --radius:        16px;
        }
        * { box-sizing: border-box; margin: 0; padding: 0; }
        body { background: var(--bg); color: var(--text); font-family: 'Segoe UI', system-ui, sans-serif; }

        /* ===== NAVBAR ===== */
        .navbar {
            background: #fff;
            border-bottom: 1px solid var(--border);
            padding: 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 12px rgba(0,0,0,.05);
        }
        .navbar-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 24px;
            max-width: 1200px;
            margin: 0 auto;
        }
        .navbar-brand {
            font-weight: 800;
            font-size: 1.4rem;
            color: var(--primary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .navbar-brand i { font-size: 1.6rem; }
        .nav-links { display: flex; align-items: center; gap: 6px; }
        .nav-links a {
            color: var(--muted);
            text-decoration: none;
            font-weight: 500;
            font-size: .92rem;
            padding: 8px 14px;
            border-radius: 10px;
            transition: .15s;
        }
        .nav-links a:hover { color: var(--primary); background: var(--primary-light); }
        .btn-login  { color: var(--primary) !important; border: 1.5px solid var(--primary) !important; font-weight: 700 !important; padding: 7px 18px !important; }
        .btn-login:hover { background: var(--primary) !important; color: #fff !important; }
        .btn-register { background: var(--primary) !important; color: #fff !important; font-weight: 700 !important; padding: 7px 18px !important; }
        .btn-register:hover { background: var(--primary-dark) !important; }
        .hamburger { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text); cursor: pointer; padding: 4px; }
        .mobile-menu { display: none; flex-direction: column; background: #fff; border-top: 1px solid var(--border); padding: 12px 16px; gap: 6px; }
        .mobile-menu.open { display: flex; }
        .mobile-menu a { display: block; color: var(--text); text-decoration: none; font-weight: 600; padding: 10px 14px; border-radius: 10px; font-size: .95rem; transition: .15s; }
        .mobile-menu a:hover { background: var(--primary-light); color: var(--primary); }
        .mobile-menu .mob-login    { color: var(--primary); border: 1.5px solid var(--primary); text-align: center; }
        .mobile-menu .mob-register { background: var(--primary); color: #fff !important; text-align: center; }

        /* ===== HERO ===== */
        .hero { background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 50%, var(--secondary) 100%); color: #fff; padding: 70px 24px 80px; text-align: center; }
        .hero h1 { font-size: 2.8rem; font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
        .hero p  { font-size: 1.15rem; opacity: .88; max-width: 540px; margin: 0 auto 32px; }
        .hero-badges { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
        .hero-badge { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); border-radius: 50px; padding: 6px 16px; font-size: .85rem; font-weight: 600; backdrop-filter: blur(4px); display: flex; align-items: center; gap: 6px; }
        @media(max-width:576px) { .hero h1 { font-size: 1.9rem; } .hero p { font-size: 1rem; } }

        /* ===== MAIN ===== */
        .main-wrap { max-width: 1100px; margin: -40px auto 0; padding: 0 20px 60px; position: relative; z-index: 10; }

        /* ===== QR BUILDER ===== */
        .qr-builder { background: #fff; border-radius: 24px; box-shadow: 0 8px 48px rgba(79,70,229,.15); overflow: hidden; }
        .qr-builder-inner { display: grid; grid-template-columns: 1fr 380px; min-height: 600px; }

        /* SOL */
        .qr-left { padding: 28px 28px 24px; border-right: 1px solid var(--border); overflow-y: auto; }

        /* TİP SEKMELERİ */
        .type-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
        .type-tabs::-webkit-scrollbar { display: none; }
        .type-tab { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 14px 12px; border: none; background: none; cursor: pointer; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-bottom: 2.5px solid transparent; margin-bottom: -2px; transition: .15s; white-space: nowrap; flex-shrink: 0; }
        .type-tab i { font-size: 1.2rem; }
        .type-tab:hover { color: var(--primary); }
        .type-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

        .section-divider { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin: 20px 0 16px; position: relative; }
        .section-divider::before, .section-divider::after { content:''; position:absolute; top:50%; width:38%; height:1px; background:var(--border); }
        .section-divider::before { left:0; } .section-divider::after { right:0; }

        .form-label { font-size: .82rem; font-weight: 700; color: var(--text); margin-bottom: 6px; display: block; }
        .form-control, .form-select { border: 1.5px solid var(--border); border-radius: 12px; padding: 11px 14px; font-size: .9rem; width: 100%; outline: none; transition: .15s; color: var(--text); background: #fff; }
        .form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.10); }
        .form-text { font-size: .75rem; color: var(--muted); margin-top: 5px; }

        .type-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
        .type-heading-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
        .type-heading h6 { font-weight: 800; font-size: 1rem; margin: 0; }

        /* RENKLER */
        .color-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
        .color-box { border: 1.5px solid var(--border); border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: .15s; }
        .color-box:hover { border-color: var(--primary); }
        .color-swatch { width: 36px; height: 36px; border-radius: 10px; border: 2px solid rgba(0,0,0,.08); cursor: pointer; flex-shrink: 0; }
        .color-box-info { flex: 1; min-width: 0; }
        .color-box-info strong { font-size: .82rem; font-weight: 700; display: block; margin-bottom: 6px; }
        .color-code-row { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
        .color-code-row span { font-size: .72rem; color: var(--muted); white-space: nowrap; min-width: 58px; }
        .hex-input {
            width: 100%;
            max-width: 112px;
            border: 1.5px solid var(--border);
            border-radius: 8px;
            padding: 6px 9px;
            font-size: .78rem;
            font-weight: 700;
            color: var(--text);
            background: #fff;
            outline: none;
            text-transform: uppercase;
            transition: .15s;
        }
        .hex-input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(79,70,229,.10);
        }
        .hex-input.is-invalid { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.10); }
        @media(max-width: 520px) {
            .color-boxes { grid-template-columns: 1fr; }
            .hex-input { max-width: 120px; }
        }

        /* TOGGLE */
        .toggle-row { border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
        .toggle-row-info strong { font-size: .82rem; font-weight: 700; display: block; }
        .toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
        .toggle input { display: none; }
        .toggle-slider { position: absolute; inset: 0; background: var(--border); border-radius: 50px; cursor: pointer; transition: .25s; }
        .toggle-slider::before { content:''; position:absolute; width:18px; height:18px; background:#fff; border-radius:50%; top:3px; left:3px; transition:.25s; box-shadow:0 1px 4px rgba(0,0,0,.2); }
        .toggle input:checked + .toggle-slider { background: var(--primary); }
        .toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

        /* BOYUT */
        .size-btns, .ecc-btns { display: flex; gap: 8px; flex-wrap: wrap; }
        .size-btn, .ecc-btn { border: 1.5px solid var(--border); border-radius: 10px; padding: 8px 16px; background: #fff; font-size: .85rem; font-weight: 700; cursor: pointer; color: var(--muted); transition: .15s; }
        .size-btn:hover, .ecc-btn:hover { border-color: var(--primary); color: var(--primary); }
        .size-btn.active, .ecc-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

        /* LOGO UPLOAD */
        .logo-upload { border: 2px dashed var(--border); border-radius: 14px; padding: 28px 20px; text-align: center; cursor: pointer; transition: .15s; position: relative; }
        .logo-upload:hover { border-color: var(--primary); background: var(--primary-light); }
        .logo-upload i { font-size: 2rem; color: var(--muted); display: block; margin-bottom: 8px; }
        .logo-upload p { font-size: .85rem; font-weight: 600; color: var(--muted); margin: 0; }
        .logo-upload small { font-size: .72rem; color: #94a3b8; }
        .logo-upload input { display: none; }
        .logo-upload .logo-remove-btn { position: relative; z-index: 3; }
        .logo-preview-img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; border: 2px solid var(--border); }

        /* OLUŞTUR BUTONU */
        .btn-create { width: 100%; background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff; border: none; border-radius: 14px; padding: 15px 20px; font-size: 1.05rem; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: .2s; margin-top: 20px; }
        .btn-create:hover    { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(79,70,229,.35); }
        .btn-create:disabled { opacity: .6; cursor: not-allowed; transform: none; }

        /* SAĞ PANEL */
        .qr-right { background: #fafbff; padding: 28px 24px; display: flex; flex-direction: column; }
        .qr-right h6 { font-weight: 800; font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }

        /* ÖNİZLEME KUTUSU */
        .preview-box { flex: 1; border: 2px dashed var(--border); border-radius: 20px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; min-height: 280px; position: relative; transition: background .3s; }
        .preview-box canvas { border-radius: 12px; max-width: 100%; }
        .preview-placeholder-icon { width: 80px; height: 80px; background: var(--primary-light); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: var(--primary); margin: 0 auto 14px; }
        .preview-placeholder p { font-weight: 700; color: var(--text); margin-bottom: 4px; font-size: .92rem; }
        .preview-placeholder small { color: var(--muted); font-size: .8rem; }

        /* CANLI ETİKET */
        .live-badge { position: absolute; top: 10px; right: 10px; background: #10b981; color: #fff; font-size: .68rem; font-weight: 800; padding: 3px 10px; border-radius: 50px; display: flex; align-items: center; gap: 4px; animation: pulse-badge 2s infinite; }
        @keyframes pulse-badge { 0%,100%{opacity:1} 50%{opacity:.6} }
        .live-dot { width: 6px; height: 6px; background: #fff; border-radius: 50%; }

        /* SONUÇ BİLGİ */
        .result-info { background: var(--primary-light); border-radius: 12px; padding: 12px 14px; margin-top: 14px; font-size: .8rem; }
        .result-info .result-title { font-weight: 800; font-size: .88rem; margin-bottom: 4px; }
        .result-info .result-link  { color: var(--primary); font-weight: 600; word-break: break-all; }

        /* BAŞARI BANNERİ */
        .success-banner { background: #d1fae5; border: 1.5px solid #10b981; border-radius: 12px; padding: 12px 16px; font-size: .85rem; font-weight: 600; color: #065f46; display: flex; align-items: center; gap: 8px; margin-top: 12px; animation: slideIn .3s ease; }
        @keyframes slideIn { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:translateY(0)} }

        /* İNDİRME */
        .download-row { display: flex; gap: 8px; margin-top: 12px; }
        .btn-dl { flex: 1; border: 1.5px solid var(--border); background: #fff; border-radius: 10px; padding: 9px 8px; font-size: .8rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px; transition: .15s; color: var(--text); }
        .btn-dl:hover     { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
        .btn-dl.dl-green  { background: #d1fae5; border-color: #10b981; color: #065f46; }
        .btn-dl.dl-green:hover { background: #a7f3d0; }

        /* KOPYALA */
        .copy-box { border: 1.5px solid var(--border); border-radius: 10px; padding: 9px 12px; font-size: .78rem; color: var(--primary); font-weight: 600; cursor: pointer; margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; word-break: break-all; background: #fff; transition: .15s; }
        .copy-box:hover { background: var(--primary-light); }

        /* MİSAFİR UYARI */
        .guest-alert { background: #fffbeb; border: 1.5px solid #fde68a; border-radius: 12px; padding: 12px 14px; font-size: .8rem; display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; }
        .guest-alert i { color: var(--warning); font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
        .guest-alert a { color: var(--primary); font-weight: 700; text-decoration: none; }

        /* HATA */
        .alert-err { background: #fee2e2; color: #991b1b; border-radius: 10px; padding: 10px 14px; font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }

        /* FEATURES */
        .features-section { padding: 60px 0; }
        .features-section h2 { font-size: 2rem; font-weight: 900; text-align: center; margin-bottom: 8px; }
        .features-section .sub { text-align: center; color: var(--muted); margin-bottom: 40px; }
        .feature-card { background: var(--card); border-radius: 20px; padding: 28px 24px; border: 1px solid var(--border); box-shadow: var(--shadow); height: 100%; transition: transform .2s, box-shadow .2s; }
        .feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(79,70,229,.15); }
        .feature-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 18px; }
        .feature-card h5 { font-weight: 800; margin-bottom: 8px; font-size: 1rem; }
        .feature-card p  { color: var(--muted); font-size: .88rem; line-height: 1.6; margin: 0; }

        /* HOW */
        .how-section { background: linear-gradient(135deg, #f8fafc, #ede9fe); padding: 60px 0; }
        .step-card { text-align: center; padding: 24px 16px; }
        .step-num { width: 52px; height: 52px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 900; margin: 0 auto 16px; box-shadow: 0 4px 16px rgba(79,70,229,.35); }
        .step-card h5 { font-weight: 800; margin-bottom: 8px; }
        .step-card p  { color: var(--muted); font-size: .88rem; margin: 0; }

        /* CTA */
        .cta-section { background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff; padding: 60px 24px; text-align: center; }
        .cta-section h2 { font-size: 2rem; font-weight: 900; margin-bottom: 12px; }
        .cta-section p  { opacity: .88; margin-bottom: 28px; }
        .btn-cta-white { background: #fff; color: var(--primary); border: none; border-radius: 12px; padding: 13px 32px; font-size: 1rem; font-weight: 800; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: .15s; }
        .btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); color: var(--primary); }
        .btn-cta-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); border-radius: 12px; padding: 13px 32px; font-size: 1rem; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: .15s; margin-left: 12px; }
        .btn-cta-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

        /* FOOTER */
        footer { background: #1e293b; color: #94a3b8; padding: 40px 24px; text-align: center; }
        footer .footer-brand { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 16px; display: inline-flex; align-items: center; gap: 8px; }
        footer .footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
        footer .footer-links a { color: #94a3b8; text-decoration: none; font-size: .88rem; transition: .15s; }
        footer .footer-links a:hover { color: #06b6d4; }
        footer .footer-copy { font-size: .82rem; }

        /* INPUT GROUP */
        .input-group .form-control { border-right: none; border-radius: 12px 0 0 12px; }
        .input-group-text { border: 1.5px solid var(--border); border-left: none; border-radius: 0 12px 12px 0; background: #f8fafc; cursor: pointer; color: var(--muted); padding: 0 14px; }
        .input-group-text:hover { color: var(--primary); }

        .mb-3 { margin-bottom: 16px; }
        .mb-2 { margin-bottom: 10px; }
        .mb-1 { margin-bottom: 6px; }
        .mt-1 { margin-top: 6px; }

        @media(max-width:860px) {
            .qr-builder-inner { grid-template-columns: 1fr; }
            .qr-right { border-top: 1px solid var(--border); }
            .preview-box { min-height: 220px; }
            .hamburger  { display: flex; }
            .nav-links  { display: none; }
        }
        @media(max-width:480px) {
            .cta-btns { display: flex; flex-direction: column; align-items: center; gap: 10px; }
            .btn-cta-outline { margin-left: 0; }
        }


/* ============================================================
   ACCORDION ALANLARI
============================================================ */
.accordion-box {
    border: 1.5px solid var(--border);
    border-radius: 16px;
    margin: 18px 0;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .035);
}

.accordion-btn {
    width: 100%;
    border: 0;
    background: #fff;
    color: var(--text);
    padding: 15px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: .92rem;
    font-weight: 850;
    cursor: pointer;
    transition: .15s;
}

.accordion-btn:hover {
    background: #f8fafc;
    color: var(--primary);
}

.accordion-content {
    display: none;
    padding: 0 16px 16px;
}

.accordion-box.active .accordion-content {
    display: block;
}

.accordion-icon {
    transition: transform .2s ease;
    color: var(--muted);
}

.accordion-box.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--primary);
}


/* QR önizleme yüksek çözünürlükte üretilir, ekranda taşmadan gösterilir */
#qrCodeOutput,
#qrCodeOutput .qr-live-wrap {
    max-width: 100%;
}
#qrCodeOutput .qr-live-wrap {
    overflow: hidden;
}
#qrCodeOutput canvas,
#qrCodeOutput img:not(.qr-logo-overlay) {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    image-rendering: auto !important;
}
#qrCodeOutput .qr-logo-overlay {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* =====================================================
   FINAL LAYOUT / PREVIEW FIXES
===================================================== */
.preview-box {
    height: 360px !important;
    min-height: 360px !important;
    max-height: 360px !important;
    overflow: hidden !important;
}

#qrCodeOutput {
    width: 100% !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

#qrCodeOutput[style*="display: block"] {
    display: flex !important;
}

#qrCodeOutput .qr-live-wrap {
    flex: 0 0 auto !important;
    margin: 0 auto !important;
    overflow: hidden !important;
}

/* QRCode.js bazen canvas ile birlikte ikinci bir img üretir; canlı önizlemede kopyayı gizle. */
#qrCodeOutput .qr-live-wrap > img:not(.qr-logo-overlay) {
    display: none !important;
}

#qrCodeOutput canvas {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
}

.features-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.features-grid .feature-card {
    width: 100%;
    min-height: 100%;
}

.how-section {
    background: linear-gradient(135deg, #f8fafc, #ede9fe) !important;
    color: var(--text);
    padding: 70px 0 78px !important;
}

.how-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.how-section h2 {
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text);
}

.how-sub {
    text-align: center;
    color: var(--muted);
    margin-bottom: 46px;
}

.how-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.how-steps::before {
    content: '';
    position: absolute;
    top: 31px;
    left: calc(12.5% + 34px);
    right: calc(12.5% + 34px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79,70,229,.32), rgba(79,70,229,.32), transparent);
    z-index: 0;
}

.how-section .step-card {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 10px;
}

.how-section .step-num {
    width: 66px;
    height: 66px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary);
    border: 2px solid rgba(79,70,229,.28);
    box-shadow: 0 8px 24px rgba(79,70,229,.16), inset 0 0 18px rgba(79,70,229,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 900;
}

.how-section .step-card h5 {
    color: var(--text);
    font-weight: 900;
    margin-bottom: 10px;
}

.how-section .step-card p {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.6;
    margin: 0;
}

@media(max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 20px; }
    .how-steps::before { display: none; }
}

@media(max-width: 576px) {
    .preview-box {
        height: 320px !important;
        min-height: 320px !important;
        max-height: 320px !important;
    }
    .features-grid { grid-template-columns: 1fr; }
    .how-steps { grid-template-columns: 1fr; }
}


/* ===== YUKARI CIK BUTONU ===== */
.scroll-top-btn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 8px 24px rgba(79,70,229,.35);
    transition: transform .18s ease, opacity .18s ease;
}
.scroll-top-btn:hover { transform: translateY(-2px); }
.scroll-top-btn.show { display: flex; }
.scroll-top-btn i { font-size: 1.2rem; }
@media(max-width:576px){ .scroll-top-btn { right: 16px; bottom: 18px; width: 42px; height: 42px; } }

html {
    scroll-behavior: smooth;
}

#ozellikler,
#nasil-calisir {
    scroll-margin-top: 135px;
}

@media (max-width: 768px) {
    #ozellikler,
    #nasil-calisir {
        scroll-margin-top: 115px;
    }
}