/* =========================================
   Red Bull Eastern Mediterranean
   Ana Stylesheet — Modern · Mobile-First
   ========================================= */

:root {
    /* ==== RED BULL BRAND PALETTE ==== */
    --primary:        #CC0000;   /* Red Bull kırmızı */
    --primary-hover:  #A30000;
    --primary-dark:   #7A0000;
    --accent:         #FFD700;   /* Altın sarı */

    /* ==== DARK UI BASE ==== */
    --dark:           #0A0A0A;
    --surface:        #141414;
    --surface-2:      #1C1C1C;
    --surface-3:      #252525;
    --border-color:   #2A2A2A;

    /* ==== TEXT ==== */
    --text-main:      #F0F0F0;
    --text-muted:     #888888;
    --text-dim:       #555555;
    --white:          #ffffff;

    /* ==== STATE ==== */
    --danger:         #EF4444;
    --success:        #22C55E;
    --warning:        #F59E0B;
    --info:           #3B82F6;

    /* ==== SHADOWS (kırmızı ışımalı) ==== */
    --shadow-sm:      0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md:      0 8px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg:      0 16px 40px rgba(0, 0, 0, 0.7);
    --shadow-primary: 0 6px 20px rgba(204, 0, 0, 0.35);

    /* ==== SHAPE ==== */
    --radius-lg:      16px;
    --radius-md:      10px;
    --radius-sm:      6px;
    --transition:     all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html, body { height: 100%; }

body {
    background-color: var(--dark);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* =========================================
   LOGIN SCREEN
   ========================================= */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at top, rgba(204, 0, 0, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at bottom, rgba(204, 0, 0, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, #0A0A0A 0%, #050505 100%);
    padding: 20px;
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: var(--surface);
    padding: 32px 26px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.03);
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

/* Login logosu: beyaz yuvarlak wrapper — PNG'nin beyaz arka planıyla kaynaşır */
.logo-circle {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: #ffffff;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow:
        0 0 0 4px rgba(204, 0, 0, 0.12),
        0 12px 30px rgba(204, 0, 0, 0.45);
    border: 3px solid var(--primary);
}
.logo-circle img {
    width: 92%;
    height: 92%;
    object-fit: contain;
    display: block;
}

/* Header'daki küçük logo için de aynı */
.header-logo-wrap {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1.5px solid rgba(204, 0, 0, 0.6);
    flex-shrink: 0;
}
.header-logo-wrap img {
    width: 88%;
    height: 88%;
    object-fit: contain;
}

.login-card h1 {
    font-size: 24px;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 30px;
    letter-spacing: 2px;
    font-weight: 500;
    /* text-transform: uppercase KULLANMIYORUZ — Türkçe locale i → İ bugı */
}

/* =========================================
   FORMS
   ========================================= */
.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background: var(--surface-2);
    color: var(--text-main);
    min-height: 46px;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--surface-3);
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.2);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

.form-row-2 {
    display: flex;
    gap: 12px;
}
.form-row-2 > .form-group { flex: 1; }

.form-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding: 10px 14px;
    background: rgba(255, 215, 0, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    min-height: 48px;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(204, 0, 0, 0.5);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--surface-2);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: var(--surface-3);
    border-color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}
.btn-danger:hover {
    background: #DC2626;
    transform: translateY(-2px);
}

.btn-block { width: 100%; }

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
    min-height: 36px;
}

.error-msg {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 500;
    border-left: 3px solid var(--danger);
    text-align: left;
}

/* =========================================
   APP CONTAINER (MOBILE-FIRST)
   ========================================= */
.app-container {
    max-width: 720px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    position: relative;
}

.app-header {
    background: var(--surface);
    padding: 16px 20px;
    padding-top: calc(16px + env(safe-area-inset-top));
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.header-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(204, 0, 0, 0.5));
    flex-shrink: 0;
}

.header-titles {
    min-width: 0;
    flex: 1;
}

.header-titles h1 {
    font-size: 16px;
    color: var(--white);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-titles .subtitle {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.btn-back {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    flex-shrink: 0;
    transition: var(--transition);
}
.btn-back:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.btn-logout {
    font-size: 13px;
    color: var(--danger);
    background: rgba(239, 68, 68, 0.12);
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid rgba(239, 68, 68, 0.2);
    transition: var(--transition);
}
.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

/* =========================================
   DASHBOARD / MENU
   ========================================= */
.dashboard-menu {
    flex: 1;
    padding: 24px 20px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
}

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

.welcome-block h2 {
    font-size: 22px;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 4px;
}

.welcome-block p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Ayl\u0131k Hedef Progress Card (dashboard ana vurgu) */
.hedef-progress-card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
    color: var(--text-main);
    transition: var(--transition);
}
.hedef-progress-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.hedef-progress-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.hpc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.hpc-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}
.hpc-pct {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
}
.hpc-numbers {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
}
.hpc-gercek {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    font-family: 'JetBrains Mono', monospace;
}
.hpc-sep {
    font-size: 26px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}
.hpc-hedef {
    font-size: 20px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}
