html {
    overflow-x: hidden;
}

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

:root {
    --primary-blue: #0066cc;
    --secondary-blue: #004d99;
    --light-blue: #3399ff;
    --accent-orange: #ff6600;
    --dark-orange: #cc5200;
    --light-orange: #ff8533;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --text-color: #2c3e50;
    --text-light: #5a6c7d;
    --text-muted: #95a5a6;
    --bg-color: #f5f7fa;
    --bg-light: #ffffff;
    --border-color: #e1e8ed;
    --shadow-sm: 0 2px 8px rgba(0,102,204,0.1);
    --shadow: 0 4px 16px rgba(0,102,204,0.15);
    --shadow-lg: 0 8px 32px rgba(0,102,204,0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --gradient-blue: linear-gradient(135deg, #0066cc 0%, #004d99 50%, #003366 100%);
    --gradient-orange: linear-gradient(135deg, #ff6600 0%, #ff8533 50%, #ffaa66 100%);
    --gradient-hero: linear-gradient(135deg, #0066cc 0%, #3399ff 50%, #0066cc 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(0,102,204,0.95) 0%, rgba(0,77,153,0.9) 100%);
    --gradient-success: linear-gradient(135deg, #28a745 0%, #34ce57 100%);

    /* Membership/admin gradients (used in PHP views) */
    --gradient-primary: var(--gradient-blue);
    --gradient-accent: var(--gradient-orange);
    --primary-color: var(--primary-blue);
    --accent-color: var(--accent-orange);
    
    --dark-blue: #1a237e;
    --pink: #e91e63;
    --orange: #ff9800;
    --red: #f44336;
    --brown: #795548;
    --green: #4caf50;
    --blue: #2196f3;
    --dark-red: #c62828;
    --purple: #9c27b0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-header {
    background: var(--bg-light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid transparent;
    background-image: var(--gradient-blue);
    background-clip: padding-box;
    animation: slideDown 0.5s ease;
    padding: 0;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.main-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-orange);
    animation: expandWidth 0.8s ease;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    max-height: -webkit-fill-available;
    background: #1a237e;
    color: #ffffff;
    z-index: 1100;
    transform: translateX(-100%);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    padding: 16px 16px 12px;
    overflow: hidden;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.sidebar-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 20px;
    margin-right: 4px;
}

.sidebar-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #283593;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #ffeb3b;
    flex-shrink: 0;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sidebar-user-name {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-rep-box {
    flex-shrink: 0;
    margin: 0 0 10px 0;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
}
.sidebar-rep-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.95;
    margin-bottom: 4px;
}
.sidebar-rep-name {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 2px;
}
.sidebar-rep-link {
    display: block;
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    margin-top: 2px;
    word-break: break-all;
}
.sidebar-rep-link:hover {
    text-decoration: underline;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #283593;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-item .sidebar-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-item:hover {
    background: #3949ab;
}

.sidebar-upgrade {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.sidebar-upgrade:hover {
    opacity: 0.95;
    color: #1a1a1a;
}

.sidebar-footer {
    margin-top: 8px;
    padding-top: 8px;
    flex-shrink: 0;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 999px;
    background: #f44336;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

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

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a237e;
    border-radius: 20px 20px 0 0;
    padding: 8px 16px 12px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
    z-index: 1000;
}

.bottom-nav-inner {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 11px;
}

.bottom-nav-item i {
    font-size: 18px;
}

.bottom-nav-item.active {
    color: #ffffff;
}

.bottom-nav-item.active .bottom-nav-label {
    font-weight: 600;
}

@media (min-width: 992px) {
    .sidebar {
        display: none;
    }
    .bottom-nav {
        display: none;
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 10px 15px;
    transition: var(--transition);
    z-index: 1001;
    border-radius: 8px;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
}

.menu-toggle:hover {
    color: var(--accent-orange);
    background: rgba(255,102,0,0.1);
    transform: scale(1.1) rotate(90deg);
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo a {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 45%, #ffb366 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -1px;
    transition: var(--transition);
    position: relative;
}

.logo a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-orange);
    transition: width 0.3s ease;
    box-shadow: 0 2px 8px rgba(255,102,0,0.5);
}

.logo a:hover {
    transform: scale(1.05);
    text-shadow: 0 0 12px rgba(255,102,0,0.6);
}

.logo a:hover::after {
    width: 100%;
}

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

/* Navbar: müşteri temsilciniz kutusu - okunaklı renk ve boyut */
.header-rep-box {
    margin-right: 12px;
    padding: 8px 14px;
    background: var(--bg-light);
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.header-rep-label {
    color: var(--text-light);
    margin-right: 6px;
}
.header-rep-name {
    color: var(--text-color);
    margin-right: 8px;
}
.header-rep-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    margin: 0 4px;
}
.header-rep-link:hover {
    text-decoration: underline;
}

/* Navbar: üyelik tipi rozeti (Temsilciniz yanında) */
.header-membership-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 8px;
}
.header-badge-normal {
    background: #e9ecef;
    color: #495057;
    border: 1px solid #dee2e6;
}
.header-badge-pro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.35);
}

.btn-upgrade {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}
.btn-upgrade:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
    color: #1a1a1a;
}
.btn-upgrade i {
    font-size: 13px;
}

.btn-login, .btn-register, .btn-user, .btn-logout {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-login {
    background: var(--bg-light);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-blue);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-login:hover {
    color: var(--bg-light);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-login:hover::before {
    left: 0;
}

.btn-register {
    background: var(--gradient-orange);
    color: var(--bg-light);
    border: none;
    box-shadow: 0 4px 15px rgba(255,102,0,0.3);
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-register:hover::before {
    width: 300px;
    height: 300px;
}

.btn-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,102,0,0.4);
}

.btn-user {
    background: var(--gradient-success);
    color: var(--bg-light);
    border: none;
}

.btn-user:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-logout {
    background: var(--gradient-orange);
    color: var(--bg-light);
    padding: 12px 18px;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.main-nav {
    background: var(--gradient-blue);
    transition: var(--transition);
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-top .logo {
    position: static;
    transform: none;
    flex: 1;
    text-align: center;
}

.nav-top .header-actions {
    margin-left: 0;
    flex-shrink: 0;
}

.nav-top .menu-toggle {
    color: white;
    flex-shrink: 0;
}

.main-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-orange);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    flex-wrap: nowrap;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 20px 28px;
    color: var(--bg-light);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    position: relative;
    font-size: 15px;
    white-space: nowrap;
}

.nav-menu li a:hover {
    color: var(--light-orange);
    font-weight: 700;
}

.main-content {
    min-height: calc(100vh - 200px);
    padding: 50px 0;
    animation: fadeIn 0.6s ease;
}

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

.page-header {
    background: var(--gradient-hero);
    color: var(--bg-light);
    padding: 40px 0;
    margin: 0 12px 32px 12px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    animation: heroFadeIn 0.8s ease;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    opacity: 0.95;
    z-index: 0;
}

.page-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,102,0,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(-30px, -30px) rotate(180deg);
    }
}

.page-header .container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
    animation: heroFadeIn 0.8s ease;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.page-header h1::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.22) 40%, rgba(255,255,255,0.22) 60%, rgba(255,255,255,0) 100%);
    opacity: 0;
    animation: headerShimmer 4s infinite;
}

