/* Global Site Styles */
        * {
            font-family: 'Poppins', sans-serif;
        }

        /* Prevent site expansion when dropdowns are open */
        body {
            overflow-x: hidden !important;
        }

        /* Topbar Styles */
        .topbar {
           background: linear-gradient(135deg, rgb(17 18 32), rgb(17 18 32));
            border-bottom: 1px solid #151626;
            padding: 8px 0;
            font-size: 13px;
        }

        .topbar-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .topbar-left {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .topbar-contact {
            display: flex;
            align-items: center;
            gap: 6px;
            color: #e8e8f0;
            text-decoration: none;
            transition: all 0.3s ease;
            padding: 4px 8px;
            border-radius: 6px;
        }

        .topbar-contact:hover {
            color: #d4af37;
            background: rgba(212, 175, 55, 0.1);
            text-decoration: none;
        }

        .topbar-contact i {
            font-size: 14px;
            width: 16px;
            text-align: center;
        }
        
        .reg-title {
    display: grid;
    grid-template-columns: auto 1fr auto; /* ikon - yazı - boş alan */
    gap: 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 12px 12px 12px 15px;
    margin-bottom: 16px;
    align-items: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-color);
    position: relative;
    transition: all 0.3s ease;
}

/* Icon ekleme için ::before pseudo-element */
.reg-title::before {
    content: "\f02d"; /* FontAwesome 5 Free - fa-list-alt */
    font-family: "Font Awesome 5 Free"; /* kullanacağın FontAwesome sürümü */
    font-weight: 900; /* solid için */
    font-size: 22px;
    color: #8b5cf6;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

/* Hover efekti */
.reg-title:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: #8b5cf6;
}