.hpc-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 4px;
}
.hpc-progress {
    height: 8px;
    background: var(--surface-3);
    border-radius: 4px;
    overflow: hidden;
}
.hpc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.4s ease;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

/* ==== 3-bar (seeding / ss / project) satırları ==== */
.hpc-row {
    margin-top: 14px;
}
.hpc-row:first-of-type {
    margin-top: 10px;
}
.hpc-row-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 6px;
}
.hpc-row-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.hpc-row-nums {
    display: flex;
    align-items: baseline;
    gap: 3px;
    font-family: 'JetBrains Mono', monospace;
}
.hpc-row-gercek {
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
}
.hpc-row-sep {
    color: var(--text-muted);
    font-size: 13px;
}
.hpc-row-hedef {
    color: var(--text-muted);
    font-size: 13px;
}
.hpc-row-pct {
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
    margin-left: 8px;
    min-width: 40px;
    text-align: right;
}
.hpc-row-bar {
    height: 6px;
    background: var(--surface-3);
    border-radius: 3px;
    overflow: hidden;
}
.hpc-row-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.5s ease;
}
.hpc-row-fill.full {
    background: linear-gradient(90deg, var(--success), #16a34a);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

/* FMM — tüm SM'lerin performans listesi */
.fmm-perf-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}
.perf-row {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}
.perf-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.perf-head strong {
    font-size: 14px;
    color: var(--white);
    font-weight: 600;
}
.perf-pct {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--accent);
    font-size: 14px;
}
.perf-numbers {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 8px;
}
.perf-bar {
    height: 6px;
    background: var(--surface-3);
    border-radius: 3px;
    overflow: hidden;
}
.perf-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.5s ease;
}
.perf-fill.full { background: var(--success); }

.kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 26px;
}

.kpi-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.kpi-icon { font-size: 22px; margin-bottom: 4px; }

.kpi-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.kpi-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 24px 0 14px;
    padding-left: 10px;
    border-left: 3px solid var(--primary);
}

.section-title:first-child { margin-top: 0; }

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.menu-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 22px 16px;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    min-height: 120px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.menu-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.menu-card:hover,
.menu-card:active {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.menu-card:hover::after,
.menu-card:active::after { opacity: 1; }

.card-icon {
    font-size: 36px;
    margin-bottom: 10px;
    line-height: 1;
}

.menu-card h2 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-card p {
    font-size: 11px;
    color: var(--text-muted);
}

/* =========================================
   PAGE CONTENT (module pages)
   ========================================= */
.page-content {
    flex: 1;
    padding: 20px 18px;
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

.page-intro {
    margin-bottom: 20px;
}
.page-intro h2 {
    font-size: 20px;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 4px;
}
.page-intro p {
    font-size: 13px;
    color: var(--text-muted);
}

.card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}

/* =========================================
   LIST CARDS
   ========================================= */
.list-item {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    transition: var(--transition);
}
.list-item:hover {
    border-color: var(--primary);
}

.list-item-body {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-weight: 600;
    color: var(--white);
    font-size: 14px;
    margin-bottom: 4px;
}

.list-item-meta {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.list-item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
}
.icon-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--surface-3);
}

/* =========================================
   BADGE
   ========================================= */
.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--surface-3);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}
.badge-primary { background: rgba(204, 0, 0, 0.15); color: var(--primary); border-color: rgba(204, 0, 0, 0.3); }
.badge-success { background: rgba(34, 197, 94, 0.12); color: var(--success); border-color: rgba(34, 197, 94, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.12); color: var(--warning); border-color: rgba(245, 158, 11, 0.3); }
.badge-danger  { background: rgba(239, 68, 68, 0.12); color: var(--danger); border-color: rgba(239, 68, 68, 0.3); }
.badge-accent  { background: rgba(255, 215, 0, 0.12); color: var(--accent); border-color: rgba(255, 215, 0, 0.3); }

/* =========================================
   EMPTY STATE
   ========================================= */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 48px; opacity: 0.3; margin-bottom: 12px; }
.empty-state .empty-text { font-size: 14px; }

/* =========================================
   STEPPER (Indirect Sampling +/-)
   ========================================= */
.stepper-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: var(--transition);
}
.stepper-row:hover { border-color: var(--primary); }

.stepper-label {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}

.stepper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.stepper-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--surface-3);
    color: var(--text-main);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.stepper-btn:hover,
.stepper-btn:active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

.stepper input {
    width: 58px;
    height: 38px;
    text-align: center;
    background: var(--dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--accent);
    font-size: 16px;
    font-weight: 700;
    padding: 0 4px;
    -moz-appearance: textfield;
    cursor: text;
}
.stepper input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.2);
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* =========================================
   TOTAL BAR (istihak / indirect toplam)
   ========================================= */
.total-bar {
    background: linear-gradient(135deg, var(--accent), #FFC400);
    color: var(--dark);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.25);
}
.total-bar .total-value {
    font-size: 22px;
    font-weight: 800;
}

/* =========================================
   BOTTOM NAVBAR
   ========================================= */
:root { --bottom-nav-h: 64px; }

