:root {
    --bg-deep: #FAFAFA;
    --bg-main: #FFFFFF;
    --bg-secondary: #F4F4F5;
    --bg-card: rgba(255, 255, 255, 0.7);
    --border: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.12);
    
    --text-main: #18181B;
    --text-muted: #71717A;
    
    --accent: #10B981;
    --accent-hover: #059669;
    --accent-soft: rgba(16, 185, 129, 0.08);
    --accent-pink: var(--accent);
    --accent-pink-soft: var(--accent-soft);
    
    --success: #22C55E;
    --success-hover: #16A34A;
    --success-soft: rgba(34, 197, 94, 0.08);
    
    --warning: #F59E0B;
    --warning-hover: #D97706;
    --warning-soft: rgba(245, 158, 11, 0.08);
    
    --danger: #EF4444;
    --danger-hover: #DC2626;
    --danger-soft: rgba(239, 68, 68, 0.08);

    --gold: var(--warning);
    --gold-soft: var(--warning-soft);
    --rose: var(--danger);
    --rose-soft: var(--danger-soft);
    --emerald: var(--accent);
    --emerald-soft: var(--accent-soft);
    --amber: var(--warning);
    --amber-soft: var(--warning-soft);
    
    --shadow: 0 4px 20px rgba(58, 50, 45, 0.03);
    --shadow-md: 0 10px 30px rgba(58, 50, 45, 0.06);
    --shadow-lg: 0 20px 45px rgba(58, 50, 45, 0.1);
    --shadow-hover: 0 12px 30px rgba(16, 185, 129, 0.12);
    --glow: 0 0 15px rgba(16, 185, 129, 0.18);
    
    --anim-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
    
    --glass-blur: blur(20px);
    
    /* Context Menu Variables - Light Theme */
    --ctx-bg: rgba(255, 255, 255, 0.8);
    --ctx-border: rgba(0, 0, 0, 0.08);
    --ctx-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    --ctx-hover: rgba(0, 0, 0, 0.04);
    --ctx-divider: rgba(0, 0, 0, 0.06);
    --ctx-title: rgba(24, 24, 27, 0.4);
}

.dark-theme {
    /* Dark Mode - Sleek Metallic Obsidian Aesthetic */
    --bg-deep: #09090B;       /* Pure obsidian black */
    --bg-main: #18181B;
    --bg-secondary: #27272A;
    --bg-card: rgba(18, 18, 20, 0.65); /* Frosted glass overlay */
    
    --border: rgba(255, 255, 255, 0.06); /* Ultra sharp subtle border */
    --border-hover: rgba(255, 255, 255, 0.12);
    
    --text-main: #F4F4F6;     /* Pristine off-white */
    --text-muted: #8E8E93;    /* Cool metallic grey */
    
    --accent: #34D399;
    --accent-hover: #10B981;
    --accent-soft: rgba(52, 211, 153, 0.1);
    --accent-pink: var(--accent);
    --accent-pink-soft: var(--accent-soft);
    
    --success: #22C55E;
    --success-hover: #16A34A;
    --success-soft: rgba(34, 197, 94, 0.1);
    
    --warning: #F59E0B;
    --warning-hover: #D97706;
    --warning-soft: rgba(245, 158, 11, 0.1);
    
    --danger: #EF4444;
    --danger-hover: #DC2626;
    --danger-soft: rgba(239, 68, 68, 0.1);
    --gold: var(--warning);
    --gold-soft: var(--warning-soft);
    --rose: var(--danger);
    --rose-soft: var(--danger-soft);
    
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 20px 50px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 30px 65px rgba(0, 0, 0, 0.7);
    --shadow-hover: 0 12px 30px rgba(52, 211, 153, 0.16);
    --glow: 0 0 20px rgba(52, 211, 153, 0.16);
    
    /* Context Menu Variables - Dark Theme */
    --ctx-bg: rgba(26, 28, 35, 0.85);
    --ctx-border: rgba(255, 255, 255, 0.08);
    --ctx-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --ctx-hover: rgba(255, 255, 255, 0.08);
    --ctx-divider: rgba(255, 255, 255, 0.08);
    --ctx-title: rgba(255, 255, 255, 0.4);
}

