/**
 * Ana Stil Dosyası - Stake Benzeri Premium Tema
 * Düzeltilmiş Versiyon
 */

/* CSS Değişkenleri */
:root {
    --bg-body: #0f212e;
    --bg-card: #1a2c38;
    --bg-hover: #213743;
    --bg-input: #0a1520;
    --text-main: #ffffff;
    --text-muted: #8b9bb4;
    --text-link: #b1bad3;
    --primary: #00e701;
    --primary-hover: #00cc00;
    --accent: #1475e1;
    --accent-hover: #0d5bc0;
    --danger: #ff4757;
    --warning: #ffa502;
    --success: #2ed573;
    --border: #2d3f4f;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --sidebar-width: 260px;
    --chat-width: 320px;
    --header-height: 70px;
    --transition: all 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Sayfa geçişlerinde animasyonları devre dışı bırak */
body.page-loading .sidebar-left,
body.page-loading .sidebar-right,
body.page-loading .main-wrapper,
body.page-loading .site-footer {
    transition: none !important;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: var(--transition);
}

input, select, textarea {
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border);
}

/* App Layout - Fixed positioning for all screens */
.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(180deg, rgba(15, 33, 46, 0.98) 0%, rgba(15, 33, 46, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    max-height: 40px;
    width: auto;
    max-width: 150px;
}

@media (max-width: 767px) {
    .logo {
        font-size: 16px;
    }
    
    .logo-img {
        max-height: 24px;
        max-width: 100px;
    }
}

.header-nav {
    display: flex;
    gap: 8px;
}

.header-nav a {
    padding: 10px 18px;
    color: var(--text-link);
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--text-main);
    background: var(--bg-hover);
}

.header-nav a.active {
    color: var(--primary);
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info-item {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: default;
}

.user-name-display {
    font-weight: 600;
    font-size: 13px;
    color: #fff;
}

.user-balance-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4ade80;
    font-weight: 600;
    text-decoration: none;
}

.user-balance-display svg {
    color: #4ade80;
}

.balance-currency {
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

.wallet-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
}

.wallet-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.user-menu:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #00a800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--bg-body);
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    line-height: 1.2;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-balance {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #4ade80;
    font-weight: 600;
    line-height: 1.2;
}

.user-balance .balance-currency {
    font-size: 10px;
    color: #888;
    font-weight: 500;
}

.dropdown-icon {
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.user-menu:hover .dropdown-icon {
    transform: translateY(2px);
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-body);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.btn-ghost {
    background: transparent;
    color: var(--text-link);
}

.btn-ghost:hover {
    color: var(--text-main);
    background: var(--bg-hover);
}

.btn-warning {
    background: var(--warning);
    color: var(--bg-body);
}

.btn-warning:hover {
    background: #e69500;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger);
    color: var(--text-main);
}

.btn-danger:hover {
    background: #e63946;
    transform: translateY(-1px);
}

/* Left Sidebar */
.sidebar-left {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    z-index: 100;
    padding: 20px 0;
    transition: transform 0.3s ease;
}

.sidebar-section {
    padding: 0 15px;
    margin-bottom: 25px;
}

.sidebar-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 10px;
    margin-bottom: 10px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-link);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.sidebar-menu a:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

.sidebar-menu a.active {
    background: rgba(0, 231, 1, 0.1);
    color: var(--primary);
}

.sidebar-menu a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
}

.sidebar-menu svg {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

/* Main Content Area */
.main-area,
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    margin-right: var(--chat-width);
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    width: calc(100% - var(--sidebar-width) - var(--chat-width));
    max-width: 100%;
}

.main-wrapper.sidebar-left-closed {
    margin-left: 0;
    width: calc(100% - var(--chat-width));
    max-width: 100%;
}

.main-wrapper.sidebar-right-closed {
    margin-right: 0;
    width: calc(100% - var(--sidebar-width));
    max-width: 100%;
}

.main-wrapper.sidebar-left-closed.sidebar-right-closed {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
}

.main-content {
    flex: 1;
    padding: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Right Sidebar - Chat */
.sidebar-right {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: var(--chat-width);
    height: calc(100vh - var(--header-height));
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.online-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--success);
}

