/* ==========================================================================
   NovaPrime Global Theme & Navbar Styles (Dark & Light Mode + EN/TR Support)
   ========================================================================== */

/* Dark Mode Variables (Default) */
:root,
html[data-theme="dark"],
html.dark {
    --bg-page: #0a0a0e;
    --bg-muted: #111117;
    --bg-card: #14141e;
    --bg-card-hover: #1c1c28;
    --bg-elevated: #1e1e2d;
    --bg-input: #0f0f16;
    --border-color: #242434;
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(129, 130, 248, 0.45);
    --primary: #8182f8;
    --primary-hover: #9697fb;
    --primary-rgb: 129, 130, 248;
    --text-main: #f3f3f8;
    --text-muted: #8e8ea2;
    --text-dim: #606075;
    --nav-bg: rgba(10, 10, 14, 0.85);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --header-border: rgba(255, 255, 255, 0.08);
}

/* Light Mode Variables (Beyaz Mod) */
html[data-theme="light"],
html.light {
    --bg-page: #f8fafc;
    --bg-muted: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-elevated: #f1f5f9;
    --bg-input: #f8fafc;
    --border-color: #e2e8f0;
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(99, 102, 241, 0.5);
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-rgb: 99, 102, 241;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    --nav-bg: rgba(255, 255, 255, 0.88);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --header-border: rgba(0, 0, 0, 0.08);
}

/* Global Transitions */
body, header.site-header, .site-header, .modal-card, .market-card, .sub-banner-card {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* ==========================================================================
   Full Standardized Navbar Layout (All Pages)
   ========================================================================== */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--header-border);
}

.site-header .nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-header .brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    flex-shrink: 0;
}

.site-header .brand-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
}

.site-header .brand-logo-text {
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.site-header .brand-logo-text span {
    color: var(--primary);
}

.site-header .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header .nav-links li {
    list-style: none;
}

.site-header .nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s ease;
    white-space: nowrap;
}

.site-header .nav-links a:hover,
.site-header .nav-links a.active {
    color: var(--text-main);
}

/* Mobile Hamburger Button */
.site-header .mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 20px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
}

/* Mobile Drawer */
.site-header .mobile-nav-drawer {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
    display: none;
    flex-direction: column;
    gap: 14px;
    z-index: 999;
    box-shadow: 0 16px 36px rgba(0,0,0,0.5);
}

.site-header .mobile-nav-drawer.open {
    display: flex;
}

.site-header .mobile-nav-drawer a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.site-header .mobile-nav-drawer a:last-child {
    border-bottom: none;
}

@media (max-width: 960px) {
    .site-header .nav-links {
        display: none !important;
    }
    .site-header .mobile-menu-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
}

/* Navbar Right Actions */
.global-nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

/* Pill Buttons (EN / Theme / Notif) */
.btn-nav-control,
.nav-pill-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    height: 36px;
    min-width: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    position: relative;
    text-decoration: none;
}

