/* ForceX Global Base Styles */

:root {
    --bg-color: #0f111a;
    --text-color: #e2e8f0;
    --primary: #5eead4;
    --primary-glow: rgba(94, 234, 212, 0.05);
    --secondary: #64748b;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.05);
    --font: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Plan Colors */
    --color-daily: #38bdf8;
    --color-weekly: #3b82f6;
    --color-monthly: #a78bfa;
    --color-lifetime: #facc15;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    width: 100%;
}

/* Global Glassy Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.2);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.05) transparent;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    opacity: 0.15;
    pointer-events: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font);
    overflow-x: hidden;
    width: 100%;
    line-height: 1.6;
    position: relative;
    margin: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

input, textarea {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

/* Siber Devre (Circuit) Arka Planı */
.circuit-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--card-border) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    opacity: 0.15;
}

/* Arka plan ışık damlaları (Neon Devre Enerjisi) */
.blob {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    border-radius: 50%;
    animation: drift 12s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -5%;
    left: -10%;
    opacity: 0.15;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: 10%;
    right: -5%;
    opacity: 0.1;
    animation-direction: alternate-reverse;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.1); }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(15px);
    background: rgba(15, 17, 26, 0.1);
    border-bottom: 1px solid transparent;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.navbar.scrolled {
    padding: 12px 8%;
    background: rgba(11, 14, 20, 0.98);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
    align-items: center;
    flex-shrink: 0;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* Lang Switch */
.lang-switch {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    margin-left: 20px;
}

.lang-btn {
    background: transparent;
    color: #94a3b8;
    border: none;
    padding: 8px 16px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.lang-btn.active { background: var(--primary); color: #0b0e14; }

.nav-icon-btn {
    background: transparent;
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-icon-btn:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Buttons */
.btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    color: #e2e8f0;
}

.btn-primary { background: var(--primary); color: #0b0e14; border: none; }
.btn-primary:hover { 
    background: #4fd1c5; 
    filter: brightness(1.1);
    box-shadow: 0 0 20px rgba(94, 234, 212, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

.w-100 { width: 100%; justify-content: center; }

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background-color: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show { display: flex; justify-content: center; align-items: center; opacity: 1; }

.modal-content {
    background: rgba(10, 14, 23, 0.35);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    width: 95%;
    max-width: 380px;
    height: auto;
    max-height: 85vh;
    border-radius: 20px;
    position: relative;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform: scale(0.95) translateY(10px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Purchase modal - window frame style */
#payment-modal .payment-modal-content {
    max-width: 380px;
    width: 95%;
    height: auto;
    min-height: auto;
    background: rgba(10, 14, 23, 0.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* White iframe sits inside with padding — dark frame visible around it */
#payment-modal .modal-body {
    padding: 12px;
    background: rgba(10, 14, 23, 0.97);
}

#payment-modal #payment-iframe-container {
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

/* Modal expansion when iframe is visible */
#payment-modal .payment-modal-content.expanded {
    max-width: 540px;
    height: 600px;
    max-height: 85vh;
}

.modal.show .modal-content { 
    transform: scale(1) translateY(0); 
}

/* Payment modal header - stays dark, separate from white body */
#payment-modal .modal-header {
    background: rgba(10, 14, 23, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.01);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-body { 
    position: relative; 
    width: 100%; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

.close-btn {
    color: #94a3b8;
    font-size: 26px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: none;
    transition: all 0.3s;
}

.close-btn:hover { color: #ef4444; background: rgba(239, 68, 68, 0.1); }

/* Panel Login common classes */
.panel-body { 
    padding: 30px; 
    display: flex; 
    flex-direction: column; 
    gap: 25px; 
}

.input-group { position: relative; width: 100%; }
.input-group i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #64748b; font-size: 1.2rem; }
.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 14px 14px 44px;
    color: #f8fafc;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.5s;
}
.input-group input:focus { border-color: var(--primary); background: rgba(0, 0, 0, 0.4); }

.error-msg { color: #ef4444; font-size: 0.85rem; min-height: 0; text-align: center; }

/* AI Chatbot */
.chat-widget {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 350px;
    height: 500px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.chat-widget.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.chat-header {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info { display: flex; align-items: center; gap: 10px; color: var(--primary); font-weight: 700; }
.chat-close { background: transparent; border: none; color: #64748b; cursor: pointer; font-size: 1.2rem; }

.chat-messages { flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { display: flex; flex-direction: column; }
.msg-bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 0.9rem; line-height: 1.5; }
.user-msg { align-items: flex-end; }
.user-msg .msg-bubble { background: var(--primary); color: #000; border-bottom-right-radius: 4px; }
.bot-msg { align-items: flex-start; }
.bot-msg .msg-bubble { background: rgba(255,255,255,0.05); color: #f8fafc; border-bottom-left-radius: 4px; }

.chat-input-area { padding: 15px; background: rgba(255,255,255,0.02); border-top: 1px solid rgba(255,255,255,0.05); display: flex; gap: 10px; }
.chat-input-area input { flex: 1; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 10px 15px; color: #fff; outline: none; }
.chat-input-area button { background: var(--primary); border: none; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; }

.chat-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat-trigger i { font-size: 1.5rem; color: var(--primary); }
.chat-trigger:hover { 
    transform: scale(1.05); 
    background: rgba(30, 41, 59, 1);
    border-color: rgba(59, 130, 246, 0.3);
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

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

/* Custom Minimalist Panel UI */
.panel-minimal {
    max-width: 480px;
    padding: 35px 30px;
    background: rgba(10, 14, 23, 0.65);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    align-items: center;
    justify-content: center;
}

.close-minimal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #64748b;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: none;
    z-index: 10;
}

.close-minimal:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.panel-minimal-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 10px;
}

.panel-icon-wrapper {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.05),
        0 15px 35px rgba(0, 0, 0, 0.3);
}

.panel-icon-wrapper::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, 0.05) 40%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.05) 60%,
        transparent 100%
    );
    animation: glassShineVertical 3s infinite linear;
    pointer-events: none;
}

@keyframes glassShineVertical {
    0% { transform: translateY(0); }
    100% { transform: translateY(200%); }
}

.panel-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.panel-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 95%;
}

.panel-input-row {
    width: 100%;
    max-width: 380px;
    margin: 0 auto 5px auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.panel-input-wrapper {
    width: 100%;
    position: relative;
}

.minimal-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 12px 14px 12px 42px;
    color: #f8fafc;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.minimal-input:focus {
    border-color: transparent;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.minimal-input::placeholder {
    color: #475569;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.25rem;
    transition: color 0.3s;
    pointer-events: none;
}

.minimal-input:focus + .input-icon,
.minimal-input:not(:placeholder-shown) ~ .input-icon {
    color: #f8fafc;
}

.inline-submit-btn {
    width: 100%;
    max-width: 200px;
    height: 48px;
    margin: 8px auto 0 auto;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(94, 234, 212, 0.2);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    flex-shrink: 0;
}

.inline-submit-btn:hover {
    background: rgba(94, 234, 212, 0.25);
    border-color: rgba(94, 234, 212, 0.5);
    color: var(--primary);
}

.inline-submit-btn:active {
    background: rgba(59, 130, 246, 0.8);
    border-color: rgba(59, 130, 246, 0.8);
}

.inline-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.admin-ai-mini {
    margin-top: 25px;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 14px 16px;
    text-align: left;
}

/* Content Protection End */