.online-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-loading {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.chat-empty {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
}

.chat-empty p {
    font-size: 14px;
    line-height: 1.6;
}

.chat-error {
    text-align: center;
    padding: 30px 20px;
    color: var(--danger);
}

.chat-error p {
    font-size: 14px;
    line-height: 1.6;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex-wrap: nowrap;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    margin-bottom: 4px;
}

.chat-message:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Admin mesajları - farklı stil */
.chat-message.admin {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-left: 3px solid #e74c3c;
}

.chat-message.admin:hover {
    background: rgba(231, 76, 60, 0.12);
}

.chat-message.admin .message-username {
    color: #e74c3c;
    font-weight: 600;
}

/* Kullanıcı mesajları - normal stil */
.chat-message.user {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Sistem mesajları (susturma, rain vb.) */
.chat-message.system {
    background: rgba(0, 231, 1, 0.06);
    border: 1px solid rgba(0, 231, 1, 0.15);
    border-left: 3px solid var(--primary);
    justify-content: center;
}

.chat-message.system .message-text {
    color: var(--primary);
    font-style: italic;
    font-size: 9px;
    text-align: center;
}

/* Rain mesajları */
.chat-message.rain {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1) 0%, rgba(155, 89, 182, 0.05) 100%);
    border: 1px solid rgba(155, 89, 182, 0.25);
    border-left: 3px solid #9b59b6;
}

.chat-message.rain .message-text {
    color: #9b59b6;
    font-weight: 500;
}

.chat-message .message-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

.chat-message .message-content {
    flex: 1;
    min-width: 0;
}

.chat-message .message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.chat-message .message-username {
    font-weight: 700;
    font-size: 12px;
    color: #fff;
}

.chat-message .message-time {
    font-size: 9px;
    color: #666;
}

.chat-message .message-text {
    font-weight: 700;
    font-size: 12px;
    color: #ccc;
    word-wrap: break-word;
    line-height: 1.4;
}

.chat-message.system {
    background: rgba(0, 231, 1, 0.05);
}

.chat-message.admin .message-content {
    /* Sadece farklı renk yeterli, arka plan ve çizgi gerekmiyor */
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 9px;
    flex-shrink: 0;
}

.message-avatar.admin {
    background: var(--danger);
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.message-action-icon {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-muted);
    opacity: 0.5;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.chat-message:hover .message-action-icon {
    opacity: 1;
}

.message-action-icon:hover {
    color: var(--primary);
    background: var(--bg-hover);
}

.message-username {
    font-weight: 700;
    font-size: 12px;
}

.message-username.admin {
    color: var(--danger);
    font-weight: 700;
    font-size: 12px;
}

.message-time {
    font-size: 10px;
    color: var(--text-muted);
}

.message-text {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-link);
    word-wrap: break-word;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid var(--border);
}

.chat-form {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.chat-input {
    flex: 1;
    padding: 12px 15px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-main);
    min-width: 0;
    font-size: 16px;
}

.chat-input:focus {
    border-color: var(--primary);
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-send {
    width: 44px;
    min-width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-body);
    flex-shrink: 0;
}

.chat-send:hover {
    background: var(--primary-hover);
}

.muted-notice {
    padding: 12px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid var(--danger);
    border-radius: var(--radius);
    color: var(--danger);
    font-size: 13px;
    text-align: center;
}

.chat-login-notice {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.chat-login-notice a {
    color: var(--primary);
}

/* Footer - Inside main-area */
.site-footer {
    background: var(--bg-card);
    padding: 50px 30px 30px;
    margin-top: auto;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

/* Footer Legal Links - Yasal Bağlantılar */
.footer-legal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px 25px;
    border: 1px solid var(--border);
}

.footer-links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.footer-link-item svg {
    color: inherit;
    flex-shrink: 0;
}

.footer-link-item:hover {
    color: var(--text-main);
    background: var(--bg-hover);
}

/* Footer Payments - Ödeme Yöntemleri */
.footer-payments,
.footer-providers {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px 25px;
    border: 1px solid var(--border);
    text-align: center;
}

.footer-payments h4,
.footer-providers h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-main);
}