html[data-theme="light"] .btn-nav-control,
html[data-theme="light"] .nav-pill-btn {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-nav-control:hover,
.nav-pill-btn:hover {
    color: var(--text-main);
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* ==========================================================================
   GLOBAL NOTIFICATION DROPDOWN SYSTEM (Left of EN)
   ========================================================================== */
.global-notif-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.global-notif-btn {
    padding: 0 10px !important;
    position: relative;
}

.global-notif-btn i {
    font-size: 15px;
    color: var(--text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.global-notif-btn:hover i {
    color: var(--text-main);
    transform: rotate(12deg);
}

.global-notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #f43f5e);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    font-family: 'Inter', -apple-system, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
    border: 2px solid var(--bg-page);
    pointer-events: none;
    line-height: 1;
}

.global-notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: #111119;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    z-index: 10001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: notifFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.global-notif-dropdown.show {
    display: flex;
}

@keyframes notifFadeIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.notif-dropdown-header {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.notif-header-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-header-title i {
    color: var(--primary);
    font-size: 14px;
}

.notif-unread-count-pill {
    background: rgba(129, 130, 248, 0.15);
    color: var(--primary);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}

.btn-mark-all-read {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.btn-mark-all-read:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.notif-dropdown-body {
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.notif-dropdown-body::-webkit-scrollbar {
    width: 6px;
}
.notif-dropdown-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

.notif-item {
    padding: 14px 18px;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease;
    position: relative;
    text-align: left;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notif-item.is-unread {
    background: rgba(129, 130, 248, 0.06);
}

.notif-item.is-unread::after {
    content: '';
    position: absolute;
    top: 18px;
    right: 16px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.notif-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(129, 130, 248, 0.12);
    border: 1px solid rgba(129, 130, 248, 0.25);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.notif-item-content {
    flex: 1;
    min-width: 0;
    padding-right: 14px;
}

.notif-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 3px;
    line-height: 1.35;
}

.notif-message {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
    word-break: break-word;
}

.notif-time {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 5px;
}

.notif-delete-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, color 0.15s ease;
    padding: 4px;
}

.notif-item:hover .notif-delete-btn {
    opacity: 1;
}

.notif-delete-btn:hover {
    color: #ef4444;
}

.notif-empty-state {
    padding: 38px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.notif-empty-state i {
    font-size: 32px;
    color: var(--text-dim);
    margin-bottom: 12px;
    opacity: 0.6;
}

.notif-empty-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.notif-empty-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 250px;
}

.notif-dropdown-footer {
    padding: 10px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
}

.btn-clear-notifs {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s ease;
}

.btn-clear-notifs:hover {
    color: #ef4444;
}

/* Light Mode Overrides for Notifications */
html[data-theme="light"] .global-notif-dropdown {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .notif-dropdown-header,
html[data-theme="light"] .notif-dropdown-footer {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .notif-item {
    border-color: rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .notif-item:hover {
    background: #f8fafc;
}

html[data-theme="light"] .notif-item.is-unread {
    background: rgba(99, 102, 241, 0.06);
}

/* Smooth Scroll Target Offset for Anchors (#faq, #cs2-hile, etc.) */
html {
    scroll-behavior: smooth;
}

section[id], [id] {
    scroll-margin-top: 86px;
}

/* Logged Out Buttons (Foto 3) */
.nav-auth-logged-out {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-nav-login-link {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 8px;
    transition: color 0.2s ease;
}

.btn-nav-login-link:hover {
    color: var(--primary);
}

.btn-nav-register-btn {
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff !important;
    background: #8182f8;
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(129, 130, 248, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-nav-register-btn:hover {
    background: #9697fb;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(129, 130, 248, 0.5);
}

/* Logged In Avatar (Foto 2) */
.nav-auth-logged-in {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-user-avatar-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    overflow: hidden;
    padding: 0;
    transition: all 0.2s ease;
}

.nav-user-avatar-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 14px rgba(129, 130, 248, 0.35);
}

.nav-user-avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-user-avatar-btn i {
    font-size: 16px;
    color: #94a3b8;
}

/* Sleek Dropdown (Hesabım) */
.global-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 210px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.global-user-dropdown.show {
    display: flex;
    animation: ddFadeIn 0.15s ease forwards;
}

@keyframes ddFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.global-dropdown-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    padding: 8px 12px 10px 12px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 4px;
}

.global-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 8px;
    background: transparent;
    border: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.global-dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.global-dropdown-item:hover {
    background: rgba(129, 130, 248, 0.12);
    color: var(--primary);
}

.global-dropdown-item:hover i {
    color: var(--primary);
}

.global-dropdown-item.danger-logout {
    color: #ef4444 !important;
    border-top: 1px solid var(--border-subtle);
    margin-top: 4px;
    padding-top: 10px;
}

.global-dropdown-item.danger-logout i {
    color: #ef4444 !important;
}

.global-dropdown-item.danger-logout:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ff6b6b !important;
}

/* Floating Chat Bubble Matching Reference Screenshot */
.floating-chat-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #8182f8;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    box-shadow: 0 8px 24px rgba(129, 130, 248, 0.45);
    cursor: pointer;
    z-index: 999;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-chat-bubble:hover {
    background: #9697fb;
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 30px rgba(129, 130, 248, 0.6);
    color: #ffffff !important;
}

/* ==========================================================================
   CUSTOM NOVA PRIME MODALS & NOTIFICATIONS (NO BROWSER POPUPS / ZERO DEBUG)
   ========================================================================== */
.nova-custom-modal-backdrop {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 5, 10, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.nova-custom-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.nova-custom-modal-card {
    background: linear-gradient(145deg, #12131e, #0c0d16);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 20px;
    max-width: 440px;
    width: 100%;
    padding: 28px 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(139, 92, 246, 0.2);
    transform: scale(0.92) translateY(12px);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s;
    font-family: var(--font-main, 'Inter', -apple-system, sans-serif);
    text-align: center;
}

.nova-custom-modal-backdrop.show .nova-custom-modal-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.nova-modal-icon-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    margin: 0 auto 18px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.nova-modal-icon-wrapper.danger {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.nova-modal-icon-wrapper.warning {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.nova-modal-icon-wrapper.info {
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #a78bfa;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.nova-modal-icon-wrapper.success {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.nova-modal-title {
    font-family: var(--font-display, 'Outfit', 'Inter', sans-serif);
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.nova-modal-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.55;
    margin: 0 0 24px 0;
}

.nova-modal-btn-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nova-modal-btn {
    flex: 1;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nova-modal-btn.cancel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
}

.nova-modal-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    transform: translateY(-1px);
}

.nova-modal-btn.confirm-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.nova-modal-btn.confirm-danger:hover {
    background: linear-gradient(135deg, #f87171, #ef4444);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.6);
}

.nova-modal-btn.confirm-primary {
    background: #8b5cf6;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

.nova-modal-btn.confirm-primary:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.65);
}

/* CUSTOM FLOATING TOAST NOTIFICATION CONTAINER */
.nova-toast-host {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 380px;
    width: calc(100% - 48px);
}

.nova-toast-item {
    pointer-events: auto;
    background: rgba(18, 19, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
    color: #ffffff;
    transform: translateX(110%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.nova-toast-item.show {
    transform: translateX(0);
    opacity: 1;
}

.nova-toast-item.toast-success {
    border-color: rgba(16, 185, 129, 0.4);
}

.nova-toast-item.toast-error {
    border-color: rgba(239, 68, 68, 0.4);
}

.nova-toast-item.toast-warning {
    border-color: rgba(245, 158, 11, 0.4);
}

.nova-toast-item.toast-info {
    border-color: rgba(139, 92, 246, 0.4);
}

.nova-toast-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-success .nova-toast-icon { color: #10b981; }
.toast-error .nova-toast-icon { color: #ef4444; }
.toast-warning .nova-toast-icon { color: #f59e0b; }
.toast-info .nova-toast-icon { color: #a78bfa; }

.nova-toast-body {
    flex: 1;
    min-width: 0;
}

.nova-toast-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
}

.nova-toast-msg {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.45;
    word-break: break-word;
}

.nova-toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
}

.nova-toast-close:hover {
    color: #ffffff;
}

/* ==========================================================================
   NovaPrime - Kontrol Paneli, Profil (Hesap Ayarları) & Şans Çarkı Styles
   Matched 1:1 with user reference screenshots
   ========================================================================== */

:root {
    --bg-page: #0a0a0e;
    --bg-muted: #111117;
    --bg-card: #14141e;
    --bg-card-hover: #1c1c28;
    --bg-elevated: #1e1e2d;
    --bg-input: #0f0f16;
    --border-color: #242434;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(129, 130, 248, 0.45);
    --primary: #8182f8;
    --primary-hover: #9697fb;
    --primary-rgb: 129, 130, 248;
    --accent-purple: #6366f1;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-orange: #f59e0b;
    --text-main: #f3f3f8;
    --text-muted: #8e8ea2;
    --text-dim: #606075;
    --font-heading: 'Outfit', sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glows */
.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-glow-1 {
    position: absolute;
    top: -150px;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(129, 130, 248, 0.07) 0%, transparent 70%);
}

.ambient-glow-2 {
    position: absolute;
    bottom: 50px;
    right: 15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
}

.dashboard-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px 64px 24px;
    position: relative;
    z-index: 1;
    flex: 1;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(10, 10, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
}

.brand-logo img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 6px;
}

.brand-logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.brand-logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-pill-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.nav-pill-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

/* User Dropdown */
.nav-user-wrap {
    position: relative;
}

.nav-avatar-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #20202e;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: var(--transition);
    overflow: hidden;
    padding: 0;
}

.nav-avatar-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(129, 130, 248, 0.3);
}

.nav-avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-avatar-btn i {
    font-size: 16px;
    color: #cbd5e1;
}

.user-dropdown-card {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: #14141e;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
    display: none;
    flex-direction: column;
    z-index: 200;
}

.user-dropdown-card.show {
    display: flex;
    animation: fadeInDown 0.15s ease forwards;
}

.dropdown-header-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    padding: 8px 12px 10px 12px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 4px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #d1d1e0;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(129, 130, 248, 0.12);
    color: #ffffff;
}

.dropdown-item:hover i {
    color: var(--primary);
}

.dropdown-item.logout-danger {
    color: var(--accent-red);
    border-top: 1px solid var(--border-subtle);
    margin-top: 4px;
    padding-top: 10px;
}

.dropdown-item.logout-danger i {
    color: var(--accent-red);
}

.dropdown-item.logout-danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ff6b6b;
}

/* ==========================================================================
   View Switching Framework
   ========================================================================== */
.view-panel {
    display: none;
}

.view-panel.active {
    display: block;
    animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Back Link for subviews */
.view-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.view-back-link:hover {
    color: #ffffff;
    transform: translateX(-3px);
}

/* ==========================================================================
   VIEW 1: KONTROL PANELİ
   ========================================================================== */
.panel-top-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: #ffffff;
    line-height: 1.2;
}

.panel-subtitle {
    font-size: 14.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

.panel-subtitle span {
    color: #f3f3f8;
    font-weight: 600;
}

.btn-settings-gear {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-settings-gear:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* User & Subscription Header Card */
.subscription-header-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 32px;
    align-items: center;
    box-shadow: var(--shadow-card);
    margin-bottom: 32px;
}

.user-profile-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.user-avatar-circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.user-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar-circle i {
    font-size: 42px;
    color: #64748b;
}

.user-handle-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    word-break: break-all;
}

.subscription-right-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sub-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.sub-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.status-badge-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-green);
}

.status-tag .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

.status-update-date {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-extend-sub {
    align-self: flex-start;
    background: var(--primary);
    color: #0f0f15;
    border: none;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-extend-sub:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-download-loader {
    width: 100%;
    background: #8182f8;
    color: #0b0b12;
    border: none;
    padding: 13px 20px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(129, 130, 248, 0.25);
}

.btn-download-loader:hover {
    background: #9697fb;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(129, 130, 248, 0.4);
}

/* Main Dashboard Card with 4 Tabs */
.dashboard-main-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.dash-tabs-nav {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.25);
    overflow-x: auto;
}

.dash-tab-btn {
    flex: 1;
    min-width: 140px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 18px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.dash-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.02);
}

.dash-tab-btn.active {
    color: #ffffff;
    background: var(--bg-card);
    border-bottom-color: var(--primary);
}

.dash-tab-body {
    padding: 28px;
}

.dash-tab-pane {
    display: none;
}

.dash-tab-pane.active {
    display: block;
    animation: fadeIn 0.2s ease forwards;
}

/* Tab 1: Aboneliklerim */
.subscription-banners-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sub-banner-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 120px;
    border: 1px solid var(--border-color);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: var(--transition);
}

.sub-banner-card:hover {
    border-color: rgba(129, 130, 248, 0.35);
    transform: translateY(-2px);
}

.sub-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 16, 0.95) 0%, rgba(10, 10, 16, 0.8) 45%, rgba(10, 10, 16, 0.6) 100%);
    z-index: 1;
}

.sub-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.sub-banner-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.btn-renew-red {
    background: #1e1e28;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-renew-red:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

/* Tab 2: Konfigürasyon */
.config-header-row {
    margin-bottom: 24px;
}

.config-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.empty-state-box {
    text-align: center;
    padding: 56px 20px;
    color: var(--text-muted);
    font-size: 14.5px;
}

.btn-refresh-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: #d1d1e0;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-refresh-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Tab 3: Market */
.market-filter-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
}

.market-pill-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    padding-bottom: 8px;
    position: relative;
    transition: var(--transition);
}

.market-pill-btn:hover {
    color: #ffffff;
}

.market-pill-btn.active {
    color: #8182f8;
}

.market-pill-btn.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    right: 0;
    height: 2px;
    background: #8182f8;
    border-radius: 2px;
}

.market-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.market-card {
    background: #11111a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.market-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.market-card.is-recommended {
    border-color: rgba(239, 68, 68, 0.4);
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.05) 0%, #11111a 100%);
}

.badge-recommended {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.market-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(129, 130, 248, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin: 0 auto 16px auto;
}

.market-duration {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
}

.market-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12.5px;
    color: #cbd5e1;
    margin-bottom: 24px;
    flex: 1;
}

.market-features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.market-features-list li i {
    color: var(--accent-green);
    font-size: 11px;
}

.market-price-tag {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
    text-align: left;
}

.btn-market-buy {
    width: 100%;
    background: #8182f8;
    color: #0b0b12;
    border: none;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-market-buy:hover {
    background: #9697fb;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(129, 130, 248, 0.35);
}

/* Tab 4: Destek Talepleri */
.tickets-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.tickets-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
}

.btn-new-ticket {
    background: #8182f8;
    color: #0b0b12;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-new-ticket:hover {
    background: #9697fb;
}

.tickets-info-notice {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.tickets-info-notice a {
    color: #8182f8;
    text-decoration: none;
}

/* ==========================================================================
   VIEW 2: PROFİL / HESAP AYARLARI
   ========================================================================== */
.profile-view-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.profile-avatar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-card);
    height: fit-content;
}

.profile-avatar-large {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-large i {
    font-size: 52px;
    color: #64748b;
}

.profile-username-tag {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
}

.btn-upload-photo {
    width: 100%;
    background: #8182f8;
    color: #0b0b12;
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-upload-photo:hover {
    background: #9697fb;
    transform: translateY(-1px);
}

/* Profile Right Card with Tabs */
.profile-main-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.profile-tabs-nav {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.25);
}

.profile-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.profile-tab-btn:hover {
    color: #ffffff;
}

.profile-tab-btn.active {
    color: #ffffff;
    background: var(--bg-card);
    border-bottom-color: var(--primary);
}

.profile-tab-body {
    padding: 32px;
}

.profile-tab-pane {
    display: none;
}

.profile-tab-pane.active {
    display: block;
    animation: fadeIn 0.2s ease forwards;
}

.section-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.section-group-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
}

.form-input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 14px;
    color: #ffffff;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(129, 130, 248, 0.15);
}

