:root {
    /* Color Palette - Modern & Premium */
    --primary: #2563eb;
    --primary-light: #60a5fa;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;

    /* Grays */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions & Radii */
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --nav-height: 80px;
    --nav-height-mobile: 70px;
    --container-max: 1400px;
}


/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Content Wrapper - Center all pages */
#main-content {
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.content-wrapper {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    width: 100%;
}


/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* App Layout - Top Menu Version */
.site-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Site Header */
.site-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}


.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

/* Logo Section */
.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.logo-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    background: white;
    padding: 2px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.logo-wrapper img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 1s ease;
}

.main-logo {
    opacity: 1;
    z-index: 2;
    animation: logoCycleMain 10s infinite;
}

.flag-logo {
    opacity: 0;
    z-index: 1;
    animation: logoCycleFlag 10s infinite;
}

@keyframes logoCycleMain {

    0%,
    40%,
    100% {
        opacity: 1;
    }

    50%,
    90% {
        opacity: 0;
    }
}

@keyframes logoCycleFlag {

    0%,
    40%,
    100% {
        opacity: 0;
    }

    50%,
    90% {
        opacity: 1;
    }
}

.logo-text h1 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary);
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Desktop Nav */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: var(--transition);
    border: none;
    background: transparent;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
}

.nav-link i {
    width: 18px;
    height: 18px;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% - 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 220px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    display: block;
    z-index: 1000;
}


.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: var(--gray-50);
    color: var(--primary);
}

.chevron {
    width: 14px !important;
    height: 14px !important;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .chevron {
    transform: rotate(180deg);
}

.dropdown-toggle::after {
    display: none !important;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--gray-200);
    background: white;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}


.action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--primary);
    color: white;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: var(--transition);
}

.user-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
    color: white;
}

.user-btn.logged-in {
    background: var(--success);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.user-btn.logged-in:hover {
    background: #059669;
}

.header-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid #fecaca;
    cursor: pointer;
}

.header-logout-btn:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.header-logout-btn i {
    width: 18px;
    height: 18px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    background: var(--gray-100);
    color: var(--gray-800);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-toggle:hover {
    background: var(--gray-200);
}

/* Mobile Nav Overlay Backdrop */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Nav Side Drawer */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 360px;
    height: 100dvh;
    background: white;
    z-index: 99995;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.mobile-nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

.mobile-nav-close-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 10px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-nav-close-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.mobile-nav-content {
    flex: 1;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    transition: var(--transition);
}

.mobile-link i,
.mobile-link svg {
    width: 20px;
    height: 20px;
    color: #9ca3af;
    flex-shrink: 0;
}

.mobile-link:hover,
.mobile-link.active {
    background: #eff6ff;
    color: #2563eb;
}

.mobile-link.active i,
.mobile-link.active svg {
    color: #2563eb;
}

/* Mobile Submenu Accordion */
.mobile-submenu {
    border-radius: 12px;
    overflow: hidden;
}

.mobile-submenu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    cursor: pointer;
    color: #374151;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    transition: var(--transition);
    user-select: none;
}

.mobile-submenu-header:hover {
    background: #f9fafb;
}

.mobile-submenu-header span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-submenu-header i,
.mobile-submenu-header svg {
    width: 20px;
    height: 20px;
    color: #9ca3af;
}

.mobile-chevron {
    width: 18px !important;
    height: 18px !important;
    color: #9ca3af !important;
    transition: transform 0.3s ease;
}

.mobile-submenu.open .mobile-chevron {
    transform: rotate(180deg);
}

.mobile-submenu-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding-left: 1rem;
}

.mobile-submenu.open .mobile-submenu-links {
    max-height: 500px;
}

.mobile-submenu-links a {
    display: block;
    padding: 0.7rem 1rem 0.7rem 2.25rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-left: 2px solid #e5e7eb;
    transition: var(--transition);
}

.mobile-submenu-links a:hover {
    color: #2563eb;
    border-left-color: #2563eb;
    background: #eff6ff;
}

/* Mobile Login Button */
.mobile-nav-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.mobile-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    background: #2563eb;
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.mobile-login-btn:hover {
    background: #1d4ed8;
    color: white;
}

.mobile-login-btn.logged-in {
    background: #22c55e;
}

.mobile-login-btn.logged-in:hover {
    background: #16a34a;
}

.mobile-login-btn i,
.mobile-login-btn svg {
    width: 20px;
    height: 20px;
}

