/* -------------------------------------------------------

    Theme Name: Key Design&Art Admin Theme
    Theme URL: https://keydesignart.com/
    Description: Admin Panel CSS theme file.
    Author: Key Design&Art
    Copyright(c) 2026 keydesignart.com
    Version: 1.0.0

------------------------------------------------------- */

/* ===================================
    Key Design & Art - Admin Theme
====================================== */

:root {
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: 1px solid rgba(255, 255, 255, 0.8);
    --card-radius: 20px;
    --glass-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    --hover-lift: translateY(-3px);
    --primary-glow: 0 8px 20px rgba(var(--kd-primary-rgb), 0.15);
    --transition-soft: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.kd-body-modern {
    background-color: #f6f8fb;
    font-family: 'Inter', sans-serif;
}

.dashboard-wrapper {
    position: relative;
    z-index: 1;
}

.sidebar-modern {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 280px;
    background: #fff;
    border-right: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.02);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 16px;
}

    .sidebar-content::-webkit-scrollbar {
        width: 4px;
    }

    .sidebar-content::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar-content::-webkit-scrollbar-thumb {
        background: #e2e8f0;
        border-radius: 4px;
    }

.sidebar-header {
    padding: 24px 24px 10px 24px;
    background: #fff;
}

.sidebar-brand-modern {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--kd-primary) 0%, var(--kd-primary-dark) 100%);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(var(--kd-primary-rgb), 0.3);
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(90deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-link-modern {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 4px;
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .nav-link-modern i {
        font-size: 1.1rem;
        margin-right: 12px;
        color: #94a3b8;
        transition: all 0.2s;
    }

    .nav-link-modern:hover {
        background-color: #f1f5f9;
        color: var(--kd-primary);
        transform: translateX(3px);
    }

        .nav-link-modern:hover i {
            color: var(--kd-primary);
        }

    .nav-link-modern.active {
        background: linear-gradient(135deg, var(--kd-primary) 0%, var(--kd-primary-dark) 100%);
        color: #fff;
        box-shadow: 0 4px 12px rgba(var(--kd-primary-rgb), 0.25);
    }

        .nav-link-modern.active i {
            color: rgba(255,255,255,0.9);
        }

.nav-section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    font-weight: 700;
    margin: 20px 0 8px 12px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(0,0,0,0.04);
    background: #fff;
}

.user-profile-card {
    background: #f8fafc;
    border-radius: 14px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

    .user-profile-card:hover {
        background: #fff;
        border-color: var(--kd-primary);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    .user-profile-card .dropdown-toggle::after {
        display: none;
    }

.avatar-wrapper {
    position: relative;
    margin-right: 12px;
}

.user-avatar-modern, .user-avatar-placeholder-modern {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.user-avatar-placeholder-modern {
    background: #e0e7ff;
    color: var(--kd-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid #fff;
    border-radius: 50%;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.user-role {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 500;
}

.custom-dropdown-menu-up {
    bottom: 100% !important;
    top: auto !important;
    margin-bottom: 10px !important;
    border-radius: 16px;
    padding: 8px;
    min-width: 220px;
}

.main-wrapper-modern {
    margin-left: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .sidebar-modern {
        transform: translateX(-100%);
    }

        .sidebar-modern.show {
            transform: translateX(0);
            box-shadow: 10px 0 30px rgba(0,0,0,0.1);
        }

    .main-wrapper-modern {
        margin-left: 0;
    }
}

.listing-header-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border-radius: 24px;
    padding: 30px 40px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

    .listing-header-glass::after {
        content: '\F234'; /* bi-car-front-fill */
        font-family: 'bootstrap-icons';
        position: absolute;
        bottom: -35px;
        right: -20px;
        font-size: 12rem;
        line-height: 1;
        color: var(--kd-primary);
        opacity: 0.06;
        transform: rotate(-15deg);
        pointer-events: none;
        z-index: 0;
    }

@media(min-width: 992px) {
    .listing-header-glass {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.header-content-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.header-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
    flex-wrap: nowrap;
}

.page-title-large {
    font-size: 1.85rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    line-height: 1.1;
}

.page-description-large {
    font-size: 1.05rem;
    color: #64748b;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    max-width: 600px;
}

.title-icon-box {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(var(--kd-primary-rgb), 0.1) 0%, rgba(var(--kd-primary-rgb), 0.2) 100%);
    color: var(--kd-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 10px rgba(var(--kd-primary-rgb), 0.1);
    flex-shrink: 0;
}

.hero-premium {
    background: linear-gradient(135deg, var(--kd-primary) 0%, #0a0e27 140%);
    border-radius: var(--card-radius);
    padding: 40px 50px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(var(--kd-primary-rgb), 0.2);
    margin-bottom: 45px;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 30%);
    z-index: 0;
    pointer-events: none;
}

.hero-glass-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.hero-text-white {
    color: #ffffff !important;
    opacity: 0.95;
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.6;
}

.btn-glow-dropdown {
    background: #fff;
    color: var(--kd-primary);
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: var(--transition-soft);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .btn-glow-dropdown:hover, .btn-glow-dropdown[aria-expanded="true"] {
        background: #f8f9fa;
        color: var(--kd-primary-dark, #0F3CCF);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
        transform: translateY(-1px);
    }

.custom-dropdown-menu {
    border-radius: 16px;
    border: none;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 280px;
    margin-bottom: 10px !important;
}

.custom-dropdown-item {
    border-radius: 10px;
    padding: 14px;
    transition: all 0.2s;
}

    .custom-dropdown-item:hover {
        background-color: rgba(var(--kd-primary-rgb), 0.05);
    }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.bento-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--card-radius);
    padding: 24px;
    transition: var(--transition-soft);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .bento-card:hover {
        transform: var(--hover-lift);
        box-shadow: var(--primary-glow);
        border-color: rgba(var(--kd-primary-rgb), 0.2);
    }

.col-span-4 {
    grid-column: span 4;
}

.col-span-3 {
    grid-column: span 3;
}

@media (max-width: 1200px) {
    .col-span-3, .col-span-4 {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .col-span-3, .col-span-4 {
        grid-column: span 12;
    }

    .hero-premium {
        padding: 30px;
    }
}

.corner-icon-anim {
    transition: var(--transition-soft);
    opacity: 0.4;
}

.bento-card:hover .corner-icon-anim {
    transform: rotate(15deg) scale(1.1);
    opacity: 0.8;
    color: var(--kd-primary);
}

.bento-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 15px;
    transition: var(--transition-soft);
}

.theme-primary .bento-icon-circle {
    background: rgba(var(--kd-primary-rgb), 0.08);
    color: var(--kd-primary);
}

.theme-success .bento-icon-circle {
    background: rgba(40, 167, 69, 0.08);
    color: #28a745;
}

.theme-info .bento-icon-circle {
    background: rgba(23, 162, 184, 0.08);
    color: #17a2b8;
}

.theme-danger .bento-icon-circle {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
}

.theme-warning .bento-icon-circle {
    background: rgba(255, 193, 7, 0.08);
    color: #ffc107;
}

.theme-dark .bento-icon-circle {
    background: rgba(52, 58, 64, 0.08);
    color: #343a40;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.1;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.stat-title {
    color: #8898aa;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bento-card-title-lg {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
}

.trend-pill {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    width: fit-content;
}

.trend-up {
    background: #e6f9ed;
    color: #28a745;
}

.trend-neutral {
    background: #f8f9fa;
    color: #8898aa;
}

.action-btn-modern {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #edf2f7;
    color: #4a5568;
    text-decoration: none;
    transition: var(--transition-soft);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

    .action-btn-modern:hover {
        background: #fff;
        border-color: var(--kd-primary);
        box-shadow: 0 5px 15px rgba(var(--kd-primary-rgb), 0.08);
        transform: translateY(-2px);
        color: var(--kd-primary);
    }

.action-btn-icon {
    font-size: 1.6rem;
    margin-right: 15px;
    color: #cbd5e0;
    transition: 0.3s;
}

.action-btn-modern:hover .action-btn-icon {
    color: var(--kd-primary);
}

.action-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 2px;
}

.action-desc {
    font-size: 0.9rem;
    color: #6c757d;
}

.section-title {
    font-weight: 700;
    color: #212529;
    margin: 0;
    letter-spacing: -0.5px;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.glass-search-bar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    border-radius: 14px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 350px;
    transition: all 0.3s ease;
}

    .glass-search-bar:focus-within {
        background: #fff;
        border-color: var(--kd-primary);
        box-shadow: 0 4px 15px rgba(var(--kd-primary-rgb), 0.15);
    }

.glass-search-input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    padding: 5px 10px;
    color: #334155;
    font-weight: 500;
}

    .glass-search-input::placeholder {
        color: #94a3b8;
        font-weight: 400;
    }

.glass-table-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border: 1px solid rgba(255,255,255,0.6);
    overflow: hidden;
    padding: 5px;
}

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .modern-table thead th {
        background: rgba(248, 250, 252, 0.7);
        color: #64748b;
        font-weight: 700;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        padding: 18px 24px;
        border-bottom: 1px solid #e2e8f0;
    }

    .modern-table tbody td {
        padding: 18px 24px;
        vertical-align: middle;
        border-bottom: 1px solid rgba(241, 245, 249, 0.8);
        color: #334155;
        font-size: 0.95rem;
        background: transparent;
    }

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

    .modern-table tbody tr {
        transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

        .modern-table tbody tr:hover td {
            background: rgba(255, 255, 255, 0.6);
        }

        .modern-table tbody tr:hover {
            transform: scale(1.005);
            box-shadow: 0 4px 20px rgba(0,0,0,0.03);
            z-index: 10;
            position: relative;
        }

.item-meta-group {
    display: flex;
    align-items: center;
    gap: 18px;
}

.item-thumb-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 2px solid #fff;
    flex-shrink: 0;
}

.item-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.modern-table tbody tr:hover .item-thumb {
    transform: scale(1.1);
}

.item-title {
    font-weight: 700;
    color: #1e293b;
    display: block;
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 4px;
    transition: color 0.2s;
}

    .item-title:hover {
        color: var(--kd-primary);
    }

.item-subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.status-pill {
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.3s;
}

    .status-pill::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
    }

.status-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

    .status-success::before {
        background: #10b981;
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    }

.status-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

    .status-warning::before {
        background: #f59e0b;
    }

.status-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

    .status-danger::before {
        background: #ef4444;
    }

.status-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

    .status-info::before {
        background: #3b82f6;
    }

.status-muted {
    background: rgba(148, 163, 184, 0.1);
    color: #64748b;
}

    .status-muted::before {
        background: #94a3b8;
    }

.action-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px solid transparent;
    transition: all 0.2s;
    margin-left: 4px;
}

    .action-icon-btn:hover {
        background: #fff;
        border-color: var(--kd-primary);
        color: var(--kd-primary);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }

.action-btn-danger:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.action-btn-success:hover {
    border-color: #10b981;
    color: #10b981;
}

.animate-row {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.btn-create-premium {
    background: var(--kd-primary);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(var(--kd-primary-rgb), 0.25);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

    .btn-create-premium:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(var(--kd-primary-rgb), 0.35);
        color: #fff;
    }

.empty-state-modern {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon-circle {
    width: 90px;
    height: 90px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #cbd5e1;
    margin: 0 auto 25px auto;
}

/* ==============================================
   CREATE / EDIT FORMS STYLES
============================================== */

/* Layout Grid */
.kd-create-page .row {
    --bs-gutter-x: 2rem;
}

/* Sticky Sidebar (Sağ taraf) */
.kd-create-sticky {
    position: sticky;
    top: 20px; /* Üstten boşluk */
    z-index: 100;
}

/* Section Cards */
.kd-panel-card {
    background: #fff;
    border-radius: var(--card-radius, 20px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
    transition: all 0.3s ease;
}

    .kd-panel-card:hover {
        box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    }

.kd-panel-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}

.kd-panel-card-header__left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.kd-panel-card-icon {
    width: 42px;
    height: 42px;
    background: #f1f5f9;
    border-radius: 12px;
    color: var(--kd-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.kd-panel-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.kd-panel-card-sub {
    font-size: 0.85rem;
    color: #94a3b8;
}

.kd-panel-card-body {
    padding: 24px;
}

/* Form Elements */
.kd-label {
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

.kd-form-control, .kd-form-select {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 0.95rem;
    color: #334155;
    background-color: #fcfcfd;
    transition: all 0.2s;
    width: 100%;
}

    .kd-form-control:focus, .kd-form-select:focus {
        border-color: var(--kd-primary);
        box-shadow: 0 0 0 4px rgba(var(--kd-primary-rgb), 0.1);
        background-color: #fff;
        outline: none;
    }

/* Input Groups (Currency, Icons) */
.kd-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.kd-input-icon-left .kd-form-control {
    padding-left: 45px;
}

.kd-input-group-icon {
    position: absolute;
    left: 15px;
    color: #94a3b8;
    pointer-events: none;
    font-size: 1rem;
}

/* Option Cards (Checkbox Replacement) */
.kd-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.kd-option-input {
    display: none;
}
/* Hide real checkbox */

.kd-option-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid #f1f5f9;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.kd-option-icon {
    font-size: 1.4rem;
    color: #cbd5e1;
    transition: color 0.2s;
}

.kd-option-title {
    font-weight: 600;
    color: #475569;
    font-size: 0.95rem;
}

.kd-option-sub {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Checked State */
.kd-option-input:checked + .kd-option-card {
    border-color: var(--kd-primary);
    background: rgba(var(--kd-primary-rgb), 0.04);
}

    .kd-option-input:checked + .kd-option-card .kd-option-icon {
        color: var(--kd-primary);
    }

    .kd-option-input:checked + .kd-option-card .kd-option-title {
        color: var(--kd-primary);
    }

/* Danger Option (e.g. Heavy Damage) */
.kd-option-danger.kd-option-card:hover {
    border-color: #fee2e2;
}

.kd-option-input:checked + .kd-option-danger {
    border-color: #ef4444;
    background: #fef2f2;
}

    .kd-option-input:checked + .kd-option-danger .kd-option-icon,
    .kd-option-input:checked + .kd-option-danger .kd-option-title {
        color: #ef4444;
    }

/* Dropzone (Image Upload) */
.kd-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    padding: 30px;
    outline: none;
}

    .kd-dropzone:hover, .kd-dropzone.is-dragover {
        border-color: var(--kd-primary);
        background: rgba(var(--kd-primary-rgb), 0.03);
    }

.kd-dropzone-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.kd-dropzone-icon {
    font-size: 2.5rem;
    color: var(--kd-primary);
    margin-bottom: 10px;
    opacity: 0.7;
}

.kd-dropzone-title {
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
}

.kd-dropzone-sub {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Image Preview Grid */
.kd-upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.kd-upload-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

    .kd-upload-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.kd-upload-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    cursor: pointer;
    font-size: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Stepper (Sidebar Nav) */
.kd-stepper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kd-stepper-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #64748b;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

    .kd-stepper-item:hover {
        background: #f1f5f9;
        color: #334155;
    }

    .kd-stepper-item i {
        font-size: 1.1rem;
    }

/* Inline Tip */
.kd-inline-tip {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.kd-inline-tip__icon {
    color: #d97706;
    font-size: 1.2rem;
    margin-top: -2px;
}

.kd-inline-tip__text {
    font-size: 0.9rem;
    color: #92400e;
    line-height: 1.5;
}

/* Sub-card (Conditional Fields) */
.kd-subcard {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.kd-subcard-header {
    background: #f1f5f9;
    padding: 10px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.kd-subcard-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kd-subcard-body {
    padding: 15px;
}

/* Buttons */
.kd-btn-base {
    background: var(--kd-primary);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    transition: all 0.2s;
}

    .kd-btn-base:hover {
        background: var(--kd-primary-dark);
        transform: translateY(-1px);
        color: #fff;
    }

.kd-btn-lg {
    padding: 14px 20px;
    font-size: 1rem;
}

.kd-btn-soft {
    background: #f1f5f9;
    color: #64748b;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    transition: all 0.2s;
    padding: 14px 20px;
    margin-top: 10px;
}

    .kd-btn-soft:hover {
        background: #e2e8f0;
        color: #334155;
    }

.btn-header-back {
    background: var(--kd-primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(var(--kd-primary-rgb), 0.2);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

    .btn-header-back:hover {
        background: var(--kd-primary-dark);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(var(--kd-primary-rgb), 0.3);
    }

/* ==============================================
   BULK UPLOAD STYLES
============================================== */

.kd-bulk-card {
    background: #fff;
    border-radius: var(--card-radius, 20px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
    margin-top: 20px;
    position: relative;
}

    .kd-bulk-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background: linear-gradient(90deg, var(--kd-primary) 0%, var(--kd-primary-light) 100%);
    }

.kd-bulk-card__body {
    padding: 40px;
    text-align: center;
}

.kd-bulk-icon {
    width: 80px;
    height: 80px;
    background: rgba(var(--kd-primary-rgb), 0.08);
    color: var(--kd-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px auto;
    box-shadow: 0 8px 20px rgba(var(--kd-primary-rgb), 0.1);
}

.kd-bulk-title {
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
}

.kd-bulk-desc {
    color: #64748b;
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.kd-bulk-instructions {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 25px;
    text-align: left;
    margin-bottom: 30px;
}

.kd-bulk-instructions__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

    .kd-bulk-instructions__title i {
        color: var(--kd-primary);
        font-size: 1.2rem;
    }

.kd-bulk-instructions__list {
    margin: 0;
    padding-left: 20px;
    color: #64748b;
    font-size: 0.95rem;
}

    .kd-bulk-instructions__list li {
        margin-bottom: 8px;
    }

        .kd-bulk-instructions__list li::marker {
            color: var(--kd-primary);
            font-weight: bold;
        }

.kd-bulk-separator {
    margin: 30px 0;
    border-top: 1px solid #e2e8f0;
    opacity: 1;
}

.kd-bulk-label {
    display: block;
    text-align: left;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.input-group-lg .form-control {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    border-color: #cbd5e1;
    font-size: 1rem;
    padding: 15px;
}

.input-group-lg .input-group-text {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #64748b;
}

.kd-bulk-help {
    text-align: left;
    margin-top: 8px;
    color: #94a3b8;
    font-size: 0.85rem;
}

.btn-header-promote {
    background: #10b981;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

    .btn-header-promote:hover {
        background: #059669;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
    }

/* ==============================================
   PROMOTE / PRICING PAGE STYLES
============================================== */

/* Promote Grid */
.kd-promote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.kd-promote-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .kd-promote-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 50px rgba(0,0,0,0.08);
        border-color: rgba(0,0,0,0.08);
    }

.kd-promote-header {
    padding: 30px 20px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.bg-gradient-showcase {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.bg-gradient-top-search {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.bg-gradient-urgent {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.bg-gradient-price-drop {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.bg-gradient-default {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.kd-promote-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.9;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.kd-promote-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kd-promote-body {
    padding: 30px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kd-promote-price-wrapper {
    margin-bottom: 20px;
}

.kd-promote-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.kd-promote-currency {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 600;
    vertical-align: super;
    margin-left: 2px;
}

.kd-promote-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 20px;
}

.kd-promote-desc {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.kd-promote-footer {
    padding: 20px 30px 30px;
    background: #fff;
}

.btn-promote-select {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s;
    background: #1e293b;
    color: #fff;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.2);
}

    .btn-promote-select:hover {
        background: #0f172a;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(30, 41, 59, 0.3);
        color: #fff;
    }

.btn-showcase:hover {
    background: #d97706;
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.4);
}

.btn-top-search:hover {
    background: #2563eb;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-urgent:hover {
    background: #dc2626;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.btn-price-drop:hover {
    background: #059669;
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.kd-promote-header::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    pointer-events: none;
}

.btn-header-skip {
    background: #8b5cf6;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

    .btn-header-skip:hover {
        background: #7c3aed;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
    }

/* ==============================================
   MY FAVORITES PAGE STYLES
============================================== */

.fav-tabs-wrapper {
    background: #f1f5f9;
    padding: 6px;
    border-radius: 16px;
    display: inline-flex;
    margin-bottom: 30px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.06);
}

.fav-nav-link {
    border: none;
    background: transparent;
    color: #64748b;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .fav-nav-link:hover {
        color: #334155;
    }

    .fav-nav-link.active {
        background: #fff;
        color: var(--kd-primary);
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
        transform: scale(1.02);
    }

.fav-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .fav-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    }

.fav-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.fav-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.fav-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border: none;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.2s;
    z-index: 2;
}

    .fav-remove-btn:hover {
        background: #fff;
        transform: scale(1.1);
        color: #dc2626;
    }

.fav-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.fav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    text-decoration: none;
    display: block;
    line-height: 1.4;
}

    .fav-title:hover {
        color: var(--kd-primary);
    }

.fav-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--kd-primary);
    margin-bottom: 15px;
}

.fav-footer {
    padding-top: 15px;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.saved-search-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .saved-search-card:hover {
        border-color: var(--kd-primary);
        box-shadow: 0 8px 25px rgba(0,0,0,0.04);
        transform: translateX(5px);
    }

.search-title {
    font-weight: 700;
    color: #334155;
    font-size: 1.05rem;
    text-decoration: none;
}

.search-meta {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 4px;
}

.kd-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.kd-switch-input {
    display: none;
}

.kd-switch-track {
    width: 40px;
    height: 22px;
    background: #e2e8f0;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s;
}

    .kd-switch-track::after {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        width: 18px;
        height: 18px;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

.kd-switch-input:checked + .kd-switch-track {
    background: var(--kd-primary);
}

    .kd-switch-input:checked + .kd-switch-track::after {
        transform: translateX(18px);
    }

.kd-switch-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.fav-empty-icon {
    font-size: 4rem;
    color: #e2e8f0;
    margin-bottom: 15px;
}

/* ==============================================
   ULTRA PREMIUM CHAT (NEXT GEN)
============================================== */

/* Layout & Wrapper */
.chat-app-wrapper {
    height: calc(100vh - 110px);
    min-height: 600px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.6);
    overflow: hidden;
    display: flex;
    position: relative;
}

/* --- SIDEBAR --- */
.chat-sidebar-premium {
    width: 360px;
    background: #fff;
    border-right: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    z-index: 2;
    flex-shrink: 0;
}

.chat-sidebar-header {
    padding: 25px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 5;
}

.chat-search-wrapper {
    position: relative;
    margin-top: 15px;
}

.chat-search-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 15px 12px 45px;
    border-radius: 14px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

    .chat-search-input:focus {
        background: #fff;
        border-color: var(--kd-primary);
        box-shadow: 0 4px 15px rgba(var(--kd-primary-rgb), 0.1);
        outline: none;
    }

.chat-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

/* Chat List Items */
.chat-list-scroll {
    overflow-y: auto;
    flex-grow: 1;
    padding: 10px;
}

    .chat-list-scroll::-webkit-scrollbar {
        width: 5px;
    }

    .chat-list-scroll::-webkit-scrollbar-thumb {
        background: #e2e8f0;
        border-radius: 10px;
    }

.chat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 5px;
    border: 1px solid transparent;
}

    .chat-card:hover {
        background: #f8fafc;
        transform: translateY(-2px);
    }

    .chat-card.active {
        background: linear-gradient(135deg, rgba(var(--kd-primary-rgb), 0.05) 0%, rgba(var(--kd-primary-rgb), 0.1) 100%);
        border-color: rgba(var(--kd-primary-rgb), 0.1);
    }

.chat-avatar-box {
    position: relative;
}

.chat-avatar-img {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.chat-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #10b981;
    border: 2px solid #fff;
    border-radius: 50%;
}

.chat-info {
    flex-grow: 1;
    min-width: 0;
}

.chat-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.chat-username {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}

.chat-date {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.chat-preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-last-msg {
    font-size: 0.85rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

    .chat-last-msg.unread {
        color: #1e293b;
        font-weight: 600;
    }

.chat-badge {
    background: var(--kd-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(var(--kd-primary-rgb), 0.4);
}

/* --- MAIN AREA --- */
.chat-main-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #fdfdfd;
    position: relative;
    /* Modern Pattern Background */
    background-image: radial-gradient(at 0% 0%, rgba(var(--kd-primary-rgb), 0.03) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(var(--kd-primary-rgb), 0.03) 0px, transparent 50%);
}

/* Glass Header */
.chat-main-header {
    padding: 15px 30px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    height: 80px;
}

.chat-header-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-header-avatar {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--kd-primary) 0%, var(--kd-primary-dark) 100%);
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(var(--kd-primary-rgb), 0.25);
}

.chat-header-info h5 {
    margin: 0;
    font-weight: 700;
    color: #1e293b;
    font-size: 1.05rem;
}

.chat-header-status {
    font-size: 0.8rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .chat-header-status::before {
        content: '';
        width: 6px;
        height: 6px;
        background: #10b981;
        border-radius: 50%;
    }

.btn-view-listing {
    background: #fff;
    color: #334155;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .btn-view-listing:hover {
        border-color: var(--kd-primary);
        color: var(--kd-primary);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

/* Messages Area */
.chat-messages-scroll {
    flex-grow: 1;
    overflow-y: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Bubbles */
.msg-row {
    display: flex;
    flex-direction: column;
    max-width: 70%;
    margin-bottom: 10px;
}

    .msg-row.sent {
        align-self: flex-end;
        align-items: flex-end;
    }

    .msg-row.received {
        align-self: flex-start;
        align-items: flex-start;
    }

.msg-bubble {
    padding: 12px 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* Sent Bubble (Gradient & Shape) */
.msg-row.sent .msg-bubble {
    background: linear-gradient(135deg, var(--kd-primary) 0%, var(--kd-primary-dark) 100%);
    color: #fff;
    border-radius: 18px 18px 4px 18px; /* Sol alt köşe sivri */
    box-shadow: 0 4px 15px rgba(var(--kd-primary-rgb), 0.2);
}

/* Received Bubble (White & Shape) */
.msg-row.received .msg-bubble {
    background: #fff;
    color: #1e293b;
    border-radius: 18px 18px 18px 4px; /* Sağ alt köşe sivri */
    border: 1px solid #f1f5f9;
}

.msg-time {
    font-size: 0.7rem;
    margin-top: 4px;
    opacity: 0.7;
    font-weight: 500;
}

.msg-row.sent .msg-time {
    color: rgba(255,255,255,0.8);
    text-align: right;
}

.msg-row.received .msg-time {
    color: #94a3b8;
}

/* Input Area (Floating Capsule) */
.chat-input-container {
    padding: 20px 30px;
    background: transparent;
}

.chat-input-capsule {
    background: #fff;
    border-radius: 50px;
    padding: 8px 8px 8px 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s;
}

    .chat-input-capsule:focus-within {
        box-shadow: 0 8px 30px rgba(var(--kd-primary-rgb), 0.15);
        border-color: rgba(var(--kd-primary-rgb), 0.2);
    }

.chat-input-field {
    border: none;
    background: transparent;
    flex-grow: 1;
    outline: none;
    font-size: 1rem;
    color: #334155;
    padding-right: 15px;
}

.btn-send-round {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--kd-primary) 0%, var(--kd-primary-dark) 100%);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.2s;
    box-shadow: 0 4px 10px rgba(var(--kd-primary-rgb), 0.3);
}

    .btn-send-round:hover {
        transform: scale(1.1) rotate(-10deg);
    }

/* Empty State */
.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
    text-align: center;
}

.chat-empty-icon {
    font-size: 5rem;
    background: #f1f5f9;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #cbd5e1;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .chat-sidebar-premium {
        width: 100%;
        border-right: none;
    }

    .chat-main-area {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100% - 60px);
        z-index: 50;
    }

        .chat-main-area.active {
            display: flex;
        }

    .chat-app-wrapper {
        border-radius: 0;
        border: none;
        box-shadow: none;
        height: calc(100vh - 60px);
    }
}

/* ==============================================
   PROFILE PAGE (FINAL REVISION V3 - ROUNDED BUTTONS FIX)
============================================== */

/* Layout Fixes */
.profile-container {
    padding: 0;
}

/* 1. Header Banner */
.kd-profile-header {
    height: 200px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 0 0 30px 30px;
    position: relative;
    margin-bottom: 80px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

    .kd-profile-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.05) 0%, transparent 20%);
        pointer-events: none;
    }

.kd-profile-title {
    position: absolute;
    bottom: 30px;
    left: 40px;
    color: #fff;
    z-index: 2;
}

/* 2. Sol Kolon (Profil Kartı) */
.profile-card-main {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    text-align: center;
    padding-bottom: 30px;
}

/* Avatar */
.profile-avatar-area {
    padding: 40px 20px 20px 20px;
    background: linear-gradient(to bottom, #f8fafc 50%, #fff 50%);
}

.profile-avatar-box {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    padding: 5px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.profile-img-main {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-initials-main {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 700;
}

.avatar-action-btn {
    position: absolute;
    bottom: 5px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

    .avatar-action-btn:hover {
        transform: scale(1.1);
    }

.btn-upload-pos {
    right: 0;
    background: var(--kd-primary);
    color: #fff;
}

.btn-delete-pos {
    left: 0;
    background: #ef4444;
    color: #fff;
    border: none;
}

/* Profil Metinleri */
.profile-name-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 5px;
}

.profile-role-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(var(--kd-primary-rgb), 0.1);
    color: var(--kd-primary);
    margin-bottom: 15px;
}

/* 3. Store Widget (Yuvarlatılmış Buton Düzeltmesi) */
.store-widget-large {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    padding: 25px;
    text-align: center;
    margin-top: 25px;
}

    .store-widget-large.active {
        background: #1e293b;
        color: #fff;
    }

    .store-widget-large h4 {
        font-weight: 700;
        margin-bottom: 5px;
        font-size: 1.15rem;
    }

    .store-widget-large .badge {
        font-size: 0.75rem !important;
        margin-bottom: 15px !important;
        padding: 5px 10px;
    }

    .store-widget-large p {
        font-size: 0.9rem;
        opacity: 0.8;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    /* STORE BUTONLARI İÇİN ÖZEL DÜZELTME */
    .store-widget-large .btn {
        border-radius: 16px !important; /* Yuvarlak köşe zorunlu */
        padding: 12px 20px;
        font-weight: 600;
        transition: transform 0.2s;
    }

        .store-widget-large .btn:hover {
            transform: translateY(-2px);
        }

/* 4. Sağ İçerik */
.profile-content-box {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.profile-large-tabs {
    background: #f8fafc;
    padding: 15px 30px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 15px;
}

.tab-btn-lg {
    border: none;
    background: transparent;
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #64748b;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .tab-btn-lg:hover {
        background: #fff;
        color: #334155;
    }

    .tab-btn-lg.active {
        background: #fff;
        color: var(--kd-primary);
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }

/* Form Başlıkları */
.form-header-lg {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.form-header-icon {
    width: 40px;
    height: 40px;
    background: rgba(var(--kd-primary-rgb), 0.1);
    color: var(--kd-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.form-header-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* Alert Box */
.alert-security-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #422006;
}

.alert-security-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #713f12;
}

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

.kd-input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}

.kd-form-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fcfcfd;
    color: #334155;
    font-size: 0.95rem;
    transition: all 0.2s;
}

    .kd-form-input:focus {
        background: #fff;
        border-color: var(--kd-primary);
        box-shadow: 0 0 0 4px rgba(var(--kd-primary-rgb), 0.1);
        outline: none;
    }

    .kd-form-input:disabled {
        background: #f1f5f9;
        color: #94a3b8;
        cursor: not-allowed;
    }

/* Password Group */
.password-group .form-control {
    border-right: 0;
}

.password-group .input-group-text {
    background: #fff;
    border-left: 0;
    cursor: pointer;
    color: #94a3b8;
}

    .password-group .input-group-text:hover {
        color: var(--kd-primary);
    }

.btn-generate-pass {
    background: #e0e7ff;
    color: var(--kd-primary);
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0 15px;
    transition: all 0.2s;
}

    .btn-generate-pass:hover {
        background: var(--kd-primary);
        color: #fff;
    }

/* Social Inputs */
.kd-social-group {
    display: flex;
    margin-bottom: 10px;
}

.kd-social-icon {
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-right: 0;
    border-radius: 12px 0 0 12px;
    color: #64748b;
}

.kd-social-field {
    border-radius: 0 12px 12px 0;
}

/* ==============================================
   STORE DASHBOARD (FINAL REVISION V2)
============================================== */

/* 1. Header Area */
.store-header-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.store-title-group h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* GÜNCELLENDİ: Eşitlenmiş Rozetler */
.store-badges {
    display: flex;
    gap: 10px;
    align-items: center;
}

.badge-common {
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem; /* Orta boyut */
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.badge-corporate {
    background: var(--kd-primary); /* Mavi Zemin */
    color: #fff; /* Beyaz Yazı */
}

.badge-owner {
    background: #1e293b; /* Koyu Zemin */
    color: #fff;
}

.badge-staff {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* 2. Stat Cards */
.store-stat-card {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 24px;
    padding: 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .store-stat-card::after {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 200px;
        height: 200px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        pointer-events: none;
    }

/* Stat Header Düzeni */
.stat-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin: 0;
}

.btn-sync-icon {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
}

    .btn-sync-icon:hover {
        background: rgba(255,255,255,0.4);
        transform: rotate(180deg);
    }

.stat-value {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.stat-icon-large {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    opacity: 0.2;
    color: #fff;
}

.stat-action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: 20px;
    backdrop-filter: blur(5px);
    width: fit-content;
}

    .stat-action-link:hover {
        background: rgba(255,255,255,0.3);
        color: #fff;
        transform: translateY(-2px);
    }

/* 3. Team Card */
.store-team-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    overflow: hidden;
}

.team-header {
    padding: 25px 30px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-header-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* GÜNCELLENDİ: Seats Badge */
.seats-badge {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem; /* Büyütüldü */
    display: flex;
    align-items: center;
    gap: 6px;
}

.team-body {
    padding: 30px;
}

/* ==============================================
   INVITE FORM FIX (ROUNDED CAPSULE STYLE)
============================================== */

/* Invite kutusu */
.invite-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
}

.invite-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 10px;
    display: block;
}

/* Kapsül Yapı (Input + Buton) */
.invite-capsule {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px; /* Dış Köşeler Yuvarlatıldı */
    padding: 4px; /* İçeriden boşluk */
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    width: 100%;
    transition: all 0.3s ease;
}

    .invite-capsule:focus-within {
        border-color: var(--kd-primary);
        box-shadow: 0 4px 15px rgba(var(--kd-primary-rgb), 0.15);
    }

    /* Input Alanı */
    .invite-capsule .form-control {
        border: none;
        box-shadow: none;
        background: transparent;
        height: 42px;
        padding-left: 15px;
        font-size: 0.95rem;
        color: #334155;
    }

    /* Buton (İçeride) */
    .invite-capsule .btn {
        height: 42px;
        border-radius: 10px; /* Butonun kendi köşeleri */
        padding: 0 24px;
        font-weight: 700;
        white-space: nowrap; /* Yazının alt satıra düşmesini engeller */
        flex-shrink: 0; /* Butonun sıkışmasını engeller */
        font-size: 0.9rem;
    }

/* Eşit Yükseklik Input & Buton */
.invite-input-row .form-control {
    height: 45px;
    font-size: 0.9rem; /* Yazı küçüldü */
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.invite-input-row .btn {
    height: 45px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding-left: 25px;
    padding-right: 25px;
}

/* Employee Table */
.employee-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

    .employee-table th {
        font-size: 0.75rem;
        text-transform: uppercase;
        color: #94a3b8;
        font-weight: 700;
        padding: 0 15px 10px 15px;
        border-bottom: 1px solid #f1f5f9;
    }

    .employee-table td {
        background: #fff;
        padding: 15px;
        border-top: 1px solid #f1f5f9;
        border-bottom: 1px solid #f1f5f9;
    }

    .employee-table tr td:first-child {
        border-left: 1px solid #f1f5f9;
        border-radius: 12px 0 0 12px;
    }

    .employee-table tr td:last-child {
        border-right: 1px solid #f1f5f9;
        border-radius: 0 12px 12px 0;
    }

.emp-avatar {
    width: 40px;
    height: 40px;
    background: #e0f2fe;
    color: #0284c7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin-right: 12px;
}

.emp-name {
    font-weight: 700;
    color: #1e293b;
    display: block;
    font-size: 0.95rem;
}

.emp-role {
    font-size: 0.75rem;
    color: #64748b;
}

/* 4. Staff Access Card */
.staff-access-card {
    background: #f8fafc;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px;
}

.staff-icon-circle {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--kd-primary);
    margin-bottom: 20px;
}

/* ==============================================
   ADMIN PANEL LAYOUT STYLES
============================================== */

:root {
    --admin-sidebar-width: 280px;
    --admin-sidebar-bg: #111827; /* Koyu Lacivert/Siyah */
    --admin-sidebar-hover: #1f2937;
    --admin-sidebar-text: #9ca3af; /* Gri Metin */
    --admin-sidebar-active: #2563eb; /* Aktif Mavi */
    --admin-bg: #f3f4f6; /* Açık Gri Zemin */
}

/* Body Reset for Admin */
body.admin-body {
    background-color: var(--admin-bg);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

/* --- SIDEBAR --- */
.admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--admin-sidebar-width);
    background: var(--admin-sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 1050;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.1);
}

/* Brand (Logo Area) */
.admin-brand {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
}

    .admin-brand:hover {
        color: #fff;
    }

    .admin-brand i {
        color: #f59e0b;
        margin-right: 10px;
        font-size: 1.4rem;
    }

/* Navigation Scroll Area */
.admin-nav-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px 15px;
}

    .admin-nav-scroll::-webkit-scrollbar {
        width: 4px;
    }

    .admin-nav-scroll::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.1);
        border-radius: 4px;
    }

/* Nav Links */
.admin-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 4px;
    color: var(--admin-sidebar-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: all 0.2s;
}

    .admin-nav-link i {
        font-size: 1.2rem;
        margin-right: 12px;
        width: 24px;
        text-align: center;
    }

    .admin-nav-link:hover {
        background-color: var(--admin-sidebar-hover);
        color: #fff;
        transform: translateX(4px);
    }

    .admin-nav-link.active {
        background: linear-gradient(90deg, var(--admin-sidebar-active) 0%, #1d4ed8 100%);
        color: #fff;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }

/* Sidebar Section Headers */
.admin-nav-header {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4b5563;
    margin: 20px 0 10px 15px;
    letter-spacing: 1px;
}

/* Sidebar Footer */
.admin-sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
}

/* --- MAIN WRAPPER --- */
.admin-main-wrapper {
    margin-left: var(--admin-sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Mobile Navbar */
.admin-navbar {
    height: 70px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: none;
    align-items: center;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1040;
}

/* Content Area */
.admin-content {
    padding: 30px;
}

/* Mobile Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1045;
    display: none;
    backdrop-filter: blur(4px);
}

    .sidebar-overlay.show {
        display: block;
    }

/* Responsive Rules */
@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

        .admin-sidebar.show {
            transform: translateX(0);
        }

    .admin-main-wrapper {
        margin-left: 0;
    }

    .admin-navbar {
        display: flex;
    }
}

/* ==============================================
   ADMIN DASHBOARD STYLES (FINAL V2)
============================================== */

/* 1. Admin Header */
.admin-header-glass {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 30px;
    margin: -30px -30px 30px -30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-title h3 {
    font-weight: 800;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Tarih Rozeti (Büyütüldü) */
.admin-date-badge {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 10px 24px; /* Daha geniş */
    border-radius: 50px;
    font-size: 1rem; /* Yazı büyütüldü */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

    .admin-date-badge i {
        color: var(--admin-sidebar-active);
        font-size: 1.1rem;
    }

.admin-stat-card {
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .admin-stat-card:hover {
        transform: translateY(-5px);
    }

    /* Arka Plan Dekorasyonu */
    .admin-stat-card::before {
        content: '';
        position: absolute;
        top: -20px;
        right: -20px;
        width: 120px;
        height: 120px;
        background: rgba(255,255,255,0.15);
        border-radius: 50%;
        pointer-events: none;
    }

    .admin-stat-card::after {
        content: '';
        position: absolute;
        bottom: -40px;
        left: -20px;
        width: 100px;
        height: 100px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        pointer-events: none;
    }

/* Renkler */
.stat-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.stat-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.3);
}

.stat-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.3);
}

.stat-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.stat-content {
    position: relative;
    z-index: 2;
}

/* Admin Başlıkları */
.admin-stat-card .stat-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff !important; /* Beyaz */
    opacity: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Admin Sayıları */
.admin-stat-card .stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff !important; /* Beyaz */
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
    margin-bottom: 0;
}

/* Admin İkonları */
.admin-stat-card .stat-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    color: #ffffff;
    opacity: 0.25;
}

/* 3. Quick Actions Card */
.admin-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.03);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.admin-card-header {
    padding: 20px 25px;
    border-bottom: 1px solid #f3f4f6;
    background: #fff;
}

.admin-card-title {
    font-weight: 700;
    color: #111827;
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    color: #374151;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    margin-bottom: 10px;
}

    .action-btn i {
        font-size: 1.2rem;
        margin-right: 15px;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: #f3f4f6;
        transition: all 0.2s;
    }

    .action-btn:hover {
        border-color: var(--admin-sidebar-active);
        transform: translateX(5px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        color: var(--admin-sidebar-active);
    }

        .action-btn:hover i {
            background: var(--admin-sidebar-active);
            color: #fff;
        }

/* ==============================================
   CATEGORY MANAGEMENT STYLES
============================================== */

/* 1. Glass Header (Standart) */
.admin-header-glass {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 30px;
    margin: -30px -30px 30px -30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-title h3 {
    font-weight: 800;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* 2. Modern Table Card */
.admin-table-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.03);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.admin-table {
    margin-bottom: 0;
}

    .admin-table thead th {
        background: #f9fafb;
        color: #6b7280;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 1px solid #e5e7eb;
        padding: 15px 20px;
    }

    .admin-table tbody tr {
        transition: background-color 0.2s;
    }

        .admin-table tbody tr:hover {
            background-color: #f8fafc;
        }

    .admin-table td {
        padding: 15px 20px;
        vertical-align: middle;
        color: #374151;
        font-size: 0.9rem;
        border-bottom: 1px solid #f3f4f6;
    }

/* Sürükleme Kolu */
.drag-handle {
    cursor: grab;
    color: #d1d5db;
    transition: color 0.2s;
    font-size: 1.2rem;
}

    .drag-handle:hover {
        color: #6b7280;
    }

/* Durum Rozetleri */
.status-badge {
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.status-passive {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

/* Aksiyon Butonları */
.btn-icon-soft {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    background: transparent;
    color: #9ca3af;
    transition: all 0.2s;
}

    .btn-icon-soft:hover {
        background: #fff;
        border-color: #e5e7eb;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

.btn-edit:hover {
    color: #2563eb;
}

.btn-delete:hover {
    color: #ef4444;
}

/* Sortable Ghost (Sürükleme sırasındaki görünüm) */
.sortable-ghost {
    background: #eff6ff !important;
    opacity: 0.8;
}

/* 3. Modal Styles */
.modal-content {
    border: none;
    border-radius: 24px;
}

.modal-header {
    border-bottom: 1px solid #f3f4f6;
    padding: 25px 30px;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    border-top: 1px solid #f3f4f6;
    padding: 20px 30px;
}

.modal-title-custom {
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-label-custom {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}

/* Input Groups */
.custom-input-group .input-group-text {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    border-right: none;
}

.custom-input-group .form-control {
    border-color: #e2e8f0;
    border-left: none;
    box-shadow: none;
    font-size: 0.95rem;
    color: #334155;
}

    .custom-input-group .form-control:focus {
        border-color: #e2e8f0; /* Focus rengi */
        background: #fff;
    }

.custom-input-group:focus-within .input-group-text,
.custom-input-group:focus-within .form-control {
    border-color: var(--admin-sidebar-active);
}
/* ==============================================
   AUTH PAGES (LOGIN & REGISTER)
============================================== */

/* Kart Yapısı */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc; /* Veya background image */
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border: 1px solid #fff;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

    /* Dekoratif Gradient Çizgi */
    .auth-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: linear-gradient(90deg, #4f46e5, #ec4899);
    }

/* Başlık Alanı */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--kd-primary);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

/* Input Alanları (Premium) */
.auth-input-group {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    padding: 5px;
}

    .auth-input-group:focus-within {
        border-color: var(--kd-primary);
        box-shadow: 0 0 0 4px rgba(var(--kd-primary-rgb), 0.1);
    }

.auth-input-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.2rem;
    border-radius: 8px;
    background: #f8fafc;
}

.auth-input {
    border: none;
    outline: none;
    box-shadow: none;
    width: 100%;
    padding: 10px 15px;
    font-size: 0.95rem;
    color: #334155;
    background: transparent;
}

/* Şifre Araçları */
.password-tools {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-right: 5px;
}

.btn-tool {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 8px;
    transition: all 0.2s;
}

    .btn-tool:hover {
        background: #f1f5f9;
        color: var(--kd-primary);
    }

/* Rol Seçici (Radio Tile) */
.role-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.role-radio {
    display: none;
}

.role-tile {
    flex: 1;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    color: #64748b;
}

    .role-tile:hover {
        border-color: #cbd5e1;
        transform: translateY(-2px);
    }

.role-radio:checked + .role-tile {
    border-color: var(--kd-primary);
    background: rgba(var(--kd-primary-rgb), 0.05);
    color: var(--kd-primary);
    box-shadow: 0 4px 15px rgba(var(--kd-primary-rgb), 0.15);
}

.role-tile i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 5px;
}

.role-tile span {
    font-weight: 700;
    font-size: 0.9rem;
}

/* Buton */
.btn-auth-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    padding: 14px;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    transition: all 0.3s;
}

    .btn-auth-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
    }