/* ==========================================================================
   RiseProject - Ultra-Minimalist & Gizemli Koyu Tema
   Site: riseproject.tr
   ========================================================================== */

:root {
    --bg-void: #030305;
    --bg-box: #0a0b10;
    --bg-field: #06070a;
    
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.16);
    --border-accent: rgba(139, 92, 246, 0.5);

    --accent-purple: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.2);
    --status-green: #10b981;
    --status-red: #ef4444;

    --text-white: #ffffff;
    --text-muted: #64748b;
    --text-dim: #94a3b8;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body.minimal-dark {
    background-color: var(--bg-void);
    color: var(--text-white);
    font-family: var(--font-sans);
    overflow: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Arka plandaki çok hafif, derin mor aura */
.void-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Ekran Düzeni */
.screen-stage {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    padding: 2rem;
}

/* Üst Köşe Linki */
.discrete-top {
    display: flex;
    justify-content: flex-end;
}

.discrete-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.discrete-link:hover {
    color: var(--text-white);
}

/* Merkez Odak Alanı */
.center-focus {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.monolith-wrapper {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Logo ve Başlık */
.monolith-brand {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.brand-monogram {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
    transition: transform 0.3s ease;
}

.monolith-brand:hover .brand-monogram {
    transform: scale(1.05);
    border-color: rgba(139, 92, 246, 0.3);
}

.brand-wordmark {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--text-white);
}

/* Ana Kutu (Karanlık Monolit) */
.monolith-box {
    width: 100%;
    background: var(--bg-box);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.monolith-box:focus-within {
    border-color: var(--border-hover);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95), 0 0 30px rgba(139, 92, 246, 0.1);
}

.monolith-box.has-result {
    padding: 1.75rem;
}

/* Form Giriş Alanı */
.key-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.key-form.is-hidden {
    display: none;
}

.key-field {
    display: flex;
    align-items: center;
    background: var(--bg-field);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.3rem 0.4rem 0.3rem 1rem;
    transition: all 0.2s ease;
}

.key-field:focus-within {
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.key-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-white);
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.65rem 0;
}

.key-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    letter-spacing: 1.5px;
}

.key-submit {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-white);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.key-submit:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    transform: translateX(1px);
}

.submit-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.key-submit.is-loading .submit-arrow { display: none; }
.key-submit.is-loading .submit-spinner { display: inline-block; }

.key-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    color: var(--text-muted);
    padding: 0 0.25rem;
}

.btn-text-paste {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.76rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-text-paste:hover {
    color: var(--accent-purple);
}

/* ==========================================================================
   Sonuç Paneli (Minimalist Doğrulama Detayları)
   ========================================================================== */

.result-box {
    display: none;
    text-align: left;
}

.result-box.is-active {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
}

.panel-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.2rem;
}

.panel-product {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-white);
}

.panel-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.status-online {
    background: rgba(16, 185, 129, 0.1);
    color: var(--status-green);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-online .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--status-green);
    box-shadow: 0 0 8px var(--status-green);
}

.panel-rows {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.panel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.84rem;
}

.row-label {
    color: var(--text-muted);
}

.row-val {
    color: var(--text-white);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.row-val code {
    font-family: var(--font-mono);
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.82rem;
}

.font-mono {
    font-family: var(--font-mono);
}

.btn-copy-raw {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 0.2rem;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.btn-copy-raw:hover {
    color: var(--text-white);
}

.panel-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.btn-discord-inline {
    flex: 1;
    text-align: center;
    background: #5865F2;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-discord-inline:hover {
    background: #4752c4;
}

.btn-reset-view {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
    font-size: 0.84rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset-view:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

/* Hata Paneli */
.panel-error {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 0.5rem 0;
}

.error-msg {
    color: var(--status-red);
    font-size: 0.88rem;
    font-weight: 500;
}

.error-discord-link {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.error-discord-link:hover {
    color: var(--accent-purple);
}

/* Sarsılma Animasyonu */
.monolith-box.shake {
    animation: simpleShake 0.35s ease;
    border-color: rgba(239, 68, 68, 0.4);
}

@keyframes simpleShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* Alt Çizgi */
.discrete-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
}

.discrete-bottom .domain {
    font-family: var(--font-mono);
}

/* Toast */
.discrete-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #141722;
    border: 1px solid var(--border-subtle);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 100;
}

.discrete-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   2FA Modal & Geri Sayım Stilleri
   ========================================================================== */

.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-backdrop.is-active {
    display: flex;
}

.modal-2fa-card {
    background: #0a0b10;
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(139, 92, 246, 0.2);
    animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

@keyframes modalScaleIn {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-2fa-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.badge-icon-lock {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c084fc;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.modal-2fa-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.modal-2fa-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
}

.modal-2fa-subtitle strong {
    color: #ffffff;
}

.code-inputs-container {
    margin-bottom: 1.25rem;
}

.code-input-single {
    width: 100%;
    background: #06070a;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: 12px;
    text-align: center;
    padding: 0.75rem 0.5rem;
    outline: none;
    transition: all 0.2s ease;
}

.code-input-single:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.25);
}

.code-input-single::placeholder {
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 10px;
}

/* 1 Dakikalık Zaman Çubuğu */
.timer-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.timer-text-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #94a3b8;
}

.timer-text-row strong {
    font-family: var(--font-mono);
    color: #38bdf8;
    font-size: 0.88rem;
}

.timer-text-row.is-danger strong {
    color: #ef4444;
}

.timer-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.timer-progress-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #38bdf8);
    transition: width 1s linear;
}

.timer-progress-fill.is-danger {
    background: #ef4444;
}

.modal-2fa-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-cancel-2fa {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel-2fa:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.btn-submit-2fa {
    flex: 1;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.btn-submit-2fa:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.btn-submit-2fa.is-loading span:first-child { display: none; }
.btn-submit-2fa.is-loading .btn-spinner { display: inline-block; }

.btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