.accent-emerald { --accent: #10B981; --accent-hover: #059669; --accent-soft: rgba(16,185,129,0.08); }
.accent-cobalt { --accent: #3B82F6; --accent-hover: #2563EB; --accent-soft: rgba(59,130,246,0.08); }
.accent-amber { --accent: #F59E0B; --accent-hover: #D97706; --accent-soft: rgba(245,158,11,0.08); }
.accent-rose { --accent: #F43F5E; --accent-hover: #E11D48; --accent-soft: rgba(244,63,94,0.08); }
.accent-violet { --accent: #8B5CF6; --accent-hover: #7C3AED; --accent-soft: rgba(139,92,246,0.08); }
.accent-slate { --accent: #64748B; --accent-hover: #475569; --accent-soft: rgba(100,116,139,0.08); }
.dark-theme.accent-emerald { --accent: #10B981; --accent-hover: #34D399; --accent-soft: rgba(16,185,129,0.1); }

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: 9999;
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Geist', system-ui, -apple-system, sans-serif;
    height: 100vh;
    overflow: hidden;
    transition: background-color 0.3s var(--anim-ease), color 0.3s var(--anim-ease);
}

/* App Wrapper Layout */
.app-layout {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    padding: 16px;
    gap: 16px;
    background: var(--bg-deep);
}

/* Sol Dikey Sidebar Menu - Collapsed by default */
.left-sidebar {
    width: 70px;
    height: 100%;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    z-index: 300;
    transition: width 0.3s var(--anim-ease), transform 0.3s var(--anim-ease);
    flex-shrink: 0;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.left-sidebar.expanded {
    width: 240px;
}

.sidebar-brand {
    padding: 24px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s var(--anim-ease);
    background: rgba(0, 0, 0, 0.1);
}

.left-sidebar.expanded .sidebar-brand {
    justify-content: flex-start;
    padding: 24px 20px;
    gap: 12px;
}

.sidebar-collapse-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
    padding: 4px;
    flex-shrink: 0;
}

.sidebar-collapse-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    border-radius: 1px;
    transition: 0.3s;
}

.brand-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
    letter-spacing: -0.03em;
    display: none;
    white-space: nowrap;
}

.left-sidebar.expanded .brand-name {
    display: inline-block;
}

.sidebar-nav {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.left-sidebar.expanded .sidebar-nav {
    padding: 20px 12px;
}

.nav-menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s var(--anim-ease);
    width: 100%;
}

.left-sidebar.expanded .nav-menu-item {
    justify-content: flex-start;
    padding: 12px 16px;
    gap: 12px;
}

.menu-label {
    display: none;
    white-space: nowrap;
}

.left-sidebar.expanded .menu-label {
    display: inline-block;
}

.nav-menu-item:hover {
    background: var(--bg-secondary);
    color: var(--text-main);
}

.nav-menu-item:active {
    transform: scale(0.97);
}

.nav-menu-item.active {
    background: var(--accent-soft);
    color: var(--accent-hover);
}

.dark-theme .nav-menu-item.active {
    color: var(--accent);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--anim-ease);
}

.left-sidebar.expanded .sidebar-footer {
    justify-content: space-between;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.left-sidebar.expanded .sidebar-actions {
    flex-direction: row;
}

.left-sidebar .sidebar-footer .record-badge {
    display: none;
}

.left-sidebar.expanded .sidebar-footer .record-badge {
    display: inline-block;
}

.theme-toggle-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s var(--anim-ease);
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: var(--border);
    transform: scale(1.05);
}

/* Ana İçerik Alanı */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

.mobile-top-bar {
    display: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

.hidden {
    display: none !important;
}

/* Sayfa Konteyneri */
.container {
    width: 100%;
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
}

.view-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.glass {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        var(--shadow);
    transition: box-shadow 0.3s var(--anim-ease), transform 0.3s var(--anim-ease), border-color 0.3s ease, background 0.3s ease;
}

.dark-theme .glass {
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.7) 0%, rgba(18, 18, 20, 0.6) 100%) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 8px 32px 0 rgba(0, 0, 0, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}


.glass:not(.right-sidebar):not(.main-header):not(.calendar-grid):hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Üst Menü / Header */
.main-header {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 500;
}

.header-brand h1 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.header-brand .subtitle {
    color: var(--accent-hover);
    font-weight: 600;
    font-size: 11px;
    margin-top: 1px;
}

.dark-theme .header-brand .subtitle {
    color: var(--accent);
}

/* Mini İstatistikler Header */
.header-stats {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.header-stat-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    min-width: 90px;
    transition: all 0.2s var(--anim-ease);
}

.header-stat-badge:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    border-color: var(--border-hover);
}

.header-stat-badge .h-stat-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header-stat-badge .h-stat-val {
    color: var(--text-main);
    font-weight: 800;
    font-size: 15px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.header-stat-badge:nth-child(1) .h-stat-val {
    color: var(--accent);
}

.header-stat-badge:nth-child(2) .h-stat-val {
    color: var(--success);
}

.header-stat-badge:nth-child(3) .h-stat-val {
    color: var(--warning);
}

/* Arama Alanı */
.search-wrap {
    position: relative;
    flex: 1;
    min-width: 180px;
    max-width: 280px;
}

.search-inner {
    position: relative;
}

.search-badge {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-muted);
    pointer-events: none;
    opacity: 0.7;
}

.focus-glow:focus {
    box-shadow: 0 0 0 2px var(--accent-alpha), 0 0 15px var(--accent-alpha);
    border-color: var(--accent);
}

.search-icon-wrap {
    position: absolute;
    inset: 0 auto 0 0;
    display: flex;
    align-items: center;
    padding-left: 12px;
    pointer-events: none;
}

.search-icon-wrap svg {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

#searchInput {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid transparent;
    color: var(--text-main);
    font-size: 12px;
    font-family: inherit;
    border-radius: var(--radius-pill);
    padding: 8px 12px 8px 34px;
    outline: none;
    transition: all 0.2s var(--anim-ease);
}

#searchInput:focus {
    border-color: var(--accent);
    background: var(--bg-main);
    box-shadow: 0 0 0 3px rgba(226, 178, 178, 0.2);
}

#searchResults {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 40vh;
    overflow-y: auto;
    z-index: 200;
}

.search-item {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background-color 0.15s;
}

.search-loading-state {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: default;
}
.search-loading-state:hover {
    background-color: transparent !important;
}

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

.search-item:hover {
    background-color: var(--bg-secondary);
}

.search-item-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 12px;
}

.search-item-phone {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Navigasyon & Kontroller */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn-group {
    display: flex;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2px;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    transition: all 0.2s var(--anim-ease);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--bg-main);
    color: var(--text-main);
    box-shadow: var(--shadow);
}

.nav-btn:active {
    transform: scale(0.97);
}

.nav-btn-today {
    padding: 5px 14px;
}

/* Görünüm Seçici (Gün / Hafta) */
.view-toggle-group {
    display: flex;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2px;
}

.view-toggle-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    transition: all 0.2s var(--anim-ease);
}

.view-toggle-btn.active {
    background: var(--bg-main);
    color: var(--text-main);
    box-shadow: var(--shadow);
}

.view-toggle-btn:active {
    transform: scale(0.97);
}

.record-badge {
    background: var(--accent-soft);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
}

.btn-add-primary {
    background: var(--accent);
    color: black;
    border: none;
    padding: 7px 14px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s var(--anim-ease);
    box-shadow: 0 4px 10px rgba(226, 178, 178, 0.25);
}

.btn-add-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(226, 178, 178, 0.35);
}

.btn-add-primary:active {
    transform: scale(0.97) translateY(1px);
}

/* KPI Kartları */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* 3'ten fazla kart varsa (örneğin 4 kart), 2x2 düzenine geç */
.stats-grid:has(> :nth-child(4)) {
    grid-template-columns: repeat(2, 1fr);
}

.stat-card {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 72px;
}

.stat-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 6px;
    font-variant-numeric: tabular-nums;
}

.stat-badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-transform: uppercase;
}

.delta-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.delta-pos {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald);
}
.delta-neg {
    background: rgba(244, 63, 94, 0.15);
    color: var(--rose);
}

.stat-icon-wrapper {
    font-size: 22px;
    opacity: 0.8;
}