@keyframes headerShimmer {
    0%, 60%, 100% {
        opacity: 0;
        transform: translateX(-10%);
    }
    30% {
        opacity: 1;
        transform: translateX(10%);
    }
}

.page-header p {
    font-size: 16px;
    opacity: 0.95;
    max-width: 640px;
    margin: 0 auto;
}

a.firma-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.firma-card-link:hover {
    color: inherit;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    animation: cardFadeIn 0.6s ease;
}

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

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-orange);
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(255,102,0,0.5);
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,102,204,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.card:hover::before {
    transform: scaleY(1);
}

.card:hover::after {
    opacity: 1;
}

.card:hover {
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0,102,204,0.2);
    transform: translateY(-8px) scale(1.01);
    border-color: var(--primary-blue);
}

.card-title {
    font-size: 28px;
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-weight: 700;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--gradient-orange);
    position: relative;
    display: inline-block;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-orange);
    animation: expandTitle 0.8s ease;
}

@keyframes expandTitle {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-blue);
    color: var(--bg-light);
    border: none;
    box-shadow: 0 4px 15px rgba(0,102,204,0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,102,204,0.4);
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
    color: #fff;
}

.btn-success {
    background: var(--gradient-success);
    color: var(--bg-light);
    border: none;
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}

.btn-success::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-success:hover::after {
    width: 300px;
    height: 300px;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.4);
}

.btn-danger {
    background: var(--gradient-orange);
    color: var(--bg-light);
    border: none;
    box-shadow: 0 4px 15px rgba(255,102,0,0.3);
}

.btn-danger::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-danger:hover::after {
    width: 300px;
    height: 300px;
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,102,0,0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: var(--text-color);
    border: none;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-light);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0,102,204,0.1);
    transform: translateY(-2px);
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230066cc' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
    font-family: inherit;
}

.password-input-wrapper {
    position: relative;
    display: block;
}
.password-input-wrapper .form-control {
    padding-right: 48px;
}
.password-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 12px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    transition: color 0.2s;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}
.password-toggle-btn:hover {
    color: var(--primary-blue);
}
.password-toggle-btn:focus {
    outline: none;
    color: var(--primary-blue);
}

.alert {
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 5px solid;
    animation: slideInAlert 0.5s ease;
    box-shadow: var(--shadow-sm);
}

@keyframes slideInAlert {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-color: var(--success-color);
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-color: var(--accent-orange);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-color: var(--primary-blue);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-color: var(--accent-orange);
}

.turkiye-harita-section {
    margin: 10px 0 40px;
}

.harita-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.harita-container {
    position: relative;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 15px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.harita-frame {
    width: 100%;
    height: 100%;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #fafbfc;
}

.harita-side-panel {
    display: block;
    margin-top: 20px;
}

.harita-side-panel .card {
    width: 100%;
}

@media (max-width: 767.98px) {
    .harita-side-panel {
        flex-direction: column;
    }
}

#turkiyeHarita {
    width: 100%;
    height: 100%;
    min-height: 340px;
    position: relative;
    overflow: hidden;
}

#turkiyeHarita svg {
    width: 100%;
    height: 100%;
    display: block;
}

#turkiyeHarita path {
    transition: fill 0.2s, fill-opacity 0.2s, stroke 0.2s, stroke-width 0.2s;
}