.payment-methods,
.provider-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.payment-placeholder,
.provider-placeholder {
    background: var(--bg-hover);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 20px 40px;
    color: var(--text-muted);
    font-size: 13px;
}

.payment-methods,
.provider-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.payment-methods .payment-logo,
.provider-logos .provider-logo {
    height: 25px;
    width: 60px;
    max-width: 60px;
    max-height: 25px;
    object-fit: contain;
    border-radius: var(--radius);
    background: transparent;
    padding: 0;
    transition: opacity 0.2s ease;
}

.payment-methods .payment-logo:hover,
.provider-logos .provider-logo:hover {
    opacity: 0.85;
}

.payment-methods .payment-logo-link,
.provider-logos .provider-logo-link {
    display: inline-block;
    text-decoration: none;
    line-height: 1;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-main);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 13px;
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom .footer-section {
    width: 100%;
    max-width: 100%;
}

/* Footer Top Section - Lisans, Copyright, Sosyal Medya */
.footer-top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

/* Footer Top Row - Desktop (License left, Copyright center, Social right) */
.footer-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.footer-license {
    flex: 0 0 auto;
}

.footer-copyright {
    flex: 1;
    text-align: center;
}

.footer-socials {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-hover);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--primary);
    color: var(--bg-main);
}

/* Footer Bottom Sections - Ödeme Yöntemleri ve Oyun Sağlayıcıları */
.footer-bottom-sections {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    margin-top: 20px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 13px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.footer-socials a:hover {
    background: var(--primary);
    color: var(--bg-body);
}

/* Hero Section */
.hero-section {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #1a2c38 0%, #0f212e 100%);
    min-height: 320px;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 50px;
    max-width: 600px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.hero-games {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.hero-game {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-link);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-decoration {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 20px;
}

.hero-card {
    width: 160px;
    height: 220px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(5deg);
    transition: var(--transition);
}

.hero-card:nth-child(2) {
    transform: rotate(-5deg) translateY(20px);
}

.hero-card:hover {
    transform: rotate(0) scale(1.05);
    z-index: 2;
}

/* Section Titles */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.section-link {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.section-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}

.view-all {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all:hover {
    text-decoration: underline;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    aspect-ratio: 4 / 3;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.game-image {
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    inset: 0;
    background: transparent;
}

.game-image svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    opacity: 0.5;
    position: relative;
    z-index: 1;
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-btn {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: var(--transition);
}

.game-card:hover .play-btn {
    transform: scale(1);
}

.favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.favorite-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.favorite-btn.active {
    color: #ff4757;
}

.favorite-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.play-btn svg {
    width: 14px;
    height: 14px;
    color: var(--bg-body);
    opacity: 1;
}

.game-info {
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
    visibility: visible;
    opacity: 1;
}

.game-name {
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-provider {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-provider {
    font-size: 12px;
    color: var(--text-muted);
}

.game-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

/* Categories */
.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-link);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

.category-tab:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

.category-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-body);
}

/* Hero Slider */
/* ========================================
   YENİ SLIDER SİSTEMİ
   Masaüstü: 769px+
   Mobil: 768px ve altı
   ======================================== */

/* Slider Kontrolleri */
.slider-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Ana Slider Container */
.hero-slider {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #0a0a0a;
}

/* Desktop Slider - Resim Boyutuna Göre Otomatik Yükseklik */
.hero-slider.desktop-slider {
    display: block;
    height: auto;
    width: 100%;
}

.hero-slider.desktop-slider .hero-slide {
    display: none;
    width: 100%;
    height: auto;
    position: relative;
}

.hero-slider.desktop-slider .hero-slide.active {
    display: block;
}

.hero-slider.desktop-slider .slider-link {
    display: block;
    width: 100%;
    height: auto;
}

.hero-slider.desktop-slider .slider-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: fill;
    object-position: center;
}

/* Mobile Slider - Resim Boyutuna Göre Otomatik Yükseklik */
.hero-slider.mobile-slider {
    display: none;
    height: auto;
    width: 100%;
}

.hero-slider.mobile-slider .hero-slide {
    display: none;
    width: 100%;
    height: auto;
    position: relative;
}

.hero-slider.mobile-slider .hero-slide.active {
    display: block;
}

.hero-slider.mobile-slider .slider-link {
    display: block;
    width: 100%;
    height: auto;
}

.hero-slider.mobile-slider .slider-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: fill;
    object-position: center;
}

/* Responsive - Desktop göster */
@media (min-width: 769px) {
    .hero-slider.desktop-slider {
        display: block;
    }
    .hero-slider.mobile-slider {
        display: none;
    }
}

/* Responsive - Mobil göster */
@media (max-width: 768px) {
    .hero-slider.desktop-slider {
        display: none;
    }
    .hero-slider.mobile-slider {
        display: block;
    }
}


.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary);
    color: var(--bg-body);
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.hero-slide {
    display: none;
}

.hero-slide.active {
    display: block;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 231, 1, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(20, 117, 225, 0.1) 0%, transparent 50%);
}

