:root {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #311042 100%);
    --panel-bg: rgba(255, 255, 255, 0.04);
    --panel-border: rgba(255, 255, 255, 0.08);
    --accent-color: #8b5cf6;
    --accent-hover: #7c3aed;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    overflow-x: hidden;
    position: relative;
}

.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: color 0.2s;
    align-self: center;
}

.nav-back:hover {
    color: var(--text-main);
}

.app-header {
    text-align: center;
    margin-bottom: 24px;
    width: 100%;
}

.brand-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(to right, #c084fc, #a855f7);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.brand-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* MAIN LAYOUT */
.main-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    margin: auto 0;
}

.side-slot {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

.app-container {
    width: 720px;
    flex-shrink: 0;
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 2;
}

/* TEXTAREA ALANI & KİŞİSELLEŞTİRİLMİŞ ÖZEL SCROLLBAR */
.text-input-wrapper {
    width: 100%;
}

.text-input {
    width: 100%;
    height: 180px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 16px 20px;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Şık Kaydırma Çubuğu (Scrollbar) */
.text-input::-webkit-scrollbar {
    width: 8px;
}

.text-input::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 16px 16px 0;
}

.text-input::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
}

.text-input::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.text-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
}

.text-input::placeholder {
    color: var(--text-muted);
}

/* ACTION BAR */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.case-buttons, .util-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.action-btn.translate {
    background: rgba(66, 133, 244, 0.15);
    border-color: rgba(66, 133, 244, 0.35);
    color: #60a5fa;
}

.action-btn.translate:hover {
    background: #2563eb;
    color: white;
}

.action-btn.primary {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    color: #c084fc;
}

.action-btn.primary:hover {
    background: var(--accent-color);
    color: white;
}

.action-btn.danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.action-btn.danger:hover {
    background: #ef4444;
    color: white;
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #c084fc;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* SOSYAL MEDYA ALANI */
.social-section {
    border-top: 1px solid var(--panel-border);
    padding-top: 18px;
}

.social-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 12px;
}

.social-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-card {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 10px 14px;
}

.social-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    margin-bottom: 6px;
    color: var(--text-main);
}

.limit-text {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-color);
    border-radius: 4px;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.progress-fill.over-limit {
    background: #ef4444;
}

/* BILLBOARD'LAR */
.billboard-container {
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.billboard-frame {
    width: 100%;
    height: 480px;
    background: #090d16;
    border: 10px solid #111827;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(139, 92, 246, 0.25);
    position: relative;
    overflow: hidden;
}

.billboard-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

.billboard-track {
    display: flex;
    width: 200%;
    height: 100%;
    animation: slideAd 10s infinite cubic-bezier(0.85, 0, 0.15, 1);
}

@keyframes slideAd {
    0%, 45% { transform: translateX(0%); }
    50%, 95% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

.billboard-slide {
    width: 50%;
    height: 100%;
    flex-shrink: 0;
}

.ad-content {
    width: 100%;
    height: 100%;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.ad-purple {
    background: linear-gradient(180deg, #2e1065 0%, #4c1d95 100%);
    color: white;
}

.ad-dark {
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
    color: white;
}

.ad-neon {
    background: linear-gradient(180deg, #581c87 0%, #0f172a 100%);
    color: white;
}

.ad-brand {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    opacity: 0.75;
    margin-bottom: 12px;
}

.ad-content h4 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.25;
}

.ad-content p {
    font-size: 0.9rem;
    opacity: 0.85;
}

.billboard-glass-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
    pointer-events: none;
    animation: shine 6s infinite;
}

@keyframes shine {
    0%, 70% { left: -100%; }
    100% { left: 200%; }
}

.billboard-stand {
    width: 32px;
    height: 60px;
    background: linear-gradient(to right, #1f2937, #111827, #1f2937);
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

.app-footer {
    margin-top: 28px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 1350px) {
    .main-layout {
        flex-direction: column;
        gap: 20px;
    }

    .side-slot {
        width: 100%;
        max-width: 720px;
        min-width: 0;
    }

    .billboard-container {
        width: 100%;
        max-width: 720px;
    }

    .billboard-frame {
        height: 110px;
        border-width: 5px;
        border-radius: 16px;
    }

    .billboard-stand {
        display: none;
    }

    .ad-content {
        flex-direction: row;
        justify-content: space-around;
        padding: 12px 24px;
    }

    .ad-brand {
        margin-bottom: 0;
    }

    .ad-content h4 {
        font-size: 1.15rem;
        margin-bottom: 0;
    }

    .ad-content p {
        font-size: 0.82rem;
    }
}

@media (max-width: 768px) {
    .app-container {
        width: 100%;
        padding: 20px 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ad-content {
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        padding: 10px;
    }
}

/* SAĞ ALT DİL SEÇİCİ */
.lang-selector-wrapper {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
    background: rgba(30, 27, 75, 0.9) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
    padding: 8px 14px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(139, 92, 246, 0.25);
    z-index: 99999 !important;
}

.lang-icon {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.lang-dropdown {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.lang-dropdown option {
    background: #0f172a;
    color: #ffffff;
}

@media (max-width: 768px) {
    .lang-selector-wrapper {
        bottom: 16px !important;
        right: 16px !important;
        padding: 6px 12px;
    }
}