/* Ana Grid Düzeni */
.content-layout {
    display: flex;
    gap: 16px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

/* Takvim Izgarası */
.calendar-wrapper {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.calendar-grid {
    display: grid;
    grid-template-columns: 50px repeat(7, 1fr);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 100%;
    height: 100%;
    box-shadow: var(--shadow);
    transition: all 0.3s var(--anim-ease);
}

.calendar-grid.day-view-mode {
    grid-template-columns: 50px 1fr;
}

.calendar-grid.month-view-mode {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.hour-col {
    border-right: 1px solid var(--border);
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
}

.hour-col-header {
    height: 40px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.hour-label {
    flex: 4;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    padding-top: 4px;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    min-height: 0;
}

.dark-theme .hour-label {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.day-col {
    border-right: 1px solid var(--border);
    position: relative;
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
}

.day-col:last-child {
    border-right: none;
}

.focus-day {
    background: rgba(226, 178, 178, 0.02);
}

.day-col-header {
    padding: 4px;
    background: var(--bg-card);
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
}

.day-name-label {
    font-size: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.day-number-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}

.day-number-label.today {
    color: var(--accent-hover);
}

.dark-theme .day-number-label.today {
    color: var(--accent);
}

.drop-zone {
    flex: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.015);
    position: relative;
    min-height: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.drop-zone.hour-top {
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.dark-theme .drop-zone.hour-top {
    border-top-color: rgba(255, 255, 255, 0.03);
}

body:not(.drag-mode) .drop-zone:empty {
    cursor: pointer;
}

body:not(.drag-mode) .drop-zone:empty:hover {
    background: var(--accent-soft) !important;
}

body:not(.drag-mode) .drop-zone:empty:hover::after {
    content: '+';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    opacity: 0.6;
}

.drop-zone.drag-over {
    background: rgba(226, 178, 178, 0.08) !important;
}

/* Randevu Kartı Animasyonu */
@keyframes slideUpFadeIn {
    0% {
        opacity: 0;
        margin-top: 15px;
    }
    100% {
        opacity: 1;
        margin-top: 0;
    }
}

/* Randevu Kartı - Modern ve Zengin (Glassmorphic) */
.apt-card {
    position: absolute;
    top: 1px;
    left: 2px;
    right: 2px;
    z-index: 10;
    font-size: 11px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid var(--status-color);
    box-shadow: var(--shadow);
    cursor: grab;
    transition: transform 0.3s var(--anim-ease), box-shadow 0.3s var(--anim-ease), border-color 0.3s ease, filter 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    line-height: 1.3;
    user-select: none;
    -webkit-user-select: none;
}

.apt-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, var(--status-color) 0%, transparent 60%);
    opacity: 0.1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.apt-card:hover::before {
    opacity: 0.2;
}


.dark-theme .apt-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.apt-card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: var(--shadow-hover), var(--glow);
    z-index: 20;
    border-color: var(--accent);
}

.apt-card:active {
    cursor: grabbing;
    transform: scale(0.99);
}

.apt-card.is-dragging {
    position: fixed !important;
    z-index: 1000 !important;
    pointer-events: none !important;
    transform: scale(1.04) rotate(1.5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), var(--glow);
    border-color: var(--accent) !important;
    opacity: 0.95;
    transition: none !important;
    animation: none !important;
}

.apt-card.short-apt {
    flex-direction: row;
    align-items: center;
    padding: 4px 8px;
    gap: 6px;
}

.apt-card.short-apt .apt-name {
    flex: 1;
    font-size: 10px;
}

.apt-card.short-apt .apt-meta {
    margin-top: 0;
}

.apt-card.short-apt .apt-service {
    display: none;
}

.apt-card.short-apt .resize-handle {
    display: none !important;
}

/* Mini Seans İlerleme Çubuğu (Apt Card Progress Bar) */
.apt-card-progress-bar {
    width: 100%;
    background: rgba(0, 0, 0, 0.15);
    height: 4px;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
    position: relative;
}

.dark-theme .apt-card-progress-bar {
    background: rgba(0, 0, 0, 0.4);
}

.apt-card-progress-fill {
    background: var(--status-color);
    height: 100%;
    border-radius: 2px;
    transition: width 0.4s var(--anim-ease);
}

/* Boyutlandırma Kolu - Sadece Hover Durumunda Şık Çizgilerle Görünür */
.resize-handle {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.03);
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ns-resize;
    transition: background-color 0.2s, opacity 0.2s;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    line-height: 0;
    opacity: 0;
}

.dark-theme .resize-handle {
    background: rgba(255, 255, 255, 0.02);
}

.apt-card:hover .resize-handle {
    opacity: 1;
}

.resize-handle::after {
    content: '';
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background: var(--text-muted);
    box-shadow: 0 -3px 0 var(--text-muted), 0 3px 0 var(--text-muted);
    opacity: 0.5;
    transition: opacity 0.2s;
}

.resize-handle:hover::after {
    opacity: 0.9;
    background: var(--accent);
    box-shadow: 0 -3px 0 var(--accent), 0 3px 0 var(--accent);
}


.apt-name {
    font-weight: 600;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apt-meta {
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 10px;
}

.apt-time {
    font-weight: 600;
}

.apt-service {
    font-size: 8px;
    padding: 2px 6px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* Durum Bazlı Renkler (Champagne, Emerald, Dusty Rose) */
.status-bekliyor { --status-color: var(--gold); }
.status-tamamlandi { --status-color: var(--accent); }
.status-iptal { --status-color: var(--rose); }

/* Sağ Panel - Bugünün Ajandası */
.agenda-wrapper {
    width: 280px;
    flex-shrink: 0;
    padding: 14px;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    height: 100%;
    transition: all 0.3s var(--anim-ease);
    opacity: 1;
    overflow-y: auto;
}

.agenda-wrapper.collapsed {
    width: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    border: none;
    pointer-events: none;
}

.agenda-section-title {
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
}

.agenda-item {
    display: flex;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin-bottom: 6px;
    transition: all 0.2s var(--anim-ease);
    cursor: pointer;
}

.agenda-item:hover {
    background: var(--bg-secondary);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.agenda-item.is-next {
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
}

.agenda-item.is-past {
    opacity: 0.55;
}

.agenda-time {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    border-right: 1px dashed var(--border);
    padding-right: 8px;
}

.agenda-details {
    flex: 1;
    overflow: hidden;
}

.agenda-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1px;
}

.agenda-service {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.daily-success-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--accent-soft);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 2px 6px;
    border-radius: var(--radius-pill);
}

.daily-success-text {
    font-size: 8px;
    color: var(--accent);
    font-weight: 700;
}

.daily-success-badge {
    font-size: 9px;
    font-weight: 700;
}

/* Modalları Sağdan Kayan Çekmeceye Dönüştürme */
#aptModal, #addAptModal, #editPatientModal {
    position: fixed;
    inset: 0;
    background: rgba(44, 38, 33, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    padding: 0;
}

#aptModal.hidden, #addAptModal.hidden, #editPatientModal.hidden {
    opacity: 0;
    pointer-events: none;
    display: flex !important; /* Keep display flex for child transitions */
}

.modal-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: none;
    border-left: 1px solid var(--border);
    border-top-left-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
    padding: 24px;
    width: 440px;
    max-width: 100%;
    height: 100vh;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

#aptModal:not(.hidden) .modal-panel, 
#addAptModal:not(.hidden) .modal-panel, 
#editPatientModal:not(.hidden) .modal-panel {
    transform: translateX(0);
}

.modal-overlay-loader {
    position: absolute;
    inset: 0;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.spinner {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--border);
    border-top-color: var(--accent-hover);
    animation: spin 0.6s linear infinite;
}

.spinner-sm {
    width: 14px;
    height: 14px;
    border-width: 2px;
}

.spinner-center-sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
    margin: 12px auto;
}

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

.loading-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
}