body.has-bottom-nav {
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
}

.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottom-nav-h);
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    z-index: 90;
    padding-bottom: env(safe-area-inset-bottom);
    max-width: 720px;
    margin: 0 auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    min-height: 44px;
    text-decoration: none;
    position: relative;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30%; right: 30%;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

.bottom-nav-icon {
    font-size: 22px;
    line-height: 1;
}

/* =========================================
   FLOATING ACTION BUTTON (FAB)
   ========================================= */
.fab {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom));
    right: 22px;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 30px;
    font-weight: 400;
    line-height: 58px;  /* vertical center via line-height */
    text-align: center;
    padding: 0;
    box-shadow: 0 8px 24px rgba(204, 0, 0, 0.5);
    cursor: pointer;
    transition: var(--transition);
    z-index: 100;
    font-family: 'Inter', sans-serif;
}

.fab:hover,
.fab:active {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 12px 30px rgba(204, 0, 0, 0.7);
}

/* =========================================
   MODAL
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: var(--surface);
    width: 100%;
    max-width: 460px;
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transform: translateY(30px);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.modal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    z-index: 1;
}

.modal-overlay.active .modal { transform: translateY(0); }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-2);
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}
.close-modal:hover { color: var(--primary); background: var(--surface-3); }

.modal-body {
    padding: 20px 22px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 22px;
    border-top: 1px solid var(--border-color);
    background: var(--surface-2);
    display: flex;
    gap: 10px;
}
.modal-footer .btn { flex: 1; }

/* Modal detail rows */
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--text-muted); }
.detail-value { color: var(--white); font-weight: 600; }

/* =========================================
   TOAST
   ========================================= */
.toast-container {
    position: fixed;
    top: calc(20px + env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: calc(100% - 40px);
    max-width: 420px;
}

.toast {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--info);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    pointer-events: auto;
    animation: toastIn 0.3s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes toastIn {
    from { transform: translateY(-20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* =========================================
   CALENDAR (etkinlik takvimi)
   ========================================= */
.cal-wrap {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cal-nav {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
}
.cal-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.cal-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}
.cal-weekdays span {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 6px 0;
    letter-spacing: 0.5px;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-cell {
    aspect-ratio: 1;
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    min-height: 46px;
}
.cal-cell:hover {
    background: var(--surface-3);
    border-color: var(--primary);
    transform: scale(1.02);
}
.cal-cell.empty {
    background: transparent;
    border-color: transparent;
    cursor: default;
}
.cal-cell.empty:hover { transform: none; }

.cal-cell.today {
    background: rgba(204, 0, 0, 0.18);
    border-color: var(--primary);
}
.cal-cell.today .cal-day-num {
    color: var(--primary);
    font-weight: 800;
}

.cal-day-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.cal-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
    flex: 1;
}

.cal-event-dot {
    height: 4px;
    border-radius: 2px;
    background: var(--primary);
}
.cal-event-dot.spor   { background: var(--info); }
.cal-event-dot.kültür { background: var(--accent); }

.cal-event-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    line-height: 1.5;
}

/* =========================================
   CHECKBOX LIST (İnovatif Fikir)
   ========================================= */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}
.checkbox-item:hover { border-color: var(--primary); }
.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}
.checkbox-item > span { font-weight: 500; flex: 1; }

/* =========================================
   FILTER BAR
   ========================================= */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.filter-bar select,
.filter-bar input {
    flex: 1;
    min-width: 120px;
    padding: 10px 14px;
    font-size: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    min-height: 44px;
}

/* =========================================
   DATA TABLE
   ========================================= */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: 13px;
}
.data-table thead { background: var(--primary); }
.data-table th {
    padding: 12px 10px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white);
    border-bottom: 1px solid var(--primary-dark);
}
.data-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }

/* =========================================
   USERS TABLE (Admin — 1846 tarzı)
   ========================================= */
.users-table-wrap {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 480px;
}

.users-table thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
}

.users-table th {
    padding: 12px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white);
}

.users-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    vertical-align: middle;
}

.users-table tr:last-child td { border-bottom: none; }
.users-table tr:hover td { background: var(--surface-2); }

.user-name-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.user-name-cell strong {
    color: var(--white);
    font-weight: 600;
    font-size: 13px;
}
.user-name-cell small {
    color: var(--text-muted);
    font-size: 11px;
}

/* =========================================
   ADMIN TABS
   ========================================= */
.admin-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
}
.admin-tabs::-webkit-scrollbar { display: none; }

.admin-tab {
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    min-height: 42px;
    transition: var(--transition);
}
.admin-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.admin-section { display: none; }
.admin-section.active { display: block; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (min-width: 600px) {
    .menu-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
    .app-container { max-width: 900px; }
    .menu-grid { grid-template-columns: repeat(4, 1fr); }
    .kpi-row { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 420px) {
    .form-row-2 { flex-direction: column; gap: 0; }
    .welcome-block h2 { font-size: 20px; }
    .kpi-value { font-size: 20px; }
    .page-content { padding: 18px 14px; }
}