@media (max-width: 767.98px) {
    .turkiye-harita-section {
        margin: 10px 0 24px;
    }
    .harita-container {
        min-height: 320px;
        max-height: 72vh;
        padding: 14px;
        touch-action: none;
        -webkit-user-select: none;
        user-select: none;
        overflow: hidden;
    }
    .harita-frame {
        flex: 1;
        min-height: 260px;
        max-height: 58vh;
        border-radius: 10px;
        border: 1px solid #e1e8ed;
        overflow: hidden;
        background: #f8f9fa;
        box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
    }
    #turkiyeHarita {
        min-height: 100%;
        height: 100%;
        overflow: hidden;
        position: relative;
        width: 100%;
    }
    #turkiyeHarita .harita-panzoom-wrap {
        transform-origin: 50% 50%;
        touch-action: none;
        min-height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #turkiyeHarita .harita-panzoom-wrap svg {
        flex-shrink: 0;
    }
    .harita-mobile-hint {
        display: block;
        text-align: center;
        font-size: 12px;
        color: var(--text-muted);
        margin: 12px 0 0;
        padding: 0 4px;
    }
}

@media (min-width: 768px) {
    .harita-mobile-hint {
        display: none;
    }
}

.map-tooltip {
    position: fixed;
    background: rgba(26, 35, 126, 0.95);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.15s;
}

.filter-panel {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 2px solid var(--border-color);
    animation: slideInUp 0.6s ease;
}

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

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

.ihale-filter-panel .filter-row {
    gap: 20px;
}

.ihale-filter-panel select[multiple] {
    min-height: 110px;
}

.filter-actions-inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .ihale-filter-panel .filter-row {
        grid-template-columns: 1fr;
    }
    
    .filter-actions-inline {
        flex-direction: column;
    }
    
    .filter-actions-inline .btn {
        width: 100%;
        justify-content: center;
    }
}

.ihale-list, .haber-list, .yazi-list, .ilan-list, .fiyat-list {
    display: grid;
    gap: 30px;
}
.yazi-list {
    grid-template-columns: 1fr;
}

.ihale-item, .haber-item, .yazi-item, .ilan-item {
    display: block;
    background: var(--bg-light);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--border-color);
    border-left: 5px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
    animation: itemFadeIn 0.6s ease;
}

.ihale-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}
.ihale-item-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 22px;
    flex-shrink: 0;
}
.ihale-item-body {
    flex: 1;
    min-width: 0;
}
.ihale-item-body h3 {
    margin-bottom: 12px;
}
.ihale-item-cta {
    display: inline-block;
    color: var(--accent-orange);
    font-weight: 600;
    margin-top: 10px;
}

.haber-thumb-wrapper {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.haber-thumb {
    position: relative;
    width: 120px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eee;
}
.haber-thumb-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--border-color);
    color: var(--primary-blue);
    font-size: 22px;
}

.haber-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.yazi-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 204, 0.1);
}
.yazi-initial {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
}

.haber-body {
    flex: 1;
}

/* Köşe yazısı kartı: tek kutu; dış kutu sadece kutu, içerik .yazi-card-inner içinde */
.yazi-card {
    display: block;
    background: var(--bg-light);
    padding: 30px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    border-left: 5px solid var(--primary-blue);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.yazi-card:hover {
    color: inherit;
}
.yazi-card-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: flex-start;
}
.yazi-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    flex-shrink: 0;
    overflow: hidden;
    background: rgba(0, 102, 204, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.yazi-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.yazi-card-avatar-initial {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-blue);
}
.yazi-card-body {
    flex: 1;
    min-width: 0;
}
.yazi-card-title {
    color: var(--primary-blue);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}
.yazi-card-meta {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}
.yazi-card-meta-label {
    color: var(--primary-blue);
}
.yazi-card-author {
    color: var(--primary-blue);
    text-decoration: underline;
}
.yazi-card-author:hover {
    color: var(--accent-orange);
}
.yazi-card-meta-sep {
    margin: 0 6px;
}
.yazi-card-date {
    color: var(--text-color);
}
.yazi-card .yazi-stats {
    margin-bottom: 12px;
}
.yazi-card .yazi-stats span {
    margin-right: 14px;
    color: var(--primary-blue);
    font-size: 14px;
}
.yazi-card-excerpt {
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.7;
}

/* Üyelere özel kilitli kartlar (tıklanamaz, sadece önizleme) */
.haber-item-locked {
    cursor: default;
    pointer-events: none;
}
.haber-item-locked:hover {
    transform: none;
    box-shadow: var(--shadow);
}
.haber-item-locked .haber-locked-overlay {
    pointer-events: auto;
}
.haber-body {
    position: relative;
}
.haber-locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 15px;
}
.haber-locked-overlay i {
    font-size: 32px;
    color: var(--accent-orange);
}
.haber-locked-overlay .btn {
    margin-top: 8px;
}

.yazi-card-locked {
    cursor: default;
    pointer-events: none;
}
.yazi-card-locked:hover {
    transform: none;
    box-shadow: var(--shadow);
    border-left-color: var(--primary-blue);
}
.yazi-card-locked .yazi-locked-overlay {
    pointer-events: auto;
}
.yazi-card-locked .yazi-card-author {
    text-decoration: none;
    cursor: default;
}
.yazi-card-body {
    position: relative;
}
.yazi-locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 15px;
}
.yazi-locked-overlay i {
    font-size: 32px;
    color: var(--accent-orange);
}
.yazi-locked-overlay .btn {
    margin-top: 8px;
}