.modal-title-bold {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.modal-scroll-container {
    max-height: 100vh;
    overflow-y: auto;
}

.tab-container {
    display: flex;
    background: var(--bg-secondary);
    padding: 2px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    background: transparent;
    color: var(--text-muted);
}

.tab-btn-active {
    background: var(--bg-main);
    color: var(--text-main);
    box-shadow: var(--shadow);
}

.tab-btn-inactive {
    background: transparent;
    color: var(--text-muted);
}

.form-section {
    margin-bottom: 16px;
    flex: 1;
    overflow-y: auto;
}

.form-label {
    display: block;
    font-size: 11px;
    text-transform: none;
    letter-spacing: -0.01em;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.input-row {
    display: flex;
    gap: 8px;
}

.modal-input {
    flex: 1;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    color: var(--text-main);
    border: 1px solid var(--border);
    outline: none;
    font-family: inherit;
    font-size: 12px;
    transition: 0.2s;
}

.modal-input:focus {
    border-color: var(--accent);
    background: var(--bg-main);
    box-shadow: 0 0 0 3px rgba(226, 178, 178, 0.2);
}

.modal-input-sm {
    flex: none;
    width: 105px;
}

.modal-btn {
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: inherit;
    font-size: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn:hover { filter: brightness(1.03); }
.modal-btn:active { transform: scale(0.98); }

.modal-btn-save {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 6px rgba(226, 178, 178, 0.2);
}

.modal-btn-complete {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.modal-btn-cancel {
    background: var(--rose);
    color: white;
    box-shadow: 0 2px 6px rgba(211, 140, 140, 0.2);
}

.btn-secondary-soft {
    background: var(--bg-secondary);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary-soft:hover {
    background: var(--border);
}

.btn-close-x {
    background: none;
    border: none;
    color: var(--rose);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-close-x:hover {
    background: var(--rose-soft);
}

.btn-trash-fixed {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rose-soft);
    color: var(--rose);
}

.btn-trash-fixed:hover {
    background: var(--rose);
    color: white;
}

/* CRM Yan Panel (Sidebar) - Slide-over Drawer Uyumlu */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 38, 33, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.right-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 440px;
    max-width: 100%;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    border-top-left-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

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

.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-close {
    background: var(--bg-secondary);
    border: none;
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-close:hover {
    background: var(--rose-soft);
    color: var(--rose);
}

.sb-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.sb-subtitle-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.edit-patient-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 5px;
    transition: background-color 0.2s, color 0.2s;
}

.edit-patient-btn:hover {
    background: var(--bg-secondary);
    color: var(--accent);
}

/* CRM Çekmece Sekme Navigasyonu */
.sidebar-tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    padding: 0 12px;
}

.sidebar-tab-btn {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sidebar-tab-btn:hover {
    color: var(--text-main);
}

.sidebar-tab-btn.active {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

.dark-theme .sidebar-tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.sidebar-content {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-tab-panel {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.sidebar-tab-panel.active {
    display: flex;
}

.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
}

.info-title {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.warning-box {
    background: var(--rose-soft);
    border: 1px solid rgba(211, 140, 140, 0.2);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--rose);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.masked-data {
    filter: blur(4px);
    transition: filter 0.2s;
}

.masked-data.revealed {
    filter: blur(0);
}

.btn-icon-soft {
    background: none;
    border: none;
    color: var(--rose);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    margin-left: auto;
}

.progress-track {
    background: var(--border);
    height: 5px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    background: var(--accent);
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s var(--anim-ease);
}

.finance-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.finance-row:last-child {
    margin-bottom: 0;
    border-top: 1px dashed var(--border);
    padding-top: 8px;
    font-weight: 700;
}

.card-compact {
    background: var(--bg-main);
    border: 1px solid var(--border);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
}

.card-compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.card-history-item {
    background: var(--bg-main);
    border: 1px solid var(--border);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
}

.delete-note-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    display: flex;
}

.delete-note-btn:hover {
    color: var(--rose);
    background: var(--bg-secondary);
}

/* İstatistikler (Overview) Görünümü */
.overview-content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 4px;
}

.overview-card {
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* SVG Chart Tasarımı (Modern Bezier & Glow) */
.svg-chart {
    width: 100%;
    height: 180px;
    overflow: visible;
    margin-top: 8px;
}

.chart-grid {
    stroke: var(--border);
    stroke-width: 0.8;
    stroke-dasharray: 6, 6;
}

.chart-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 6px 10px rgba(197, 140, 140, 0.2));
}

.dark-theme .chart-line {
    filter: drop-shadow(0 6px 12px rgba(217, 160, 160, 0.25));
}

.chart-area {
    fill: url(#chart-gradient);
    opacity: 0.08;
    transition: opacity 0.3s;
}

.chart-dot {
    fill: var(--bg-main);
    stroke: var(--accent);
    stroke-width: 3;
    r: 5;
    transition: r 0.3s var(--anim-ease), fill 0.3s var(--anim-ease), stroke-width 0.3s var(--anim-ease);
    cursor: pointer;
}

.chart-dot:hover {
    r: 7.5;
    fill: var(--accent);
    stroke-width: 2.5;
}

.chart-text {
    font-size: 9px;
    fill: var(--text-muted);
    font-family: inherit;
    text-anchor: middle;
    font-weight: 500;
}

.chart-tooltip {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    font-size: 10px;
    pointer-events: none;
    position: absolute;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 50;
    color: var(--text-main);
    font-weight: 600;
    border-left: 3px solid var(--accent);
}

.doughnut-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 16px;
    margin-top: 8px;
}

.svg-doughnut {
    width: 130px;
    height: 130px;
    transform: rotate(-90deg);
}

.doughnut-bg {
    fill: none;
    stroke: var(--bg-secondary);
    stroke-width: 14;
}

.doughnut-segment {
    fill: none;
    stroke-width: 14;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s var(--anim-ease);
}

.doughnut-center-text {
    position: absolute;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    color: var(--text-main);
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.ov-recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 6px;
}

.ov-recent-item:last-child {
    margin-bottom: 0;
}

/* Ayarlar Sayfası */
.settings-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.settings-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.settings-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.accent-preset-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.accent-preset-btn {
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s var(--anim-ease);
}

.accent-preset-btn span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.accent-preset-btn.active {
    color: var(--text-main);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.accent-preset-btn:active {
    transform: scale(0.97);
}

.service-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.service-setting-card {
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.service-setting-card strong {
    display: block;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-setting-card span {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 11px;
    font-family: 'Geist Mono', monospace;
}

.service-delete-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--danger-soft);
    color: var(--danger);
    cursor: pointer;
    flex-shrink: 0;
}

.service-add-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px auto;
    gap: 8px;
    align-items: center;
}

/* Sayfa Yükleyici (Lüks Logo Animasyonu) */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-deep);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: all 0.5s var(--anim-ease);
}

#page-loader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo-pulse {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: logo-glow-pulse 2s infinite ease-in-out;
}

.loader-logo-pulse .logo-text {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loader-logo-pulse .logo-subtext {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
}

@keyframes logo-glow-pulse {
    0%, 100% {
        transform: scale(0.96);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.02);
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(217, 160, 160, 0.4));
    }
}

/* Toast Bildirimleri */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    min-width: 240px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s var(--anim-ease), opacity 0.3s;
    pointer-events: auto;
}

