/* ============================================
   Takvimim - Standalone SaaS Design System
   Glassmorphism / Royal Purple & Deep Navy
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Color Palette */
    --bg-main: #f8fafc;
    --navy-950: #090d1f;
    --navy-900: #0f172a;
    --navy-800: #1e293b;
    --navy-700: #334155;
    
    --purple-50: #f5f3ff;
    --purple-100: #ede9fe;
    --purple-500: #8b5cf6;
    --purple-600: #7c3aed;
    --purple-700: #6d28d9;
    
    --indigo-50: #eff6ff;
    --indigo-500: #6366f1;
    --indigo-600: #4f46e5;
    --indigo-700: #4338ca;
    
    --teal-50: #f0fdfa;
    --teal-500: #0d9488;
    --teal-600: #0f766e;
    
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --white: #ffffff;
    
    /* Shadows & Border Radius */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(124, 58, 237, 0.05), 0 8px 16px -6px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 20px 40px -10px rgba(124, 58, 237, 0.08), 0 12px 20px -8px rgba(15, 23, 42, 0.04);
    --shadow-premium: 0 30px 60px -15px rgba(99, 102, 241, 0.12), 0 15px 30px -10px rgba(124, 58, 237, 0.06);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--navy-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--navy-900);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Ambient Background Blobs */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -10;
    overflow: hidden;
    background: radial-gradient(at 0% 0%, #f1f5f9 0px, transparent 50%), 
                radial-gradient(at 100% 100%, #eff6ff 0px, transparent 50%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.55;
    z-index: -9;
}
.blob-purple {
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, rgba(255,255,255,0) 70%);
}
.blob-indigo {
    bottom: -15%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, rgba(255,255,255,0) 70%);
}

/* Main Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Flash Messages */
.flash-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flash-msg {
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 480px;
    background: var(--white);
    border-left: 5px solid var(--purple-500);
}

.flash-msg.success { border-left-color: var(--success); background: #f0fdf4; color: #15803d; }
.flash-msg.danger { border-left-color: var(--danger); background: #fef2f2; color: #b91c1c; }
.flash-msg.warning { border-left-color: var(--warning); background: #fffbeb; color: #b45309; }
.flash-msg.info { border-left-color: var(--indigo-500); background: #f0fdfa; color: #0f766e; }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(50px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

/* Header & Navbar */
.main-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--navy-900);
    letter-spacing: -1px;
}

.brand-logo span {
    background: linear-gradient(135deg, var(--indigo-600) 0%, var(--purple-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-logo i {
    font-size: 1.8rem;
    color: var(--purple-600);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
}
.nav-link:hover {
    color: var(--purple-600);
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--indigo-600) 0%, var(--purple-600) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.35);
}

.btn-secondary {
    background: var(--navy-900);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--navy-950);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--navy-800);
    border: 2px solid var(--gray-200);
}

.btn-outline:hover {
    border-color: var(--purple-500);
    color: var(--purple-600);
    background: var(--purple-50);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2.0px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* Hero Section (Landing Page) */
.hero {
    padding: 100px 0 60px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--indigo-600) 0%, var(--purple-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--gray-500);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image {
    position: relative;
}

.hero-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-premium);
}

/* Features Grid */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.section-title p {
    color: var(--gray-500);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--purple-100);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: var(--purple-50);
    color: var(--purple-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* Demo Request Form Modal/Card */
.demo-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-premium);
    max-width: 520px;
    margin: 0 auto;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--gray-200);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--navy-900);
    background: var(--white);
    outline: none;
    transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--purple-500);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--purple-600);
}

/* Super Admin Panel içerik alanı
   NOT: Eski sol kenar çubuğu (.admin-layout/.admin-sidebar/.admin-nav* dikey)
   kaldırıldı. Üst navigasyon artık css/admin.css içinde (yatay top bar) tanımlı.
   Burada yalnızca içerik alanı varsayılanı tutulur (admin.css onu geliştirir). */
.admin-main {
    flex: 1;
    min-width: 0;
    padding: 40px 60px;
    background: var(--bg-main);
    transition: padding 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Cards & Tables in Panels */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.panel-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.panel-card-title {
    font-size: 1.3rem;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Custom Data Table */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    padding: 14px 20px;
    background: var(--gray-50);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    border-bottom: 1.5px solid var(--gray-200);
}

.data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.95rem;
    color: var(--navy-800);
    vertical-align: middle;
}

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