/* Content Area */
/* -- consolidated at top of file and below -- */

/* Footer Section */
footer {
    background: white !important;
    border-top: 1px solid var(--gray-200) !important;
    padding: 2rem 1.5rem !important;
    margin-top: auto;
}


/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .header-container {
        height: var(--nav-height-mobile);
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    .logo-text span {
        display: none;
    }
}

@media (max-width: 600px) {
    .header-actions .user-btn span {
        display: none;
    }

    .header-actions .user-btn {
        padding: 0.6rem;
        border-radius: 12px;
    }
}

/* Main Content Area Adjustments - single source of truth */
#main-content {
    flex: 1 0 auto;
    width: 100%;
    margin-top: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    font-size: 0.9rem;
    color: var(--gray-500);
    pointer-events: none;
    transition: 0.2s ease all;
    background: white;
    padding: 0 0.25rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
    background: transparent;
    color: var(--gray-900);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input:focus+.form-label,
.form-input:not(:placeholder-shown)+.form-label {
    top: -0.5rem;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

/* Ticker (Anasayfa) */
.elegant-news-ticker {
    background: var(--gray-100);
    padding: 0.75rem 1rem;
    border-radius: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.ticker-label {
    background: var(--danger);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.ticker-track {
    flex: 1;
    overflow: hidden;
}

.ticker-items {
    display: flex;
    animation: scroll 40s linear infinite;
}

.news-item {
    white-space: nowrap;
    margin-right: 3rem;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
}

.news-item:hover {
    color: var(--primary);
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    main {
        padding: 1.5rem 1rem;
    }

    .card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    main {
        padding: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .header-title {
        font-size: 1.1rem;
    }
}

/* Specific Page Enhancements */
/* Anket */
.puan-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.puan-btn {
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.puan-btn:hover,
.puan-btn.active {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.puan-btn input {
    display: none;
}

.puan-btn input:checked+span {
    color: var(--primary);
    font-weight: 700;
}

/* Sorgu */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.result-card {
    border-left: 4px solid var(--primary);
}

/* Animation Utils */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* borsa-kutulari / Sections & Items */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.section-title {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: var(--primary);
}

.item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--gray-200);
}

.item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.item-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 120px;
}

.item-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.detay-link {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.detay-link:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.info-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-600);
    background: var(--gray-100);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

.info-box i {
    color: var(--primary);
    width: 1.25rem;
    text-align: center;
}

/* Modals & Gallery */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 900px;
    margin: 2rem auto;
    position: relative;
    color: var(--gray-900);
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--gray-500);
    cursor: pointer;
}

.gallery-container {
    margin: 1.5rem 0;
}

.main-gallery-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: var(--radius);
    background: transparent;
}

.thumbnail-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail-row img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}