@keyframes itemFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ihale-item::before, .haber-item::before, .yazi-item::before, .ilan-item::before, .yazi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-orange);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.ihale-item:hover::before, .haber-item:hover::before, .yazi-item:hover::before, .ilan-item:hover::before, .yazi-card:hover::before {
    transform: scaleY(1);
}

.ihale-item:hover, .haber-item:hover, .yazi-item:hover, .ilan-item:hover, .yazi-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(8px) translateY(-3px);
    border-left-color: var(--accent-orange);
}

.ihale-item h3, .haber-item h3, .yazi-item h3, .ilan-item h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

.ihale-item h3 a, .haber-item h3 a, .yazi-item h3 a, .ilan-item h3 a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.ihale-item h3 a:hover, .haber-item h3 a:hover, .yazi-item h3 a:hover, .ilan-item h3 a:hover {
    color: var(--accent-orange);
    transform: translateX(5px);
}

.ihale-item .meta, .haber-item .meta, .yazi-item .meta, .ilan-item .meta {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.ihale-item .meta i, .haber-item .meta i, .yazi-item .meta i, .ilan-item .meta i {
    color: var(--primary-blue);
    margin-right: 5px;
}

.ihale-item .excerpt, .haber-item .excerpt, .yazi-item .excerpt, .ilan-item .excerpt {
    color: var(--text-color);
    margin-bottom: 18px;
    line-height: 1.8;
    font-size: 15px;
}

.haber-item-link, .yazi-item-link, .ilan-item-link, .ihale-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.haber-item-link:hover, .yazi-item-link:hover, .ilan-item-link:hover, .ihale-item-link:hover {
    color: inherit;
}

.haber-stats, .yazi-stats, .ilan-stats, .ihale-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.haber-stats span, .yazi-stats span, .ilan-stats span, .ihale-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.haber-stats i, .yazi-stats i, .ilan-stats i, .ihale-stats i {
    color: var(--primary-blue);
}

/* İl çoklu seçim dropdown */
.il-select-wrap { position: relative; }
.il-dropdown { position: relative; }
.il-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
    cursor: pointer;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    min-height: 46px;
}
.il-dropdown-trigger:hover { border-color: var(--primary-blue); }
.il-dropdown-trigger .fa-chevron-down {
    transition: transform 0.2s;
    color: var(--text-light);
}
.il-dropdown.open .il-dropdown-trigger .fa-chevron-down { transform: rotate(180deg); }
.il-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    z-index: 100;
    max-height: 280px;
    display: flex;
    flex-direction: column;
}
.il-dropdown-panel[hidden] { display: none !important; }
.il-dropdown.open .il-dropdown-panel { display: flex !important; }
.il-dropdown-list {
    overflow-y: auto;
    padding: 8px;
    max-height: 220px;
}
.il-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin: 0;
    cursor: pointer;
    border-radius: 8px;
}
.il-dropdown-item:hover { background: rgba(0,102,204,0.06); }
.il-dropdown-item input[type="checkbox"] { margin: 0; }
.il-dropdown-item-tumu {
    background: rgba(0,102,204,0.08);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4px;
}
.il-dropdown-actions {
    padding: 10px 12px;
    border-top: 1px solid var(--border-color);
}
.il-dropdown-actions .btn-sm { padding: 8px 16px; font-size: 13px; }

.sample-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 3px solid var(--accent-orange);
    color: #856404;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255,102,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255,102,0,0.2);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255,102,0,0.4);
    }
}

.sample-warning strong {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--dark-orange);
}

.premium-badge {
    display: inline-block;
    background: var(--gradient-orange);
    color: var(--bg-light);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    margin-left: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255,102,0,0.4);
    position: relative;
    overflow: hidden;
    animation: shimmer 2s infinite;
}

.premium-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 3s infinite;
}

@keyframes shimmer {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(255,102,0,0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 20px rgba(255,102,0,0.6);
        transform: scale(1.05);
    }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.quick-links {
    margin: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.stat-card {
    background: var(--gradient-blue);
    color: var(--bg-light);
    padding: 45px 35px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
    animation: cardFadeIn 0.8s ease;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    transition: var(--transition);
}

.stat-card:hover::before {
    top: -30%;
    right: -30%;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-orange);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::after {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-orange);
}

.stat-card i {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.95;
    display: block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.stat-card h3 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--bg-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.stat-card p {
    font-size: 17px;
    opacity: 0.95;
    font-weight: 500;
}

.main-footer {
    background: var(--gradient-blue);
    color: var(--bg-light);
    padding: 20px 0 14px;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-orange);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 12px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 10px;
    color: var(--light-orange);
    font-size: 18px;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 6px;
}

.footer-section a {
    color: var(--bg-light);
    text-decoration: none;
    opacity: 0.9;
    transition: var(--transition);
    display: inline-block;
    padding: 5px 0;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--light-orange);
    transform: translateX(8px);
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
    border-top: 2px solid rgba(255,255,255,0.2);
    opacity: 0.9;
}

.banner-strip {
    margin: 10px auto 0;
    max-width: 1200px;
    padding: 0 16px;
}

.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.banner-slide img {
    width: 100%;
    display: block;
}

.banner-zone.banner-anasayfa-ust .banner-zone-item img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

