/* ============================================
   StubHub Panel - Modern SaaS Design
   ============================================ */

/* === CSS Variables === */
:root {
    /* Light Mode (default) */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-sidebar: #ffffff;
    --bg-elevated: #ffffff;
    --bg-hover: #f1f5f9;
    --bg-active: #eef2ff;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --text-inverse: #ffffff;

    --border-color: #e2e8f0;
    --border-strong: #cbd5e1;

    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-light: #eef2ff;
    --accent-glow: rgba(99, 102, 241, 0.15);

    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --sidebar-width: 260px;
    --header-height: 70px;

    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

[data-theme="dark"] {
    --bg-primary: #08090d;
    --bg-secondary: #11141c;
    --bg-tertiary: #161924;
    --bg-sidebar: #0d0f15;
    --bg-elevated: #161924;
    --bg-hover: #1a1d28;
    --bg-active: #1f2330;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #64748b;
    --text-inverse: #0f172a;

    --border-color: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);

    --accent: #818cf8;
    --accent-hover: #a5b4fc;
    --accent-light: #1e1b4b;
    --accent-glow: rgba(129, 140, 248, 0.2);

    --success: #34d399;
    --success-light: #064e3b;
    --warning: #fbbf24;
    --warning-light: #451a03;
    --danger: #f87171;
    --danger-light: #450a0a;
    --info: #60a5fa;
    --info-light: #1e3a8a;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4);
    --shadow-md: 0 4px 12px -2px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 12px 30px -8px rgb(0 0 0 / 0.6);
    --shadow-xl: 0 30px 80px -20px rgb(0 0 0 / 0.7);
}

/* Dark mode - landing tarzı atmospheric arka plan */
[data-theme="dark"] body {
    position: relative;
}
[data-theme="dark"] body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle 800px at 15% 20%, rgba(99, 102, 241, 0.10), transparent 60%),
        radial-gradient(circle 700px at 85% 70%, rgba(139, 92, 246, 0.08), transparent 60%),
        radial-gradient(circle 500px at 50% 110%, rgba(236, 72, 153, 0.05), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
[data-theme="dark"] body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}
[data-theme="dark"] .app-layout {
    position: relative;
    z-index: 1;
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

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

/* === AUTH PAGES (Login / Register) === */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #08090d;
    color: #f8fafc;
    position: relative;
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* Atmospheric blob'lar - landing'le aynı */
.auth-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle 600px at 15% 20%, rgba(0, 255, 157, 0.12), transparent 60%),
        radial-gradient(circle 500px at 85% 60%, rgba(0, 212, 255, 0.08), transparent 60%),
        radial-gradient(circle 400px at 50% 100%, rgba(251, 191, 36, 0.05), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Grid pattern */
.auth-body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.auth-card {
    background: #11141c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 255, 157, 0.05);
    padding: 44px 38px;
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
}

/* Brand (TixAlert landing tarzı) */
.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}
.auth-brand:hover { opacity: 0.85; }
.auth-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: linear-gradient(135deg, #00ff9d 0%, #00d4ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 0 24px rgba(0, 255, 157, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.auth-brand:hover .auth-brand-mark {
    transform: rotate(-4deg) scale(1.05);
    box-shadow: 0 0 32px rgba(0, 255, 157, 0.55);
}
.auth-brand-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #f8fafc;
}
.auth-brand-text span {
    color: #00ff9d;
}

/* Eski auth-logo sınıfları (backward compat) */
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}
.auth-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #00ff9d 0%, #00d4ff 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 0 24px rgba(0, 255, 157, 0.35);
}
.auth-logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #f8fafc;
}

.auth-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-top: 26px;
    margin-bottom: 6px;
    color: #f8fafc;
    letter-spacing: -0.8px;
}

.auth-subtitle {
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 32px;
}

/* Auth body içi formlar - dark theme'e zorla */
.auth-body .form-control {
    background: #0d0f15;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}
.auth-body .form-control:focus {
    border-color: #00ff9d;
    box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.15);
    background: #0d0f15;
}
.auth-body .form-control::placeholder {
    color: #64748b;
}
.auth-body label {
    color: #cbd5e1;
}
.auth-body .input-help {
    color: #64748b;
}
.auth-body .btn-primary {
    background: linear-gradient(135deg, #00ff9d 0%, #00d4ff 100%);
    color: #000;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(0, 255, 157, 0.25);
}
.auth-body .btn-primary:hover {
    box-shadow: 0 12px 32px rgba(0, 255, 157, 0.4);
    transform: translateY(-1px);
}
.auth-body .alert-info {
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: #cbd5e1;
}
.auth-body .alert-error,
.auth-body .alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}
.auth-body .alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 7px;
    letter-spacing: 0.2px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