.thumbnail-row img:hover,
.thumbnail-row img.active {
    opacity: 1;
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

/* Dark mode overrides for new components */
[data-theme="dark"] .section,
[data-theme="dark"] .modal-content {
    background: var(--gray-100);
    border-color: var(--gray-200);
}

[data-theme="dark"] .info-box {
    background: var(--gray-200);
    color: var(--gray-800);
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .item-left {
        width: 100%;
    }

    .item-image img {
        width: 100%;
        max-width: 250px;
        height: auto;
    }

    .modal {
        padding: 0.5rem;
    }

    .modal-content {
        padding: 1.5rem 1rem;
        margin: 0.5rem auto;
        border-radius: var(--radius);
    }

    .close {
        top: 0.2rem;
        right: 0.5rem;
        font-size: 2.2rem;
    }

    .main-gallery-image {
        max-height: 300px;
    }
}

/* Ticker Banner (Fiyat & Haber) */
.ticker-main-container {
    width: 100%;
    overflow: hidden;
    border-bottom: 2px solid var(--gray-200);
}

.ticker-row {
    display: flex;
    align-items: center;
    min-height: 45px;
    overflow: hidden;
    position: relative;
}

.ticker-label {
    flex-shrink: 0;
    width: 120px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    color: white;
    z-index: 10;
    text-transform: uppercase;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 0 0.5rem;
    text-align: center;
}

.ticker-date {
    font-size: 0.6rem;
    opacity: 0.8;
    margin-top: 2px;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    height: 100%;
    position: relative;
    background: var(--gray-100);
}

.ticker-wrapper {
    display: inline-flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
}

.row-borsa {
    background: var(--primary);
}

.row-borsa .ticker-label {
    background: var(--primary-dark);
}

.row-borsa .ticker-content {
    background: #003f7e;
}

.row-haber {
    background: var(--gray-900);
}

.row-haber .ticker-label {
    background: var(--danger);
}

.row-haber .ticker-content {
    background: var(--gray-900);
}

.fiyat-item,
.news-item {
    color: white;
    padding: 0 2rem;
    display: inline-flex;
    align-items: center;
    height: 100%;
    gap: 0.5rem;
    font-weight: 500;
}

.fiyat-val {
    color: #ffff00;
    font-weight: 700;
}

.degisim-icon {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.degisim-up {
    color: #4ade80;
}

.degisim-down {
    color: #f87171;
}

.news-source {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .ticker-label {
        width: 90px;
        font-size: 0.7rem;
    }

    .fiyat-item,
    .news-item {
        padding: 0 1rem;
        font-size: 0.8rem;
    }
}

/* Portal Pages (Etkinlikler, Oduller, etc.) */
.portal-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.portal-title {
    font-size: 1.75rem;
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-bar {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.search-bar form {
    display: flex;
    gap: 1rem;
}

.search-bar input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
}

.haber-table {
    width: 100%;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border-collapse: collapse;
}

.haber-table thead {
    background: var(--primary);
    color: white;
}

.haber-table th,
.haber-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.haber-table tbody tr:hover {
    background: var(--gray-50);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a {
    padding: 0.5rem 1rem;
    background: white;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--gray-700);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary);
    color: white;
}

@media (max-width: 1024px) {
    .portal-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .haber-table thead {
        display: none;
    }

    .haber-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius);
    }

    .haber-table td {
        display: flex;
        justify-content: space-between;
        padding: 0.75rem 1rem;
    }

    .haber-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray-500);
    }
}

/* Toast Notifications (eybs- prefix to avoid Bootstrap .toast conflict) */
.eybs-toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.eybs-toast {
    background: white;
    color: #1f2937;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 450px;
    pointer-events: auto;
    opacity: 1;
    animation: eybs-toastSlideIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid #3b82f6;
    font-size: 0.95rem;
    line-height: 1.4;
}

.eybs-toast.success {
    border-left-color: #22c55e;
}

.eybs-toast.error {
    border-left-color: #ef4444;
}

.eybs-toast.info {
    border-left-color: #3b82f6;
}

.eybs-toast.warning {
    border-left-color: #f59e0b;
}

.eybs-toast svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.eybs-toast.success svg {
    color: #22c55e;
}

.eybs-toast.error svg {
    color: #ef4444;
}

.eybs-toast.info svg {
    color: #3b82f6;
}

.eybs-toast.warning svg {
    color: #f59e0b;
}

@keyframes eybs-toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.eybs-toast.hiding {
    animation: eybs-toastFadeOut 0.3s forwards;
}

@keyframes eybs-toastFadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .eybs-toast-container {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }

    .eybs-toast {
        min-width: 0;
        width: 100%;
    }
}


/* Result Screens (Success/Error) */
.success-screen,
.error-screen {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    animation: fadeInScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-screen i,
.error-screen i {
    width: 80px;
    height: 80px;
    padding: 1.25rem;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.success-screen i {
    color: var(--success);
    background: #f6ffed;
    border: 2px solid #b7eb8f;
}

.error-screen i {
    color: var(--danger);
    background: #fff1f0;
    border: 2px solid #ffa39e;
}

.success-screen h3,
.error-screen h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--gray-800);
}

.success-screen p,
.error-screen p {
    color: var(--gray-600);
    max-width: 450px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 1.05rem;
}


.result-summary {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary);
}

.result-summary.has-debt {
    border-left-color: var(--danger);
    background: #fff5f5;
}

.result-summary.no-debt {
    border-left-color: var(--success);
    background: #f6ffed;
}

.member-title {
    font-size: 1.25rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.total-amount {
    font-size: 1.5rem;
    color: var(--gray-900);
    display: block;
    margin-top: 1rem;
    border-top: 1px solid var(--gray-200);
    padding-top: 1rem;
}

.sorgu-security-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff8eb;
    border-radius: var(--radius-md);
    border: 1px solid #ffe5b5;
    color: #856404;
}

.sorgu-security-info h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.sorgu-security-info p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

/* ==============================
   ETKINLIKLER PAGE
   ============================== */