.home-with-sidebars {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.banner-sidebar {
    width: 200px;
    flex-shrink: 0;
}

.banner-sidebar-item {
    margin-bottom: 16px;
}

.banner-sidebar-item img {
    width: 100%;
    display: block;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.banner-liste-ust {
    margin-bottom: 20px;
}
.banner-liste-ust .banner-zone-item img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 12px;
}

.liste-with-banners {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.liste-with-banners .liste-main-content {
    flex: 1;
    min-width: 0;
}

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

@media (max-width: 991px) {
    .banner-sidebar {
        width: 100%;
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    .banner-sidebar-item {
        flex: 0 0 160px;
        margin-bottom: 0;
    }
}

.admin-panel {
    background: var(--bg-color);
    min-height: 100vh;
}

.banner-actions-cell {
    white-space: nowrap;
}
.banner-actions-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.banner-actions-wrap .btn,
.banner-actions-wrap .banner-action-form {
    margin: 0;
}
.banner-actions-wrap .banner-action-form {
    display: inline-block;
}

.admin-actions-cell {
    white-space: nowrap;
}
.admin-actions-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.admin-actions-wrap .btn,
.admin-actions-wrap .admin-action-form {
    margin: 0;
}
.admin-actions-wrap .admin-action-form {
    display: inline-block;
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.admin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.admin-modal-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.admin-modal-box h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.fiyat-row-clickable {
    cursor: pointer;
}
.fiyat-row-clickable:hover {
    background: rgba(0,102,204,0.06);
}
.firma-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
}
.firma-modal {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.firma-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.firma-modal-header h3 { margin: 0; font-size: 18px; }
.firma-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}
.firma-modal-body p { margin: 8px 0; }
.firma-modal-body a { color: var(--primary-blue); }

.admin-sidebar {
    background: var(--gradient-blue);
    color: var(--bg-light);
    width: 260px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 24px 0 32px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.admin-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-orange);
    z-index: 1;
}

.admin-sidebar h3 {
    padding: 0 24px 20px;
    color: var(--light-orange);
    border-bottom: 2px solid rgba(255,255,255,0.15);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    font-size: 26px;
    font-weight: 800;
}

.admin-sidebar ul {
    list-style: none;
}

.admin-sidebar ul li a {
    display: block;
    padding: 14px 24px;
    color: var(--bg-light);
    text-decoration: none;
    transition: var(--transition);
    border-left: 4px solid transparent;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.admin-sidebar ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--gradient-orange);
    transition: width 0.3s ease;
    z-index: -1;
}

.admin-sidebar ul li a:hover::before {
    width: 100%;
}

.admin-sidebar ul li a:hover {
    color: var(--bg-light);
    border-left-color: var(--accent-orange);
    padding-left: 35px;
    transform: translateX(5px);
    font-weight: 600;
}

.admin-sidebar-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1002;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: none;
    background: var(--gradient-blue);
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-sidebar-overlay.active {
    opacity: 1;
}

.admin-content {
    margin-left: 260px;
    padding: 32px 32px 40px;
    min-height: 100vh;
    background: var(--bg-color);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Admin sayfa başlığı ortak stil – inline margin’i bastır */
.admin-content > h1 {
    margin: 0 0 24px !important;
}

.table {
    width: 100%;
    background: var(--bg-light);
    border-collapse: collapse;
    box-shadow: var(--shadow);
    border-radius: 12px;
    overflow: hidden;
}

.table th, .table td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--gradient-blue);
    color: var(--bg-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.table tr {
    transition: var(--transition);
}

.table tr:hover {
    background: linear-gradient(90deg, rgba(0,102,204,0.05) 0%, transparent 100%);
    transform: scale(1.01);
}

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

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    font-weight: 600;
}

.pagination a:hover {
    background: var(--gradient-blue);
    color: var(--bg-light);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.pagination .active {
    background: var(--gradient-blue);
    color: var(--bg-light);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow);
}

.detail-row {
    margin-bottom: 18px;
    padding: 15px 0;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.detail-row strong {
    min-width: 180px;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 15px;
}

.infinite-scroll {
    height: 30px;
    margin: 40px 0;
    text-align: center;
}

.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.d-none-mobile {
    display: inline;
}

.recent-news {
    margin-top: 60px;
    animation: fadeIn 0.8s ease 0.3s both;
}

.recent-news .card-title {
    margin-bottom: 30px;
}

.ihale-item, .haber-item, .yazi-item, .ilan-item, .yazi-card {
    animation: itemFadeIn 0.6s ease;
    animation-fill-mode: both;
}

.ihale-item:nth-child(1), .haber-item:nth-child(1), .yazi-item:nth-child(1), .ilan-item:nth-child(1), .yazi-list .haber-item:nth-child(1) {
    animation-delay: 0.1s;
}

.ihale-item:nth-child(2), .haber-item:nth-child(2), .yazi-item:nth-child(2), .ilan-item:nth-child(2), .yazi-list .haber-item:nth-child(2) {
    animation-delay: 0.2s;
}

.ihale-item:nth-child(3), .haber-item:nth-child(3), .yazi-item:nth-child(3), .ilan-item:nth-child(3), .yazi-list .haber-item:nth-child(3) {
    animation-delay: 0.3s;
}

.ihale-item:nth-child(4), .haber-item:nth-child(4), .yazi-item:nth-child(4), .ilan-item:nth-child(4), .yazi-list .haber-item:nth-child(4) {
    animation-delay: 0.4s;
}

.ihale-item:nth-child(5), .haber-item:nth-child(5), .yazi-item:nth-child(5), .ilan-item:nth-child(5), .yazi-list .haber-item:nth-child(5) {
    animation-delay: 0.5s;
}

.stat-card {
    animation: cardFadeIn 0.8s ease;
    animation-fill-mode: both;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

.stat-card:nth-child(5) {
    animation-delay: 0.5s;
}

.stat-card:nth-child(6) {
    animation-delay: 0.6s;
}

.filter-panel {
    animation: slideInUp 0.6s ease;
}

.filter-panel:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.form-control:focus {
    animation: inputFocus 0.3s ease;
}

@keyframes inputFocus {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.main-content {
    animation: contentFadeIn 0.6s ease;
}

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


.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.alert {
    animation: alertSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.page-header::before {
    animation: heroBackgroundShift 8s ease-in-out infinite;
}

@keyframes heroBackgroundShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    transform: scale(0);
    animation: rippleAnimation 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnimation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.page-header {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .nav-top {
        flex-wrap: wrap;
        padding: 12px 0;
        position: relative;
        justify-content: center;
    }
    .nav-top .menu-toggle {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    .nav-top .logo {
        order: 2;
        flex: 1;
        text-align: center;
        display: flex;
        justify-content: center;
        margin: 0 auto;
    }
    
    .nav-top .header-actions {
        order: 3;
        width: 100%;
        margin-top: 12px;
        justify-content: center;
        gap: 8px;
    }
    
    .nav-top .header-actions .btn-login,
    .nav-top .header-actions .btn-register {
        flex: 1;
        justify-content: center;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .d-none-mobile {
        display: none;
    }
    
    .main-nav {
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        z-index: 1000;
        box-shadow: var(--shadow);
        overflow: visible;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-menu li a {
        padding: 20px 30px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu li a i {
        margin-right: 12px;
        width: 24px;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    .admin-sidebar-toggle {
        display: block;
    }
    .admin-sidebar-overlay {
        display: block;
        pointer-events: none;
    }
    .admin-sidebar-overlay.active {
        pointer-events: auto;
    }
    .admin-sidebar {
        width: 280px;
        max-width: 85vw;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1001;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-content {
        margin-left: 0;
        padding: 20px 16px 30px;
        padding-top: 72px;
    }
    .admin-content .card {
        padding: 16px;
    }
    .admin-content .table {
        font-size: 14px;
    }
    .admin-content .table th,
    .admin-content .table td {
        padding: 10px 8px;
    }
    .admin-content .btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    .admin-content h1 {
        padding: 16px 20px !important;
        font-size: 1.25rem !important;
    }
    .admin-content h2 {
        font-size: 1.1rem;
    }
    .filter-row {
        grid-template-columns: 1fr;
    }
    .admin-info-box {
        padding: 16px !important;
    }
    .admin-info-box h3 {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        padding: 50px 0;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .card {
        padding: 25px;
    }
    
}

.nav-item-has-sub {
    position: relative;
}

.nav-item-has-sub .nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--gradient-blue);
    padding: 8px 0;
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow);
    display: none;
    min-width: 200px;
}

.nav-item-has-sub .nav-submenu a {
    display: block;
    padding: 8px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}

.nav-item-has-sub.is-open .nav-submenu {
    display: block;
}

.nav-dropdown-arrow {
    margin-left: 6px;
    font-size: 10px;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.nav-item-has-sub.is-open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.dashboard-container {
    padding: 20px;
    max-width: 1200px;
    margin: -30px auto 0;
    padding-bottom: 16px;
}

.dashboard-main-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 8px;
}

.dashboard-welcome {
    margin-bottom: 24px;
}

.welcome-text {
    color: #4caf50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.user-name {
    color: #1a237e;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.stats-cards-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 16px 0;
    margin-bottom: 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.stats-cards-scroll::-webkit-scrollbar {
    height: 4px;
}

.stats-cards-scroll::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 2px;
}

.stats-cards-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.stat-card-scroll {
    min-width: 160px;
    height: 120px;
    border-radius: 16px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.stat-card-scroll::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.12) 25%, transparent 55%);
    opacity: 0;
    transform: scale(0.8);
    animation: card-wave-glow 10s ease-in-out infinite;
    pointer-events: none;
}

.stat-card-scroll:nth-child(1)::after { animation-delay: 0s; }
.stat-card-scroll:nth-child(2)::after { animation-delay: 0.8s; }
.stat-card-scroll:nth-child(3)::after { animation-delay: 1.6s; }
.stat-card-scroll:nth-child(4)::after { animation-delay: 2.4s; }

@keyframes card-wave-glow {
    0% {
        transform: translate3d(-10%, -5%, 0) scale(0.8);
        opacity: 0;
    }
    20% {
        opacity: 0.4;
    }
    50% {
        transform: translate3d(15%, 10%, 0) scale(1.05);
        opacity: 0.25;
    }
    80% {
        transform: translate3d(35%, -8%, 0) scale(0.9);
        opacity: 0.12;
    }
    100% {
        transform: translate3d(50%, 0, 0) scale(0.8);
        opacity: 0;
    }
}

.stat-card-scroll:active {
    transform: scale(0.98);
}

.stat-card-scroll.pink {
    background: linear-gradient(135deg, #ff8a65 0%, #ff7043 40%, #ffab91 100%);
    color: #ffffff;
}

.stat-card-scroll.orange {
    background: linear-gradient(135deg, #ffd54f 0%, #ffca28 40%, #ffb300 100%);
    color: #3e2723;
}

.stat-card-scroll.purple {
    background: linear-gradient(135deg, #80cbc4 0%, #26a69a 40%, #004d40 100%);
    color: #ffffff;
}

.stat-card-scroll.blue {
    background: linear-gradient(135deg, #b39ddb 0%, #7e57c2 40%, #512da8 100%);
    color: #ffffff;
}

a.stat-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.stat-card-link:hover {
    color: inherit;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.stat-card-pattern {
    display: none;
}

.stat-card-pattern::before {
    display: none;
}

.stat-card-content {
    position: relative;
    z-index: 1;
}

.stat-card-content h3 {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.9;
}

.stat-subtitle {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 2px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
}

.main-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}

.main-card {
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: white;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.main-card::after {
    content: '';
    position: absolute;
    top: -45%;
    left: -45%;
    width: 190%;
    height: 190%;
    background: radial-gradient(circle at 25% 35%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.1) 24%, transparent 55%);
    opacity: 0;
    transform: scale(0.85);
    animation: card-wave-glow 13s ease-in-out infinite;
    pointer-events: none;
}

.main-card:nth-child(1)::after { animation-delay: 0s; }
.main-card:nth-child(2)::after { animation-delay: 0.5s; }
.main-card:nth-child(3)::after { animation-delay: 1s; }
.main-card:nth-child(4)::after { animation-delay: 1.5s; }
.main-card:nth-child(5)::after { animation-delay: 2s; }
.main-card:nth-child(6)::after { animation-delay: 2.5s; }

.main-card:not(.expandable):active {
    transform: scale(0.98);
}

.main-card.red {
    background: linear-gradient(135deg, #ff5252 0%, #f44336 30%, #d32f2f 70%, #b71c1c 100%);
    grid-column: 1 / -1;
}

.main-card.brown {
    background: linear-gradient(135deg, #a1887f 0%, #795548 40%, #6d4c41 70%, #5d4037 100%);
}

.main-card.green {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 40%, #43a047 70%, #388e3c 100%);
}

.main-card.dark-red {
    background: linear-gradient(135deg, #ef5350 0%, #e53935 40%, #c62828 70%, #b71c1c 100%);
}

.main-card.blue {
    background: linear-gradient(135deg, #42a5f5 0%, #2196f3 40%, #1e88e5 70%, #1565c0 100%);
}

.main-card.full-width {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 30%, #43a047 60%, #388e3c 100%);
}

.card-pattern {
    display: none;
}

.card-pattern::before {
    display: none;
}

.card-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.main-card h3,
.main-card .card-icon,
.main-card .card-expand-content {
    position: relative;
    z-index: 1;
}

.main-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Kesinleşen Sonuçlar kartında aşağı ok ikonunu gizle */
.main-card.full-width .card-expand-icon {
    display: none;
}

.card-expand-icon {
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 18px;
    opacity: 0.8;
    transition: transform 0.3s;
    z-index: 1;
}

.main-card.expanded .card-expand-icon {
    transform: rotate(180deg);
}

.card-expand-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 16px;
    z-index: 1;
    position: relative;
}

.main-card.expanded .card-expand-content {
    max-height: 300px;
}

.expand-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: padding-left 0.2s;
}

.expand-item:last-child {
    border-bottom: none;
}

.expand-item:hover {
    padding-left: 8px;
}

.expand-item i {
    opacity: 0.7;
}

@media (min-width: 768px) {
    .dashboard-container {
        padding: 40px;
    }
    
    .stats-cards-scroll {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px;
        overflow: visible;
        padding: 24px 0 32px;
    }
    
    .stat-card-scroll {
        min-width: 0;
        height: 140px;
    }
    
    .main-cards-grid {
        display: none;
    }
    
    .main-card.red {
        grid-column: 1 / -1;
    }
    
    .main-card.full-width {
        grid-column: 1 / -1;
    }
    
    .dashboard-main-row {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .dashboard-main-row .turkiye-harita-section {
        flex: 2;
    }
    
    .dashboard-main-row .main-cards-grid {
        flex: 1;
    }
}

@media (min-width: 992px) {
    .main-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .main-card.red {
        grid-column: 1 / -1;
    }
}

.profile-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px 100px;
}

/* New profile layout */
.profile-page {
    max-width: 1100px;
    margin: 20px auto 100px;
    padding: 0 20px;
}

.profile-hero {
    background: var(--gradient-hero);
    color: #ffffff;
    border-radius: 18px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: var(--shadow);
}

.profile-hero-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-avatar-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
}

.profile-hero-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-hero-name {
    font-size: 22px;
    font-weight: 700;
}

.profile-hero-email {
    font-size: 14px;
    opacity: 0.9;
}

.profile-hero-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,0.18);
}

.profile-hero-status.status-active {
    background: rgba(76, 175, 80, 0.25);
}

.profile-hero-status.status-pending {
    background: rgba(255, 193, 7, 0.25);
}

.profile-hero-status.status-expired,
.profile-hero-status.status-cancelled {
    background: rgba(244, 67, 54, 0.25);
}

.profile-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 28px 32px;
    margin-top: 32px;
    align-items: start;
}

.profile-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 20px 22px 22px;
}

.profile-card-header h2 {
    font-size: 18px;
    margin-bottom: 14px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px 18px;
}

.profile-field .field-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.profile-field .field-value {
    font-size: 15px;
    color: var(--text-color);
    word-break: break-word;
}

.profile-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-summary-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.profile-summary-list li:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-muted);
}

.summary-value {
    font-weight: 600;
}

.profile-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 6px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f5f7fa;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
}

.quick-action i {
    color: var(--accent-orange);
}

@media (max-width: 991px) {
    .profile-page {
        padding: 0 16px;
    }
    .profile-layout {
        gap: 24px 24px;
    }
    .profile-column {
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .profile-page {
        margin-top: 12px;
        padding: 0 16px;
        margin-bottom: 80px;
    }
    
    .profile-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 20px;
    }
    
    .profile-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .profile-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        margin-top: 24px;
    }
    
    .profile-column {
        gap: 20px;
    }
    
    .profile-card {
        padding: 18px 20px 20px;
    }
}

.profile-header {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    padding: 20px;
    border-radius: 0;
    margin: -20px -20px 0;
}

.profile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.profile-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
}

.profile-title i {
    font-size: 24px;
}

.profile-edit-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
}

.profile-edit-btn:hover {
    background: rgba(255,255,255,0.1);
}

.profile-avatar-section {
    text-align: center;
    padding: 20px 0;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: white;
    color: #1a237e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px;
}

.profile-surname {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
}

.profile-status {
    font-size: 14px;
    opacity: 0.9;
}

.profile-content {
    background: white;
    margin-top: 0;
}

.profile-detail-item {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.profile-detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 13px;
    font-weight: 600;
    color: #424242;
    margin-bottom: 6px;
}

.detail-value {
    font-size: 15px;
    color: #757575;
}

.profile-actions {
    margin-top: 24px;
    text-align: center;
}

.profile-logout-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #f44336;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid #f44336;
    transition: background 0.2s, transform 0.1s;
}

.profile-logout-btn:active {
    transform: scale(0.98);
}

.ihale-header-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.ihale-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.ihale-header-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ihale-header-badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--gradient-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
}

