/* --- DİNAMİK TEMA DEĞİŞKENLERİ --- */
:root {
    --bg-color: #1a1a24; 
    --glass-bg: rgba(30, 30, 40, 0.95);
    --text-color: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    --input-bg: #2f3542;
    --msg-yabanci-bg: #2f3542;
    --msg-yabanci-text: #ffffff;
    --chat-bg: rgba(30, 30, 40, 0.8);
    --topbar-bg: rgba(0, 0, 0, 0.4);
    --controls-bg: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
    --bg-color: #e2e8f0; 
    --glass-bg: rgba(255, 255, 255, 0.98);
    --text-color: #2d3436;
    --border-color: rgba(0, 0, 0, 0.15);
    --input-bg: #ffffff;
    --msg-yabanci-bg: #dfe4ea;
    --msg-yabanci-text: #2d3436;
    --chat-bg: rgba(255, 255, 255, 0.8);
    --topbar-bg: rgba(255, 255, 255, 0.6);
    --controls-bg: rgba(255, 255, 255, 0.6);
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease;
}

.logo-container:hover { transform: scale(1.05); }

.logo-img {
    height: 34px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-img-lg {
    height: 52px;
    margin: 0 auto;
}

.logo-togle {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(45deg, #1e90ff, #2ed573);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-tv {
    background-color: #ff4757;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 6px;
    margin-left: 5px;
    animation: pulse-tv 2s infinite;
}

@keyframes pulse-tv {
    0% { box-shadow: 0 0 5px rgba(255, 71, 87, 0.4); }
    50% { box-shadow: 0 0 15px rgba(255, 71, 87, 0.9); }
    100% { box-shadow: 0 0 5px rgba(255, 71, 87, 0.4); }
}

#ads-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
}

#ads-content-box {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.ads-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 55;
    background: rgba(255, 71, 87, 0.9);
    padding: 8px 15px;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
}

#ad-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #111;
}

#ad-video-placeholder h2 {
    font-size: 32px;
    margin: 0;
    color: #fff;
}

#ad-video-placeholder p {
    color: #aaa;
    font-size: 18px;
}

#real-ad-video, #real-ad-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#skip-ad-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 55;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    cursor: not-allowed;
}

#skip-ad-btn.active {
    background: #fff;
    color: #000;
    cursor: pointer;
}

* { box-sizing: border-box; }