.auth-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.auth-header h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-link);
}

.form-input {
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 14px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 231, 1, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-group input,
.form-group select {
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 231, 1, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input.error {
    border-color: var(--danger);
}

.error-message {
    color: var(--danger);
    font-size: 12px;
}

.auth-submit {
    margin-top: 10px;
}

.auth-submit .btn {
    width: 100%;
    padding: 16px;
    font-size: 15px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--text-muted);
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

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

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

/* Mobile Header */
.mobile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-left: 10px;
}

.mobile-header:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.mobile-header svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    fill: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    animation: modalIn 0.3s ease;
}

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

.modal-header {
    position: relative;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Admin Badge */
.admin-badge {
    padding: 2px 6px;
    background: var(--danger);
    color: white;
    font-size: 9px;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
}

/* Rain Button */
.rain-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.rain-btn:hover {
    background: var(--accent-hover);
}

/* Admin Chat Buttons Container */
.admin-chat-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.admin-chat-buttons .rain-btn,
.admin-chat-buttons .clear-btn {
    flex: 1;
    padding: 10px;
    font-size: 13px;
}

/* Admin Chat Buttons - Support for .btn classes */
.admin-chat-buttons .btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 13px;
    width: auto;
    justify-content: center;
}

.admin-chat-buttons .btn svg {
    width: 16px;
    height: 16px;
}

/* Clear Button */
.clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--danger);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.clear-btn:hover {
    background: #c0392b;
}

/* Guest Section */
.guest-section {
    margin-bottom: 40px;
}

.welcome-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-hover) 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    border: 1px solid var(--border);
}

.welcome-content {
    flex: 1;
}

.welcome-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.welcome-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-link);
}

.welcome-buttons {
    display: flex;
    gap: 15px;
}

.welcome-image {
    flex-shrink: 0;
}

.welcome-image svg {
    width: 120px;
    height: 120px;
    color: var(--primary);
    opacity: 0.3;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* Mobile Chat Button */
.mobile-chat-button {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 231, 1, 0.4);
    z-index: 998;
    cursor: pointer;
}

.mobile-chat-button svg {
    width: 24px;
    height: 24px;
    color: var(--bg-body);
}

/* Games Section */
.games-section {
    margin-bottom: 50px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #0d1f2d !important;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    animation: slideIn 0.3s ease;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
}