textarea.form-control {
    resize: vertical;
    min-height: 90px;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 12px;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px var(--accent-glow);
    letter-spacing: 0.2px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow);
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

.btn-danger:hover {
    background: #dc2626;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.btn-sm {
    padding: 7px 12px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

/* Auth Footer Link */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

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

.auth-body .auth-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}
.auth-body .auth-footer a {
    color: #00ff9d;
    font-weight: 700;
    text-decoration: none;
}
.auth-body .auth-footer a:hover {
    text-decoration: underline;
}

/* Alert / Messages */
.alert {
    padding: 13px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid;
}

.alert-error {
    background: var(--danger-light);
    color: var(--danger);
    border-color: var(--danger);
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
    border-color: var(--success);
}

.alert-warning {
    background: var(--warning-light);
    color: var(--warning);
    border-color: var(--warning);
}

.alert-info {
    background: var(--info-light);
    color: var(--info);
    border-color: var(--info);
}

/* === DASHBOARD LAYOUT === */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 22px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 38px;
    height: 38px;
    background: var(--gradient-1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.sidebar-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.sidebar-subtitle {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section-title {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    transition: all 0.15s;
    cursor: pointer;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
}

.nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-badge {
    margin-left: auto;
    background: var(--accent);
    color: white;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-weight: 700;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    cursor: pointer;
    transition: background 0.15s;
}

.user-card:hover {
    background: var(--bg-hover);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: var(--header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.4px;
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.content-wrapper {
    padding: 32px;
    flex: 1;
}

/* === STATS GRID === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.purple { background: var(--accent-light); color: var(--accent); }
.stat-icon.green { background: var(--success-light); color: var(--success); }
.stat-icon.orange { background: var(--warning-light); color: var(--warning); }
.stat-icon.blue { background: var(--info-light); color: var(--info); }
.stat-icon.red { background: var(--danger-light); color: var(--danger); }

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.8px;
    line-height: 1.1;
}

.stat-meta {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* === CARD === */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title svg {
    color: var(--accent);
}

.card-body {
    padding: 24px;
}

.card-body-flush {
    padding: 0;
}

/* === TABLE === */
.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--bg-tertiary);
}

.data-table th {
    text-align: left;
    padding: 13px 18px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.data-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-primary);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background 0.15s;
}

.data-table tbody tr:hover {
    background: var(--bg-hover);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.event-name-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 200px;
}

.event-name-cell strong {
    font-weight: 600;
    color: var(--text-primary);
}

.event-url {
    font-size: 11px;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.price-display {
    font-size: 18px;
    font-weight: 800;
    color: var(--success);
    letter-spacing: -0.5px;
}

.price-display.empty {
    color: var(--text-tertiary);
    font-weight: 500;
    font-size: 14px;
}

.price-currency {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 600;
    margin-left: 3px;
    text-transform: uppercase;
}

.action-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-neutral { background: var(--bg-tertiary); color: var(--text-secondary); }

/* === EMPTY STATE === */
.empty-state {
    padding: 60px 24px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-state-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
}

.empty-state h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 18px;
}

/* === FORM ROW === */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

/* === MODAL === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.25s ease;
}

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

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-body { padding: 24px 28px; }

.modal-footer {
    padding: 18px 28px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* === TOAST === */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    pointer-events: auto;
    animation: slideInRight 0.3s ease;
    border-left: 3px solid var(--accent);
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

.toast-icon {
    flex-shrink: 0;
}
.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.warning .toast-icon { color: var(--warning); }

.toast-message {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* === LOADING SPINNER === */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

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

/* === INSTALL PAGE === */
.install-container {
    width: 100%;
    max-width: 600px;
    z-index: 1;
    position: relative;
}

.install-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 40px;
}

.install-header { text-align: center; margin-bottom: 30px; }

.install-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--gradient-1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 8px 24px var(--accent-glow);
}

.install-header h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-primary);
}

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

.install-status {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    text-align: center;
}