.data-table tr:hover {
    background: rgba(248, 250, 252, 0.6);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-active { background: #d1fae5; color: #065f46; }
.badge-passive { background: #fee2e2; color: #991b1b; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-completed { background: #d1fae5; color: #065f46; }
.badge-approved { background: #dbeafe; color: #1e40af; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }

/* Booking Calendar Widget (Müşteri Randevu Seçim Ekranı) */
.booking-wizard {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    display: grid;
    grid-template-columns: 350px 1fr;
    min-height: 600px;
}

.booking-sidebar {
    background: var(--navy-900);
    color: var(--white);
    padding: 40px;
}

.booking-sidebar h2 {
    color: var(--white);
    margin-bottom: 12px;
}

.booking-sidebar p {
    color: var(--gray-400);
    font-size: 0.95rem;
}

.booking-steps {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0.5;
    transition: var(--transition);
}

.step-item.active {
    opacity: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--navy-800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    border: 2px solid var(--gray-600);
}

.step-item.active .step-number {
    background: var(--purple-600);
    border-color: var(--purple-500);
}

.booking-body {
    padding: 40px;
    background: var(--white);
}

.provider-grid, .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.provider-card, .service-card {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.provider-card:hover, .service-card:hover {
    border-color: var(--indigo-500);
    transform: translateY(-2px);
}

.provider-card.selected, .service-card.selected {
    border-color: var(--purple-600);
    background: var(--purple-50);
}

/* Interactive Calendar slots picker */
.calendar-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.time-slots-container h4 {
    margin-bottom: 16px;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
}

.slot-btn {
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.slot-btn:hover {
    border-color: var(--purple-500);
    color: var(--purple-600);
}

.slot-btn.selected {
    background: var(--purple-600);
    color: var(--white);
    border-color: var(--purple-700);
}

/* Tenant Dashboard Layout Tabs */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.dashboard-sidebar {
    width: 280px;
    background: var(--navy-900);
    color: var(--white);
    padding: 20px 16px 16px 16px;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 200;
}

.dashboard-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    background: var(--bg-main);
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-menu {
    list-style: none;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-link-logout {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: var(--danger) !important;
    font-weight: 600 !important;
    padding: 8px 14px !important;
    font-size: 0.88rem !important;
    border-radius: var(--radius-sm) !important;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

/* QR Code Section Card */
.qr-container {
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--purple-50);
    border: 1px solid var(--purple-100);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
}

.qr-image {
    width: 140px;
    height: 140px;
    background: var(--white);
    padding: 8px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

/* Onboarding Screen card */
.onboarding-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 24px;
}

.onboarding-card {
    background: var(--white);
    max-width: 600px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--gray-100);
    padding: 48px;
}

/* Custom Sectors Tags list inside onboarding */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.sector-tag {
    padding: 10px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.sector-tag:hover {
    border-color: var(--purple-400);
}

.sector-tag.selected {
    background: var(--purple-600);
    color: var(--white);
    border-color: var(--purple-700);
}

/* Finance Grid Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
}

.stat-card h5 {
    color: var(--gray-500);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy-900);
    font-family: 'Outfit', sans-serif;
}

/* Complete Appointment Modal POS style */
.payment-split-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    padding: 20px;
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.payment-split-box h5 {
    margin-bottom: 16px;
}

.payment-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Responsive Rules */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 40px auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .booking-wizard {
        grid-template-columns: 1fr;
    }
    
    .booking-sidebar {
        padding: 32px;
    }
    
    .booking-steps {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 12px;
        gap: 16px;
    }
    
    .step-item span {
        display: none;
    }
    
    .dashboard-container {
        flex-direction: column;
        display: block;
    }
    
    .dashboard-sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 24px;
    }
    
    .dashboard-content {
        margin-left: 0;
        padding: 24px 16px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-picker {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px 0 !important;
        min-height: auto !important;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
        letter-spacing: -1px !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .features {
        padding: 50px 0 !important;
    }
    
    .section-title h2 {
        font-size: 1.6rem !important;
    }
    
    .demo-card {
        padding: 24px !important;
    }
    
    .flash-container {
        left: 12px;
        right: 12px;
    }
    
    .flash-msg {
        min-width: auto;
        max-width: 100%;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .qr-container {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   Yeni Özellikler: Duyurular, Galeriler, Ürünler & PC Kısıtlaması
   ============================================ */

/* 1. PC Kısıtlama Ekranı */
.pc-only-overlay {
    display: none;
}

@media (max-width: 992px) {
    .pc-only-overlay {
        display: flex !important;
        position: fixed;
        inset: 0;
        z-index: 100000;
        background: rgba(9, 13, 31, 0.97);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        align-items: center;
        justify-content: center;
        color: var(--white);
        text-align: center;
        padding: 32px;
    }
}

/* 2. Duyurular (Instagram Story Tarzı) */
.stories-container {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}
.stories-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.story-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
    width: 80px;
    flex-shrink: 0;
}

.story-avatar-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    margin-bottom: 6px;
    transition: var(--transition);
}
.story-avatar-wrapper.read {
    background: var(--gray-300);
}
.story-avatar-wrapper:hover {
    transform: scale(1.05);
}

.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--navy-900);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    border: 2px solid var(--white);
    object-fit: cover;
}

.story-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--navy-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Story Modal */
.story-modal {
    position: fixed;
    inset: 0;
    z-index: 101000;
    background: rgba(9, 13, 31, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.story-modal-content {
    background: var(--navy-900);
    color: var(--white);
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(255,255,255,0.1);
}

.story-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.story-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--indigo-500), var(--purple-500));
}

.story-header-content {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.story-body-content {
    padding: 40px 24px;
    text-align: center;
    font-size: 1.2rem;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
    font-weight: 500;
}

/* 3. Klasörlü Müşteri Memnuniyeti / Galeri */
.gallery-folders {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.folder-tab {
    padding: 8px 18px;
    border-radius: 50px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.folder-tab:hover, .folder-tab.active {
    background: var(--purple-600);
    color: var(--white);
    border-color: var(--purple-700);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--gray-100);
}

.gallery-caption {
    padding: 16px;
}

.gallery-cust-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.gallery-comment {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.4;
}

/* 4. Ürünler Showcase */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.4;
    margin-bottom: 12px;
    flex: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--gray-100);
    padding-top: 12px;
}

.product-price {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--purple-600);
}

/* 5. Sosyal Medya İletişim Butonları */
.social-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--white);
    transition: var(--transition);
}
.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.btn-whatsapp { background-color: #25d366; }
.btn-facebook { background-color: #1877f2; }
.btn-tiktok { background-color: #010101; }

/* ============================================
   Mobil Hamburger Toggle ve Drawer Menü
   ============================================ */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--navy-900);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 24px;
        border-bottom: 1.5px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
        gap: 16px;
        align-items: stretch;
        z-index: 100;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .nav-links.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .nav-links .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Kaydırma Tetiklemeli Premium Animasyonlar
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animasyon Gecikmeleri */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Ufak Giriş Animasyonları */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- SUPERADMIN CUSTOM MODAL & TREE VIEWS --- */
.custom-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.custom-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
}
.custom-modal-container {
    position: relative;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-premium);
    z-index: 10;
    overflow: hidden;
    animation: modalScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.custom-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}
.custom-modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--navy-900);
    display: flex;
    align-items: center;
    gap: 8px;
}
.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-400);
    transition: color 0.2s;
    line-height: 1;
}
.close-modal-btn:hover {
    color: var(--danger);
}
.custom-modal-body {
    padding: 20px;
}
.subcategory-list-container {
    margin-top: 20px;
}
.subcategory-list-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.subcategory-list {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 8px;
    margin-bottom: 16px;
    background: var(--gray-50);
}
.subcategory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 0.2s;
    border-radius: var(--radius-sm);
}
.subcategory-item:hover {
    background-color: var(--white);
}
.subcategory-item:last-child {
    border-bottom: none;
}
.subcategory-item span {
    font-size: 0.9rem;
    color: var(--gray-800);
    font-weight: 500;
}
.delete-sub-btn {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.delete-sub-btn:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* Pagination Controls Styling */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.pagination-container button {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Highlight matching text during search */
.search-highlight {
    background-color: rgba(245, 158, 11, 0.2);
    color: #b45309;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: bold;
}

/* Global Tab Navigation Styles */
.tab-navigation {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--gray-100);
}

.tab-nav-btn {
    padding: 12px 20px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    border: none !important;
    background: none !important;
    color: var(--gray-500) !important;
    border-bottom: 3px solid transparent !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.tab-nav-btn:hover {
    color: var(--purple-600) !important;
}

.tab-nav-btn.active {
    color: var(--purple-600) !important;
    border-bottom-color: var(--purple-600) !important;
}




/* Sidebar Collapse Modifiers */
body.sidebar-collapsed .dashboard-sidebar {
    transform: translateX(-280px);
}

body.sidebar-collapsed .dashboard-content {
    margin-left: 0 !important;
}

/* Floating Toggle Button when Sidebar is Collapsed */
body.sidebar-collapsed::before {
    content: '';
}

/* Re-use or customize toggle behavior if needed */
.sidebar-toggle-btn-inline:hover {
    color: var(--white) !important;
}

/* ==========================================================================
   Standart Telefon Girisi: Sabit +90 oneki + Turk bayragi
   Tum formlarda (auth/onboarding/public/superadmin) ayni gorunum. Icindeki
   input .form-input veya .sa-input olabilir; sol kose oneke birakilir.
   ========================================================================== */
.phone-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}
.phone-input-group .phone-prefix {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    background: var(--gray-100);
    border: 1.5px solid var(--gray-200);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-weight: 600;
    color: var(--gray-500);
    white-space: nowrap;
    user-select: none;
    line-height: 1;
}
.phone-input-group .phone-flag {
    font-size: 1.15em;
    line-height: 1;
}
.phone-input-group input {
    flex: 1;
    min-width: 0;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}