.toast.removing {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon svg {
    width: 20px;
    height: 20px;
}

.toast-content {
    flex: 1;
    word-wrap: break-word;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
}

.toast-close:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

.toast-close svg {
    width: 16px;
    height: 16px;
}

/* Toast Types */
.toast-success {
    border-color: #00e701;
    background: #0a1f12 !important;
}

.toast-success .toast-icon {
    color: #00e701;
}

.toast-error {
    border-color: #e74c3c;
    background: #1a0a0a !important;
}

.toast-error .toast-icon {
    color: #e74c3c;
}

.toast-warning {
    border-color: #f1c40f;
    background: #1a1a0a !important;
}

.toast-warning .toast-icon {
    color: #f1c40f;
}

.toast-info {
    border-color: #3498db;
    background: #0a1a26 !important;
}

.toast-info .toast-icon {
    color: #3498db;
}

/* Mobile Toast */
@media (max-width: 480px) {
    .toast-container {
        top: auto;
        bottom: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}


/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 420px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-large {
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
    background: var(--bg-hover);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
}

.modal-close:active {
    transform: scale(0.95);
}

.modal-header {
    position: relative;
    text-align: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.modal-form .form-group {
    margin-bottom: 20px;
}

.modal-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 14px;
}

.modal-form .form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.modal-form .form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
}

.modal-footer-text {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.modal-footer-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

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

.error-message {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid var(--danger);
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
    color: var(--danger);
    font-size: 14px;
    text-align: center;
}

/* Game Modal Styles */
.game-provider-name {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 5px;
}

.user-balance {
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

.game-mode-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.mode-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-hover);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

.mode-btn svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.mode-btn span {
    font-size: 16px;
    font-weight: 600;
}

.mode-btn small {
    font-size: 12px;
    color: var(--text-muted);
}

.mode-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 231, 1, 0.2);
}

.fun-mode {
    border-color: var(--accent);
}

.fun-mode svg {
    color: var(--accent);
}

.fun-mode:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(20, 117, 225, 0.3);
}

.real-mode {
    border-color: var(--primary);
}

.real-mode:hover {
    border-color: var(--primary);
}

.game-loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-hover);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.game-iframe {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    background: #000;
    display: none;
}

/* Responsive */
@media (max-width: 600px) {
    .modal-container {
        padding: 20px;
        max-width: 100%;
    }
    
    .game-mode-selection {
        grid-template-columns: 1fr;
    }
    
    .game-iframe {
        height: 400px;
    }
}

/* Profile Modal - Şifre Değiştirme Buton Boşluğu */
#passwordModal .form-group {
    margin-bottom: 15px;
}

#passwordModal .form-group:last-of-type {
    margin-bottom: 15px;
}

#passwordModal .form-error {
    margin-bottom: 15px;
}

#passwordModal .btn {
    margin-top: 10px;
}

/* ========================================
   LİSANS MODAL - PROFESYONELTasarım
   ======================================== */
.license-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.license-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.license-modal {
    width: 100%;
    max-width: 900px;
    height: 90vh;
    max-height: 800px;
    background: linear-gradient(145deg, #0f212e 0%, #1a2c38 100%);
    border-radius: 20px;
    border: 1px solid rgba(0, 231, 1, 0.2);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(0, 231, 1, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Header */
.license-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: linear-gradient(180deg, rgba(0, 231, 1, 0.08) 0%, transparent 100%);
    border-bottom: 1px solid rgba(0, 231, 1, 0.15);
    flex-shrink: 0;
}

.license-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.license-modal-title svg {
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(0, 231, 1, 0.5));
}

.license-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.license-modal-close:hover {
    background: rgba(255, 71, 87, 0.15);
    border-color: rgba(255, 71, 87, 0.4);
    color: var(--danger);
    transform: rotate(90deg);
}

/* Body - iframe container */
.license-modal-body {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: #0a1520;
}

.license-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #0a1520;
    display: block;
}

/* Footer */
.license-modal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    background: linear-gradient(0deg, rgba(0, 231, 1, 0.05) 0%, transparent 100%);
    border-top: 1px solid rgba(0, 231, 1, 0.1);
    flex-shrink: 0;
}

.license-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(0, 231, 1, 0.15) 0%, rgba(0, 231, 1, 0.05) 100%);
    border: 1px solid rgba(0, 231, 1, 0.3);
    border-radius: 30px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.license-badge svg {
    color: var(--primary);
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .license-modal-overlay {
        padding: 0;
    }

    .license-modal {
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .license-modal-header {
        padding: 15px 20px;
    }

    .license-modal-title {
        font-size: 16px;
    }

    .license-modal-title svg {
        width: 20px;
        height: 20px;
    }

    .license-modal-close {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .license-modal-footer {
        padding: 12px 20px;
    }

    .license-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .license-modal-header {
        padding: 12px 15px;
    }

    .license-modal-title span {
        font-size: 14px;
    }

    .license-modal-close {
        width: 32px;
        height: 32px;
    }

    .license-modal-footer {
        padding: 10px 15px;
    }
}