.install-status.success { background: var(--success-light); color: var(--success); }
.install-status.error { background: var(--danger-light); color: var(--danger); }

.install-log {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 18px;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 13px;
    margin-bottom: 22px;
}

.log-line { padding: 3px 0; }
.log-line.ok { color: var(--success); }
.log-line.err { color: var(--danger); }

.install-credentials {
    background: var(--accent-light);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 18px;
}

.install-credentials h3 {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 700;
}

.cred-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.cred-row span { color: var(--text-secondary); }
.cred-row strong { color: var(--text-primary); font-family: 'Monaco', monospace; }

.install-warning {
    background: var(--warning-light);
    color: var(--warning);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    margin-bottom: 22px;
}

.install-warning code {
    background: rgba(0,0,0,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', monospace;
}

.install-btn { text-decoration: none; }

/* === Date format === */
.date-display {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.date-display strong { color: var(--text-primary); display: block; font-weight: 600; }

/* === Helper === */
.text-muted { color: var(--text-tertiary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-bold { font-weight: 700; }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-3 { margin-bottom: 16px; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* === Responsive === */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-xl);
    }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .mobile-menu-btn { display: inline-flex; }
    .content-wrapper { padding: 20px; }
    .topbar { padding: 0 18px; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .auth-card { padding: 32px 24px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
    .stats-grid { grid-template-columns: 1fr; }
    .page-title { font-size: 18px; }
}

/* Sidebar overlay on mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}
.sidebar-overlay.active { display: block; }

/* Tooltip on update button */
.tooltip {
    position: relative;
}
.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 5px 9px;
    border-radius: 5px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}
.tooltip:hover::after { opacity: 1; }

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.filter-bar .form-control {
    flex: 1;
    min-width: 200px;
}

/* Search input with icon */
.search-input {
    position: relative;
    flex: 1;
    min-width: 200px;
}
.search-input svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}
.search-input input {
    padding-left: 40px;
}

/* Section: row info display */
.seat-info {
    font-size: 12px;
    color: var(--text-secondary);
}
.seat-info strong { color: var(--text-primary); }

/* Last checked time */
.last-checked {
    font-size: 11px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* Cookie textarea help */
.input-help {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 6px;
}

/* Pulsing update button */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.btn-icon.loading { animation: pulse 1s infinite; pointer-events: none; }

/* === AUTO UPDATE TOGGLE === */
.auto-toggle {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
    cursor: pointer;
    vertical-align: middle;
}
.auto-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border-strong);
    border-radius: 22px;
    transition: background 0.2s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.auto-toggle input:checked + .toggle-slider {
    background: var(--accent);
}
.auto-toggle input:checked + .toggle-slider::before {
    transform: translateX(16px);
}

/* === COMPACT TABLE FIX (Auto sütunu sığması için) === */
.data-table {
    min-width: 100%;
}
.data-table th,
.data-table td {
    padding: 12px 14px;
    white-space: nowrap;
}
.data-table .event-name-cell {
    min-width: 180px;
    max-width: 280px;
}
.data-table .event-name-cell strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.data-table .event-url {
    display: none; /* URL'yi tablodan gizle (title attribute'ta zaten var) */
}
.data-table .seat-info,
.data-table .date-display {
    min-width: 90px;
}
.data-table .price-display {
    font-size: 16px;
}
.data-table .price-currency {
    font-size: 10px;
}
.data-table .last-checked {
    font-size: 11px;
}

/* === TICKET NOTIFICATION BADGE === */
.nav-badge-danger {
    background: var(--danger) !important;
    color: white !important;
    animation: pulseBadge 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
}
@keyframes pulseBadge {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}


/* === PREMIUM ÜYELİK NAV ITEM (yeni) === */
.nav-item-premium {
    position: relative;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(236, 72, 153, 0.12) 100%);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: var(--text-primary);
    font-weight: 600;
}
.nav-item-premium svg {
    color: #ec4899;
}
.nav-item-premium:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.22) 0%, rgba(236, 72, 153, 0.22) 100%);
    border-color: rgba(139, 92, 246, 0.6);
    color: var(--text-primary);
    transform: translateX(2px);
}
.nav-item-premium.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.28) 0%, rgba(236, 72, 153, 0.28) 100%);
    border-color: var(--accent);
    color: var(--text-primary);
}
[data-theme="dark"] .nav-item-premium {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(236, 72, 153, 0.18) 100%);
    border-color: rgba(139, 92, 246, 0.5);
}