.vip-btn {
    background: linear-gradient(45deg, #f1c40f, #e67e22);
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    color: var(--text-color);
}

#login-page, .modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

.modal-overlay { background: rgba(0, 0, 0, 0.8); z-index: 10000; }
.modal-overlay[hidden], #chat-page[hidden], #vip-modal[hidden], #report-modal[hidden] { display: none !important; }

.login-box {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 20px;
    width: 380px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.login-box select, .login-box textarea {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 15px;
    outline: none;
}

.start-btn {
    background: linear-gradient(45deg, #2ed573, #1e90ff);
    color: white;
    font-weight: bold;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}

.start-btn.secondary { background: #7f8c8d; }
.start-btn.danger { background: #ff4757; }

.theme-btn-login, .theme-btn-chat {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

#chat-page { display: flex; flex-direction: column; height: 100vh; width: 100%; }

.top-bar {
    flex: 0 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    background-color: var(--topbar-bg);
    border-bottom: 1px solid var(--border-color);
}

.top-actions { display: flex; align-items: center; gap: 15px; }

#vip-badge {
    background: #ffd32a;
    color: #000;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.video-container {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    padding: 15px;
    gap: 15px;
    position: relative;
    background: #000;
}

.video-box {
    flex: 1;
    background: #111;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.video-box video { width: 100%; height: 100%; object-fit: cover; }
#my-video video { transform: scaleX(-1); }

.video-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 10;
}

.report-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #ff4757;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    display: none;
    z-index: 20;
}

#searching-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

#searching-overlay[hidden] { display: none !important; }

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid #1e90ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.controls {
    flex: 0 0 35vh;
    display: flex;
    padding: 15px;
    gap: 15px;
    background-color: var(--controls-bg);
    border-top: 1px solid var(--border-color);
}

.chat-section {
    flex: 3;
    background-color: var(--chat-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.chat-header {
    padding: 12px 15px;
    background: rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border-color);
    font-weight: bold;
}

#chat-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#chat-messages div {
    padding: 10px 15px;
    border-radius: 15px;
    width: fit-content;
    max-width: 80%;
    word-break: break-word;
}

.msg-sen { background: #1e90ff; color: white; align-self: flex-end; }
.msg-yabanci { background-color: var(--msg-yabanci-bg); color: var(--msg-yabanci-text); align-self: flex-start; }
.msg-sistem { color: #ff4757; font-weight: bold; font-size: 13px; align-self: center; }

.typing-indicator {
    font-size: 13px;
    color: #1e90ff;
    font-style: italic;
    padding: 0 15px 5px;
}

.input-area {
    display: flex;
    padding: 15px;
    gap: 10px;
}

.input-area input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    color: var(--text-color);
}

.send-btn {
    padding: 10px 25px;
    background: #1e90ff;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
}

.action-buttons { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.next-btn, .end-btn { flex: 1; font-size: 20px; font-weight: bold; border: none; border-radius: 15px; cursor: pointer; color: white; }
.next-btn { background: linear-gradient(45deg, #ffa502, #ff7f50); }
.end-btn { background: #ff4757; }

.field-label { font-size: 12px; opacity: 0.7; text-align: left; display: block; margin-top: 10px; }
.vip-row { margin-top: 15px; display: flex; gap: 5px; }
.vip-row input { flex: 2; padding: 12px; border-radius: 10px; border: 1px solid var(--border-color); background-color: var(--input-bg); color: var(--text-color); }
.warning-line { color: #ff4757; font-size: 11px; font-weight: bold; margin-top: 10px; }
.vip-modal-box { width: 450px; }
.vip-modal-box h2 { color: #ffd32a; margin-top: 0; }
.info-panel { background: rgba(0,0,0,0.3); padding: 15px; border-radius: 10px; text-align: left; margin-bottom: 10px; border: 1px solid rgba(255,255,255,0.1); }
.info-panel.danger { border-color: #ff4757; color: #ff4757; }
.iban { color: #fff; font-family: monospace; letter-spacing: 1px; font-size: 13px; }
.danger-title { color: #ff4757; margin-top: 0; }
.modal-actions { display: flex; gap: 10px; margin-top: 15px; }
.modal-actions .start-btn { flex: 1; margin-top: 0; }

.connection-status {
    min-height: 18px;
    margin: -4px 0 0;
    color: #8fa0b8;
    font-size: 12px;
}

.connection-status.is-ready { color: #2ed573; }
.connection-status.is-error { color: #ff6b7a; }

#mobile-landing[hidden] { display: none !important; }

body.mobile-site {
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    color: #f7f9ff;
    background:
        radial-gradient(circle at 12% 10%, rgba(46, 213, 115, 0.16), transparent 28rem),
        radial-gradient(circle at 88% 28%, rgba(30, 144, 255, 0.22), transparent 30rem),
        #080b14;
}

body.mobile-site #login-page,
body.mobile-site #chat-page,
body.mobile-site #vip-modal,
body.mobile-site #report-modal {
    display: none !important;
}

body.mobile-site #mobile-landing {
    display: block;
    min-height: 100vh;
    color: #f7f9ff;
}

.mobile-nav {
    width: min(100% - 36px, 680px);
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-logo { width: 132px; height: auto; }

.mobile-nav-cta {
    color: #f7f9ff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.mobile-main {
    width: min(100% - 36px, 680px);
    margin: 0 auto;
}

.mobile-hero {
    padding: 54px 0 40px;
    text-align: center;
}

.mobile-eyebrow {
    margin: 0 0 18px;
    color: #93a4bb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.mobile-eyebrow span {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #2ed573;
    box-shadow: 0 0 15px rgba(46, 213, 115, 0.75);
}

.mobile-hero h1 {
    max-width: 620px;
    margin: 0 auto;
    color: #fff;
    font-size: clamp(40px, 12vw, 66px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.mobile-hero h1 em {
    color: #62a9ff;
    font-style: normal;
}

.mobile-lead {
    max-width: 460px;
    margin: 24px auto 0;
    color: #a8b3c6;
    font-size: 17px;
    line-height: 1.6;
}

.phone-stage {
    position: relative;
    width: min(78vw, 330px);
    margin: 44px auto 34px;
    aspect-ratio: 0.82;
    display: grid;
    place-items: center;
}

.signal {
    position: absolute;
    border: 1px solid rgba(98, 169, 255, 0.18);
    border-radius: 50%;
}

.signal-one { inset: 8% -20%; }
.signal-two { inset: -3% -33%; opacity: 0.55; }

.phone-shell {
    position: relative;
    width: 76%;
    height: 100%;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 38px;
    background: linear-gradient(145deg, #253148, #090d18 72%);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5), 0 0 65px rgba(30, 144, 255, 0.16);
    transform: rotate(3deg);
}

.phone-camera {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 50%;
    width: 62px;
    height: 18px;
    transform: translateX(-50%);
    border-radius: 20px;
    background: #05070c;
}

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 30px;
    background: #0d1322;
}

.preview-person {
    position: absolute;
    display: grid;
    place-items: center;
    color: #fff;
    overflow: hidden;
}

.preview-person-one {
    inset: 0 0 48% 0;
    background: linear-gradient(145deg, #214c57, #10242c);
}

.preview-person-two {
    inset: 52% 0 0 0;
    background: linear-gradient(145deg, #263c68, #111a31);
}

.preview-face {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.1);
    font-size: 28px;
    font-weight: 800;
}

.preview-person small {
    position: absolute;
    left: 16px;
    bottom: 14px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.44);
}

.preview-pill {
    position: absolute;
    z-index: 2;
    top: 31px;
    right: 12px;
    padding: 6px 9px;
    color: #8cf0b3;
    border-radius: 999px;
    background: rgba(7, 16, 17, 0.65);
    font-size: 9px;
    font-weight: 800;
}

.preview-controls {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 15px;
    display: flex;
    gap: 7px;
    transform: translateX(-50%);
}

.preview-controls span {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.17);
    backdrop-filter: blur(8px);
}

.preview-controls span:last-child { background: #ff5266; }

.mobile-download {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.store-primary {
    width: min(100%, 350px);
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    color: #05101b;
    text-decoration: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #2ed573, #6fe7a0);
    box-shadow: 0 18px 45px rgba(46, 213, 115, 0.22);
}

.store-primary:active { transform: scale(0.985); }

.store-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(5, 16, 27, 0.16);
    border-radius: 11px;
    font-size: 22px;
}

.store-primary span:last-child { display: grid; text-align: left; }
.store-primary small { font-size: 10px; font-weight: 700; opacity: 0.7; }
.store-primary strong { font-size: 17px; }
.mobile-download > p { margin: 13px 0 7px; color: #8391a8; font-size: 12px; }
.store-alternatives { display: flex; gap: 9px; color: #596a82; font-size: 12px; }
.store-alternatives a { color: #a9b7cb; }

.mobile-benefits {
    display: grid;
    gap: 12px;
    padding: 30px 0 54px;
}

.mobile-benefits article {
    position: relative;
    padding: 24px 22px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
}

.mobile-benefits b { color: #62a9ff; font-size: 11px; letter-spacing: 0.1em; }
.mobile-benefits h2 { margin: 12px 0 6px; font-size: 19px; }
.mobile-benefits p { margin: 0; color: #8f9bb0; font-size: 14px; line-height: 1.55; }

.mobile-safety {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 56px;
    padding: 24px;
    text-align: left;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.17), rgba(46, 213, 115, 0.08));
}

.safety-mark {
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #07150f;
    border-radius: 15px;
    background: #2ed573;
    font-size: 22px;
    font-weight: 900;
}

.mobile-safety .mobile-eyebrow { margin: 2px 0 9px; color: #71aef8; }
.mobile-safety h2 { margin: 0 0 8px; font-size: 22px; }
.mobile-safety div > p:last-child { margin: 0; color: #9ba8bc; font-size: 14px; line-height: 1.55; }

.mobile-footer {
    width: min(100% - 36px, 680px);
    margin: 0 auto;
    padding: 26px 0 34px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-footer img { width: 105px; opacity: 0.9; }
.mobile-footer p { margin: 12px 0 0; color: #617089; font-size: 11px; }

@media (min-width: 560px) {
    .mobile-benefits { grid-template-columns: repeat(3, 1fr); }
    .mobile-benefits article { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