.btn-toast-undo {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.2s var(--anim-ease);
}

.btn-toast-undo:hover {
    background: var(--accent);
    color: white;
}

.dark-theme .btn-toast-undo {
    color: var(--accent);
    border-color: var(--accent);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-error { border-left: 3px solid var(--rose); }
.toast-success { border-left: 3px solid var(--accent); }
.toast-warning { border-left: 3px solid var(--gold); }

/* Global Grid ve Helper Sınıfları */
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-col-gap-8 { display: flex; flex-direction: column; gap: 8px; }
.flex-gap-8 { display: flex; align-items: center; gap: 8px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.p-4 { padding: 4px; }
.p-8 { padding: 8px; }
.p-12 { padding: 12px; }
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.gap-4 { gap: 4px; }
.font-10 { font-size: 10px; }
.font-11 { font-size: 11px; }
.font-12 { font-size: 12px; }
.font-13 { font-size: 13px; }
.font-bold { font-weight: 700; }
.text-pink { color: var(--accent); }
.text-emerald { color: var(--accent); }
.text-danger { color: var(--rose); }
.text-muted { color: var(--text-muted); }
.white-space-pre { white-space: pre-wrap; }
.no-resize { resize: none; }
.cursor-pointer { cursor: pointer; }
.selected-patient-badge {
    background: var(--accent-soft);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-icon-danger {
    background: none;
    border: none;
    color: var(--rose);
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
}
.search-results-popover {
    position: absolute;
    top: 55px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    max-height: 35vh;
    overflow-y: auto;
    z-index: 200;
    box-shadow: var(--shadow-md);
}
.inline-edit-box {
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid var(--border);
}
.label-uppercase-muted {
    font-size: 9px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
    text-transform: uppercase;
}
.label-pink-caps {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.scroll-y-half {
    max-height: 45vh;
    overflow-y: auto;
    padding-right: 6px;
}
.text-empty-state {
    color: var(--text-muted);
    font-size: 11px;
    text-align: center;
    padding: 16px;
}
.svg-sprite {
    display: none;
}
#confirmModal {
    position: fixed;
    inset: 0;
    background: rgba(44, 38, 33, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

#confirmModal.hidden {
    opacity: 0;
    pointer-events: none;
    display: flex !important;
}

#confirmModal .modal-panel {
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s var(--anim-ease), opacity 0.3s;
    height: auto;
    width: 320px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    justify-content: center;
    align-items: center;
}

#confirmModal:not(.hidden) .modal-panel {
    transform: scale(1);
    opacity: 1;
}

.confirm-modal-box {
    max-width: 300px;
    text-align: center;
    padding: 20px;
}
.confirm-modal-title {
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 700;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .left-sidebar {
        width: 70px;
    }
    .left-sidebar .brand-name,
    .left-sidebar .menu-label,
    .left-sidebar .record-badge {
        display: none;
    }
    .left-sidebar .sidebar-brand {
        justify-content: center;
        padding: 20px 0;
    }
    .left-sidebar .nav-menu-item {
        justify-content: center;
        padding: 12px 0;
    }
    .left-sidebar .sidebar-footer {
        justify-content: center;
    }
    .calendar-grid {
        grid-template-columns: 50px 1fr;
    }
    .day-col:not(.focus-day) {
        display: none;
    }
}

@media (max-width: 768px) {
    .app-layout {
        flex-direction: column;
    }
    .left-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 240px;
        transform: translateX(-100%);
        height: 100vh;
        z-index: 1200;
        box-shadow: var(--shadow-lg);
    }
    .left-sidebar.mobile-active {
        transform: translateX(0);
    }
    .left-sidebar .brand-name,
    .left-sidebar .menu-label,
    .left-sidebar .record-badge {
        display: inline-block;
    }
    .left-sidebar .sidebar-brand {
        justify-content: flex-start;
        padding: 24px 20px;
    }
    .left-sidebar .nav-menu-item {
        justify-content: flex-start;
        padding: 12px 16px;
    }
    .left-sidebar .sidebar-footer {
        justify-content: space-between;
    }
    
    .mobile-top-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        background: var(--bg-main);
        border-bottom: 1px solid var(--border);
        padding: 0 16px;
        height: 50px;
        flex-shrink: 0;
    }
    .mobile-menu-btn {
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 20px;
    }
    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text-main);
        border-radius: 1px;
    }
    .mobile-brand {
        font-weight: 700;
        font-size: 14px;
        color: var(--text-main);
    }
    
    body {
        height: auto;
        overflow-y: auto;
        padding: 0;
    }
    .container {
        height: auto;
        display: block;
        padding: 8px;
    }
    .main-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
        border-radius: var(--radius-md);
    }
    .header-brand {
        text-align: center;
        width: 100%;
    }
    .header-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin: 4px 0;
        width: 100%;
    }
    .header-stat-badge {
        flex: 1 1 30%;
        justify-content: center;
        padding: 8px;
        font-size: 10px;
    }
    .header-stat-badge .h-stat-val {
        font-size: 12px;
    }
    .search-wrap {
        max-width: 100%;
    }
    .nav-controls {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .nav-controls > * {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        margin-top: 10px;
    }
    .calendar-grid {
        border-radius: var(--radius-md);
        box-shadow: none;
        margin-top: 10px;
        height: calc(100vh - 300px);
        min-height: 450px;
    }
    .content-layout {
        flex-direction: column;
        height: auto;
    }
    .agenda-wrapper {
        margin-top: 10px;
        width: 100%;
        max-height: 260px;
        height: auto;
    }
    .overview-content-layout {
        grid-template-columns: 1fr;
    }
    .settings-layout {
        grid-template-columns: 1fr;
    }
    
    .modal-panel, .right-sidebar {
        width: 100%;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
}


/* Now Indicator (Google Calendar Style) */
.now-indicator {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent);
    z-index: 25;
    pointer-events: none;
    box-shadow: 0 0 10px var(--accent-soft);
}