.nav-pill-upgrade {
    margin-left: auto;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white !important;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-text-fill-color: white;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
    animation: pulseUpgrade 2.4s ease-in-out infinite;
}
@keyframes pulseUpgrade {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); transform: scale(1); }
    50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); transform: scale(1.05); }
}

/* === SIDEBAR UPGRADE CTA (user-card üstü) === */
.sidebar-upgrade-cta {
    margin: 0 16px 12px 16px;
    padding: 14px 14px;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    border-radius: var(--radius-md);
    color: white;
    text-decoration: none;
    display: block;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.sidebar-upgrade-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    animation: ctaShine 3s ease-in-out infinite;
}
@keyframes ctaShine {
    0%, 100% { transform: translate(-30%, -30%); }
    50% { transform: translate(30%, 30%); }
}
.sidebar-upgrade-cta:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.5);
}
.sidebar-upgrade-cta-title {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}
.sidebar-upgrade-cta-desc {
    font-size: 11px;
    opacity: 0.95;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
}
.sidebar-upgrade-cta-btn {
    background: white;
    color: #6366f1;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 1;
}

/* === TICKETWHIZ FIYAT HÜCRESİ === */
.price-display.tw-price {
    color: #f59e0b;
    border-left: 3px solid #f59e0b;
    padding-left: 8px;
}
.tw-site-tag {
    display: inline-block;
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.4px;
    margin-left: 4px;
    vertical-align: middle;
}
[data-theme="dark"] .tw-site-tag {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

/* === EVENTS TABLOSU KOMPAKT MOD === */
.data-table th { padding: 11px 10px; font-size: 11px; }
.data-table td { padding: 12px 10px; font-size: 13px; }

/* Etkinlik adı kolonu - URL satırı gözükmez, ad kısalır */
.event-name-cell .event-url { display: none; }
.event-name-cell { min-width: 0; max-width: 180px; }
.event-name-cell strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    font-size: 13px;
}

.price-display { font-size: 15px; }
.price-display .price-currency { font-size: 9px; display: block; margin-top: 1px; }
.price-display.tw-price { font-size: 15px; padding-left: 0; border-left: none; }
.tw-site-tag { font-size: 8px; padding: 1px 5px; margin-left: 0; margin-top: 3px; display: inline-block; }
.seat-cell .seat-info { font-size: 12px; }
.checked-cell .last-checked { font-size: 11px; }

.table-wrapper { overflow-x: auto; }

/* Daha sıkı sütun stillemesi */
.seat-cell {
    max-width: 140px;
    font-size: 12px;
}
.checked-cell {
    white-space: nowrap;
}
/* Auto sütununu daraltmak */
.data-table th:nth-last-child(2),
.data-table td:nth-last-child(2) {
    width: 50px;
    text-align: center;
}

/* === DIAMOND BADGE FOR ARBITRAGE NAV === */
.nav-pill-diamond {
    margin-left: auto;
    font-size: 13px;
    line-height: 1;
}

/* === ARBITRAJ NAV ITEM (altın gradient) === */
.nav-item-arbitrage {
    position: relative;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(217, 119, 6, 0.14) 50%, rgba(180, 83, 9, 0.16) 100%);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: var(--text-primary);
    font-weight: 700;
    overflow: hidden;
}
.nav-item-arbitrage::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 215, 0, 0.25) 50%,
        transparent 60%,
        transparent 100%
    );
    animation: arbShine 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes arbShine {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(50%, 0); }
}
.nav-item-arbitrage svg {
    color: #f59e0b;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.5));
    z-index: 1;
    position: relative;
}
.nav-item-arbitrage span:first-of-type {
    color: #d97706;
    -webkit-text-fill-color: #d97706;
    font-weight: 800;
    letter-spacing: 0.3px;
    z-index: 1;
    position: relative;
}
.nav-item-arbitrage:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.28) 0%, rgba(217, 119, 6, 0.22) 50%, rgba(180, 83, 9, 0.24) 100%);
    border-color: rgba(245, 158, 11, 0.7);
    color: var(--text-primary);
    transform: translateX(2px);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}