.ihale-header-text h1 {
    font-size: 20px;
    margin: 0 0 4px;
}

.ihale-header-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.ihale-header-favori {
    flex-shrink: 0;
}
.ihale-favori-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-blue);
    background: rgba(0, 102, 204, 0.08);
    border: 1px solid rgba(0, 102, 204, 0.25);
    transition: all 0.2s ease;
}
.ihale-favori-btn:hover {
    background: rgba(0, 102, 204, 0.15);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}
.ihale-favori-btn.ihale-favori-active {
    color: var(--accent-orange);
    background: rgba(255, 102, 0, 0.1);
    border-color: rgba(255, 102, 0, 0.35);
}
.ihale-favori-btn.ihale-favori-active:hover {
    background: rgba(255, 102, 0, 0.18);
    border-color: var(--accent-orange);
}

.ihale-header-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ihale-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.ihale-chip-type {
    background: rgba(0,102,204,0.08);
    color: var(--primary-blue);
}

.ihale-chip-status {
    color: #ffffff;
}

.ihale-status-success {
    background: #28a745;
}

.ihale-status-info {
    background: #17a2b8;
}

.ihale-tabs {
    display: flex;
    border-radius: 999px;
    background: #f1f3f6;
    padding: 4px;
    margin-bottom: 20px;
}

