:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --light-bg: #f8fafc;
    --border-color: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #64748b;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --card-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Universal Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--light-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* SIDEBAR */
.sidebar {
    background: white;
    min-height: 100vh;
    box-shadow: var(--shadow-lg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    z-index: 1000;
    transition: all 0.3s ease;
}
.sidebar.collapsed { width: 70px; }
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.sidebar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.sidebar.collapsed .sidebar-brand { opacity: 0; width: 0; }
.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.sidebar-toggle:hover {
    background: var(--light-color);
    color: var(--primary-color);
}
.sidebar-nav { padding: 1rem 0; }
.nav-item { margin: 0.25rem 1rem; }
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-weight: 500;
}
.nav-link:hover, .nav-link.active {
    background: var(--gradient-primary);
    color: white !important;
    transform: translateX(4px);
}
.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}
.sidebar.collapsed .nav-link span {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* MAIN CONTENT */
.main-content {
    margin-left: 280px;
    transition: all 0.3s ease;
    min-height: 100vh;
}
.sidebar.collapsed + .main-content { margin-left: 70px; }
.top-bar {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

/* SEARCH BAR */
.search-bar {
    flex: 1;
    max-width: 400px;
    position: relative;
}
.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--light-color);
    transition: all 0.3s ease;
}
.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}
.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

/* USER MENU & BALANCE */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.balance-card {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* CONTENT AREA */
.content-area { padding: 2rem; }
.page-header { margin-bottom: 2rem; }
.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-primary);
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.stat-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.stat-change {
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.stat-change.positive { color: var(--success-color); }
.stat-change.negative { color: var(--danger-color); }
.stat-change.neutral { color: var(--text-secondary); }

/* CARDS */
.card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}
.card-body { padding: 1.5rem; }

/* BUTTONS */
.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}
.btn-gradient {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white;
}
.btn-outline-gradient {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-outline-gradient:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* TABLE */
.table { margin-bottom: 0; }
.table th {
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem;
}
.table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

/* BADGES */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}
.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}
.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}
.badge-primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

/* QUICK ACTIONS & CARDS */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.action-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}
.action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}
.action-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    color: white;
}
.action-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.action-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* CHART */
.chart-container {
    position: relative;
    height: 300px;
    margin-top: 1rem;
}

/* NOTIFICATIONS */
.notification {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.notification:hover { background: rgba(99, 102, 241, 0.15); }
.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
.notification-content { flex: 1; }
.notification-title { font-weight: 600; margin-bottom: 0.25rem; }
.notification-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* DROPDOWN */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 0.5rem;
}
.dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}
.dropdown-item:hover { background: var(--light-color); }

/* HERO, FEATURE, SERVICE, PRICING, CTA, FOOTER (ANA SAYFA BÖLÜMLERİ) */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg ...></svg>');
    background-size: cover;
    background-position: bottom;
}
.hero-content { position: relative; z-index: 2; }
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 300;
}
.floating-cards { position: absolute; right: -100px; top: 50%; transform: translateY(-50%); width: 600px; height: 600px; }
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    animation: float 6s ease-in-out infinite;
}
.floating-card:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-card:nth-child(2) { top: 50%; right: 10%; animation-delay: 2s; }
.floating-card:nth-child(3) { bottom: 10%; left: 20%; animation-delay: 4s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.features-section { padding: 5rem 0; background: var(--light-bg); }
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.15);}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}
.feature-card:hover .feature-icon { transform: rotate(360deg); }

/* Stats Section */
.stats-section { background: var(--gradient); padding: 4rem 0; color: white; }
.stat-box { text-align: center; }
.stat-number { font-size: 3rem; font-weight: 700; margin-bottom: 0.5rem; }
.stat-label { font-size: 1.1rem; opacity: 0.9; }

/* Services Section */
.services-section { padding: 5rem 0; }
.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}
.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Pricing Section */
.pricing-section { padding: 5rem 0; background: var(--light-bg); }
.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.pricing-card.featured { transform: scale(1.05); border: 2px solid var(--primary-color); }
.pricing-card.featured::before {
    content: 'POPÜLER';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--gradient);
    color: white;
    padding: 0.25rem 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
}
.pricing-card:hover { transform: translateY(-10px);}
.pricing-card.featured:hover { transform: scale(1.05) translateY(-10px);}
.price { font-size: 3rem; font-weight: 700; color: var(--primary-color); margin: 1rem 0; }
.price span { font-size: 1rem; color: var(--text-muted); }

/* CTA Section */
.cta-section { background: var(--gradient); padding: 5rem 0; text-align: center; color: white; }
.cta-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}
.footer-widget h5 { margin-bottom: 1.5rem; font-weight: 600; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-links a:hover { color: white; padding-left: 5px;}
.social-icons { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-icon {
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; transition: all 0.3s ease; text-decoration: none;
}
.social-icon:hover { background: var(--primary-color); transform: translateY(-3px); color: white; }

/* NAVBAR */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}
.navbar.scrolled { padding: 0.5rem 0; background: rgba(255, 255, 255, 0.98);}
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}
.nav-link:hover { color: var(--primary-color) !important;}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after { width: 100%; }

/* ANIMATIONS */
.fade-in { animation: fadeIn 0.6s ease-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px);}
    to { opacity: 1; transform: translateY(0);}
}
.loading {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* TOUCH cihazlar için hover kaldır */
.touch-device .feature-card:hover,
.touch-device .service-card:hover,
.touch-device .pricing-card:hover { transform: none !important; }

/* Mobil için navbar geçiş animasyonu */
.navbar { transition: transform 0.3s ease-in-out; }

/* Mobilde container için güvenli alan */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%);}
    .sidebar.show { transform: translateX(0);}
    .main-content { margin-left: 0;}
    .top-bar { padding: 1rem;}
    .content-area { padding: 1rem;}
    .stats-grid { grid-template-columns: 1fr;}
    .quick-actions { grid-template-columns: repeat(2, 1fr);}
    .hero-title { font-size: 2.5rem;}
    .floating-cards { display: none;}
    .section-title { font-size: 2rem;}
    .stat-number { font-size: 2rem;}
}