.nav-item-arbitrage.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35) 0%, rgba(217, 119, 6, 0.30) 50%, rgba(180, 83, 9, 0.32) 100%);
    border-color: #f59e0b;
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}
[data-theme="dark"] .nav-item-arbitrage {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.20) 50%, rgba(180, 83, 9, 0.22) 100%);
    border-color: rgba(245, 158, 11, 0.55);
}
[data-theme="dark"] .nav-item-arbitrage span:first-of-type {
    color: #fbbf24;
    -webkit-text-fill-color: #fbbf24;
}

/* HOT pill (Diamond ve admin için) */
.nav-pill-hot {
    margin-left: auto;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white !important;
    -webkit-text-fill-color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
    animation: hotPulse 1.8s ease-in-out infinite;
    z-index: 1;
    position: relative;
}
@keyframes hotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    50% { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
}

/* Diamond pill (trial/vip için) - daha şık */
.nav-pill-diamond {
    margin-left: auto;
    font-size: 13px;
    line-height: 1;
    z-index: 1;
    position: relative;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.6));
    animation: diamondGlow 2.5s ease-in-out infinite;
}
@keyframes diamondGlow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.6)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.9)); }
}


/* === SIDEBAR BRAND (TixAlert landing-style) === */
.sidebar-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00ff9d 0%, #00d4ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 22px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 0 24px rgba(0, 255, 157, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}
.sidebar-brand-link:hover .sidebar-brand-mark {
    transform: rotate(-4deg) scale(1.05);
    box-shadow: 0 0 32px rgba(0, 255, 157, 0.55);
}
.sidebar-brand-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--text-primary);
}
.sidebar-brand-text span {
    color: #10b981;
}
[data-theme="dark"] .sidebar-brand-text span {
    color: #00ff9d;
}

/* Register sayfası daha geniş olsun (cinsiyet ve referral alanları için) */
body.auth-body .auth-card.auth-card-wide {
    max-width: 920px;
    padding: 0;
    overflow: hidden;
}
.auth-split {
    display: grid;
    grid-template-columns: 320px 1fr;
}
.auth-split-left {
    background: linear-gradient(160deg, #0d0f15 0%, #11141c 100%);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}
.auth-split-left::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 255, 157, 0.10) 0%, transparent 60%);
    pointer-events: none;
}
.auth-split-left > * { position: relative; z-index: 1; }
.auth-split-right {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.auth-side-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: #f8fafc;
    line-height: 1.25;
    margin: 0 0 8px;
}
.auth-side-title .accent {
    background: linear-gradient(135deg, #00ff9d 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-side-text {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.55;
    margin: 0 0 14px;
}
.auth-side-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.auth-side-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #cbd5e1;
    font-size: 11.5px;
    line-height: 1.4;
}
.auth-side-features li::before {
    content: '✓';
    color: #00ff9d;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 12px;
}
.auth-side-badge {
    margin-top: auto;
    font-size: 9.5px;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.6px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

/* Sağ panelde başlık ve formu kompaktla */
.auth-split-right .auth-title {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 6px;
}
.auth-split-right .auth-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
}
.auth-split-right .form-group {
    margin-bottom: 16px;
}
.auth-split-right .form-control {
    padding: 11px 14px;
    font-size: 14px;
}
.auth-split-right label {
    font-size: 13px;
    margin-bottom: 6px;
}
.auth-split-right .btn-primary {
    padding: 13px 22px;
    font-size: 14px;
}
.auth-split-right .alert {
    padding: 11px 14px;
    font-size: 13px;
    margin-bottom: 14px;
}
.auth-split-right .auth-footer {
    margin-top: 18px;
    padding-top: 18px;
    font-size: 14px;
}

/* Auth-split-right içinde form-row'lar her zaman yan yana */
.auth-split-right .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.auth-split-right .input-help {
    font-size: 12px;
    margin-top: 5px;
}

/* Mobile/dar ekran: split kapanır, sadece form */
@media (max-width: 880px) {
    body.auth-body .auth-card.auth-card-wide {
        max-width: 520px;
    }
    .auth-split {
        grid-template-columns: 1fr;
    }
    .auth-split-left {
        display: none;
    }
    .auth-split-right {
        padding: 32px 28px;
    }
    .auth-split-right .form-row {
        grid-template-columns: 1fr;
    }
}

/* Sol paneldeki brand mark daha kompakt */
.auth-split-left .auth-brand-mark {
    width: 36px;
    height: 36px;
    font-size: 20px;
    border-radius: 9px;
}
.auth-split-left .auth-brand-text {
    font-size: 18px;
}

