/* ==========================================================================
   KIF Akademi - Proje Ozel Stiller (custom.css)
   Comprehensive UI/UX Stylesheet - ROYAL MAVI TEMASI
   ========================================================================== */

/* ==========================================================================
   0. ROYAL MAVI TEMA - RENK DEGISKENLERI OVERRIDE
   ========================================================================== */

:root {
    /* Ana renkler: Lacivert (primary) + Altin (accent) */
    --primary-rgb: 30, 58, 95 !important;         /* #1e3a5f lacivert */
    --kif-gold: #d4a95a;                          /* Altin aksan */
    --kif-gold-rgb: 212, 169, 90;
    --kif-navy-dark: #152a4a;                     /* Koyu lacivert (sidebar) */
    --kif-navy-light: #2c5282;                    /* Acik lacivert (gradient) */
    --kif-bg: #f7fafc;                            /* Ana arka plan */
    --kif-text: #1a202c;
    --kif-text-muted: #718096;
    --kif-border: #e2e8f0;
}

[data-theme-mode="dark"] {
    --primary-rgb: 74, 111, 165 !important;       /* Acik lacivert karanlik modda */
    --kif-gold: #e8c888;
}

/* Bootstrap primary overrides */
.bg-primary { background-color: rgb(var(--primary-rgb)) !important; }
.text-primary { color: rgb(var(--primary-rgb)) !important; }
.border-primary { border-color: rgb(var(--primary-rgb)) !important; }
.btn-primary {
    background-color: rgb(var(--primary-rgb)) !important;
    border-color: rgb(var(--primary-rgb)) !important;
}
.btn-outline-primary {
    color: rgb(var(--primary-rgb)) !important;
    border-color: rgb(var(--primary-rgb)) !important;
}
.btn-outline-primary:hover {
    background-color: rgb(var(--primary-rgb)) !important;
    color: #fff !important;
}

/* Altin aksan utility sinifilari */
.text-gold { color: var(--kif-gold) !important; }
.bg-gold { background-color: var(--kif-gold) !important; color: #1e3a5f !important; }
.border-gold { border-color: var(--kif-gold) !important; }
.btn-gold {
    background-color: var(--kif-gold);
    color: #1e3a5f;
    border: none;
    font-weight: 600;
}
.btn-gold:hover {
    background-color: #c89a4a;
    color: #1e3a5f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--kif-gold-rgb), .4);
}

/* Sidebar - Koyu lacivert Royal Mavi */
.app-sidebar,
.app-sidebar-wrapper,
.app-sidebar-header,
[data-theme-mode] .app-sidebar-wrapper,
[data-theme-mode] .app-sidebar-header {
    background-color: var(--kif-navy-dark) !important;
}
.app-sidebar-header {
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
}
.app-sidebar-wrapper {
    border-inline-end: 1px solid rgba(0,0,0,.15) !important;
}
.app-sidebar .sidebar-menu-item,
.app-sidebar .sidebar-menu-label,
.app-sidebar-main-menu .sidebar-menu-item,
.app-sidebar-main-menu .sidebar-menu-label {
    color: #cbd5e0 !important;
    font-size: 15.5px !important;
    font-weight: 500 !important;
}
.app-sidebar-main-menu .sidebar-menu-item {
    padding: 12px 16px !important;
}
.app-sidebar-main-menu .side-menu-icon {
    width: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}
.app-sidebar-main-menu .side-menu-icon i {
    font-size: 1.25rem !important;
}
.app-sidebar-main-menu .sidebar-menu-item:hover {
    background: rgba(var(--kif-gold-rgb), .12) !important;
    color: #fff !important;
}
.app-sidebar-main-menu .sidebar-menu-item:hover .sidebar-menu-label,
.app-sidebar-main-menu .sidebar-menu-item:hover .side-menu-icon i,
.app-sidebar-main-menu .sidebar-menu-item:hover .side-menu-angle {
    color: #fff !important;
}
.app-sidebar-main-menu .slide.active > .sidebar-menu-item {
    background: rgba(var(--kif-gold-rgb), .18) !important;
    border-left: 3px solid var(--kif-gold) !important;
    border-radius: 0 8px 8px 0 !important;
    font-weight: 600 !important;
}
.app-sidebar-main-menu .slide.active > .sidebar-menu-item .side-menu-icon i,
.app-sidebar-main-menu .slide.active > .sidebar-menu-item .sidebar-menu-label,
.app-sidebar-main-menu .slide.active > .sidebar-menu-item .side-menu-angle {
    color: var(--kif-gold) !important;
}
.app-sidebar-main-menu .sidebar-menu-category,
.sidebar-menu-category {
    padding: 16px 16px 6px !important;
}
.app-sidebar-main-menu .sidebar-menu-category .category-name,
.sidebar-menu-category .category-name {
    color: rgba(var(--kif-gold-rgb), .85) !important;
    font-size: 11px !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}
.app-sidebar .side-menu-icon i,
.app-sidebar-main-menu .side-menu-icon i {
    color: #cbd5e0 !important;
    transition: color .2s ease;
}
.app-sidebar-main-menu .side-menu-angle {
    color: #8b95a5 !important;
}

/* Alt menu (child menu) arka plani */
.app-sidebar-main-menu .sidebar-menu.child1 {
    background: rgba(0,0,0,.2) !important;
    border-radius: 8px;
    margin-top: 4px;
    padding: 4px 0;
}
.app-sidebar-main-menu .sidebar-menu.child1 .sidebar-menu-item {
    padding-left: 48px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    font-size: 14px !important;
}

/* Sidebar mini profil */
.sidebar-mini-profile,
.sidebar-user-profile {
    background: rgba(0, 0, 0, .25) !important;
    border-top: 1px solid rgba(255, 255, 255, .06) !important;
}
.sidebar-mini-profile p,
.sidebar-mini-profile .text-heading,
.sidebar-user-profile p,
.sidebar-user-profile .user-name {
    color: #fff !important;
}
.sidebar-mini-profile p:not(.text-heading):not(.fw-semibold),
.sidebar-user-profile .user-role {
    color: var(--kif-gold) !important;
    font-weight: 500;
}

/* Sidebar logo alanin - text-based clean logo */
.app-sidebar-header {
    padding: 18px 20px !important;
    height: auto !important;
    min-height: 71px;
}
.app-sidebar-header .desktop-logo,
.app-sidebar-header .desktop-dark {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    text-decoration: none !important;
}
/* Dark sidebarda sadece bir logo goster */
.app-sidebar-header .desktop-dark {
    display: none !important;
}
.kif-text-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.kif-logo-badge {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--kif-gold), #e8c888);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1e3a5f;
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(212, 169, 90, .35);
    flex-shrink: 0;
}
.kif-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.kif-logo-text strong {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: .02em;
}
.kif-logo-text small {
    color: var(--kif-gold);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* Auth cover panel - Navy + Gold gradient */
.auth-cover-panel {
    background: linear-gradient(135deg, #152a4a 0%, #1e3a5f 50%, #2c5282 100%) !important;
    position: relative;
}
.auth-cover-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(212, 169, 90, .15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 169, 90, .1) 0%, transparent 50%);
    pointer-events: none;
}
.auth-cover-panel > * { position: relative; z-index: 1; }
.auth-cover-text h3 { color: var(--kif-gold) !important; }