/* Page Hero (shared) */
.page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-hero-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-hero-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.page-hero-icon i {
    width: 28px;
    height: 28px;
}

.page-hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}

.page-hero-desc {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0.25rem 0 0;
}

.page-hero-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.page-hero-back:hover {
    color: #2563eb;
    border-color: #2563eb;
    background: #eff6ff;
}

.page-hero-back i {
    width: 18px;
    height: 18px;
}

/* Search */
.etk-search-wrapper {
    margin-bottom: 1.5rem;
}

.etk-search-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.etk-search-input-wrap {
    flex: 1;
    position: relative;
}

.etk-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #9ca3af;
    pointer-events: none;
}

.etk-search-input {
    width: 100%;
    padding: 0.875rem 2.75rem;
    box-sizing: border-box;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.2s ease;
    outline: none;
}

.etk-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.etk-search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    background: #f3f4f6;
    transition: all 0.2s;
}

.etk-search-clear:hover {
    background: #e5e7eb;
    color: #374151;
}

.etk-search-clear i {
    width: 16px;
    height: 16px;
}

.etk-search-btn {
    padding: 0.875rem 1.5rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    white-space: nowrap;
}

.etk-search-btn i {
    width: 18px;
    height: 18px;
}

/* Results Bar */
.etk-results-bar {
    padding: 0.75rem 0;
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Events Grid */
.etk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Event Card */
.etk-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.etk-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.etk-card-visual {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.etk-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.etk-card:hover .etk-card-cover {
    transform: scale(1.05);
}

.etk-card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
}

.etk-card-no-img i {
    width: 64px;
    height: 64px;
}

.etk-card-date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: white;
    border-radius: 14px;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 56px;
    line-height: 1;
}

.etk-date-day {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
}

.etk-date-month {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2563eb;
    text-transform: uppercase;
    margin-top: 2px;
}

.etk-date-year {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 1px;
}

.etk-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.etk-status-badge.upcoming {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

/* Card Body */
.etk-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.etk-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.etk-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.etk-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #6b7280;
    background: #f9fafb;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
}

.etk-meta-item i {
    width: 14px;
    height: 14px;
    color: #9ca3af;
}

.etk-card-desc {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Toggle Button */
.etk-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem;
    width: 100%;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    margin-top: auto;
}

.etk-toggle-btn:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.etk-toggle-btn.open {
    background: #eff6ff;
    color: #2563eb;
}

.etk-toggle-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.etk-toggle-btn.open .etk-toggle-icon {
    transform: rotate(180deg);
}

/* Detail Section */
.etk-card-detail {
    margin-top: 1rem;
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
    animation: fadeInDetail 0.3s ease;
}

@keyframes fadeInDetail {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.etk-detail-section {
    margin-bottom: 1.25rem;
}

.etk-detail-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
    margin: 0 0 0.5rem;
}

.etk-detail-section h4 i {
    width: 16px;
    height: 16px;
    color: #2563eb;
}

.etk-detail-section p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

/* Gallery */
.etk-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
}

.etk-gallery-thumb {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #f0f0f0;
    transition: all 0.2s ease;
}

.etk-gallery-thumb:hover {
    border-color: #2563eb;
    transform: scale(1.03);
}

.etk-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* File Links */
.etk-files {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.etk-file-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.etk-file-link:hover {
    background: #eff6ff;
    color: #2563eb;
}

.etk-file-link i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Empty State */
.etk-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #9ca3af;
}

.etk-empty i {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    color: #d1d5db;
}

.etk-empty h3 {
    font-size: 1.25rem;
    color: #6b7280;
    margin: 0 0 0.5rem;
}

.etk-empty p {
    margin: 0 0 1.5rem;
}

/* Pagination */
.etk-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
}

.etk-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.etk-page-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.etk-page-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.etk-page-btn i {
    width: 18px;
    height: 18px;
}

/* Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 100000;
    justify-content: center;
    align-items: center;
}

.lightbox-modal[style*="display: block"] {
    display: flex !important;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 80vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-align: center;
    max-width: 80%;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
}

/* Etkinlikler Responsive */
@media (max-width: 768px) {
    .page-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-hero-title {
        font-size: 1.5rem;
    }

    .etk-search-form {
        flex-direction: column;
    }

    .etk-search-btn {
        width: 100%;
        justify-content: center;
    }

    .etk-grid {
        grid-template-columns: 1fr;
    }

    .etk-card-visual {
        height: 180px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }
}