.form-actions-right {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    margin-bottom: 32px;
}

.btn-save-primary {
    background: #8182f8;
    color: #0b0b12;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-save-primary:hover {
    background: #9697fb;
}

/* Connected Accounts Card */
.connected-card {
    background: #11111a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.connected-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.connected-icon {
    font-size: 24px;
    color: #5865f2;
}

.connected-label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.connected-status {
    font-size: 12.5px;
    color: var(--text-muted);
}

.btn-connect-sm {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-connect-sm:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Activity item */
.activity-card {
    background: #11111a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.activity-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.activity-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
}

.activity-title .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.activity-meta i {
    font-size: 11px;
}

.activity-time-right {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* Purchases Tab */
.purchase-item-card {
    background: #11111a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.purchase-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.purchase-icon-box {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 15px;
}

.purchase-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.purchase-badge-pill {
    background: rgba(129, 130, 248, 0.12);
    border: 1px solid rgba(129, 130, 248, 0.3);
    color: var(--primary);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 6px;
}

.purchase-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

.purchase-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.purchase-price {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.badge-status-failed {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.badge-status-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.table-pagination-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
}

.page-btn.active {
    background: #8182f8;
    color: #0b0b12;
    font-weight: 700;
    border-color: #8182f8;
}

/* ==========================================================================
   VIEW 3: ŞANS ÇARKI (LUCKY WHEEL)
   ========================================================================== */
.wheel-view-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
    margin-bottom: 56px;
}

.wheel-canvas-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    background: #0d0d14;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.wheel-sound-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.wheel-sound-toggle:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.wheel-outer-stage {
    position: relative;
    width: 420px;
    height: 420px;
}

.wheel-pointer-arrow {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 22px solid #ffffff;
    z-index: 10;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

#luckyWheelCanvas {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    box-shadow: 0 0 35px rgba(129, 130, 248, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.wheel-center-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #8182f8;
    box-shadow: 0 0 16px rgba(129, 130, 248, 0.6);
    pointer-events: none;
    z-index: 5;
    border: 3px solid #14141e;
}

.wheel-right-panels {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wheel-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.wheel-bag-box {
    text-align: center;
}

.wheel-bag-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(129, 130, 248, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 16px auto;
}

.wheel-bag-desc {
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-wheel-packages {
    width: 100%;
    background: #8182f8;
    color: #0b0b12;
    border: none;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-wheel-packages:hover {
    background: #9697fb;
}

.wheel-history-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 16px;
}

.wheel-history-empty {
    text-align: center;
    padding: 32px 10px;
    color: var(--text-muted);
    font-size: 13.5px;
}

/* Bottom Rewards Grid */
.wheel-rewards-section {
    margin-top: 40px;
}

.rewards-sec-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin-bottom: 4px;
}

.rewards-sec-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 28px;
}

.wheel-rewards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.reward-item-card {
    background: #11111a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    transition: var(--transition);
}

.reward-item-card:hover {
    border-color: rgba(129, 130, 248, 0.4);
    transform: translateY(-2px);
}

.reward-item-icon {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 4px;
}

.reward-item-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
}