/* Primary buton - lacivert gradient */
.btn-primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%) !important;
    border: none !important;
    font-weight: 600;
    color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary:focus-visible {
    background: linear-gradient(135deg, #152a4a 0%, #1e3a5f 100%) !important;
    box-shadow: 0 4px 16px rgba(30, 58, 95, .3);
    color: #fff !important;
}
.btn-primary i { color: #fff !important; }
.btn-success {
    background: linear-gradient(135deg, #2f855a 0%, #38a169 100%) !important;
    border: none !important;
}

/* Page title box - lacivert border + altin accent */
.page-title-box {
    background: linear-gradient(135deg, rgba(30, 58, 95, .04) 0%, rgba(212, 169, 90, .04) 100%) !important;
    border-left: 4px solid var(--kif-gold) !important;
    border-radius: 8px !important;
}
.page-title-box h4 {
    color: #1e3a5f !important;
}
.page-title-box h4 i {
    color: var(--kif-gold) !important;
}

/* Progress bar - lacivert altin gradient */
.progress-bar {
    background: linear-gradient(90deg, #1e3a5f 0%, var(--kif-gold) 100%) !important;
}

/* Badge label - lacivert */
.bg-label-primary {
    background-color: rgba(30, 58, 95, .1) !important;
    color: #1e3a5f !important;
}

/* Link rengi */
a { color: #2c5282; }
a:hover { color: #1e3a5f; }

/* Kart hover - altin border */
.card:hover {
    border-color: rgba(var(--kif-gold-rgb), .3) !important;
}

/* Stat card accent - altin ust cizgi */
.stat-card-accent {
    border-top: 3px solid var(--kif-gold) !important;
}

/* Live banner - lacivert gradient */
.live-banner, .pulse-badge.bg-danger {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%) !important;
}

/* Form focus - altin glow */
.form-control:focus, .form-select:focus {
    border-color: var(--kif-gold) !important;
    box-shadow: 0 0 0 3px rgba(var(--kif-gold-rgb), .15) !important;
}

/* ==========================================================================
   KIF STAT CARD - Compact yatay kart
   ========================================================================== */

/* Stat Card - Dense, impactful */
.kif-stat-card {
    background: #fff;
    border: 1px solid var(--kif-border);
    border-radius: 16px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all .25s ease;
    cursor: pointer;
    position: relative;
    height: 100%;
    overflow: hidden;
}
.kif-stat-card::before {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--kif-gold-rgb), .12) 0%, transparent 65%);
    pointer-events: none;
    transition: all .3s;
}
.kif-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(30, 58, 95, .14);
    border-color: rgba(var(--kif-gold-rgb), .35);
}
.kif-stat-card:hover::before {
    background: radial-gradient(circle, rgba(var(--kif-gold-rgb), .25) 0%, transparent 65%);
}
.kif-stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}
.kif-stat-icon i {
    font-size: 1.8rem;
    color: #fff;
}
.kif-stat-body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.kif-stat-value {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    margin-bottom: 6px;
    color: #1e3a5f;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.kif-stat-value small {
    font-size: 1rem;
    font-weight: 500;
    color: var(--kif-text-muted);
}
.kif-stat-label {
    color: #4a5568;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}
.kif-stat-trend {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 14px;
    background: rgba(16, 185, 129, .14);
    color: #059669;
    font-weight: 700;
    white-space: nowrap;
    z-index: 1;
}
.kif-stat-trend.neutral {
    background: rgba(30, 58, 95, .1);
    color: #1e3a5f;
}

[data-theme-mode="dark"] .kif-stat-card {
    background: #1e2130;
    border-color: rgba(255, 255, 255, .06);
}
[data-theme-mode="dark"] .kif-stat-card:hover {
    border-color: rgba(var(--kif-gold-rgb), .4);
}
[data-theme-mode="dark"] .kif-stat-value { color: #e2e8f0; }

/* ==========================================================================
   KIF UI KIT - Tum sistem icin tutarli komponentler
   ========================================================================== */

/* Modern card ile gradient sol kenar */
.kif-card {
    background: #fff;
    border: 1px solid var(--kif-border);
    border-radius: 14px;
    overflow: hidden;
    transition: all .25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.kif-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(30, 58, 95, .12);
    border-color: rgba(var(--kif-gold-rgb), .25);
}

/* Section card (icerik bloklari icin) */
.kif-section {
    background: #fff;
    border: 1px solid var(--kif-border);
    border-radius: 14px;
    padding: 0;
    margin-bottom: 20px;
    overflow: hidden;
}
.kif-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--kif-border);
}
.kif-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.kif-section-title i {
    color: var(--kif-gold);
    font-size: 1.2rem;
}
.kif-section-body {
    padding: 22px;
}

