        * { box-sizing: border-box; }
        body {
            margin: 0;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            background:
                radial-gradient(circle at top, rgba(56,189,248,0.3) 0, transparent 45%),
                radial-gradient(circle at bottom, rgba(251,191,36,0.25) 0, transparent 45%),
                linear-gradient(145deg, #020617 0%, #020617 40%, #0b1120 100%);
            color: #e5e7eb;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .kapsayici {
            width: 100%;
    max-width: 900px;
            padding: 20px;
        }
        .kart {
            position: relative;
            background: radial-gradient(circle at top left, rgba(59,130,246,0.18), transparent 55%),
                        radial-gradient(circle at bottom right, rgba(34,197,94,0.18), transparent 55%),
                        rgba(15, 23, 42, 0.96);
            border-radius: 20px;
            padding: 26px 24px 20px;
            box-shadow:
                0 20px 45px rgba(15,23,42,0.95),
                0 0 0 1px rgba(148,163,184,0.4);
            border: 1px solid rgba(148, 163, 184, 0.5);
            overflow: hidden;
            transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
        }
        .kart::before {
            content: "";
            position: absolute;
            inset: -40%;
            background:
                radial-gradient(circle at 0 0, rgba(59,130,246,0.18), transparent 55%),
                radial-gradient(circle at 100% 100%, rgba(34,197,94,0.16), transparent 55%);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.25s ease;
        }
        .kart:hover {
            transform: translateY(-4px);
            box-shadow:
                0 26px 60px rgba(15,23,42,0.95),
                0 0 0 1px rgba(59,130,246,0.55);
            border-color: rgba(59,130,246,0.7);
        }
        .kart:hover::before {
            opacity: 1;
        }

        .ust-cizgi {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }
        .marka {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }
        .marka-baslik {
            font-size: 22px;
            font-weight: 750;
            letter-spacing: 0.03em;
            color: #f9fafb;
        }
        .marka-alt {
            font-size: 13px;
            color: #cbd5f5;
        }
        .rozet {
            font-size: 11px;
            text-transform: uppercase;
            padding: 5px 11px;
            border-radius: 999px;
            border: 1px solid rgba(96, 165, 250, 0.7);
            background: radial-gradient(circle at top left, rgba(59,130,246,0.35), rgba(15,23,42,0.95));
            color: #e0f2fe;
            font-weight: 600;
            letter-spacing: 0.14em;
            white-space: nowrap;
        }
        .dil-form {
            margin-top: 10px;
            text-align: right;
            font-size: 12px;
            color: #9ca3af;
        }
        .dil-form label { margin-right: 4px; }
                html[dir="rtl"] .dil-form label { margin-right: 0; margin-left: 4px; }
        select {
            background: rgba(15, 23, 42, 0.95);
            color: #e5e7eb;
            border-radius: 999px;
            border: 1px solid rgba(148, 163, 184, 0.9);
            padding: 5px 9px;
            font-size: 12px;
            outline: none;
        }

        h1 {
            margin: 16px 0 6px;
            font-size: 20px;
            font-weight: 700;
            color: #f9fafb;
        }
        p {
            font-size: 14px;
            color: #cbd5f5;
            white-space: pre-line;
            line-height: 1.55;
        }

        .ozellikler {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin: 14px 0 10px;
            font-size: 12px;
        }
        .ozellik-kutu {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 9px;
            border-radius: 999px;
            background: rgba(15,23,42,0.9);
            border: 1px solid rgba(148,163,184,0.4);
            color: #e5e7eb;
        }
        .ozellik-ikon {
            font-size: 14px;
        }

        form {
            margin-top: 12px;
        }
        label[for="file"] {
            display: inline-block;
            font-size: 13px;
            font-weight: 600;
            color: #e5e7eb;
        }
        input[type="file"] {
            width: 100%;
            font-size: 13px;
            color: #e5e7eb;
            margin-top: 6px;
        }
        .ipucu {
            font-size: 12px;
            color: #9ca3af;
            margin-top: 4px;
            line-height: 1.4;
        }

        .ttl-grup {
            margin-top: 14px;
            font-size: 13px;
        }
        .ttl-grup strong {
            font-weight: 600;
            color: #e5e7eb;
        }
        .ttl-secim {
            margin-top: 6px;
        }
        .ttl-secim label {
            font-size: 13px;
            display: block;
            margin-top: 4px;
            cursor: pointer;
            color: #e5e7eb;
        }

        .email-grup {
            margin-top: 16px;
            font-size: 13px;
        }
        .email-grup label {
            font-size: 12px;
            color: #cbd5f5;
        }
        .email-grup input[type="email"],
        .email-grup input[type="text"] {
            width: 100%;
            margin-top: 4px;
            padding: 7px 9px;
            border-radius: 10px;
            border: 1px solid rgba(148, 163, 184, 0.8);
            background: rgba(15, 23, 42, 0.95);
            color: #e5e7eb;
            font-size: 13px;
            outline: none;
        }
        .email-grup input[type="email"]:focus,
        .email-grup input[type="text"]:focus {
            border-color: rgba(59,130,246,0.9);
            box-shadow: 0 0 0 1px rgba(59,130,246,0.5);
        }

        .email-toggle {
            width: 100%;
            margin-top: 18px;
            padding: 8px 12px;
            border-radius: 12px;
            border: 1px solid rgba(148,163,184,0.7);
            background: rgba(15,23,42,0.9);
            color: #e5e7eb;
            font-size: 13px;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
        }
        .email-toggle:hover {
            border-color: rgba(59,130,246,0.9);
            box-shadow: 0 0 12px rgba(59,130,246,0.5);
        }
        .email-toggle-arrow {
            font-size: 11px;
            transition: transform 0.2s ease;
        }
        .email-toggle-arrow.open {
            transform: rotate(180deg);
        }
        .email-content {
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transition: max-height 0.25s ease, opacity 0.25s ease, margin-top 0.25s ease;
        }
        .email-content.open {
            max-height: 260px;
            opacity: 1;
            margin-top: 6px;
        }

        .terms-grup {
            margin-top: 14px;
            font-size: 12px;
            color: #e5e7eb;
        }
        .terms-label {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .terms-label input[type="checkbox"] {
            width: 16px;
            height: 16px;
        }
        .terms-link {
            background: none;
            border: none;
            padding: 0;
            margin: 0 0 0 4px;
            color: #93c5fd;
            text-decoration: underline;
            cursor: pointer;
            font-size: 12px;
        }
        .terms-link:hover {
            color: #e5e7eb;
        }

        button[type="submit"] {
            width: 100%;
            border: none;
            border-radius: 999px;
            padding: 11px 16px;
            margin-top: 16px;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            background-image: linear-gradient(135deg, #3b82f6, #22c55e);
            color: #f9fafb;
            box-shadow:
                0 14px 30px rgba(37,99,235,0.55),
                0 0 20px rgba(56,189,248,0.4);
            transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
        }
        button[type="submit"]:hover {
            transform: translateY(-1.5px);
            box-shadow:
                0 20px 40px rgba(37,99,235,0.75),
                0 0 30px rgba(45,212,191,0.5);
            filter: brightness(1.06);
        }
        button[type="submit"]:active {
            transform: translateY(0);
            box-shadow:
                0 12px 26px rgba(37,99,235,0.55),
                0 0 18px rgba(56,189,248,0.4);
        }

        .mesaj {
            margin-top: 13px;
            padding: 10px 12px;
            border-radius: 11px;
            font-size: 13px;
            line-height: 1.45;
        }
        .mesaj.success {
            background: rgba(22, 163, 74, 0.14);
            border: 1px solid rgba(34, 197, 94, 0.65);
            color: #bbf7d0;
        }
        .mesaj.error {
            background: rgba(220, 38, 38, 0.18);
            border: 1px solid rgba(248, 113, 113, 0.7);
            color: #fee2e2;
        }

        .link-kutu {
            margin-top: 11px;
            font-size: 13px;
            background: rgba(15, 23, 42, 0.98);
            border-radius: 12px;
            border: 1px dashed rgba(148, 163, 184, 0.7);
            padding: 10px 12px;
            word-break: break-all;
        }
        .link-kutu a {
            color: #bfdbfe;
            text-decoration: none;
            font-weight: 500;
        }
        .link-kutu a:hover {
            text-decoration: underline;
            color: #e5e7eb;
        }
        .copy-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-top: 6px;
            padding: 4px 10px;
            border-radius: 999px;
            border: 1px solid rgba(148,163,184,0.7);
            background: rgba(15,23,42,0.95);
            color: #e5e7eb;
            font-size: 12px;
            cursor: pointer;
            gap: 4px;
        }
        .copy-btn:hover {
            border-color: rgba(59,130,246,0.9);
            box-shadow: 0 0 12px rgba(59,130,246,0.5);
        }

        .alt {
            margin-top: 16px;
            text-align: center;
            font-size: 11px;
            color: #9ca3af;
        }

        /* Loading overlay */
        .loading-overlay {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.88);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }
        .loading-box {
            background: rgba(15, 23, 42, 0.98);
            border-radius: 16px;
            padding: 18px 22px;
            border: 1px solid rgba(148, 163, 184, 0.8);
            box-shadow:
                0 20px 40px rgba(15,23,42,0.9),
                0 0 0 1px rgba(59,130,246,0.8);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }
        .loading-spinner {
            width: 36px;
            height: 36px;
            border-radius: 999px;
            border: 3px solid rgba(148, 163, 184, 0.6);
            border-top-color: #38bdf8;
            animation: spin 0.8s linear infinite;
        }
        .loading-dots {
            font-size: 12px;
            letter-spacing: 0.35em;
            color: #e5e7eb;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Terms modal */
        .terms-overlay {
            position: fixed;
            inset: 0;
            background: rgba(15,23,42,0.92);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
        }
        .terms-box {
            max-width: 620px;
            max-height: 80vh;
            background: rgba(15,23,42,0.98);
            border-radius: 18px;
            border: 1px solid rgba(148,163,184,0.8);
            box-shadow:
                0 24px 60px rgba(15,23,42,0.95),
                0 0 0 1px rgba(59,130,246,0.7);
            padding: 14px 16px 16px;
            display: flex;
            flex-direction: column;
        }
        .terms-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 14px;
            font-weight: 600;
            color: #e5e7eb;
            margin-bottom: 10px;
        }
        .terms-close {
            background: none;
            border: none;
            color: #9ca3af;
            cursor: pointer;
            font-size: 16px;
        }
        .terms-close:hover {
            color: #f9fafb;
        }
        .terms-body {
            font-size: 13px;
            color: #e5e7eb;
            overflow: auto;
        }
        .terms-body ul {
            padding-left: 18px;
        }
        .terms-body li {
            margin-bottom: 6px;
        }
        .marka {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .marka-logo {
            display: block;
            max-width: 220px;
            height: auto;
        }

        @media (max-width: 480px) {
            .marka-logo {
                max-width: 180px;
            }
        }

        /* === YENİ YÜKLEME ALANI === */
        .upload-wrapper {
            margin-top: 14px;
            width: auto;
        }

        .upload-dropzone {
            position: relative;
            display: flex;
            width: 100%;
            align-items: center;
            gap: 14px;
            padding: 16px 16px;
            border-radius: 16px;
            border: 1px dashed rgba(148,163,184,0.7);
            background:
                radial-gradient(circle at top left, rgba(59,130,246,0.22), transparent 55%),
                rgba(15,23,42,0.96);
            cursor: pointer;
            transition:
                border-color .18s ease,
                box-shadow .18s ease,
                transform .12s ease,
                background .18s ease;
        }

        .upload-dropzone:hover {
            border-color: rgba(59,130,246,0.95);
            box-shadow:
                0 18px 35px rgba(15,23,42,0.95),
                0 0 0 1px rgba(59,130,246,0.65);
            transform: translateY(-1px);
        }

        .upload-icon {
            width: 38px;
            height: 38px;
            border-radius: 999px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            background: radial-gradient(circle at 30% 0, rgba(56,189,248,0.9), rgba(59,130,246,0.9));
            color: #f9fafb;
            box-shadow:
                0 0 18px rgba(59,130,246,0.8),
                0 8px 16px rgba(15,23,42,0.9);
        }

        .upload-texts {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .upload-main-text {
            font-size: 14px;
            font-weight: 600;
            color: #f9fafb;
        }

        .upload-sub-text {
            font-size: 12px;
            color: #cbd5f5;
        }

        .upload-input-real {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }

        /* === SÜRE KARTLARI === */
        .ttl-premium {
            margin-top: 16px;
        }

        .ttl-title {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: #e5e7eb;
            margin-bottom: 8px;
        }

        .ttl-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .ttl-card {
            flex: 1 1 0;
            min-width: 0;
            cursor: pointer;
        }

        .ttl-card input[type="radio"] {
            display: none;
        }

        .ttl-card-inner {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 11px;
            border-radius: 14px;
            border: 1px solid rgba(148,163,184,0.6);
            background: radial-gradient(circle at top right, rgba(34,197,94,0.18), transparent 55%),
                        rgba(15,23,42,0.95);
            transition:
                border-color .18s ease,
                box-shadow .18s ease,
                transform .1s ease,
                background .18s ease;
        }

        .ttl-card-inner:hover {
            border-color: rgba(59,130,246,0.9);
            box-shadow: 0 12px 26px rgba(15,23,42,0.9);
            transform: translateY(-1px);
        }

        .ttl-icon {
            width: 26px;
            height: 26px;
            border-radius: 999px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            background: radial-gradient(circle at 30% 0, rgba(59,130,246,0.9), rgba(37,99,235,0.9));
            color: #f9fafb;
        }

        .ttl-texts {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .ttl-main {
            font-size: 13px;
            color: #e5e7eb;
            font-weight: 600;
        }

        .ttl-tag {
            font-size: 11px;
            color: #9ca3af;
        }

        .ttl-card input[type="radio"]:checked + .ttl-card-inner {
            border-color: rgba(52,211,153,0.95);
            box-shadow:
                0 16px 30px rgba(5,150,105,0.65),
                0 0 0 1px rgba(45,212,191,0.7);
            background:
                radial-gradient(circle at top left, rgba(45,212,191,0.25), transparent 60%),
                rgba(15,23,42,0.98);
        }

        .ttl-card input[type="radio"]:checked + .ttl-card-inner .ttl-icon {
            background: radial-gradient(circle at 30% 0, rgba(45,212,191,1), rgba(16,185,129,1));
        }

        .ttl-hint {
            margin-top: 6px;
            font-size: 11px;
            color: #9ca3af;
        }

        @media (max-width: 480px) {
            .upload-dropzone {
                padding: 14px 12px;
            }
            .upload-main-text {
                font-size: 13px;
            }
            .ttl-card-inner {
                padding: 9px 9px;
            }
        }

        /* === ÜST ÖZELLİKLER: 3 DAİRE === */
        .feature-circles {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            gap: 40px;
            flex-wrap: wrap;
            margin: 25px 0 10px;
        }

        .feature-item {
            text-align: center;
            width: 90px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .feature-icon {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            color: #f9fafb;
            background: radial-gradient(circle at 30% 20%, var(--clr), rgba(15,23,42,0.9));
            border: 1px solid rgba(148,163,184,0.6);
            box-shadow:
                0 10px 25px rgba(15,23,42,0.9),
                0 0 0 1px rgba(59,130,246,0.4),
                inset 0 0 10px rgba(59,130,246,0.25);
            transition: transform 0.15s ease, box-shadow 0.2s ease;
        }

        .feature-icon:hover {
            transform: translateY(-4px);
            box-shadow:
                0 16px 35px rgba(15,23,42,0.95),
                0 0 0 1px rgba(59,130,246,0.7),
                inset 0 0 18px var(--clr);
        }

        .feature-label {
            font-size: 13px;
            color: #cbd5f5;
            font-weight: 500;
            max-width: 90px;
            line-height: 1.3;
        }

        @media (max-width: 480px) {
            .feature-circles {
                gap: 26px;
            }
            .feature-icon {
                width: 60px;
                height: 60px;
                font-size: 24px;
            }
            .feature-label {
                font-size: 12px;
                max-width: 80px;
            }
        }

        /* === HERO BAŞLIK ALANI === */
        .hero-header {
            margin-top: 16px;
            margin-bottom: 10px;
            position: relative;
            padding-bottom: 12px;
        }

        .hero-header::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 1px;
            background: linear-gradient(90deg,
                rgba(59,130,246,0.0),
                rgba(59,130,246,0.65),
                rgba(34,197,94,0.0)
            );
            opacity: 0.7;
        }

        .hero-pill {
            display: inline-flex;
            align-items: center;
            padding: 3px 10px;
            border-radius: 999px;
            background: radial-gradient(circle at 0 0, rgba(59,130,246,0.6), rgba(15,23,42,0.95));
            border: 1px solid rgba(96,165,250,0.8);
            box-shadow: 0 8px 18px rgba(15,23,42,0.9);
            margin-bottom: 8px;
        }

        .hero-pill span {
            font-size: 11px;
            letter-spacing: .12em;
            text-transform: uppercase;
            color: #e0f2fe;
            font-weight: 600;
        }

        .hero-title {
            margin: 0 0 6px 0;
            font-size: 22px;
            line-height: 1.25;
            font-weight: 750;
            background: linear-gradient(120deg, #f9fafb, #bfdbfe, #6ee7b7);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 0 18px rgba(15,23,42,0.9);
        }

        .hero-desc {
            margin: 0;
            font-size: 14px;
            line-height: 1.55;
            color: #cbd5f5;
            white-space: pre-line;
            max-width: 100%;
        }

        @media (max-width: 480px) {
            .hero-title {
                font-size: 19px;
            }
            .hero-desc {
                font-size: 13px;
            }
        }

        .upload-dropzone.dragover {
            border-color: rgba(34,197,94,0.95);
            box-shadow:
                0 0 30px rgba(16,185,129,0.6),
                0 0 0 1px rgba(45,212,191,0.8);
            background:
                radial-gradient(circle at top left, rgba(16,185,129,0.2), transparent 60%),
                rgba(15,23,42,0.96);
            transform: translateY(-1px);
        }

        .toast {
            position: fixed;
            top: 30px;
            right: 30px;
            background: linear-gradient(135deg, rgba(239,68,68,0.95), rgba(190,18,60,0.9));
            color: #fff;
            padding: 10px 16px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            font-weight: 600;
            box-shadow: 0 10px 30px rgba(0,0,0,0.4);
            opacity: 0;
            pointer-events: none;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 9999;
        }

        .toast.show {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }

        .toast-icon {
            background: rgba(255,255,255,0.15);
            border-radius: 50%;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }

        .toast-message {
            line-height: 1.3;
        }

        /* Popup (success) */
.success-popup {
    position: fixed;
    inset: 0;
    /* Arka plan ana sayfanın gradient’i ile aynı */
    background:
        radial-gradient(circle at top, rgba(56,189,248,0.3) 0, transparent 45%),
        radial-gradient(circle at bottom, rgba(251,191,36,0.25) 0, transparent 45%),
        linear-gradient(145deg, #020617 0%, #020617 40%, #0b1120 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.success-popup .popup-content {
    background: rgba(15, 23, 42, 0.98);
    padding: 30px 40px;
    border-radius: 18px;
    text-align: center;
    box-shadow:
        0 20px 45px rgba(15,23,42,0.95),
        0 0 0 1px rgba(59,130,246,0.7);
    animation: popupFadeIn 0.4s ease;
    color: #e5e7eb;
}

.checkmark {
    width: 72px;
    height: 72px;
    display: inline-block;
    border-radius: 50%;
    stroke-width: 3;
    stroke: #4CAF50;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4CAF50;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

/* OK butonu */
.popup-ok-btn {
    margin-top: 16px;
    padding: 8px 22px;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background-image: linear-gradient(135deg, #22c55e, #16a34a);
    color: #f9fafb;
    box-shadow: 0 10px 25px rgba(22,163,74,0.6);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.popup-ok-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 16px 32px rgba(22,163,74,0.7),
        0 0 0 1px rgba(34,197,94,0.8);
    filter: brightness(1.05);
}

.popup-ok-btn:active {
    transform: translateY(0);
    box-shadow:
        0 10px 22px rgba(22,163,74,0.6),
        0 0 0 1px rgba(34,197,94,0.7);
}

        .checkmark {
            width: 72px;
            height: 72px;
            display: inline-block;
            border-radius: 50%;
            stroke-width: 3;
            stroke: #4CAF50;
            stroke-miterlimit: 10;
            box-shadow: inset 0px 0px 0px #4CAF50;
            animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
        }

        .checkmark svg { width: 72px; height: 72px; }

        .checkmark-circle {
            stroke-dasharray: 166;
            stroke-dashoffset: 166;
            stroke-width: 2;
            stroke: #4CAF50;
            fill: none;
            animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
        }

        .checkmark-check {
            transform-origin: 50% 50%;
            stroke-dasharray: 48;
            stroke-dashoffset: 48;
            animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
            stroke: #4CAF50;
            stroke-width: 3;
        }

        @keyframes stroke { 100% { stroke-dashoffset: 0; } }
        @keyframes scale { 50% { transform: scale3d(1.1, 1.1, 1); } }
        @keyframes fill { 100% { box-shadow: inset 0px 0px 0px 50px #4CAF50; } }
        @keyframes popupFadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

        .hidden { display: none; }
.stats-row {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    font-size: 12px;
}

.stat-box {
    flex: 1;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,0.6);
    background: rgba(15,23,42,0.9);
}

.stat-label {
    color: #9ca3af;
}

.stat-value {
    margin-top: 3px;
    font-size: 16px;
    font-weight: 700;
    color: #f9fafb;
}
footer .footer-line:nth-child(3) {
  animation: fadePulse 4s ease-in-out infinite;
}

@keyframes fadePulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}
html, body {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

footer {
  background: rgba(15, 23, 42, 0.95);
  color: #94a3b8;
  text-align: center;
  padding: 20px 10px;
  font-size: 13px;
  border-top: 1px solid rgba(148,163,184,0.3);
  margin-top: auto; /* this pushes it to the bottom */
}

footer a {
  color: #60a5fa;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer .footer-line {
  margin: 5px 0;
}

body[dir="rtl"] footer {
  text-align: center;
  direction: rtl;
}
.howitworks-btn{
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(2,6,23,0.35);
  color: #e5e7eb;
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
}

.howitworks-btn:hover{
  border-color: rgba(96,165,250,0.6);
}
/* Modal overlay base */
.terms-overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(0,0,0,0.55);
  align-items:center;
  justify-content:center;
  padding:14px;
}

/* When opened */
.terms-overlay.open{
  display:flex;
}
/* === Live Share / Dark theme link colors === */

/* normal links */
a {
  color: #e5e7eb; /* soft light gray */
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* visited links */
a:visited {
  color: #c7d2fe; /* soft indigo (not purple) */
}

/* hover */
a:hover {
  color: #38bdf8; /* sky blue accent */
  text-decoration: none;
}

/* active / click */
a:active {
  color: #0ea5e9;
}
.conn-dot{
    display:inline-block;width:10px;height:10px;border-radius:50%;
    background:#475569; box-shadow: 0 0 0 3px rgba(148,163,184,0.12);
    vertical-align:middle; margin-right:8px;
  }
  .conn-dot.on{ background:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,0.18); }
  .conn-dot.off{ background:#ef4444; box-shadow:0 0 0 3px rgba(239,68,68,0.18); }

  .feed-row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
  .feed-meta{ opacity:.8; font-size:12px; }
  .feed-actions{ display:inline-flex; gap:8px; align-items:center; margin-left:6px; }

  .copy-btn{
    border:1px solid rgba(148,163,184,0.30);
    background:rgba(2,6,23,0.25);
    color:#e2e8f0;
    border-radius:10px;
    padding:4px 8px;
    font-size:12px;
    cursor:pointer;
  }
  .copy-btn:hover{ border-color: rgba(56,189,248,0.55); }
  .copy-btn:active{ transform: translateY(1px); }
  .feed-meta {
  direction: rtl;
  unicode-bidi: isolate;
}

.feed-meta .ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
.feed-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feed-title {
  direction: ltr;
}

.feed-meta {
  direction: rtl;
  unicode-bidi: isolate;
  font-size: 12px;
  opacity: .85;
}

.feed-meta .ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
/* Universal feed layout (works for LTR + RTL) */
#feed li { margin: 10px 0; }

.feed-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 6px;
  align-items: center;
}

.feed-title {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  /* keep filename readable in all langs */
  unicode-bidi: isolate;
}

.feed-actions {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.feed-meta {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
  font-size: 12px;
  opacity: .85;
  unicode-bidi: isolate;
}

/* isolate Latin chunks like “201 KB” so RTL doesn't reorder it */
.feed-meta .ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

/* copy button looks consistent */
.copy-btn{
  border:1px solid rgba(148,163,184,0.30);
  background:rgba(2,6,23,0.25);
  color:#e2e8f0;
  border-radius:10px;
  padding:4px 8px;
  font-size:12px;
  cursor:pointer;
}
.copy-btn:hover{ border-color: rgba(56,189,248,0.55); }
.copy-btn:active{ transform: translateY(1px); }
.footer-mail{
  color:#9ca3af;
  text-decoration:none;
}

.donate-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  margin-left:10px;
  border-radius:999px;
  text-decoration:none;
  font-size:14px;
  line-height:1;
  background: rgba(2,6,23,0.35);
  border: 1px solid rgba(148,163,184,0.25);
  color:#e5e7eb;
  opacity:.85;
  vertical-align:middle;
  transition: all .15s ease;
}
.donate-icon:hover{
  opacity:1;
  border-color: rgba(56,189,248,0.65);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.20);
}
.success-icon{
  display:flex;
  justify-content:center;
  align-items:center;
  margin: 6px 0 14px;
}

.success-icon svg{
  width:64px;
  height:64px;
  filter: drop-shadow(0 12px 24px rgba(34,197,94,0.22));
}

.success-ring{
  stroke: rgba(34,197,94,0.55);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  animation: ringDraw .55s ease-out forwards;
}

.success-tick{
  stroke: rgba(34,197,94,0.95);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: tickDraw .35s ease-out .25s forwards;
}

@keyframes ringDraw{
  to { stroke-dashoffset: 0; }
}

@keyframes tickDraw{
  to { stroke-dashoffset: 0; }
}


/* Receiver note */
.note-textarea{
  width:100%;
  min-height: 84px;
  resize: vertical;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(2,6,23,0.25);
  color: #f8fafc;
  outline: none;
}
.note-textarea::placeholder{ color: rgba(226,232,240,0.65); }
.note-textarea:focus{
  border-color: rgba(56,189,248,0.65);
  box-shadow: 0 0 0 2px rgba(56,189,248,0.12);
}

/* Upload progress */
.upload-progress-bar{
  width:100%;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(2,6,23,0.25);
  overflow:hidden;
}
.upload-progress-fill{
  height:100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #22c55e);
}
.upload-progress-text{
  margin-top: 8px;
  font-size: 12px;
  color: rgba(226,232,240,0.85);
  text-align: right;
}