.ihale-tab-button {
    flex: 1;
    border: none;
    background: transparent;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.ihale-tab-button.active {
    background: #ffffff;
    color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.ihale-tab-content {
    display: none;
}

.ihale-tab-content.active {
    display: block;
}

.ihale-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px 24px;
    margin-bottom: 20px;
}

.ihale-detail-grid .detail-row {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.ihale-detail-grid .detail-row strong {
    min-width: 160px;
    font-size: 14px;
}

.ihale-detail-grid .detail-row span {
    font-size: 14px;
    text-align: right;
}

.ihale-teklifler-block {
    margin-top: 24px;
}

.ihale-teklifler-block h2 {
    font-size: 18px;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .profile-container {
        padding: 40px;
    }
    
    .profile-header {
        border-radius: 16px 16px 0 0;
        margin: -40px -40px 0;
    }
    
    .profile-content {
        border-radius: 0 0 16px 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}

/* ========== Global responsive: tablet (768px - 991px) ========== */
@media (max-width: 991px) and (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
    .main-content {
        padding: 32px 0;
    }
    .page-header {
        margin: 0 16px 24px;
        padding: 32px 0;
    }
    .page-header h1 {
        font-size: 28px;
    }
    .dashboard-container {
        padding: 24px 24px 80px;
    }
}

/* ========== Global responsive: mobile (max 767px) ========== */
@media (max-width: 767px) {
    .container {
        padding: 0 16px;
    }
    .main-content {
        padding: 24px 0 80px;
        min-height: auto;
    }
    .page-header {
        margin: 0 12px 20px;
        padding: 28px 16px;
        border-radius: 16px;
    }
    .page-header h1 {
        font-size: 22px;
        line-height: 1.3;
    }
    .page-header p {
        font-size: 14px;
    }
    .dashboard-container {
        padding: 16px 16px 80px;
        margin-top: -20px;
    }
    .dashboard-main-row {
        display: flex;
        flex-direction: column;
    }
    .card {
        padding: 18px 16px;
    }
    .btn, .btn-login, .btn-register {
        min-height: 44px;
        padding: 12px 20px;
    }
}

/* Reduce motion: disable card gradient animation */
@media (prefers-reduced-motion: reduce) {
    .stat-card-scroll::after,
    .main-card::after {
        animation: none;
        display: none;
    }
}