/* Modern kurs kart (Udemy/Coursera tarzi) */
.kif-course-card {
    background: #fff;
    border: 1px solid var(--kif-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all .3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.kif-course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(30, 58, 95, .15);
    border-color: rgba(var(--kif-gold-rgb), .35);
}
.kif-course-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1e3a5f, #2c5282);
}
.kif-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.kif-course-card:hover .kif-course-thumb img {
    transform: scale(1.08);
}
.kif-course-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .55) 100%);
    display: flex;
    align-items: flex-end;
    padding: 14px;
    color: #fff;
}
.kif-course-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, .92);
    color: #1e3a5f;
}
.kif-course-badge.gold {
    background: var(--kif-gold);
    color: #1e3a5f;
}
.kif-course-body {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.kif-course-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--kif-text);
    margin-bottom: 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.kif-course-instructor {
    font-size: .85rem;
    color: var(--kif-text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.kif-course-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: .82rem;
    color: var(--kif-text-muted);
}
.kif-course-meta span { display: flex; align-items: center; gap: 4px; }
.kif-course-progress-wrap {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--kif-border);
}
.kif-course-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.kif-course-progress .progress-bar-wrap {
    flex: 1;
    height: 6px;
    background: var(--kif-border);
    border-radius: 3px;
    overflow: hidden;
}
.kif-course-progress .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1e3a5f, var(--kif-gold));
    border-radius: 3px;
    transition: width .8s ease;
}
.kif-course-progress-text {
    font-size: .8rem;
    font-weight: 700;
    color: #1e3a5f;
}