.now-indicator::before {
    content: '';
    position: absolute;
    left: -4px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: indicator-pulse 2s infinite;
}

@keyframes indicator-pulse {
    0% {
        box-shadow: 0 0 0 0px rgba(52, 211, 153, 0.7);
    }
    100% {
        box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
    }
}

/* Hover Popup */
.apt-hover-popup {
    position: fixed;
    z-index: 9999;
    width: 240px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: var(--shadow-lg);
    color: var(--text-main);
    font-size: 12px;
    font-family: 'Geist', sans-serif;
    pointer-events: none;
    animation: popupFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: translateY(5px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.apt-hover-popup.hidden {
    display: none !important;
}

.hp-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.hp-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-main);
}

.hp-phone {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.hp-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.hp-row:last-child {
    margin-bottom: 0;
}

.hp-label {
    color: var(--text-muted);
    font-weight: 500;
}

.hp-val {
    font-weight: 600;
    color: var(--text-main);
    text-align: right;
}

/* Context Menu */
.context-menu {
    position: absolute;
    z-index: 10000;
    width: 220px;
    background: var(--ctx-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--ctx-border);
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: var(--ctx-shadow);
    color: var(--text-main);
    font-size: 13px;
    font-family: 'Geist', sans-serif;
    transform-origin: top left;
    animation: ctxFadeIn 0.15s ease-out forwards;
    display: flex;
    flex-direction: column;
}

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

.context-menu.hidden {
    display: none !important;
}

.ctx-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.ctx-item:hover {
    background: var(--ctx-hover);
    color: var(--text-main);
}

.ctx-item svg {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.ctx-item:hover svg {
    color: var(--text-main);
}

.ctx-danger {
    color: #ff4d4f;
}
.ctx-danger:hover {
    background: rgba(255, 77, 79, 0.1);
    color: #ff4d4f;
}
.ctx-danger:hover svg {
    color: #ff4d4f;
}

.ctx-divider {
    height: 1px;
    background: var(--ctx-divider);
    margin: 6px 0;
}

.ctx-title {
    padding: 6px 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ctx-title);
    font-weight: 600;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.dot-wait { background: var(--gold); border: 1px solid var(--gold); box-shadow: 0 0 5px var(--gold); }
.dot-comp { background: var(--accent); border: 1px solid var(--accent); box-shadow: 0 0 5px var(--accent); }
.dot-canc { background: var(--rose); border: 1px solid var(--rose); box-shadow: 0 0 5px var(--rose); }

@media (prefers-reduced-motion: reduce) {
    .apt-card, .agenda-item, .toast, .sidebar-overlay, .right-sidebar, .modal-panel {
        transition: none !important;
        animation: none !important;
    }
}

/* Empty States */
.empty-state-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    text-align: center;
    color: var(--text-muted);
    animation: ctxFadeIn 0.3s ease-out forwards;
}

.empty-state-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: var(--accent);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.empty-state-wrapper:hover .empty-state-icon {
    opacity: 0.7;
    transform: scale(1.05);
}

.empty-state-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.empty-state-desc {
    font-size: 11px;
    color: var(--text-muted);
    max-width: 220px;
    line-height: 1.5;
}

/* --- Month View --- */
.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: max-content repeat(6, 1fr);
    gap: 8px;
    padding: 12px;
    background: transparent;
    width: 100%;
    height: 100%;
}
.month-day-header-cell {
    text-align: center;
    font-weight: 600;
    color: var(--text-main);
    font-size: 12px;
    padding-bottom: 8px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.month-day-cell {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    min-height: 0;
    position: relative;
    overflow: hidden;
}
.month-day-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}
.month-day-cell.other-month {
    opacity: 0.4;
    background: var(--bg-main);
}
.month-day-cell.is-today {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb, 138, 115, 230), 0.05);
}
.month-day-number {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
    align-self: flex-start;
}
.month-day-cell.is-today .month-day-number {
    background: var(--accent);
    color: white;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.month-density-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
}
.month-density-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}
.month-density-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.density-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}
.density-dot.wait { background: var(--gold); border: 1px solid var(--gold); box-shadow: 0 0 5px var(--gold); }
.density-dot.comp { background: var(--accent); border: 1px solid var(--accent); box-shadow: 0 0 5px var(--accent); }
.density-dot.canc { background: var(--rose); border: 1px solid var(--rose); box-shadow: 0 0 5px var(--rose); }

/* --- 2026 SaaS Enhancements --- */

/* Bento Grid */
.bento-widget {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bento-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.2);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 20px;
    margin-top: 15px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    border-radius: 2px;
}

/* Progress Ring */
.progress-ring {
    width: 60px;
    height: 60px;
    position: relative;
}
.progress-ring svg {
    transform: rotate(-90deg);
}
.progress-ring__bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 4;
}
.progress-ring__circle {
    fill: none;
    stroke: var(--accent);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-out;
}
.progress-ring__text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

/* Pulse Luxury Alert */

/* Ghost Preview for Drag Drop */

/* SVG Chart Overrides */

/* Staggered Cascade Animation */

/* Koyu Temada Detay Paneli ve Sidebar Okunaklılık İyileştirmeleri */
.dark-theme .right-sidebar, 
.dark-theme .modal-panel {
    background: rgba(18, 18, 22, 0.97) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important;
}

.dark-theme .form-label {
    color: #A1A1AA !important;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.dark-theme .modal-input {
    background: #18181B !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #F4F4F6 !important;
}