.reg-title:hover::before {
    transform: rotate(15deg); /* ikon hafif dönecek */
}


        .topbar-contact span {
            font-size: 12px;
            font-weight: 500;
        }

        .topbar-right {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .topbar-dropdown {
            position: relative;
        }

        .topbar-dropdown-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            background: none;
            border: none;
            color: #e8e8f0;
            cursor: pointer;
            padding: 6px 12px;
            border-radius: 6px;
            transition: all 0.3s ease;
            font-size: 12px;
            font-weight: 500;
        }

        .topbar-dropdown-btn:hover {
            color: #d4af37;
            background: rgba(212, 175, 55, 0.1);
        }

        .topbar-dropdown-btn i:first-child {
            font-size: 14px;
            width: 16px;
            text-align: center;
        }

        .topbar-dropdown-btn i:last-child {
            font-size: 10px;
            transition: transform 0.3s ease;
        }

        .topbar-dropdown:hover .topbar-dropdown-btn i:last-child {
            transform: rotate(180deg);
        }

        .topbar-dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            background: #1a1625;
            border: 1px solid #3a2f4a;
            border-radius: 8px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
            min-width: 180px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 9999;
            padding: 8px 0;
            margin-top: 5px;
        }

        .topbar-dropdown:hover .topbar-dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .topbar-dropdown-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 16px;
            color: #e8e8f0;
            text-decoration: none;
            font-size: 13px;
            transition: all 0.2s ease;
            border-left: 3px solid transparent;
        }

        .topbar-dropdown-item:hover {
            background: rgba(255, 255, 255, 0.05);
            color: #d4af37;
            border-left-color: #d4af37;
            text-decoration: none;
        }

        .topbar-dropdown-item i {
            width: 16px;
            font-size: 14px;
            text-align: center;
        }

        .topbar-dropdown-item span {
            font-weight: 500;
        }

        /* Light theme topbar */
        [data-theme="light"] .topbar {
            background: linear-gradient(135deg, rgba(248, 249, 250, 0.95), rgba(248, 249, 250, 0.9));
            border-bottom: 1px solid #e9ecef;
        }

        [data-theme="light"] .topbar-contact {
            color: #495057;
        }

        [data-theme="light"] .topbar-contact:hover {
            color: #1976d2;
            background: rgba(25, 118, 210, 0.1);
        }

        [data-theme="light"] .topbar-dropdown-btn {
            color: #495057;
        }

        [data-theme="light"] .topbar-dropdown-btn:hover {
            color: #1976d2;
            background: rgba(25, 118, 210, 0.1);
        }

        [data-theme="light"] .topbar-dropdown-menu {
            background: #ffffff;
            border-color: #e9ecef;
        }

        [data-theme="light"] .topbar-dropdown-item {
            color: #495057;
        }

        [data-theme="light"] .topbar-dropdown-item:hover {
            background: rgba(0, 0, 0, 0.05);
            color: #1976d2;
            border-left-color: #1976d2;
        }

        /* Mobile topbar */
        @media (max-width: 768px) {
            .topbar {
                display: none;
            }
        }

        /* Frontend Header Styles */
        .frontend-header {
            background: linear-gradient(135deg, rgba(21, 22, 38, 1), rgba(21, 22, 38, 1));
            border-bottom: 2px solid #1d1e2d;
            top: 0;
            left: 0;
            right: 0;
            position: relative; /* Ensure positioned ancestor for mega dropdown */
            z-index: 1000;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        .frontend-header .header-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 24px;
            background: linear-gradient(135deg, rgba(21, 22, 38, 1), rgba(21, 22, 38, 1)) !important;
            border-bottom: 1px solid #1e1f2d;
            width: 100%;
        }

        .logo-section {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo {
            font-size: 24px;
            font-weight: 800;
            background: linear-gradient(135deg, #ff6b35, #f7931e);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .logo-subtitle {
            font-size: 10px;
            color: #d4af37;
            font-weight: 600;
            margin-top: -3px;
        }

        /* Header Search Bar Styles */
        .header-search-container {
            display: flex;
            align-items: center;
            flex: 1;
            max-width: 400px;
            margin: 0 15px;
        }

        .header-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
        }

        .header-search-box {
            width: 100%;
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            padding: 0 16px;
            gap: 12px;
            transition: all 0.3s ease;
            height: 48px;
            flex-direction: row;
        }

        .header-search-box:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .header-search-box:focus-within {
            background: rgba(255, 255, 255, 0.2);
            border-color: #8b5cf6;
            box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
        }

        .header-search-input {
            flex: 1;
            background: none !important;
            border: none !important;
            outline: none !important;
            color: #ffe2e2 !important;
            font-size: 15px;
            padding: 0 !important;
            height: 100%;
            width: auto !important;
            border-radius: 0 !important;
            box-shadow: none !important;
        }

        .header-search-input:focus {
            outline: none !important;
            box-shadow: none !important;
            border: none !important;
        }

        .header-search-input::placeholder {
            color: rgba(255, 226, 226, 0.6) !important;
        }

        .header-search-btn {
            background: #8b5cf6;
            border: none;
            color: white;
            cursor: pointer;
            padding: 8px 12px;
            border-radius: 4px;
            transition: all 0.3s ease;
            height: 36px;
            min-width: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .header-search-btn:hover {
            background: #7c3aed;
            color: white;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* Theme Toggle Button */
        .theme-toggle-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #374151;
            border: 1px solid #4b5563;
            color: #d1d5db;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .theme-toggle-btn:hover {
            background: #4b5563;
            border-color: #6b7280;
            color: #f3f4f6;
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .theme-toggle-btn i {
            transition: transform 0.3s ease;
        }

        .theme-toggle-btn:hover i {
            transform: rotate(15deg);
        }


        .auth-buttons {
            display: flex;
            gap: 8px;
        }

        .btn-register {
            background: linear-gradient(135deg, #1e40af, #3b82f6);
            color: white;
            padding: 12px 20px;
            border-radius: 6px;
            border: none;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 15px;
            box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
            min-width: 120px;
            height: 48px;
        }

        .btn-register:hover {
            background: linear-gradient(135deg, #1d4ed8, #2563eb);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
        }

        .btn-register i {
            font-size: 16px;
        }

        .btn-register span {
            font-weight: 600;
        }

        .btn-login {
            background: linear-gradient(135deg, #8b5cf6, #a855f7);
            color: white;
            padding: 12px 20px;
            border-radius: 6px;
            border: none;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 15px;
            box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
            min-width: 120px;
            height: 48px;
        }

        .btn-login:hover {
            background: linear-gradient(135deg, #7c3aed, #9333ea);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
        }

        .btn-login i {
            font-size: 16px;
        }

        .btn-login span {
            font-weight: 600;
        }

        .header-nav {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            padding: 16px 32px;
            gap: 32px;
            width: 100%;
            background: linear-gradient(135deg, rgba(30, 31, 46, 0.95), rgba(30, 31, 46, 0.9));
        }

        .nav-item {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 10px;
            color: #e8e8f0;
            text-decoration: none;
            padding: 10px 3px;
            border-radius: 8px;
            transition: all 0.3s ease;
            z-index: 5000;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            min-width: 0;
        }
        .nav-item.has-dropdown { position: relative; }
        .nav-item.has-dropdown[data-view-type="1"] { position: static; }
        .nav-item.has-dropdown[data-view-type="2"] { position: static; }

        .nav-item i {
            font-size: 18px;
            display: block;
        }

        /* View type 1 and 2 menu icons - show image instead of icon */
        .nav-item.has-dropdown[data-view-type="1"] .nav-item-icon,
        .nav-item.has-dropdown[data-view-type="2"] .nav-item-icon {
            width: 24px;
            height: 24px;
            border-radius: 4px;
            object-fit: cover;
            display: block;
        }

        /* Category icons styling - removed default green background */
        .nav-item:not([data-view-type="1"]):not([data-view-type="2"]) i:first-child:not(.fa-search) {
            /* Background color now handled by inline styles with icon_bg_color */
        }

        .nav-item span {
            font-size: 15px;
            font-weight: 500;
            text-align: left;
            white-space: nowrap;
        }

        /* Prevent long menu titles from overflowing */
        .header-nav .nav-item span {
            max-width: 140px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: inline-block;
            vertical-align: middle;
        }

        /* Override admin.css border leak */
        .header-nav .nav-item { border-bottom: none !important; }
        .header-nav .nav-item.has-dropdown { border-bottom: none !important; }

        .nav-item:hover {
            background: rgba(255, 255, 255, 0.05);
            color: inherit;
            text-decoration: none;
            
        }

        .nav-item .dropdown-arrow {
            font-size: 8px;
            margin-top: 2px;
        }

        .nav-item.has-dropdown::after {
            content: '';
            position: absolute;
            bottom: -6px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 4px solid transparent;
            border-right: 4px solid transparent;
            border-top: 4px solid #d4af37;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .nav-item:hover.has-dropdown::after {
            opacity: 1;
        }

        /* Dropdown Menu Styles */
        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: var(--surface);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            min-width: 200px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 3000; /* Sit above page content like breadcrumb */
            padding: 8px 0;
        }

        /* Categories mega dropdown */
        .categories-dropdown {
            position: absolute !important;
            left: 0 !important;
            right: auto !important;
            width: 100% !important;
            max-width: 100% !important;
            padding: 0 !important;
            top: calc(100% + 10px) !important; /* directly under header */
            box-sizing: border-box;
            transform: translateX(-24px) !important;
            background: transparent !important;
            box-shadow: none !important;
            pointer-events: none; /* prevent full-width area from capturing clicks */
            border: none !important;
            border-radius: 0 !important;
            z-index: 1000 !important;
            margin-top: 0 !important;
        }

        /* View type 1 mega dropdowns (full width like categories) */
        .nav-item.has-dropdown[data-view-type="1"] .dropdown-menu {
            position: absolute !important;
            left: 0 !important;
            right: auto !important;
            width: 100vw !important;
            max-width: 100vw !important;
            padding: 0 !important;
            top: calc(100% + 10px) !important;
            box-sizing: border-box;
            transform: none !important;
            background: transparent !important;
            box-shadow: none !important;
            pointer-events: none; /* container shouldn't be clickable */
            border: none !important;
            border-radius: 0 !important;
            z-index: 1000 !important;
            margin-top: 0 !important;
            overflow: hidden !important;
        }

        /* View type 1 mega dropdown panels */
        .nav-item.has-dropdown[data-view-type="1"] .categories-panel {
            margin: 0 auto;
            min-width: 1400px;
            width: 1400px;
            max-width: 1400px;
            background: var(--surface);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.35);
            padding: 16px 0 16px 0;
            pointer-events: auto; /* only panel is interactive */
        }

        /* View type 1 dropdown hover behavior - same as categories */
        .nav-item.has-dropdown[data-view-type="1"]:hover .dropdown-menu {
            opacity: 1 !important;
            visibility: visible !important;
            transform: translateY(0) !important;
        }

        /* View type 2 mega dropdowns (full width like categories but without search) */
        .nav-item.has-dropdown[data-view-type="2"] .dropdown-menu {
            position: absolute !important;
            left: 0 !important;
            right: auto !important;
            width: 100vw !important;
            max-width: 100vw !important;
            padding: 0 !important;
            top: calc(100% + 10px) !important;
            box-sizing: border-box;
            transform: none !important;
            background: transparent !important;
            box-shadow: none !important;
            pointer-events: none; /* container shouldn't be clickable */
            border: none !important;
            border-radius: 0 !important;
            z-index: 1000 !important;
            margin-top: 0 !important;
            overflow: hidden !important;
        }

        /* View type 2 mega dropdown panels */
        .nav-item.has-dropdown[data-view-type="2"] .categories-panel {
            margin: 0 auto;
            min-width: 1400px;
            width: 1400px;
            max-width: 1400px;
            background: var(--surface);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.35);
            padding: 16px 0 16px 0;
            pointer-events: auto; /* only panel is interactive */
        }

        /* View type 2 category cards - large images with text overlay on top */
        .nav-item.has-dropdown[data-view-type="2"] .category-card {
            position: relative;
            display: block;
            background: none;
            border: none;
            border-radius: 12px;
            padding: 0;
            color: var(--text-color);
            text-decoration: none;
            transition: all 0.3s ease;
            width: 100%;
            height: 200px;
            overflow: hidden;
        }

        .nav-item.has-dropdown[data-view-type="2"] .category-card:hover {
            transform: translateY(-5px);
            text-decoration: none;
        }

        .nav-item.has-dropdown[data-view-type="2"] .category-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 12px;
            transition: transform 0.3s ease;
        }

        .nav-item.has-dropdown[data-view-type="2"] .category-card:hover img {
            transform: scale(1.05);
        }

        .nav-item.has-dropdown[data-view-type="2"] .category-card span {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
            color: white;
            padding: 20px 12px 12px 12px;
            font-size: 14px;
            font-weight: 700;
            text-align: center;
            border-radius: 0 0 12px 12px;
            /* Reset truncation rules applied to generic nav labels */
            max-width: none !important;
            overflow: visible !important;
            text-overflow: clip !important;
            white-space: normal !important;
        }

        /* View type 2 grid - max 7 items per row */
        .nav-item.has-dropdown[data-view-type="2"] .categories-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 20px;
            margin: 0 24px;
            padding: 0 0 8px 0;
        }

        @media (max-width: 1400px) {
            .nav-item.has-dropdown[data-view-type="2"] .categories-grid { 
                grid-template-columns: repeat(6, 1fr); 
            }
        }
        @media (max-width: 1200px) {
            .nav-item.has-dropdown[data-view-type="2"] .categories-grid { 
                grid-template-columns: repeat(5, 1fr); 
            }
        }
        @media (max-width: 992px) {
            .nav-item.has-dropdown[data-view-type="2"] .categories-grid { 
                grid-template-columns: repeat(4, 1fr); 
            }
        }

        /* View type 2 dropdown hover behavior */
        .nav-item.has-dropdown[data-view-type="2"]:hover .dropdown-menu {
            opacity: 1 !important;
            visibility: visible !important;
            transform: translateY(0) !important;
        }

        .categories-panel {
            margin: 0 24px 0 24px;
            min-width: 1400px;
            width: auto;
            max-width: none;
            background: var(--surface);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.35);
            padding: 16px 0 16px 0;
            pointer-events: auto !important;
        }

        .categories-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 0 24px 12px 24px;
            justify-content: flex-start;
        }

        .categories-search {
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(255,255,255,0.06);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 0 12px;
            height: 40px;
            width: 360px;
            min-width: 360px;
            box-sizing: border-box;
        }

        .categories-search input {
            background: transparent;
            border: none !important;
            outline: none !important;
            color: var(--text-color);
            width: 100% !important;
            min-width: 0;
            font-size: 14px;
            height: 100%;
            box-sizing: border-box;
        }

        .btn-all-categories {
            height: 40px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0 14px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-color);
            text-decoration: none;
            font-size: 13px;
            transition: all 0.2s ease;
        }

        .btn-all-categories:hover { color: #8b5cf6; border-color: #8b5cf6; }

        .categories-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 10px;
            margin: 0 24px;
            padding: 0 0 8px 0;
        }
        @media (max-width: 1200px) {
            .categories-grid { grid-template-columns: repeat(4, 1fr); }
        }
        @media (max-width: 992px) {
            .categories-grid { grid-template-columns: repeat(3, 1fr); }
        }

        .category-card {
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(255,255,255,0.04);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 10px 12px;
            color: var(--text-color);
            text-decoration: none;
            transition: all 0.2s ease;
            min-height: 48px;
        }

        .category-card:hover {
            background: rgba(255,255,255,0.08);
            color: #d4af37;
            text-decoration: none;
            transform: translateY(-1px);
        }

        .category-card img {
            width: 24px;
            height: 24px;
            object-fit: contain;
            border-radius: 6px;
            background: transparent !important;
        }

        .categories-footer {
            display: flex;
            justify-content: flex-end;
            margin-top: 12px;
        }

        .btn-all-categories {
            padding: 8px 12px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-color);
            text-decoration: none;
            font-size: 13px;
            transition: all 0.2s ease;
        }

        .btn-all-categories:hover { color: #8b5cf6; border-color: #8b5cf6; }

        /* Mobile dropdown positioning */
        @media (max-width: 768px) {
            .dropdown-menu {
                right: 0 !important;
                left: auto !important;
                min-width: 180px !important;
                max-width: 200px !important;
            }

            /* User actions dropdown specific mobile styling */
            .user-actions .dropdown-menu {
                right: 0 !important;
                left: auto !important;
                min-width: 160px !important;
                max-width: 180px !important;
            }

            .user-actions .dropdown-item {
                padding: 8px 12px !important;
                font-size: 12px !important;
            }

            .user-actions .dropdown-item i {
                width: 14px !important;
                margin-right: 8px !important;
                font-size: 12px !important;
            }
        }

        .nav-item:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* Keep categories dropdown open when hovering over it */
        .categories-dropdown:hover {
            opacity: 1 !important;
            visibility: visible !important;

        }


        .dropdown-item {
            display: flex;
            align-items: center;
            padding: 10px 16px;
            color: var(--text-color);
            text-decoration: none;
            font-size: 14px;
            transition: all 0.2s ease;
            border-left: 3px solid transparent;
        }

        .dropdown-item:hover {
            background: rgba(255, 255, 255, 0.05);
            color: #d4af37;
            border-left-color: #d4af37;
            text-decoration: none;
        }

        .dropdown-item i {
            width: 16px;
            margin-right: 12px;
            font-size: 14px;
            flex-shrink: 0;
        }

        .dropdown-divider {
            height: 1px;
            background: var(--border-color);
            margin: 6px 0;
        }

        /* Light theme dropdown */
        [data-theme="light"] .dropdown-menu {
            background: var(--surface);
            border-color: var(--border-color);
        }

        [data-theme="light"] .dropdown-item:hover {
            background: rgba(0, 0, 0, 0.05);
            color: #1976d2;
            border-left-color: #1976d2;
            text-decoration: none;
        }

        /* Light theme overrides */
        [data-theme="light"] .frontend-header {
            background: #f5f5f5;
            border-bottom: 2px solid #d0d0d0;
        }

        [data-theme="light"] .header-nav {
            background: linear-gradient(135deg, rgba(240, 236, 248, 0.95), rgba(240, 236, 248, 0.9));
        }



        [data-theme="light"] .header-search-box {
            background: rgba(0, 0, 0, 0.05);
            border-color: rgba(0, 0, 0, 0.1);
        }

        [data-theme="light"] .header-search-box:hover {
            background: rgba(0, 0, 0, 0.08);
            border-color: rgba(0, 0, 0, 0.15);
        }

        [data-theme="light"] .header-search-box:focus-within {
            background: rgba(0, 0, 0, 0.1);
            border-color: #8b5cf6;
            box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
        }

        [data-theme="light"] .header-search-input {
            color: #333 !important;
            background: none !important;
            border: none !important;
            padding: 0 !important;
            width: auto !important;
            border-radius: 0 !important;
            outline: none !important;
            box-shadow: none !important;
        }

        [data-theme="light"] .header-search-input:focus {
            outline: none !important;
            box-shadow: none !important;
            border: none !important;
        }

        [data-theme="light"] .header-search-input::placeholder {
            color: rgba(0, 0, 0, 0.6) !important;
        }

        [data-theme="light"] .frontend-header .header-top {
            background: linear-gradient(135deg, rgba(232, 228, 240, 0.95), rgba(232, 228, 240, 0.9)) !important;
            border-bottom: 1px solid #d1c7e0;
        }

        /* Force header-top background */
        .frontend-header .header-top[style] {
            background: linear-gradient(135deg, rgba(21, 22, 38, 1), rgba(21, 22, 38, 1)) !important;
        }

        [data-theme="light"] .frontend-header .header-top[style] {
            background: linear-gradient(135deg, rgba(232, 228, 240, 0.95), rgba(232, 228, 240, 0.9)) !important;
        }

        /* Ultra specific rules */
        header.frontend-header div.header-top {
            background: linear-gradient(135deg, rgba(21, 22, 38, 1), rgba(21, 22, 38, 1)) !important;
        }

        [data-theme="light"] header.frontend-header div.header-top {
            background: linear-gradient(135deg, rgba(232, 228, 240, 0.95), rgba(232, 228, 240, 0.9)) !important;
        }

        /* Override any possible inline styles */
        .frontend-header .header-top {
            background: linear-gradient(135deg, rgba(21, 22, 38, 1), rgba(21, 22, 38, 1)) !important;
        }

        [data-theme="light"] .frontend-header .header-top {
            background: linear-gradient(135deg, rgba(232, 228, 240, 0.95), rgba(232, 228, 240, 0.9)) !important;
        }

        [data-theme="light"] .logo {
            background: linear-gradient(135deg, #1976d2, #42a5f5);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        [data-theme="light"] .logo-subtitle {
            color: #1976d2;
        }


        [data-theme="light"] .nav-item {
            color: #333;
        }

        [data-theme="light"]         .nav-item:hover {
            background: rgba(0, 0, 0, 0.1);
            color: inherit;
            text-decoration: none;
            
        }

        [data-theme="light"] .theme-toggle-btn {
            background: #f3f4f6;
            border-color: #d1d5db;
            color: #6b7280;
        }

        [data-theme="light"] .theme-toggle-btn:hover {
            background: #e5e7eb;
            border-color: #9ca3af;
            color: #374151;
        }

        [data-theme="light"] .btn-register {
            background: linear-gradient(135deg, #1e40af, #3b82f6);
        }

        [data-theme="light"] .btn-register:hover {
            background: linear-gradient(135deg, #1d4ed8, #2563eb);
        }

        [data-theme="light"] .btn-login {
            background: linear-gradient(135deg, #8b5cf6, #a855f7);
        }

        [data-theme="light"] .btn-login:hover {
            background: linear-gradient(135deg, #7c3aed, #9333ea);
        }

        /* Mobile Menu Styles */
        .mobile-menu-toggle {
            display: none;
            background: none;
            border: none;
            color: #6d6de5;
            font-size: 20px;
            cursor: pointer;
            padding: 8px;
        }

        .mobile-account-btn {
            display: none;
            background: #8b5cf6;
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            cursor: pointer;
            font-size: 16px;
        }

        .mobile-menu {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: rgba(0, 0, 0, 0.8);
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .mobile-menu.active {
            opacity: 1;
            visibility: visible;
        }

        .mobile-menu-content {
            position: absolute;
            top: 0;
            left: 0;
            width: 50vw;
            max-width: 300px;
            height: 100%;
            background: var(--surface);
            padding: 20px;
            transform: translateX(-100%);
            transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
        }

        .mobile-menu.active .mobile-menu-content {
            transform: translateX(0);
            transition-delay: 0.1s;
        }

        .mobile-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid var(--border-color);
        }

        .mobile-menu-close {
            background: none;
            border: none;
            color: var(--text-color);
            font-size: 24px;
            cursor: pointer;
        }

        .mobile-nav-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 0;
            color: var(--text-color);
            text-decoration: none;
            border-bottom: 1px solid var(--border-color);
            cursor: pointer;
        }

        .mobile-nav-item:hover {
            color: #d4af37;
            text-decoration: none;
        }

        .mobile-nav-item i {
            width: 20px;
            font-size: 16px;
        }

        .mobile-nav-item .toggle-arrow {
            font-size: 12px;
            transition: transform 0.3s ease;
        }

        .mobile-nav-item.active .toggle-arrow {
            transform: rotate(180deg);
        }

        .mobile-submenu {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
            background: rgba(255, 255, 255, 0.02);
            margin: 0 -20px;
            padding: 0 20px;
        }

        .mobile-submenu.active {
            max-height: 300px;
        }

        .mobile-submenu-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 0 10px 32px;
            color: var(--text-muted);
            text-decoration: none;
            font-size: 13px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .mobile-submenu-item:hover {
            color: #d4af37;
            text-decoration: none;
        }

        .mobile-submenu-item i {
            width: 16px;
            font-size: 14px;
        }

        /* Messages button hover effect */
        .messages-btn:hover {
            background: rgba(139, 92, 246, 0.25) !important;
            transform: scale(1.1);
        }

        /* Message badge animation */
        .message-badge {
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        .message-badge.new-message {
            animation: bounce 0.6s ease-in-out;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            60% { transform: translateY(-5px); }
        }

        /* Modal Styles */
        .modal-backdrop {
            display: none !important;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }
        
        .modal-backdrop.show {
            display: flex !important;
        }
        
        .modal {
            background: var(--surface);
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            max-width: 400px;
            width: 90%;
            max-height: 80vh;
            overflow: hidden;
        }
        
        .modal-header {
            padding: 20px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .modal-title {
            color: var(--text-color);
            font-size: 18px;
            font-weight: 600;
            margin: 0;
        }
        
        .modal-close {
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 20px;
            cursor: pointer;
            padding: 4px;
            border-radius: 4px;
            transition: all 0.3s ease;
        }
        
        .modal-close:hover {
            background: rgba(139, 92, 246, 0.1);
            color: #8b5cf6;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label:not(.checkbox-label):not(.radio-label) {
            display: block;
            color: var(--text-color);
            font-weight: 600;
            margin-bottom: 8px;
            font-size: 14px;
        }
        
        .form-group input {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            background: var(--bg);
            color: var(--text-color);
            font-size: 14px;
            outline: none;
        }
        
        .form-group input:focus {
            border-color: #8b5cf6;
        }
        
        .modal-actions {
            padding: 20px;
        }
        
        .btn-primary {
            background: #8b5cf6;
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .btn-primary:hover {
            background: #7c3aed;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .header-top {
                padding: 8px 16px;
            }

            .header-nav {
                display: none;
            }

            .header-search-container {
                display: none;
            }

            .mobile-menu-toggle {
                display: block;
            }

            .mobile-account-btn {
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .auth-buttons {
                display: none;
            }

            .messages-btn {
                display: none !important; /* Hide messages button on mobile */
            }

            /* Hide username on mobile, keep only balance */
            .user-actions .nav-item .user-info .username {
                display: none !important;
            }

            /* Make user-actions more compact on mobile */
            .user-actions .nav-item {
                min-width: 80px !important;
            }

            .user-actions .nav-item .user-info {
                gap: 0 !important;
            }

            .user-actions .nav-item .user-info span {
                font-size: 10px !important;
            }

            .header-actions {
                gap: 8px;
            }

            .logo {
                font-size: 20px;
            }

        }

        @media (max-width: 480px) {
            .header-top {
                padding: 10px 16px;
            }

            .mobile-menu-content {
                width: 70vw;
                max-width: 280px;
            }
        }

/* Live support spacing adjustment */
.mobile-bottom-menu.with-live-support {
    /* No extra padding - live support will be positioned above */
}

/* Mobile Bottom Menu Styles */
.mobile-bottom-menu {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;  /* <-- FIX: 11% idi, tamamen kaldırıldı */
    width: 100%; /* <-- Tam genişlik garanti */
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);

    overflow: hidden; /* <-- Taşmayı tamamen engeller */
    box-sizing: border-box;
    padding-bottom: env(safe-area-inset-bottom); /* iPhone notch uyumu */
}

.mobile-bottom-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    min-width: 0;
    flex: 1;
}

.bottom-menu-item i {
    font-size: 18px;
    margin-bottom: 2px;
    min-width: 18px; /* <-- icon kaymasını engeller */
}

.bottom-menu-item span {
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.bottom-menu-item:hover,
.bottom-menu-item.active {
    color: #8b5cf6;
    text-decoration: none;
}

.bottom-menu-item:hover i {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    html, body {
        width: 100%;
        overflow-x: hidden !important;
        position: relative;
    }

    * {
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .nav-item.has-dropdown .dropdown-menu {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 180px !important;
    }
}



        .messages-item {
            position: relative;
        }

        .messages-item .message-badge {
            position: absolute;
            top: 2px;
            right: 8px;
            background: #ef4444;
            color: white;
            border-radius: 50%;
            width: 16px;
            height: 16px;
            font-size: 8px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid var(--surface);
            min-width: 16px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

       

        /* Live support positioning when bottom menu is active */
        @media (max-width: 768px) {
            /* Tawk.to live support widget positioning */
            #tawk-widget,
            .tawk-widget,
            .tawk-widget-container,
            .tawk-widget-iframe,
            .tawk-min-container {
                bottom: 70px !important; /* Position above bottom menu */
                z-index: 999 !important;
                position: fixed !important;
            }
            
            /* Tawk.to mobile specific elements */
            .tawk-min-container,
            .tawk-min-badge,
            .tawk-button {
                bottom: 70px !important;
                z-index: 999 !important;
            }
            
            /* Tawk.to iframe positioning */
            #tawk-widget iframe,
            .tawk-widget iframe,
            .tawk-widget-container iframe {
                bottom: 70px !important;
                z-index: 999 !important;
                position: fixed !important;
            }
            
            /* Other live support widgets */
            .live-support-widget,
            .support-chat-widget,
            .chat-widget {
                bottom: 70px !important;
                z-index: 999 !important;
                position: fixed !important;
            }
        }

        /* Desktop - hide bottom menu */
        @media (min-width: 769px) {
            .mobile-bottom-menu {
                display: none !important;
            }
        }