/* Page header banner (sayfa basligi - hero stil) */
.kif-page-hero {
    background: linear-gradient(135deg, #152a4a 0%, #1e3a5f 60%, #2c5282 100%);
    border-radius: 16px;
    padding: 28px 32px;
    color: #fff;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.kif-page-hero::before {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 169, 90, .25) 0%, transparent 70%);
}
.kif-page-hero h2 {
    color: #fff;
    margin-bottom: 8px;
    font-weight: 800;
    position: relative;
}
.kif-page-hero p {
    color: rgba(255, 255, 255, .85);
    margin: 0;
    position: relative;
}

/* Empty state - modernize */
.kif-empty {
    text-align: center;
    padding: 60px 24px;
    color: var(--kif-text-muted);
}
.kif-empty-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 58, 95, .12), rgba(var(--kif-gold-rgb), .18));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #1e3a5f;
    box-shadow: 0 6px 20px rgba(30, 58, 95, .1);
}
.kif-empty-icon i { font-size: 2.8rem; color: #1e3a5f; }
.kif-empty h5 {
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.kif-empty p {
    max-width: 360px;
    margin: 0 auto 18px;
    font-size: .95rem;
    color: var(--kif-text-muted);
}

/* List item (kurs/etkinlik listesi icin) */
.kif-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    transition: background .15s;
    margin-bottom: 4px;
}
.kif-list-item:hover { background: rgba(30, 58, 95, .03); }
.kif-list-item-thumb {
    width: 56px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    background: linear-gradient(135deg, #1e3a5f, #2c5282);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.kif-list-item-body {
    flex: 1;
    min-width: 0;
}
.kif-list-item-title {
    font-weight: 600;
    font-size: .95rem;
    color: var(--kif-text);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kif-list-item-meta {
    font-size: .8rem;
    color: var(--kif-text-muted);
}

/* Info list (dt/dd key-value bilgi listesi) */
.kif-info-list { margin: 0; padding: 0; }
.kif-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--kif-border);
    font-size: .9rem;
}
.kif-info-row:last-child { border-bottom: none; }
.kif-info-row dt {
    color: var(--kif-text-muted);
    font-weight: 500;
    margin: 0;
}
.kif-info-row dd {
    margin: 0;
    font-weight: 600;
    color: var(--kif-text);
    text-align: right;
}

/* File card (Kutuphane icin) */
.kif-file-card {
    border: 1px solid var(--kif-border);
    border-radius: 12px;
    padding: 16px;
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all .2s ease;
    background: #fff;
}
.kif-file-card:hover {
    border-color: rgba(var(--kif-gold-rgb), .4);
    box-shadow: 0 8px 20px rgba(30, 58, 95, .08);
    transform: translateY(-2px);
}

/* Tablo improvements */
.kif-table-card {
    background: #fff;
    border: 1px solid var(--kif-border);
    border-radius: 14px;
    overflow: hidden;
}
.kif-table-card .table {
    margin-bottom: 0;
}
.kif-table-card .table thead {
    background: linear-gradient(135deg, rgba(30, 58, 95, .04), rgba(var(--kif-gold-rgb), .03));
}

/* Book card (Kutuphane belge listesinde dikey kitap kapagi gorunumu) */
.kif-book-card {
    background: #fff;
    border: 1px solid var(--kif-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.kif-book-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--kif-gold-rgb), .45);
    box-shadow: 0 14px 32px rgba(30, 58, 95, .12);
}
.kif-book-cover {
    display: block;
    aspect-ratio: 2 / 3;
    background: #f1f4f8;
    overflow: hidden;
    position: relative;
}
.kif-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.kif-book-card:hover .kif-book-cover img {
    transform: scale(1.04);
}
.kif-book-cover-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #1e3a5f 0%, #152a4a 60%, #0f2038 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 18px;
    color: #fff;
    text-align: center;
    position: relative;
}
.kif-book-cover-fallback::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(var(--kif-gold-rgb), .25) 0%, transparent 60%);
    pointer-events: none;
}
.kif-book-cover-fallback i {
    font-size: 3.4rem;
    color: var(--kif-gold);
    margin-bottom: 14px;
    text-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.kif-book-cover-fallback-title {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.kif-book-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}
.kif-book-title {
    margin: 0;
    color: #1e3a5f;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kif-book-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.kif-book-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

[data-theme-mode="dark"] .kif-book-card {
    background: #1e2130;
    border-color: rgba(255, 255, 255, .06);
}
[data-theme-mode="dark"] .kif-book-cover {
    background: #2a2e40;
}
[data-theme-mode="dark"] .kif-book-title {
    color: #e2e8f0;
}

/* Image upload hint (slider/gallery yukleme sayfalarinda gorsel oneri kutusu) */
.kif-image-hint {
    background: linear-gradient(135deg, rgba(30, 58, 95, .04), rgba(var(--kif-gold-rgb), .05));
    border: 1px solid rgba(var(--kif-gold-rgb), .25);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: .85rem;
}
.kif-image-hint-head {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e3a5f;
    font-weight: 600;
    margin-bottom: 8px;
}
.kif-image-hint-head i {
    font-size: 1.1rem;
    color: var(--kif-gold);
}
.kif-image-hint-list {
    margin: 0;
    padding-left: 18px;
    color: var(--kif-text-muted);
    line-height: 1.55;
}
.kif-image-hint-list li {
    margin-bottom: 3px;
}
.kif-image-hint-list li:last-child {
    margin-bottom: 0;
}

[data-theme-mode="dark"] .kif-card,
[data-theme-mode="dark"] .kif-section,
[data-theme-mode="dark"] .kif-course-card,
[data-theme-mode="dark"] .kif-table-card {
    background: #1e2130;
    border-color: rgba(255, 255, 255, .06);
}
[data-theme-mode="dark"] .kif-section-head { border-bottom-color: rgba(255, 255, 255, .06); }
[data-theme-mode="dark"] .kif-course-title { color: #e2e8f0; }
[data-theme-mode="dark"] .kif-empty h5 { color: #e2e8f0; }
[data-theme-mode="dark"] .kif-image-hint {
    background: linear-gradient(135deg, rgba(255, 255, 255, .03), rgba(var(--kif-gold-rgb), .06));
    border-color: rgba(var(--kif-gold-rgb), .3);
}
[data-theme-mode="dark"] .kif-image-hint-head { color: #e2e8f0; }

/* ==========================================================================
   TIPOGRAFI - Dashnix variable + genel elementler
   ========================================================================== */

body {
    font-size: 15px;
    line-height: 1.6;
    color: var(--kif-text);
}

p { font-size: 15px; line-height: 1.55; }

/* Baslik agirliklari */
h1, .h1 { font-weight: 800; letter-spacing: -0.02em; }
h2, .h2 { font-weight: 700; }
h3, .h3 { font-weight: 700; }
h4, .h4 { font-weight: 700; }
h5, .h5 { font-weight: 600; }
h6, .h6 { font-weight: 600; }

/* Butonlar - kompakt ve tutarli */
.btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 7px;
}
.btn-lg {
    padding: 11px 22px;
    font-size: 15px;
    border-radius: 10px;
}
.btn i { font-size: 1.05em; line-height: 1; }
.btn .me-5 { margin-right: 6px !important; }

/* Form elementleri */
.form-control, .form-select {
    padding: 8px 12px;
    font-size: 14px;
}
.form-label { font-weight: 600; font-size: 13.5px; margin-bottom: 4px; }
label { font-size: 13.5px; }
input, select, textarea { font-size: 14px; }

/* Tablo */
.table { font-size: 14px; }
.table th { font-size: 12px; letter-spacing: .03em; font-weight: 700; padding: 12px 10px; }
.table td { padding: 12px 10px; vertical-align: middle; }

/* Badge */
.badge { font-size: 11.5px; padding: 4px 10px; font-weight: 600; border-radius: 10px; }

/* Small ve muted */
small, .small { font-size: 13px; }
.text-body-secondary {
    color: var(--kif-text-muted) !important;
    font-size: 14px;
}

/* Dropdown */
.dropdown-item { font-size: 14px; padding: 8px 14px; }

/* Breadcrumb */
.breadcrumb-item, .breadcrumb-item a { font-size: 14px; }

/* Card */
.card-header { padding: 14px 18px; }
.card-header h6, .card-header .h6 { font-size: 15px; font-weight: 700; margin: 0; }
.card-body { font-size: 15px; padding: 18px; }

/* Navigation tabs */
.nav-tabs .nav-link { font-size: 14px; padding: 10px 16px; }

/* Alert */
.alert { font-size: 14px; padding: 12px 16px; border-radius: 10px; }

/* Banner icindeki beyaz metin - daha belirgin */
.bg-primary p, [style*="background:linear-gradient"] p {
    opacity: 0.95;
}

/* ==========================================================================
   1. EXISTING RULES (preserved)
   ========================================================================== */

/* Sidebar logo boyut siniri */
.app-sidebar-header img {
    max-height: 55px;
    width: auto;
    object-fit: contain;
}

.app-sidebar-header {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header logo boyut siniri */
.app-header-ls-logo img {
    max-height: 40px;
    width: auto;
}

.app-header-mobile-logo img {
    max-height: 35px;
    width: auto;
}

/* Sayfa basligi (page-title-box) */
.page-title-box {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--primary-rgb), 0.02) 100%);
    border-radius: 10px;
    padding: 18px 25px;
    border-left: 4px solid rgb(var(--primary-rgb));
}

.page-title-box h4 {
    font-weight: 700;
    color: var(--color-heading);
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title-box h4 i {
    color: rgb(var(--primary-rgb));
    font-size: 1.3em;
}

.page-title-box .breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}

.page-title-box .badge-count {
    font-size: 0.7em;
    font-weight: 500;
    vertical-align: middle;
    margin-left: 5px;
}

/* Auth sayfasi cover panel */
.auth-cover-panel {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

/* Canli yayin pulse animasyonu */
.pulse-badge {
    animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Bildirim badge */
.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bs-danger);
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Aktif menu vurgulama */
.app-sidebar-main-menu .slide.active > .sidebar-menu-item {
    color: rgb(var(--primary-rgb));
    font-weight: 600;
}

/* Kurs kart hover efekti */
.product-card:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Progress bar ince versiyon */
.progress-thin {
    height: 6px;
}

/* Auth form responsive */
@media (max-width: 991px) {
    .auth-cover-panel {
        display: none !important;
    }
}

/* ==========================================================================
   2. CARD IMPROVEMENTS
   ========================================================================== */

.card {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-weight: 600;
    border-radius: 12px 12px 0 0 !important;
}

.card-body {
    border-radius: 0 0 12px 12px;
}

/* ==========================================================================
   3. TABLE IMPROVEMENTS
   ========================================================================== */

/* Zebra striping */
.table tbody tr:nth-child(even) {
    background-color: rgba(var(--primary-rgb), 0.02);
}

/* Row hover */
.table-hover tbody tr:hover {
    background-color: rgba(var(--primary-rgb), 0.06);
    transition: background-color 0.15s ease;
}

/* Table headers */
.table th {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #7c8db5;
    border-bottom-width: 2px;
}

/* Badge pill shape */
.badge {
    border-radius: 50rem;
    padding: 0.35em 0.75em;
    font-weight: 500;
    font-size: 0.75em;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   4. KEYFRAME ANIMATIONS
   ========================================================================== */

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

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Animation utility classes */
.animate-fade-in {
    animation: fadeInUp 0.5s ease both;
}

.animate-fade-in-delay-1 {
    animation: fadeInUp 0.5s ease 0.1s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 0.5s ease 0.2s both;
}

.animate-fade-in-delay-3 {
    animation: fadeInUp 0.5s ease 0.3s both;
}

.animate-count {
    animation: countUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-slide-in {
    animation: slideInRight 0.4s ease both;
}

/* ==========================================================================
   5. MINI STAT CARDS / AVATARS
   ========================================================================== */

.card .avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Lighter label backgrounds */
.bg-label-primary {
    background-color: rgba(var(--primary-rgb), 0.12) !important;
    color: rgb(var(--primary-rgb)) !important;
}

.bg-label-success {
    background-color: rgba(25, 135, 84, 0.12) !important;
    color: #198754 !important;
}

.bg-label-warning {
    background-color: rgba(255, 193, 7, 0.12) !important;
    color: #cc9a06 !important;
}

.bg-label-danger {
    background-color: rgba(220, 53, 69, 0.12) !important;
    color: #dc3545 !important;
}

.bg-label-info {
    background-color: rgba(13, 202, 240, 0.12) !important;
    color: #0aa2c0 !important;
}

/* ==========================================================================
   6. SIDEBAR IMPROVEMENTS
   ========================================================================== */

/* Active menu item */
.app-sidebar-main-menu .slide.active > .sidebar-menu-item {
    border-left: 3px solid rgb(var(--primary-rgb));
    background: rgba(var(--primary-rgb), 0.08);
    border-radius: 0 6px 6px 0;
}

/* Menu items hover */
.app-sidebar-main-menu .sidebar-menu-item {
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 6px;
}

.app-sidebar-main-menu .sidebar-menu-item:hover {
    background: rgba(var(--primary-rgb), 0.06);
}

/* Sidebar slide-in animation for items */
.app-sidebar-main-menu .slide {
    animation: slideInRight 0.3s ease both;
}

.app-sidebar-main-menu .slide:nth-child(1) { animation-delay: 0.02s; }
.app-sidebar-main-menu .slide:nth-child(2) { animation-delay: 0.04s; }
.app-sidebar-main-menu .slide:nth-child(3) { animation-delay: 0.06s; }
.app-sidebar-main-menu .slide:nth-child(4) { animation-delay: 0.08s; }
.app-sidebar-main-menu .slide:nth-child(5) { animation-delay: 0.10s; }
.app-sidebar-main-menu .slide:nth-child(6) { animation-delay: 0.12s; }
.app-sidebar-main-menu .slide:nth-child(7) { animation-delay: 0.14s; }
.app-sidebar-main-menu .slide:nth-child(8) { animation-delay: 0.16s; }

/* Sidebar user mini profile */
.sidebar-user-profile {
    padding: 12px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user-profile .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-user-profile .user-info {
    overflow: hidden;
}

.sidebar-user-profile .user-name {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-profile .user-role {
    font-size: 0.75rem;
    opacity: 0.65;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   7. TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-container .toast {
    pointer-events: auto;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    animation: slideInToast 0.35s ease both;
    overflow: hidden;
    border: none;
    min-width: 300px;
}

@keyframes slideInToast {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-success {
    border-left: 4px solid #198754 !important;
}

.toast-error {
    border-left: 4px solid #dc3545 !important;
}

.toast-info {
    border-left: 4px solid #0dcaf0 !important;
}

.toast-warning {
    border-left: 4px solid #ffc107 !important;
}

/* ==========================================================================
   8. BUTTON IMPROVEMENTS
   ========================================================================== */

.btn {
    transition: all 0.2s ease;
    border-radius: 8px;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, rgb(var(--primary-rgb)) 0%, rgba(var(--primary-rgb), 0.85) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.9) 0%, rgba(var(--primary-rgb), 0.75) 100%);
}

.btn-lg {
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
}

/* ==========================================================================
   9. FORM IMPROVEMENTS
   ========================================================================== */

.form-control:focus {
    border-color: rgb(var(--primary-rgb));
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-select:focus {
    border-color: rgb(var(--primary-rgb));
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control,
.form-select {
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-label {
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.875rem;
    color: #495057;
}

/* ==========================================================================
   10. PROGRESS BAR
   ========================================================================== */

.progress {
    border-radius: 10px;
    overflow: hidden;
    background-color: #e9ecef;
}

.progress-bar {
    transition: width 1s ease;
    background: linear-gradient(90deg, rgb(var(--primary-rgb)), rgba(var(--primary-rgb), 0.75));
    border-radius: 10px;
}

/* ==========================================================================
   11. COURSE CARD SPECIFICS
   ========================================================================== */

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.product-card .card-img-top {
    transition: transform 0.3s ease;
    object-fit: cover;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Image overlay with play icon */
.product-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.product-card .card-img-overlay-play {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card .card-img-overlay-play i {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.product-card:hover .card-img-overlay-play {
    opacity: 1;
}

/* ==========================================================================
   12. CERTIFICATE PAGE
   ========================================================================== */

#certificate {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#certificate:hover {
    transform: perspective(800px) rotateY(2deg) rotateX(-1deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   13. EMPTY STATES
   ========================================================================== */

.empty-state {
    padding: 48px 24px;
    text-align: center;
    color: #8492a6;
}

.empty-state i,
.empty-state .empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    opacity: 0.4;
    display: block;
}

.empty-state h5,
.empty-state .empty-state-title {
    font-weight: 600;
    color: #5a6772;
    margin-bottom: 8px;
}

.empty-state p,
.empty-state .empty-state-desc {
    font-size: 0.9rem;
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   14. LOADING / SKELETON
   ========================================================================== */

.skeleton {
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}

.skeleton-text {
    height: 14px;
    margin-bottom: 10px;
    width: 80%;
}

.skeleton-text-sm {
    height: 10px;
    margin-bottom: 8px;
    width: 60%;
}

.skeleton-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-rect {
    height: 120px;
    border-radius: 8px;
}

/* ==========================================================================
   15. PAGE TRANSITIONS
   ========================================================================== */

.app-content-area {
    animation: fadeInUp 0.4s ease both;
}

/* ==========================================================================
   16. CUSTOM SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.28);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

/* ==========================================================================
   17. DARK MODE OVERRIDES
   ========================================================================== */

[data-theme-mode="dark"] .card {
    background-color: #1e2130;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

[data-theme-mode="dark"] .card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

[data-theme-mode="dark"] .card-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme-mode="dark"] .table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

[data-theme-mode="dark"] .table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme-mode="dark"] .table th {
    color: #8b95a5;
}

[data-theme-mode="dark"] .form-label {
    color: #c4cad3;
}

[data-theme-mode="dark"] .form-control,
[data-theme-mode="dark"] .form-select {
    background-color: #191c29;
    border-color: rgba(255, 255, 255, 0.1);
    color: #d4d9e1;
}

[data-theme-mode="dark"] .form-control:focus,
[data-theme-mode="dark"] .form-select:focus {
    background-color: #191c29;
    border-color: rgb(var(--primary-rgb));
    color: #e1e5eb;
}

[data-theme-mode="dark"] .empty-state {
    color: #6b7a8d;
}

[data-theme-mode="dark"] .empty-state h5,
[data-theme-mode="dark"] .empty-state .empty-state-title {
    color: #a0aab5;
}

[data-theme-mode="dark"] .skeleton {
    background: linear-gradient(90deg, #252838 25%, #2d3044 50%, #252838 75%);
    background-size: 200% 100%;
}

[data-theme-mode="dark"] .toast-container .toast {
    background-color: #1e2130;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

[data-theme-mode="dark"] .progress {
    background-color: #2a2d3e;
}

[data-theme-mode="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
}

[data-theme-mode="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.22);
}

[data-theme-mode="dark"] .sidebar-user-profile {
    border-top-color: rgba(255, 255, 255, 0.06);
}

[data-theme-mode="dark"] .bg-label-primary {
    background-color: rgba(var(--primary-rgb), 0.18) !important;
}

[data-theme-mode="dark"] .bg-label-success {
    background-color: rgba(25, 135, 84, 0.18) !important;
}

[data-theme-mode="dark"] .bg-label-warning {
    background-color: rgba(255, 193, 7, 0.18) !important;
}

[data-theme-mode="dark"] .bg-label-danger {
    background-color: rgba(220, 53, 69, 0.18) !important;
}

[data-theme-mode="dark"] .bg-label-info {
    background-color: rgba(13, 202, 240, 0.18) !important;
}

/* ==========================================================================
   Magnific-popup fixes (Dashnix main.css override + z-index boost)
   ========================================================================== */

/* Dashnix main.css'te .mfp-close::after remixicon ekliyor ve magnific'in kendi 'x'
   text'i ile cakisiyor — iki kapatma ikonu gorunuyor. Dashnix eklentisini gizliyoruz. */
.mfp-close::after { display: none !important; }

/* Sidebar z-index: 103 oldugu icin magnific default (1042/1043) sidebarin altinda
   kalabiliyordu. Tum Dashnix layer'larinin uzerine tasiyoruz. */
.mfp-bg { z-index: 10500 !important; }
.mfp-wrap { z-index: 10501 !important; }

/* Slayt oynatma butonu (kendi ekledigimiz) */
.mfp-play {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, .5);
    border: 0;
    color: #fff;
    font-size: 22px;
    border-radius: 50%;
    z-index: 10502;
    cursor: pointer;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mfp-play:hover { background: rgba(0, 0, 0, .85); }
.mfp-play i { line-height: 1; }

/* Magnific gorsel sayaci (aktif/toplam) — daha belirgin */
.mfp-counter {
    position: absolute;
    top: 18px;
    right: 70px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    background: rgba(0, 0, 0, .35);
    padding: 4px 10px;
    border-radius: 12px;
    z-index: 10502;
}

/* ==========================================================================
   Swiper (ana sayfa hero slider) — daha belirgin ok butonlari
   ========================================================================== */

.kif-swiper .swiper-button-prev,
.kif-swiper .swiper-button-next {
    width: 42px;
    height: 42px;
    background: rgba(30, 58, 95, .6);
    border-radius: 50%;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    top: 50%;
    margin-top: -21px;
    transition: background .2s, transform .2s;
}
.kif-swiper .swiper-button-prev { left: 12px; }
.kif-swiper .swiper-button-next { right: 12px; }
.kif-swiper .swiper-button-prev:hover,
.kif-swiper .swiper-button-next:hover {
    background: rgba(212, 169, 90, .95);
    transform: scale(1.08);
}
.kif-swiper .swiper-button-prev:after,
.kif-swiper .swiper-button-next:after {
    font-family: remixicon !important;
    font-size: 22px;
    color: #fff;
    font-weight: 900;
}
.kif-swiper .swiper-button-prev:after { content: "\ea64" !important; }
.kif-swiper .swiper-button-next:after { content: "\ea6e" !important; }

/* Pagination (alt noktalar) */
.kif-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, .6);
    opacity: 1;
}
.kif-swiper .swiper-pagination-bullet-active {
    background: var(--kif-gold, #d4a95a);
    width: 22px;
    border-radius: 4px;
    transition: width .3s;
}

/* ==========================================================================
   Sohbet mesaji (kompakt + flex - uzun metinde timestamp sabit sag-ust)
   ========================================================================== */

/* Chat body — mesajlar asagidan baslar, yeni mesaj alttan eklenir, kart tam kullanilir */
.kif-chat-body {
    max-height: 400px;
    min-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.kif-chat-msg {
    padding: 6px 14px;
    border-bottom: 1px solid #f3f4f6;
    line-height: 1.35;
    font-size: 13px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.kif-chat-msg:last-child { border-bottom: 0; }
.kif-chat-msg strong { margin-right: 3px; }
.kif-chat-msg-body {
    flex: 1 1 auto;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.kif-chat-msg-time {
    flex: 0 0 auto;
    font-size: 11px;
    padding-top: 2px;
    white-space: nowrap;
}

/* Textarea input (2-3 satir) */
.kif-chat-input {
    resize: none;
    min-height: 44px;
    max-height: 90px;
}

/* ==========================================================================
   Emoji Picker — input-group icinde uyumlu (reusable: Rating/Comment icin de)
   ========================================================================== */

/* Trigger buton — input-group icinde Bootstrap .btn .btn-sm gibi davransin */
.input-group .kif-emoji-trigger {
    font-size: 1.05rem;
    line-height: 1;
    padding: 0 10px;
    display: flex;
    align-items: center;
}

/* Popup input-group'un sol-ust kosesine yakin cikar */
.kif-emoji-popup {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    z-index: 1050;
    display: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(30, 58, 95, .18);
    padding: 8px;
    width: 230px;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
}
.kif-emoji-popup.open { display: grid; }

.kif-emoji-popup button {
    border: 0;
    background: transparent;
    font-size: 1.3rem;
    line-height: 1;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .12s, transform .12s;
}
.kif-emoji-popup button:hover { background: #fef3c7; transform: scale(1.15); }
.kif-emoji-popup button:focus { outline: 2px solid rgba(212, 169, 90, .55); outline-offset: 1px; }

@media (max-width: 575px) {
    .kif-emoji-popup { width: 200px; }
    .kif-emoji-popup button { font-size: 1.15rem; padding: 5px; }
}

/* ==========================================================================
   Auth (login/register) — fixed pozisyonlu dil secici sag ust kose
   ========================================================================== */

.auth-lang-switcher {
    position: fixed;
    top: 16px;
    right: 18px;
    z-index: 1030;
}

.auth-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, .92);
    color: #1e3a5f;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 22px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 4px 14px rgba(21, 42, 74, .18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s;
}
.auth-lang-btn:hover, .auth-lang-btn:focus {
    background: #fff;
    color: #152a4a;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(21, 42, 74, .25);
}
.auth-lang-btn i { font-size: 15px; color: #d4a95a; }
.auth-lang-btn::after {
    margin-left: 4px;
    border-top-color: currentColor;
}

.auth-lang-switcher .dropdown-menu {
    min-width: 160px;
    border-radius: 10px;
    border: 0;
    box-shadow: 0 10px 30px rgba(21, 42, 74, .2);
    padding: 6px;
    margin-top: 6px !important;
}
.auth-lang-switcher .dropdown-item {
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
}
.auth-lang-switcher .dropdown-item:hover {
    background: rgba(212, 169, 90, .15);
    color: #1e3a5f;
}

/* ==========================================================================
   END OF CUSTOM STYLES
   ========================================================================== */