.dark-theme .modal-input:focus {
    border-color: var(--accent) !important;
    background: #202024 !important;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15) !important;
}

.dark-theme .sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.dark-theme .sidebar-close {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #A1A1AA !important;
}

.dark-theme .sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #F4F4F6 !important;
}

/* Sidebar Tab Butonlarının Koyu Tema Uyumu */
.dark-theme .sidebar-tab-btn {
    color: #A1A1AA;
}

.dark-theme .sidebar-tab-btn:hover {
    color: #F4F4F6;
    background: rgba(255, 255, 255, 0.03);
}

/* Geçmiş Randevu Kartlarının Koyu Tema Görünümü */
.dark-theme .card-history-item {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.dark-theme .card-history-item:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Koyu Temada Tarih ve Saat Seçici İkonlarının Okunaklılığı */
.dark-theme input[type="date"]::-webkit-calendar-picker-indicator,
.dark-theme input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.9) brightness(1.2) !important;
    cursor: pointer;
}

/* Premium ve Minimal Kaydırma Çubukları (Scrollbars) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15) !important;
    border-radius: var(--radius-pill) !important;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25) !important;
}

.dark-theme ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12) !important;
}

.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.22) !important;
}

/* ==========================================
   LANDING PAGE (Premium Dark Tech) STYLES
   ========================================== */
.landing-page {
  --bg: #09090b;
  --bg-soft: #0e0e11;
  --surface: #121217;
  --surface-strong: #f4f4f5;
  --ink: #f4f4f5;
  --muted: #a1a1aa;
  --muted-strong: #d4d4d8;
  --line: rgba(16, 185, 129, 0.12);
  --line-strong: rgba(16, 185, 129, 0.34);
  --accent: #10b981;
  --accent-soft: #34d399;
  --accent-dark: #065f46;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  --radius: 24px;
  --radius-sm: 14px;
  --container: 1180px;
  --font-sans: "Geist", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Consolas, monospace;

  background-color: var(--bg) !important;
  color: var(--ink) !important;
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body.landing-page {
  background:
    radial-gradient(circle at 82% 8%, rgba(16, 185, 129, 0.16), transparent 28rem),
    radial-gradient(circle at 14% 28%, rgba(244, 234, 216, 0.04), transparent 22rem),
    linear-gradient(180deg, #070708 0%, var(--bg) 42%, #0d0d11 100%) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: auto !important;
  min-height: 100vh !important;
}

body.landing-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, black, transparent 86%);
}

body.landing-page .container {
  width: min(calc(100% - 40px), var(--container)) !important;
  margin-inline: auto !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  border-radius: 999px;
  background: #10b981 !important;
  color: #09090b !important;
  padding: 0.75rem 1rem;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

.landing-page .site-header {
  position: sticky;
  top: 14px;
  z-index: 100;
  padding-inline: 20px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  height: auto !important;
}

.landing-page .nav-shell {
  width: min(100%, var(--container));
  min-height: 66px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.76);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  padding: 10px 12px 10px 18px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.landing-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.landing-page .brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.2), rgba(255, 255, 255, 0.05));
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 900;
}

.landing-page .nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.landing-page .nav-links a {
  transition: color 180ms ease;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.landing-page .nav-links a:hover {
  color: var(--accent-soft);
}

.landing-page .nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface-strong);
  color: #09090b;
  padding-inline: 18px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.landing-page .nav-cta:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.landing-page .hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 4.5rem 0 2rem;
  background: transparent !important;
}

.landing-page .hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 68% 38%, rgba(16, 185, 129, 0.18), transparent 18rem),
    radial-gradient(circle at 80% 64%, rgba(255, 255, 255, 0.05), transparent 20rem);
  transform: translateY(calc(var(--scroll-depth, 0) * 18px));
}

.landing-page .hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.landing-page .hero-content {
  position: relative;
  z-index: 2;
  min-width: 0;
  text-align: left;
}

.landing-page .kicker,
.landing-page .mini-label {
  margin: 0 0 1rem;
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-page h1 {
  max-width: 13.5ch;
  margin-bottom: 1.15rem;
  font-size: clamp(2.85rem, 4.6vw, 4.25rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-wrap: balance;
  color: var(--ink);
  font-weight: 900;
}

.landing-page .hero-copy {
  max-width: 540px;
  margin-bottom: 1.35rem;
  color: var(--muted-strong);
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  line-height: 1.55;
}

.landing-page .hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.landing-page .button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 820;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.landing-page .button.primary {
  background: var(--accent);
  color: #09090b;
  box-shadow: 0 18px 38px rgba(16, 185, 129, 0.2);
}

.landing-page .button.primary:hover {
  background: var(--accent-soft);
  box-shadow: 0 20px 48px rgba(16, 185, 129, 0.3);
}

.landing-page .button.secondary {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.05);
  color: var(--ink);
}

.landing-page .button.secondary:hover {
  border-color: rgba(52, 211, 153, 0.42);
  background: rgba(16, 185, 129, 0.1);
}

.landing-page .button:active {
  transform: translateY(1px) scale(0.99);
}

.landing-page .hero-visual {
  min-width: 0;
  perspective: 1200px;
}

.landing-page .operation-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.035)),
    #0f0f13;
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2vw, 1.4rem);
  transform: rotateX(3deg) rotateY(-6deg) translateY(calc(var(--scroll-depth, 0) * -10px));
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-page .operation-panel::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2), transparent 62%);
  pointer-events: none;
}

.landing-page .panel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  margin-bottom: 1rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.landing-page .panel-topbar strong {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-transform: none;
}

.landing-page .flow-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.landing-page .flow-strip article {
  position: relative;
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: 20px;
  background: rgba(9, 9, 11, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.85rem 0.95rem;
}

.landing-page .flow-strip article:nth-child(2) {
  transform: translateY(10px);
  border-color: rgba(16, 185, 129, 0.35);
}

.landing-page .flow-strip span {
  width: max-content;
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 900;
}

.landing-page .flow-strip h2 {
  margin: auto 0 0.35rem;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  letter-spacing: -0.05em;
  font-weight: 800;
  color: var(--ink);
}

.landing-page .flow-strip p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.landing-page .panel-grid {
  display: grid;
  grid-template-cols: 1.16fr 0.84fr;
  gap: 10px;
  margin-top: 14px;
}

.landing-page .panel-card {
  position: relative;
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: 20px;
  background: rgba(9, 9, 11, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  padding: 0.8rem;
}

.landing-page .brand-rules {
  min-height: 132px;
}

.landing-page .brand-rules h3 {
  max-width: 18ch;
  margin-bottom: 0.65rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
  color: var(--ink);
}

.landing-page .rule-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-page .rule-list span {
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.05);
  color: var(--muted-strong);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
}

.landing-page .format-queue {
  display: grid;
  align-content: start;
  gap: 10px;
}

.landing-page .queue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.1);
  color: var(--muted-strong);
  padding-bottom: 0.72rem;
  font-size: 0.88rem;
}