.reward-item-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   MODAL DIALOGS (Kod Kullan & Support Ticket & Checkout)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.15s ease forwards;
}

.modal-card {
    background: #14141e;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    animation: fadeInDown 0.2s ease forwards;
}

.modal-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.modal-icon-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-icon-title i {
    font-size: 20px;
    color: var(--primary);
}

.modal-title-text {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.btn-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    padding: 4px;
}

.btn-modal-close:hover {
    color: #ffffff;
}

.modal-desc-sub {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.modal-actions-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

.btn-modal-cancel {
    background: #1a1a24;
    border: 1px solid var(--border-color);
    color: #d1d1e0;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-modal-cancel:hover {
    background: #242434;
    color: #ffffff;
}

.btn-modal-submit {
    background: #8182f8;
    color: #0b0b12;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-modal-submit:hover {
    background: #9697fb;
}

/* Toast Notifications */
.custom-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #161624;
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    animation: toastSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .market-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
    .wheel-view-grid {
        grid-template-columns: 1fr;
    }
    .wheel-rewards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .subscription-header-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .status-badge-wrap {
        align-items: center;
        width: 100%;
    }
    .profile-view-grid {
        grid-template-columns: 1fr;
    }
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
    .market-grid-5 {
        grid-template-columns: 1fr;
    }
    .wheel-outer-stage, #luckyWheelCanvas {
        width: 320px;
        height: 320px;
    }
}