/* === BULK ACTION TOOLBAR (Etkinlikler sayfası) === */
.bulk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px var(--accent-glow);
    animation: bulkSlideIn 0.25s ease;
}
@keyframes bulkSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.bulk-toolbar-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
}
.bulk-toolbar-info svg {
    color: var(--accent);
    background: var(--accent);
    color: white;
    padding: 4px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
}
.bulk-toolbar-actions {
    display: flex;
    gap: 8px;
}
.bulk-toolbar-actions .btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

/* Seçili satır vurgusu */
tr.row-selected {
    background: var(--accent-light) !important;
}
tr.row-selected td {
    border-bottom-color: var(--accent) !important;
}

/* Güncellenirken satır parlama */
tr.row-updating {
    background: var(--info-light) !important;
    animation: rowPulse 1.5s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.85;
}
@keyframes rowPulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

/* Checkbox stili - daha modern ve clickable */
.ev-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent);
    margin: 0;
}

/* Bulk button içindeki spinner */
.bulk-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bulkSpin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}
@keyframes bulkSpin {
    to { transform: rotate(360deg); }
}

/* === SIDEBAR COLLAPSE === */
.sidebar-collapse-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
    flex-shrink: 0;
}
.sidebar-collapse-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-strong);
}
.sidebar-collapse-btn .icon-expand { display: none; }
.app-layout.sidebar-collapsed .sidebar-collapse-btn .icon-collapse { display: none; }
.app-layout.sidebar-collapsed .sidebar-collapse-btn .icon-expand { display: block; }

/* Collapsed: sidebar variable'ını override et — hem sidebar hem main-content otomatik daralır */
.app-layout.sidebar-collapsed {
    --sidebar-width: 72px;
}

/* Collapsed sidebar içerik gizleme */
.app-layout.sidebar-collapsed .sidebar-brand-text,
.app-layout.sidebar-collapsed .sidebar-section-title,
.app-layout.sidebar-collapsed .nav-item > span:not(.nav-badge):not(.nav-pill-diamond):not(.nav-pill-hot):not(.nav-pill-upgrade),
.app-layout.sidebar-collapsed .sidebar-tier-info,
.app-layout.sidebar-collapsed .sidebar-trial-warn,
.app-layout.sidebar-collapsed .user-info,
.app-layout.sidebar-collapsed .nav-item .ml-auto,
.app-layout.sidebar-collapsed .interval-current-text {
    display: none !important;
}

/* Collapsed nav-item ikonu hep aynı boyut */
.app-layout.sidebar-collapsed .nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.app-layout.sidebar-collapsed .sidebar-header {
    padding: 16px 8px;
    justify-content: center;
    gap: 0;
}
.app-layout.sidebar-collapsed .sidebar-brand-link {
    flex: 0 !important;
    justify-content: center;
}
.app-layout.sidebar-collapsed .sidebar-collapse-btn {
    position: absolute;
    right: -14px;
    top: 22px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    width: 24px;
    height: 24px;
    z-index: 110;
    box-shadow: var(--shadow-md);
}

.app-layout.sidebar-collapsed .nav-item {
    justify-content: center;
    padding: 12px 8px;
    position: relative;
}
.app-layout.sidebar-collapsed .nav-item svg {
    margin: 0;
    flex-shrink: 0;
}
.app-layout.sidebar-collapsed .nav-badge,
.app-layout.sidebar-collapsed .nav-pill-diamond,
.app-layout.sidebar-collapsed .nav-pill-hot {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 8px;
    padding: 1px 4px;
    min-width: auto;
    line-height: 1.2;
}
.app-layout.sidebar-collapsed .sidebar-section {
    padding: 4px 0;
}
.app-layout.sidebar-collapsed .sidebar-footer {
    padding: 8px;
}
.app-layout.sidebar-collapsed .sidebar-user {
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
}

/* Tooltip on collapsed nav-item hover */
.app-layout.sidebar-collapsed .nav-item:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    z-index: 200;
    pointer-events: none;
}

/* Mobil zaten farklı handle ediyor, collapsed mobile devre dışı */
@media (max-width: 900px) {
    .app-layout.sidebar-collapsed {
        --sidebar-width: 260px;
    }
    .sidebar-collapse-btn { display: none; }
}