.landing-page .queue-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.landing-page .queue-row strong {
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.landing-page .approval-note {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.landing-page .approval-note .mini-label {
  margin: 0;
}

.landing-page .approval-note p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted-strong);
}

.landing-page .section {
  padding: clamp(4.8rem, 9vw, 8rem) 0;
}

.landing-page .intro-band {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 185, 129, 0.02);
}

.landing-page .intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 32px;
}

.landing-page .intro-grid p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.landing-page .intro-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.landing-page .intro-facts span {
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.05);
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.64rem 0.8rem;
  text-align: center;
}

.landing-page .section-heading {
  max-width: 900px;
  margin-bottom: 3.5rem;
  text-align: left;
}

.landing-page .section-heading h2 {
  font-size: clamp(2.25rem, 4.8vw, 4.55rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
  font-weight: 900;
  color: var(--ink);
}

.landing-page .section-heading.narrow {
  max-width: 790px;
}

.landing-page .process-section {
  position: relative;
}

.landing-page .process-showcase {
  position: relative;
  display: grid;
  grid-template-cols: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .landing-page .process-showcase {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

.landing-page .process-showcase::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 48%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.34), transparent);
}

.landing-page .process-showcase article {
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(16, 185, 129, 0.06), rgba(16, 185, 129, 0.02)),
    rgba(9, 9, 11, 0.5);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.3);
  padding: clamp(1.25rem, 2.4vw, 1.8rem);
}

@media (min-width: 768px) {
  .landing-page .process-showcase article:nth-child(2),
  .landing-page .process-showcase article:nth-child(4) {
    transform: translateY(34px);
  }
}

.landing-page .step-index {
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 900;
}

.landing-page .process-showcase h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.landing-page .process-showcase p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.landing-page .format-section {
  background: rgba(9, 9, 11, 0.3);
}

.landing-page .format-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 1024px) {
  .landing-page .format-layout {
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
    align-items: center;
  }
}

.landing-page .format-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.landing-page .format-copy p {
  max-width: 54ch;
  color: var(--muted-strong);
  line-height: 1.6;
}

.landing-page .format-list {
  display: grid;
  gap: 18px;
  margin: 2.5rem 0 0;
}

.landing-page .format-list div {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.landing-page .format-list dt {
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.landing-page .format-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.88rem;
}

.landing-page .bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .landing-page .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .landing-page .col-span-2 {
    grid-column: span 2;
  }
}

.landing-page .bento-card {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(16, 185, 129, 0.12);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.01));
  transition: transform 0.3s, border-color 0.3s;
}

.landing-page .bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.35);
}

.landing-page .bento-icon {
  font-size: 24px;
  margin-bottom: 1.25rem;
}

.landing-page .bento-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.landing-page .bento-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.landing-page .brain-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 768px) {
  .landing-page .brain-layout {
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
    align-items: start;
  }
}

.landing-page .brain-stack {
  display: grid;
  gap: 14px;
}

.landing-page .brain-stack article {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.03);
  padding: 1.5rem;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.landing-page .brain-stack article:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: rgba(16, 185, 129, 0.06);
}

.landing-page .brain-stack span {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.landing-page .brain-stack h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.landing-page .brain-stack p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.landing-page .demo-section {
  background:
    radial-gradient(circle at 78% 26%, rgba(16, 185, 129, 0.12), transparent 22rem),
    rgba(9, 9, 11, 0.4);
}

.landing-page .demo-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .landing-page .demo-layout {
    grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1fr);
    align-items: start;
  }
}

.landing-page .demo-copy {
  position: sticky;
  top: 112px;
  text-align: left;
}

.landing-page .demo-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.landing-page .demo-copy p {
  color: var(--muted-strong);
  line-height: 1.6;
  font-size: 1.05rem;
}

.landing-page .lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02)),
    rgba(9, 9, 11, 0.6);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 3vw, 2.5rem);
}

.landing-page .form-row {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.landing-page .form-row.wide {
  grid-column: 1 / -1;
}

.landing-page .lead-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted-strong);
  margin-bottom: 6px;
}

.landing-page .lead-form input,
.landing-page .lead-form select,
.landing-page .lead-form textarea {
  background: rgba(9, 9, 11, 0.6);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  color: var(--ink);
  padding: 10px 14px;
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.landing-page .lead-form input:focus,
.landing-page .lead-form select:focus,
.landing-page .lead-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.landing-page .field-error {
  font-size: 0.78rem;
  color: #ef4444;
  margin-top: 4px;
  margin-bottom: 0;
  min-height: 18px;
}

.landing-page .form-submit {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.landing-page .site-footer {
  padding: 60px 0;
  border-top: 1px solid rgba(16, 185, 129, 0.1);
  background: #09090b;
}

.landing-page .footer-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

@media (min-width: 768px) {
  .landing-page .footer-layout {
    flex-direction: row;
    justify-content: space-between;
  }
}

.landing-page .site-footer p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 42ch;
  text-align: center;
}

@media (min-width: 768px) {
  .landing-page .site-footer p {
    text-align: left;
  }
}

.landing-page .footer-links {
  display: flex;
  gap: 24px;
}

.landing-page .footer-links a {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.landing-page .footer-links a:hover {
  color: var(--accent-soft);
}

/* --- REVEAL EFFECTS (IntersectionObserver) --- */
.landing-page [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(0.215, 0.61, 0.355, 1), transform 800ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

.landing-page [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Dikey yüksekliği kısıtlı ekranlar için Hero alanını ölçekleme */
@media (min-width: 1024px) and (max-height: 820px) {
  .landing-page .hero {
    padding: 3.5rem 0 1rem;
  }
  .landing-page .operation-panel {
    transform: rotateX(3deg) rotateY(-6deg) scale(0.85) translateY(-20px);
  }
  .landing-page h1 {
    font-size: clamp(2.5rem, 4vw, 3.6rem);
    margin-bottom: 0.85rem;
  }
  .landing-page .hero-copy {
    margin-bottom: 1.15rem;
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    line-height: 1.45;
  }
}

