/* ============================================
   DGG CRM - White Theme Stylesheet
   ============================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
    --primary: #262b61;
    --primary-light: #3d4485;
    --primary-dark: #1a1e42;
    --primary-subtle: #ecedf5;
    --secondary: #64748b;
    --accent: #0d6efd;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;

    --bg-body: #f1f5f9;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-input: #f8fafc;
    --bg-hover: #f8fafc;
    --bg-light: #f8fafc;

    --text-primary: #262b61;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-white: #ffffff;

    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    --sidebar-width: 272px;
    --sidebar-collapsed-width: 76px;
    --header-height: 64px;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.2s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 0.875rem;
    color: var(--text-primary);
    background: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   AUTHENTICATION PAGES
   ============================================ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(38, 43, 97, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.auth-wrapper::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-light);
}

.auth-logo {
    text-align: center;
    margin-bottom: 36px;
}

.auth-logo .logo-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.auth-logo .logo-text .logo-dgg {
    color: var(--primary);
}

.auth-logo .logo-text .logo-crm {
    color: var(--text-primary);
    font-weight: 300;
}

.auth-logo p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    text-align: center;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 32px;
}

.auth-input-group {
    position: relative;
    margin-bottom: 20px;
}

.auth-input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.auth-input-group .input-wrapper {
    position: relative;
}

.auth-input-group .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
    z-index: 2;
}

.auth-input-group input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: var(--transition);
    font-family: var(--font-family);
}

.auth-input-group input::placeholder {
    color: var(--text-muted);
}

.auth-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(38, 43, 97, 0.1);
    background: var(--bg-white);
}

.auth-input-group input:focus + .input-icon,
.auth-input-group input:focus ~ .input-icon {
    color: var(--primary);
}

.auth-input-group .toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    transition: var(--transition);
    z-index: 2;
}

.auth-input-group .toggle-password:hover {
    color: var(--primary);
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.auth-options .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-options .form-check-input {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    margin: 0;
}

.auth-options .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.auth-options .form-check-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.auth-options .forgot-link {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

.auth-options .forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-family);
}

.auth-btn-primary {
    background: var(--primary);
    color: var(--text-white);
}

.auth-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(38, 43, 97, 0.3);
}

.auth-btn-primary:active {
    transform: translateY(0);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   GENEL — Yatay taşma önleme (mobil)
   ============================================ */
html {
    overflow-x: hidden;
}

/* ============================================
   LAYOUT - SIDEBAR
   ============================================ */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--primary);
    border-right: none;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: width 0.3s ease;
    overflow: hidden;
    color: #fff;
}

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

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 3px;
}

.sidebar-logo .logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.sidebar-logo .logo-dgg {
    color: #fff;
}

.sidebar-logo .logo-crm {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.sidebar-logo .logo-icon {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: -0.5px;
}

.sidebar-logo .logo-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar-search {
    padding: 16px 20px;
}

.sidebar-search .search-input {
    position: relative;
}

.sidebar-search .search-input input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    font-size: 0.8rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    font-family: var(--font-family);
}

.sidebar-search .search-input input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.sidebar-search .search-input input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.sidebar-search .search-input i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
}

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

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

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.menu-section {
    margin-bottom: 8px;
}

.menu-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px 12px 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    margin-bottom: 2px;
}

.menu-item i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.menu-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 600;
}

.menu-item .badge {
    margin-left: auto;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 20px;
    line-height: 1.4;
}

.menu-item .badge-primary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.menu-item .badge-danger {
    background: rgba(220, 53, 69, 0.4);
    color: #ffb3bb;
}

.menu-item .badge-warning {
    background: rgba(255, 193, 7, 0.25);
    color: #ffc107;
}

.menu-item .submenu-toggle {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.menu-item[aria-expanded="true"] .submenu-toggle {
    transform: rotate(90deg);
}


.submenu {
    padding-left: 22px;
    margin-bottom: 4px;
}

.submenu .menu-item {
    font-size: 0.825rem;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.5);
}

.submenu .menu-item:hover {
    color: #fff;
}

.submenu .menu-item.active {
    color: #fff;
    background: transparent;
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer .user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.sidebar-footer .user-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-footer .user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sidebar-footer .user-info {
    flex: 1;
    min-width: 0;
}

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

.sidebar-footer .user-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}

.sidebar-footer .user-card .settings-icon {
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.sidebar-footer .user-card:hover .settings-icon {
    color: rgba(255, 255, 255, 0.8);
}

/* Sidebar Collapsed */
.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed .sidebar-search,
.sidebar.collapsed .menu-section-title,
.sidebar.collapsed .menu-item span,
.sidebar.collapsed .menu-item .badge,
.sidebar.collapsed .menu-item .submenu-toggle,
.sidebar.collapsed .submenu,
.sidebar.collapsed .user-info,
.sidebar.collapsed .settings-icon,
.sidebar.collapsed .sidebar-logo .logo-text {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 20px 12px;
}

.sidebar.collapsed .sidebar-logo .logo-icon {
    display: flex;
}

.sidebar.collapsed .sidebar-toggle {
    display: none;
}

.sidebar.collapsed .menu-item {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .menu-item i {
    font-size: 1.25rem;
}

.sidebar.collapsed .sidebar-footer .user-card {
    justify-content: center;
}

/* ============================================
   LAYOUT - MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 28px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.mobile-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-toggle:hover {
    background: var(--bg-hover);
}

.header-search {
    position: relative;
    width: 320px;
}

.header-search input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--text-primary);
    background: var(--bg-input);
    transition: var(--transition);
    font-family: var(--font-family);
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.header-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(38, 43, 97, 0.08);
    width: 380px;
}

.header-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.header-search .search-shortcut {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-body);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-family: var(--font-family);
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.header-icon-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.header-icon-btn .notification-count {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    color: var(--text-white);
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-white);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    margin-left: 8px;
}

.header-user:hover {
    background: var(--bg-hover);
}

.header-user .avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: 700;
    font-size: 0.8rem;
}

.header-user .user-details {
    line-height: 1.3;
}

.header-user .user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.header-user .user-role {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Dropdown Menus */
.dropdown-wrapper {
    position: relative;
}

.dropdown-menu-custom {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 320px;
    z-index: 1050;
    display: none;
    overflow: hidden;
}

.dropdown-menu-custom.show {
    display: block;
    animation: dropdownFade 0.15s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.dropdown-header h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.dropdown-header .badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
}

.dropdown-body {
    max-height: 320px;
    overflow-y: auto;
}

.dropdown-item-custom {
    display: flex;
    gap: 14px;
    padding: 14px 20px;
    transition: var(--transition);
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
}

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

.dropdown-item-custom:hover {
    background: var(--bg-hover);
}

.dropdown-item-custom .item-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.dropdown-item-custom .item-icon.success {
    background: var(--success-light);
    color: var(--success);
}

.dropdown-item-custom .item-icon.warning {
    background: var(--warning-light);
    color: var(--warning);
}

.dropdown-item-custom .item-icon.info {
    background: var(--info-light);
    color: var(--info);
}

.dropdown-item-custom .item-icon.danger {
    background: var(--danger-light);
    color: var(--danger);
}

.dropdown-item-custom .item-content {
    flex: 1;
    min-width: 0;
}

.dropdown-item-custom .item-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.dropdown-item-custom .item-text {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item-custom .item-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.dropdown-footer {
    padding: 12px 20px;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.dropdown-footer a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
}

/* User Dropdown */
.user-dropdown {
    min-width: 220px;
}

.user-dropdown .dropdown-user-info {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.user-dropdown .dropdown-user-info .avatar-lg {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 10px;
}

.user-dropdown .dropdown-user-info .name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.user-dropdown .dropdown-user-info .email {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.user-dropdown .dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition);
}

.user-dropdown .dropdown-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.user-dropdown .dropdown-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.user-dropdown .dropdown-link.danger {
    color: var(--danger);
}

.user-dropdown .dropdown-link.danger:hover {
    background: var(--danger-light);
}

/* ============================================
   PAGE CONTENT
   ============================================ */
.page-content {
    flex: 1;
    min-width: 0;
    padding: 28px;
}

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

.page-header .page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.page-header .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.page-header .breadcrumb a {
    color: var(--text-muted);
}

.page-header .breadcrumb a:hover {
    color: var(--primary);
}

.page-header .breadcrumb .separator {
    font-size: 0.65rem;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow);
}

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

.card-header h5,
.card-header h6 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    background: none;
}

/* ============================================
   STAT CARDS
   ============================================ */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-card .stat-icon.primary {
    background: var(--primary-subtle);
    color: var(--primary);
}

.stat-card .stat-icon.success {
    background: var(--success-light);
    color: var(--success);
}

.stat-card .stat-icon.warning {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-card .stat-icon.info {
    background: var(--info-light);
    color: var(--info);
}

.stat-card .stat-icon.danger {
    background: var(--danger-light);
    color: var(--danger);
}

.stat-card .stat-content {
    flex: 1;
    min-width: 0;
}

.stat-card .stat-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.stat-card .stat-value {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-card .stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 6px;
}

.stat-card .stat-change.up {
    background: #198754;
    color: #fff;
}

.stat-card .stat-change.down {
    background: #dc3545;
    color: #fff;
}

/* ============================================
   WELCOME CARD
   ============================================ */
.welcome-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #4a5296 100%);
    border: none;
    border-radius: var(--radius-lg);
    padding: 32px;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.welcome-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: 10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.welcome-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.welcome-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 20px;
    max-width: 400px;
}

.welcome-card .btn-welcome {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.welcome-card .btn-welcome:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* ============================================
   QUICK ACTIONS
   ============================================ */
.quick-action-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.quick-action-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--primary);
}

.quick-action-card .action-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 14px;
}

.quick-action-card .action-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.quick-action-card .action-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   ACTIVITY LIST
   ============================================ */
.activity-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-item:first-child {
    padding-top: 0;
}

.activity-item .activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.activity-item .activity-icon.primary {
    background: var(--primary-subtle);
    color: var(--primary);
}

.activity-item .activity-icon.success {
    background: var(--success-light);
    color: var(--success);
}

.activity-item .activity-icon.warning {
    background: var(--warning-light);
    color: var(--warning);
}

.activity-item .activity-icon.info {
    background: var(--info-light);
    color: var(--info);
}

.activity-item .activity-icon.danger {
    background: var(--danger-light);
    color: var(--danger);
}

.activity-item .activity-content {
    flex: 1;
    min-width: 0;
}

.activity-item .activity-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.activity-item .activity-text {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.activity-item .activity-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    margin-top: 2px;
}

/* ============================================
   PIPELINE / DEALS
   ============================================ */
.pipeline-stage {
    text-align: center;
    padding: 20px 16px;
    border-radius: var(--radius);
    background: var(--bg-input);
    transition: var(--transition);
}

.pipeline-stage:hover {
    background: var(--primary-subtle);
}

.pipeline-stage .stage-count {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.pipeline-stage .stage-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pipeline-stage .stage-amount {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 8px;
}

.pipeline-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ============================================
   DEAL CARDS
   ============================================ */
.deal-card {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.deal-card:last-child {
    border-bottom: none;
}

.deal-card:hover {
    background: var(--bg-hover);
}

.deal-card .deal-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    color: var(--text-white);
}

.deal-card .deal-info {
    flex: 1;
    min-width: 0;
}

.deal-card .deal-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.deal-card .deal-company {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.deal-card .deal-amount {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
}

.deal-card .deal-stage {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-align: right;
}

/* ============================================
   TABLES
   ============================================ */
.table-wrapper {
    overflow-x: auto;
}

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

.data-table thead th {
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-input);
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    white-space: nowrap;
}

.data-table tbody td {
    padding: 14px 16px;
    font-size: 0.84rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: var(--bg-hover);
}

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

/* ============================================
   BADGES
   ============================================ */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-status.success {
    background: #198754;
    color: #fff;
}

.badge-status.warning {
    background: #ffc107;
    color: #212529;
}

.badge-status.danger {
    background: #dc3545;
    color: #fff;
}

.badge-status.info {
    background: #0d6efd;
    color: #fff;
}

.badge-status.primary {
    background: var(--primary);
    color: #fff;
}

.badge-status.secondary {
    background: #6c757d;
    color: #fff;
}

.badge-status .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
    white-space: nowrap;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.8rem;
}

.page-header-right .btn {
    padding: 7px 14px;
    font-size: 0.8rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(38, 43, 97, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 12px;
}

.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-success {
    background: var(--success);
    color: var(--text-white);
    border-color: var(--success);
}

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

/* ============================================
   TASKS
   ============================================ */
.task-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.task-item .task-check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-item .task-check:hover {
    border-color: var(--primary);
}

.task-item .task-check.completed {
    background: var(--success);
    border-color: var(--success);
    color: var(--text-white);
    font-size: 0.7rem;
}

.task-item .task-info {
    flex: 1;
    min-width: 0;
}

.task-item .task-title {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-primary);
}

.task-item.done .task-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-item .task-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.task-item .task-meta span {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-item .task-priority {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.task-item .task-priority.high {
    background: #dc3545;
}

.task-item .task-priority.medium {
    background: #ffc107;
}

.task-item .task-priority.low {
    background: #198754;
}

/* ============================================
   CHARTS PLACEHOLDER
   ============================================ */
.chart-placeholder {
    width: 100%;
    height: 240px;
    background: var(--bg-input);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Mini bar chart */
.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
}

.mini-chart .bar {
    flex: 1;
    background: var(--primary-subtle);
    border-radius: 3px 3px 0 0;
    min-width: 8px;
    transition: var(--transition);
}

.mini-chart .bar:hover {
    background: var(--primary);
}

/* ============================================
   MOBILE OVERLAY
   ============================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1035;
    backdrop-filter: blur(2px);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .header-search {
        width: 260px;
    }

    .header-search input:focus {
        width: 300px;
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: var(--shadow-xl);
    }

    .sidebar.collapsed {
        width: var(--sidebar-width);
    }

    .main-content {
        margin-left: 0 !important;
    }

    .mobile-toggle {
        display: flex;
    }

    .header-search {
        display: none;
    }

    .page-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .auth-card {
        padding: 36px 28px;
    }

    .page-content {
        padding: 16px;
    }

    .stat-card {
        padding: 18px;
    }

    .stat-card .stat-value {
        font-size: 1.4rem;
    }

    .welcome-card {
        padding: 24px;
    }

    .welcome-card h3 {
        font-size: 1.2rem;
    }

    .header-user .user-details {
        display: none;
    }

    .header-right {
        gap: 2px;
    }

    .page-header {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .auth-card {
        padding: 32px 24px;
        border-radius: var(--radius-lg);
    }

    .auth-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pipeline-arrow {
        display: none;
    }
}

/* ============================================
   CHAT WIDGET
   ============================================ */

/* FAB Button */
.chat-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 1060;
    box-shadow: 0 4px 16px rgba(38, 43, 97, 0.35);
    transition: var(--transition);
}

.chat-fab:hover {
    background: var(--primary-light);
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(38, 43, 97, 0.4);
}

.chat-fab .fab-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: var(--danger);
    color: var(--text-white);
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-white);
}

.chat-fab.active {
    background: var(--text-secondary);
}

.chat-fab.active .bi-chat-dots-fill {
    display: none;
}

.chat-fab.active .bi-x-lg {
    display: inline-block;
}

.chat-fab:not(.active) .bi-x-lg {
    display: none;
}

/* Chat Panel */
.chat-panel {
    position: fixed;
    bottom: 96px;
    right: 28px;
    width: 380px;
    height: 520px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    z-index: 1059;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideUp 0.25s ease;
}

.chat-panel.show {
    display: flex;
}

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

/* Chat Header */
.chat-panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary);
    color: var(--text-white);
}

.chat-panel-header h6 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.chat-panel-header .chat-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-panel-header .chat-header-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.chat-panel-header .chat-header-btn:hover {
    background: rgba(255,255,255,0.25);
}

/* Chat Tabs */
.chat-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-white);
}

.chat-tab {
    flex: 1;
    padding: 11px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    font-family: var(--font-family);
}

.chat-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.chat-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Chat Search */
.chat-search {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}

.chat-search input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.8rem;
    color: var(--text-primary);
    background: var(--bg-input);
    font-family: var(--font-family);
    transition: var(--transition);
}

.chat-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-white);
}

.chat-search {
    position: relative;
}

.chat-search i {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Chat List (Contact / Group list) */
.chat-list {
    flex: 1;
    overflow-y: auto;
}

.chat-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-light);
}

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

.chat-list-item:hover {
    background: var(--bg-hover);
}

.chat-list-item .chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-white);
    flex-shrink: 0;
    position: relative;
}

.chat-list-item .chat-avatar.online::after {
    content: '';
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid var(--bg-white);
}

.chat-list-item .chat-avatar.group {
    border-radius: var(--radius);
}

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

.chat-list-item .chat-item-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-list-item .chat-item-last {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-list-item .chat-item-meta {
    text-align: right;
    flex-shrink: 0;
}

.chat-list-item .chat-item-time {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.chat-list-item .chat-item-unread {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--primary);
    color: var(--text-white);
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 20px;
    margin-top: 4px;
}

/* Chat Conversation View */
.chat-conversation {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.chat-conversation.show {
    display: flex;
}

.chat-conv-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-white);
}

.chat-conv-header .chat-back-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.chat-conv-header .chat-back-btn:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.chat-conv-header .conv-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-white);
    flex-shrink: 0;
}

.chat-conv-header .conv-avatar.group {
    border-radius: var(--radius-sm);
}

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

.chat-conv-header .conv-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-conv-header .conv-status {
    font-size: 0.72rem;
    color: var(--success);
}

/* Chat Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-body);
}

.chat-msg {
    display: flex;
    gap: 8px;
    max-width: 85%;
}

.chat-msg.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-msg .msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.6rem;
    color: var(--text-white);
    flex-shrink: 0;
    margin-top: 2px;
}

.chat-msg .msg-content {
    display: flex;
    flex-direction: column;
}

.chat-msg .msg-sender {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.chat-msg.sent .msg-sender {
    display: none;
}

.chat-msg .msg-bubble {
    padding: 10px 14px;
    border-radius: 12px 12px 12px 4px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    word-wrap: break-word;
}

.chat-msg.sent .msg-bubble {
    background: var(--primary);
    color: var(--text-white);
    border-radius: 12px 12px 4px 12px;
}

.chat-msg .msg-bubble .mention {
    font-weight: 700;
    color: var(--primary-light);
}

.chat-msg.sent .msg-bubble .mention {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.chat-msg .msg-bubble .msg-image {
    max-width: 100%;
    border-radius: var(--radius);
    margin-top: 6px;
    cursor: pointer;
}

.chat-msg .msg-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
    align-self: flex-end;
}

.chat-msg.sent .msg-time {
    align-self: flex-start;
}

/* Chat Date Separator */
.chat-date-sep {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 4px 14px;
    background: var(--border-light);
    border-radius: 20px;
    align-self: center;
    font-weight: 500;
}

/* Typing indicator */
.chat-typing {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 0 16px 8px;
    display: none;
}

.chat-typing.show {
    display: block;
}

/* Chat Input Area */
.chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-white);
}

/* Mention dropdown */
.chat-mention-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 160px;
    overflow-y: auto;
    display: none;
    z-index: 10;
    margin-bottom: 4px;
}

.chat-mention-dropdown.show {
    display: block;
}

.chat-mention-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
}

.chat-mention-item:hover,
.chat-mention-item.selected {
    background: var(--primary-subtle);
    color: var(--primary);
}

.chat-mention-item .mention-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.6rem;
    color: var(--text-white);
    flex-shrink: 0;
}

.chat-mention-item .mention-name {
    font-weight: 600;
}

/* Image preview */
.chat-image-preview {
    display: none;
    padding: 8px 0;
    position: relative;
}

.chat-image-preview.show {
    display: block;
}

.chat-image-preview img {
    max-height: 80px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.chat-image-preview .remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--danger);
    color: var(--text-white);
    border: none;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    position: relative;
}

.chat-input-wrapper .chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.82rem;
    color: var(--text-primary);
    background: var(--bg-input);
    font-family: var(--font-family);
    resize: none;
    max-height: 80px;
    min-height: 40px;
    line-height: 1.4;
    transition: var(--transition);
}

.chat-input-wrapper .chat-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-white);
}

.chat-input-wrapper .chat-input::placeholder {
    color: var(--text-muted);
}

.chat-input-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.chat-input-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.chat-input-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.chat-send-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--primary);
    color: var(--text-white);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

/* Chat Views toggle */
.chat-list-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.chat-list-view.hidden {
    display: none;
}

/* Responsive chat */
@media (max-width: 576px) {
    .chat-panel {
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .chat-fab {
        bottom: 20px;
        right: 20px;
    }
}

/* ============================================
   CUSTOM TABS (Customer Detail/Form)
   ============================================ */

/* Kart sarmalayıcı — sekme çubuğunu ve içeriği birleştirir */
.tab-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.nav-tabs-custom {
    display: flex;
    gap: 4px;
    padding: 10px 16px 0;
    background: #eef1f6;
    border-bottom: 1px solid var(--border-light);
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nav-tabs-custom::-webkit-scrollbar {
    display: none;
}

.nav-tabs-custom .nav-tab {
    padding: 9px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-light);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    margin-bottom: -1px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    font-family: var(--font-family);
}

.nav-tabs-custom .nav-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.65);
    border-color: var(--border);
}

.nav-tabs-custom .nav-tab.active {
    color: var(--primary);
    background: var(--bg-card);
    border-color: var(--border-light);
    border-bottom-color: var(--bg-card);
}

.tab-pane {
    display: none;
    padding: 16px;
}

.tab-pane.active {
    display: block;
}

/* ============================================
   CUSTOMER PROFILE CARD
   ============================================ */
.profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    flex-wrap: wrap;
}

.profile-card .profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-white);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    flex-shrink: 0;
}

.profile-card .profile-info {
    flex: 1;
    min-width: 200px;
}

.profile-card .profile-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-card .profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.profile-card .profile-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-card .profile-badges {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.profile-card .profile-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ============================================
   DETAIL FIELDS
   ============================================ */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.detail-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-field .field-label {
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.detail-field .field-value {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
}

.detail-field .field-value.empty {
    color: var(--text-muted);
    font-style: italic;
}

.detail-section {
    margin-bottom: 28px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section-title i {
    color: var(--primary);
}

/* ============================================
   FORM STYLES (Customer Form)
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-control-custom {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--text-primary);
    background: var(--bg-input);
    font-family: var(--font-family);
    transition: var(--transition);
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(38, 43, 97, 0.08);
}

.form-control-custom::placeholder {
    color: var(--text-muted);
}

select.form-control-custom {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

textarea.form-control-custom {
    resize: vertical;
    min-height: 80px;
}

.form-section {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.form-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title i {
    color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

/* Repeatable rows */
.repeatable-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius);
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
}

.repeatable-row .row-fields {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.repeatable-row .row-remove {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--danger-light);
    color: var(--danger);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 24px;
    transition: var(--transition);
}

.repeatable-row .row-remove:hover {
    background: var(--danger);
    color: var(--text-white);
}

/* Upload zone */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-input);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-subtle);
    color: var(--primary);
}

.upload-zone i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.upload-zone .upload-text {
    font-size: 0.85rem;
    font-weight: 500;
}

.upload-zone .upload-hint {
    font-size: 0.75rem;
    margin-top: 4px;
}

/* ============================================
   FILTER CARD
   ============================================ */
.filter-card {
    padding: 20px 24px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.filter-row .filter-group {
    flex: 1;
    min-width: 160px;
}

.filter-row .filter-group label {
    display: block;
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.pagination-info {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pagination-nav {
    display: flex;
    gap: 4px;
}

.pagination-nav .page-btn {
    min-width: 36px;
    height: 36px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-secondary);
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    transition: var(--transition);
    font-family: var(--font-family);
}

.pagination-nav .page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-nav .page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
}

.pagination-nav .page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   TABLE ACTIONS
   ============================================ */
.table-actions {
    display: flex;
    gap: 4px;
}

.table-actions .action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.table-actions .action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-subtle);
}

.table-actions .action-btn.danger:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-light);
}

/* Customer avatar in table */
.customer-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-cell .cell-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--text-white);
    flex-shrink: 0;
}

.customer-cell .cell-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.84rem;
}

.customer-cell .cell-email {
    font-size: 0.73rem;
    color: var(--text-muted);
}

/* ============================================
   GROUP CHAT MODAL
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    z-index: 1070;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 420px;
    max-width: 95%;
    max-height: 85vh;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideUp 0.2s ease;
}

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

.modal-box-header h6 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--danger-light);
    color: var(--danger);
}

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

.modal-box-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.member-select-list {
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-top: 16px;
}

.member-select-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-light);
}

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

.member-select-item:hover {
    background: var(--bg-hover);
}

.member-select-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--primary);
}

.member-select-item .member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--text-white);
    flex-shrink: 0;
}

.member-select-item .member-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   ROW HEIGHT MATCHING
   ============================================ */
.row-eq-height {
    display: flex;
    flex-wrap: wrap;
}

.row-eq-height > [class*="col-"] {
    display: flex;
}

.row-eq-height > [class*="col-"] > .card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.row-eq-height > [class*="col-"] > .card > .card-body {
    flex: 1;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }

.bg-primary-subtle { background: var(--primary-subtle) !important; }
.bg-success-light { background: var(--success-light) !important; }
.bg-warning-light { background: var(--warning-light) !important; }
.bg-danger-light { background: var(--danger-light) !important; }
.bg-info-light { background: var(--info-light) !important; }

.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.rounded-lg { border-radius: var(--radius-lg) !important; }

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

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

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

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

/* Selection */
::selection {
    background: rgba(38, 43, 97, 0.15);
    color: var(--text-primary);
}

/* ============================================
   CUSTOMER LIST — TOOLBAR & REDESIGNED STATS
   ============================================ */

/* Toolbar */
.list-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

/* Masaüstünde bu div'ler görünmez kap gibi davranır —
   çocukları doğrudan toolbar flex'e katılır */
.list-toolbar-row  { display: contents; }
.list-filter-panel { display: contents; }

/* Toggle butonu sadece mobilde gösterilir */
.filter-toggle-btn { display: none; }
.filter-caret      { transition: transform 0.2s ease; }

.list-search {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 420px;
}

.list-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.list-search input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-hover);
    font-size: 0.875rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
    font-family: var(--font-family);
}

.list-search input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(38, 43, 97, 0.08);
}

.list-search input::placeholder {
    color: var(--text-muted);
}

.list-filter-chips {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
}

.filter-chip-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-right: 2px;
    white-space: nowrap;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    border: 1.5px solid var(--border-light);
    border-radius: 100px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: var(--font-family);
    line-height: 1;
}

.filter-chip span {
    background: var(--bg-hover);
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.filter-chip:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: var(--primary-subtle);
}

.filter-chip.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.filter-chip.active span {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

/* Customer Stats Row */
.customer-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.customer-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px 20px 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.customer-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.customer-stat-card:nth-child(1)::before { background: var(--primary); }
.customer-stat-card:nth-child(2)::before { background: var(--success); }
.customer-stat-card:nth-child(3)::before { background: var(--info); }
.customer-stat-card:nth-child(4)::before { background: var(--warning); }

.customer-stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.csc-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.csc-icon.primary { background: var(--primary-subtle); color: var(--primary); }
.csc-icon.success { background: var(--success-light); color: var(--success); }
.csc-icon.info    { background: var(--info-light);    color: var(--info);    }
.csc-icon.warning { background: var(--warning-light); color: var(--warning); }
.csc-icon.danger  { background: var(--danger-light);  color: var(--danger);  }

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

.csc-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.csc-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.csc-trend {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 1px;
}

.csc-trend i { font-size: 0.9rem; }
.csc-trend.up   { background: #198754; color: #fff; }
.csc-trend.down { background: #dc3545; color: #fff; }

@media (max-width: 991px) {
    .customer-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .customer-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .customer-stat-card {
        padding: 14px 14px 14px 18px;
        gap: 10px;
    }

    .csc-value { font-size: 1.45rem; }
    .csc-icon  { width: 38px; height: 38px; font-size: 1rem; }
    .csc-trend { display: none; }
}

@media (max-width: 479px) {
    .customer-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .customer-stat-card {
        padding: 12px 10px 12px 14px;
    }

    .csc-value { font-size: 1.25rem; }
    .csc-label { font-size: 0.72rem; }
    .csc-icon  { width: 32px; height: 32px; font-size: 0.85rem; }
}

@media (max-width: 575px) {
    .list-search { max-width: 100%; }
}

/* ============================================
   CUSTOMER DETAIL — HERO CARD & CONTACT STRIP
   ============================================ */

.customer-hero-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.customer-hero-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.customer-hero-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: 180px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.hero-body {
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.hero-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 220px;
}

.hero-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: 3px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.hero-name {
    font-size: 1.45rem;
    font-weight: 700;
    color: white;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.hero-title {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 12px;
}

.hero-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.hero-badge {
    padding: 3px 11px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-badge.badge-green {
    background: rgba(16,185,129,0.22);
    color: #a7f3d0;
    border-color: rgba(16,185,129,0.3);
}

.hero-badge.badge-blue {
    background: rgba(59,130,246,0.22);
    color: #bfdbfe;
    border-color: rgba(59,130,246,0.3);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    border-left: 1px solid rgba(255,255,255,0.12);
    border-right: 1px solid rgba(255,255,255,0.12);
    padding: 0 4px;
    margin: 0 4px;
}

.hero-stat {
    padding: 8px 24px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.hero-stat:last-child {
    border-right: none;
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Hero Action Buttons */
.hero-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1.5px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.88);
    font-family: var(--font-family);
}

.btn-hero:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.4);
    color: white;
}

.btn-hero i { font-size: 0.9rem; }

/* Contact Strip */
.contact-strip {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 0 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.contact-strip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 18px;
    border-right: 1px solid var(--border-light);
    font-size: 0.82rem;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: var(--transition);
}

.contact-strip-item:last-child { border-right: none; }

.contact-strip-item i {
    font-size: 0.95rem;
    color: var(--primary);
    opacity: 0.75;
    flex-shrink: 0;
}

.contact-strip-item span {
    color: var(--text-primary);
    font-weight: 500;
}

/* Tab with icons */
.nav-tabs-custom .nav-tab i {
    font-size: 0.85rem;
    margin-right: 6px;
    opacity: 0.75;
}

.nav-tabs-custom .nav-tab.active i {
    opacity: 1;
}

/* Improved detail-field */
.detail-field {
    background: var(--bg-hover);
    border-radius: var(--radius);
    padding: 12px 14px;
    transition: var(--transition);
}

.detail-field:hover {
    background: var(--primary-subtle);
}

.field-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.field-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.field-value.empty {
    color: var(--text-muted);
    font-weight: 400;
}

/* Detail section header */
.detail-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-subtle);
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section-title i {
    font-size: 1rem;
    opacity: 0.8;
}

@media (max-width: 991px) {
    .hero-body { gap: 20px; }
    .hero-stats { border: none; padding: 16px 0 0; margin: 0; width: 100%; }
    .hero-stat { padding: 4px 16px; }
    .hero-actions { width: 100%; }
}

@media (max-width: 639px) {
    /* ── Hero Card ── */
    .customer-hero-card { padding: 18px 16px; }
    .hero-body { flex-direction: column; align-items: stretch; gap: 14px; }
    .hero-left { gap: 12px; min-width: 0; flex: none; }
    .hero-avatar { width: 56px; height: 56px; font-size: 1.1rem; }
    .hero-name { font-size: 1.1rem; }
    .hero-title { font-size: 0.78rem; margin-bottom: 8px; }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        width: auto;
        padding: 0;
        margin: 0;
        border-top: 1px solid rgba(255,255,255,0.15);
        padding-top: 14px;
    }
    .hero-stat { padding: 6px 8px; text-align: center; }
    .hero-stat-value { font-size: 1.05rem; margin-bottom: 3px; }
    .hero-stat-label { font-size: 0.6rem; white-space: normal; }

    .hero-actions { display: grid; grid-template-columns: 1fr 1fr; width: auto; gap: 8px; }
    .btn-hero { justify-content: center; font-size: 0.77rem; padding: 7px 10px; gap: 5px; }
    .btn-hero i { font-size: 0.85rem; }

    /* ── Contact Strip ── */
    .contact-strip { flex-direction: column; padding: 0; }
    .contact-strip-item { border-right: none; border-bottom: 1px solid var(--border-light); white-space: normal; padding: 10px 16px; }
    .contact-strip-item:last-child { border-bottom: none; }

    /* ── Tab Navigation — mobilde 3'lü grid ── */
    .nav-tabs-custom {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        padding: 8px;
        overflow-x: hidden;
        border-bottom: 1px solid var(--border-light);
    }
    .nav-tabs-custom .nav-tab {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 8px 4px;
        font-size: 0.68rem;
        margin-bottom: 0;
        border: 1px solid var(--border-light);
        border-radius: 8px;
        background: var(--bg-white);
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }
    .nav-tabs-custom .nav-tab i {
        display: block;
        font-size: 1rem;
        margin-right: 0;
        opacity: 0.7;
    }
    .nav-tabs-custom .nav-tab:hover {
        background: var(--primary-subtle);
        color: var(--primary);
        border-color: var(--primary-subtle);
    }
    .nav-tabs-custom .nav-tab.active {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
        border-bottom-color: var(--primary);
    }
    .nav-tabs-custom .nav-tab.active i { opacity: 1; }

    /* ── Tab Pane & Sections ── */
    .tab-pane { padding: 12px; }
    .tab-section-body { padding: 14px; }
    .tab-section-header { padding: 12px 14px; gap: 10px; }
    .tab-section-header .flex-grow-1 { min-width: 0; overflow: hidden; }

    /* ── Detail Grid ── */
    .detail-grid { gap: 10px; }

    /* ── Finansal Grid ── */
    .fin-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .fin-field { border-right: none !important; padding-right: 0; }

    /* ── Yetki Grid ── */
    .perm-grid { grid-template-columns: 1fr; }

    /* ── Tab içi tablolar → kart modundan çıkar, yatay kaydırmalı */
    .tab-section-card { max-width: 100%; overflow: hidden; }
    .tab-section-card .table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    /* .mobile-cards sınıfı olmayan tablolar tablo olarak kalır */
    .tab-section-card .data-table:not(.mobile-cards) { display: table !important; }
    .tab-section-card .data-table:not(.mobile-cards) thead { display: table-header-group !important; }
    .tab-section-card .data-table:not(.mobile-cards) tbody { display: table-row-group !important; }
    .tab-section-card .data-table:not(.mobile-cards) tbody tr {
        display: table-row !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin-bottom: 0 !important;
        overflow: visible !important;
    }
    .tab-section-card .data-table:not(.mobile-cards) tbody tr:hover { background: var(--bg-hover) !important; }
    .tab-section-card .data-table:not(.mobile-cards) tbody td:first-child {
        display: table-cell !important;
        background: transparent !important;
        padding: 14px 16px !important;
    }
    .tab-section-card .data-table:not(.mobile-cards) tbody td:last-child {
        display: table-cell !important;
        background: transparent !important;
        border-top: none !important;
        padding: 14px 16px !important;
    }

    /* ── .mobile-cards → kart moduna geç */
    .tab-section-card .data-table.mobile-cards { display: block !important; }
    .tab-section-card .data-table.mobile-cards thead { display: none !important; }
    .tab-section-card .data-table.mobile-cards,
    .tab-section-card .data-table.mobile-cards tbody { display: block !important; }
    .tab-section-card .data-table.mobile-cards tbody tr {
        display: block !important;
        background: var(--bg-card) !important;
        border: 1px solid var(--border-light) !important;
        border-radius: var(--radius-lg) !important;
        margin-bottom: 10px !important;
        box-shadow: var(--shadow-sm) !important;
        overflow: hidden !important;
    }
    .tab-section-card .data-table.mobile-cards tbody tr:hover {
        background: var(--bg-card) !important;
        box-shadow: var(--shadow-md) !important;
    }
    .tab-section-card .data-table.mobile-cards tbody td:first-child {
        display: block !important;
        background: var(--bg-hover) !important;
        border-bottom: 1px solid var(--border-light) !important;
        padding: 12px 16px !important;
        font-weight: 600 !important;
    }
    .tab-section-card .data-table.mobile-cards tbody td[data-label] {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 16px !important;
        border-bottom: 1px solid var(--border-light) !important;
        font-size: 0.82rem !important;
        gap: 8px !important;
        min-height: 38px !important;
    }
    .tab-section-card .data-table.mobile-cards tbody td[data-label]::before {
        content: attr(data-label);
        font-size: 0.67rem !important;
        font-weight: 700 !important;
        color: var(--text-muted) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        flex-shrink: 0 !important;
        min-width: 70px !important;
        white-space: nowrap !important;
    }
    .tab-section-card .data-table.mobile-cards tbody td:last-child {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        padding: 10px 16px !important;
        background: var(--bg-hover) !important;
        border-top: 1px solid var(--border-light) !important;
        border-bottom: none !important;
    }
    .tab-section-card .data-table.mobile-cards tbody td:last-child::before { display: none !important; }
}

/* ============================================
   TAB SECTION CARDS
   ============================================ */

.tab-section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.tab-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
}

.tsh-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.tsh-icon.primary { background: var(--primary-subtle); color: var(--primary); }
.tsh-icon.success { background: var(--success-light);  color: var(--success); }
.tsh-icon.info    { background: var(--info-light);     color: var(--info);    }
.tsh-icon.warning { background: var(--warning-light);  color: var(--warning); }
.tsh-icon.danger  { background: var(--danger-light);   color: var(--danger);  }
.tsh-icon.purple  { background: #f3f0ff; color: #7c3aed; }

.tsh-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px;
}

.tsh-desc {
    font-size: 0.73rem;
    color: var(--text-muted);
    margin: 0;
}

.tab-section-body {
    padding: 20px;
}

/* ============================================
   FİNANSAL ÖZET GRID
   ============================================ */
.fin-grid {
    grid-template-columns: repeat(4, 1fr) !important;
}

.fin-field {
    border-right: 1px solid var(--border-light);
    padding-right: 20px;
}

.fin-field:last-child {
    border-right: none;
}

.fin-total {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #198754 !important;
}

/* ============================================
   BELGE DOSYA KUTUSU
   ============================================ */
.doc-file-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--bg-light);
    text-align: center;
    transition: var(--transition);
}

.doc-file-box:hover {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.doc-file-box > i {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.65;
}

.doc-file-name {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    word-break: break-all;
}

.doc-file-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.doc-act-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 5px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-family);
    transition: var(--transition);
    white-space: nowrap;
}

.doc-act-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-subtle);
}

/* ============================================
   YETKİ GRID
   ============================================ */
.perm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.perm-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-card);
    gap: 12px;
    transition: var(--transition);
}

.perm-item:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

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

.perm-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.perm-name {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-primary);
}

.perm-desc {
    font-size: 0.73rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Note box */
.note-box {
    display: flex;
    gap: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 0.85rem;
    color: #78350f;
    line-height: 1.6;
}

.note-box i {
    color: #f59e0b;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Contact field with action buttons */
.field-value-contact {
    display: flex;
    align-items: center;
    gap: 6px;
}

.field-action-btn {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    text-decoration: none;
}

.field-action-btn:hover {
    background: var(--primary-subtle);
    border-color: var(--primary);
    color: var(--primary);
}

/* Social media grid */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.social-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-hover);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.social-field:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.social-field-name {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2px;
}

.social-field-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Passport card */
.passport-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 4px;
}

.passport-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}

.pp-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.55);
    font-weight: 600;
    margin-bottom: 3px;
}

.pp-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.06em;
}

.pp-row {
    display: flex;
    gap: 0;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.pp-cell {
    flex: 1;
    padding-right: 16px;
    border-right: 1px solid rgba(255,255,255,0.12);
    margin-right: 16px;
}

.pp-cell:last-child {
    border-right: none;
    margin-right: 0;
}

.pp-cell .pp-value {
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

/* Insurance status card */
.insurance-status-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.insurance-status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    background: var(--bg-hover);
}

.insurance-status-item .isi-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.isi-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 3px;
}

.isi-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

@media (max-width: 767px) {
    .social-grid { grid-template-columns: repeat(2, 1fr); }
    .insurance-status-row { grid-template-columns: 1fr; }
    .pp-row { flex-wrap: wrap; gap: 12px; }
    .pp-cell { border: none; margin: 0; padding: 0; }
}

/* Related Records — List Style */
.related-list {
    padding: 4px 0;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

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

.related-item:hover { background: var(--bg-hover); }

.related-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

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

.related-item-title {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-item-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.related-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.related-item-amount {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================
   Form: Dosya Yükleme Etiketi
   ============================================ */
.doc-upload-label-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 16px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-input);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    font-family: var(--font-family);
    width: 100%;
}

.doc-upload-label-btn:hover {
    border-color: var(--primary);
    background: var(--primary-subtle);
    color: var(--primary);
}

.doc-upload-label-btn > i {
    font-size: 1.6rem;
    opacity: 0.7;
}

.doc-upload-label-btn > span {
    font-size: 0.83rem;
    font-weight: 600;
}

.doc-upload-label-btn > small {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ============================================
   Yetkiler: Checkbox Permisyon Kartları
   ============================================ */
.perm-item-check {
    cursor: pointer;
}

.perm-item-check:hover {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.perm-toggle {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

/* ============================================
   Mark Up: Tür Seçici
   ============================================ */
.markup-type-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.markup-type-option {
    flex: 1;
    min-width: 200px;
    cursor: pointer;
}

.markup-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.markup-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-card);
    text-align: center;
    transition: var(--transition);
}

.markup-type-card > i {
    font-size: 1.6rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.markup-type-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.markup-type-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.markup-type-option input[type="radio"]:checked + .markup-type-card {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.markup-type-option input[type="radio"]:checked + .markup-type-card > i {
    color: var(--primary);
}

/* ============================================
   Mark Up: Hizmet Oranı Alanları
   ============================================ */
.markup-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.markup-input-wrap .form-control-custom {
    padding-right: 42px;
}

.markup-suffix {
    position: absolute;
    right: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    pointer-events: none;
    user-select: none;
}

.markup-service-icon {
    margin-right: 5px;
    opacity: 0.65;
    font-size: 0.85em;
}

/* ============================================
   Şirketler Listesi: Özel Stiller
   ============================================ */

/* Filtre Select Grubu */
.list-filters {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    height: 38px;
    padding: 0 32px 0 12px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-family);
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%2394a3b8' d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(38, 43, 97, 0.08);
}

/* Şirket Kodu */
.company-code {
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--text-muted);
    background: var(--bg-hover);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    letter-spacing: 0.03em;
}

/* İlgili Kişi Rolü */
.cell-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Kare Avatar (Şirket için) */
.cell-avatar-square {
    border-radius: 8px !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
}

/* Öncelik Badge */
.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.priority-badge i { font-size: 0.7rem; }

.priority-badge.high   { background: #dc3545; color: #fff; }
.priority-badge.medium { background: #ffc107; color: #212529; }
.priority-badge.low    { background: #198754; color: #fff; }

/* Borç Bilgisi */
.debt-amount {
    font-size: 0.8rem;
    font-weight: 700;
}

.debt-amount.overdue { color: #dc3545; }
.debt-amount.neutral { color: var(--text-muted); }

/* ============================================
   Şirket Detay: Üst Kart
   ============================================ */
.company-hero {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px 28px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.company-hero-logo {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.company-hero-body {
    flex: 1;
    min-width: 0;
}

.company-hero-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 8px;
}

.company-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.company-hero-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Hızlı Finansal Bilgiler */
.company-quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
}

.cqs-item {
    padding: 16px 20px;
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cqs-item:last-child { border-right: none; }

.cqs-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cqs-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.cqs-value.danger  { color: var(--danger); }
.cqs-value.success { color: var(--success); }
.cqs-value.warning { color: var(--warning); }

/* Detay Satırı (label + value) */
.detail-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detail-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.detail-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.detail-value.muted { color: var(--text-muted); font-style: italic; }

/* Finansal Özet Grid */
.fin-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 4px;
}

.fsg-item {
    padding: 14px 16px;
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fsg-item:last-child { border-right: none; }

.fsg-item:nth-child(n+5) { border-top: 1px solid var(--border-light); }

.fsg-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fsg-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.fsg-value.highlight { color: #198754; font-size: 1.1rem; }

/* Takım Üyesi Kartı */
.team-member-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-card);
    transition: var(--transition);
}

.team-member-item:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.tm-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

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

.tm-name {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tm-role {
    font-size: 0.73rem;
    color: var(--text-muted);
    margin-top: 1px;
}

/* Vade Özeti */
.payment-summary-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.psb-item {
    padding: 16px 18px;
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.psb-item:last-child { border-right: none; }

.psb-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.psb-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.psb-value.danger  { color: var(--danger); }
.psb-value.success { color: var(--success); }

@media (max-width: 991px) {
    .company-quick-stats  { grid-template-columns: repeat(2, 1fr); }
    .cqs-item:nth-child(2n)  { border-right: none; }
    .cqs-item:nth-child(n+3) { border-top: 1px solid var(--border-light); }

    .fin-summary-grid     { grid-template-columns: repeat(2, 1fr); }
    .fsg-item:nth-child(2n)  { border-right: none; }
    .fsg-item:nth-child(n+3) { border-top: 1px solid var(--border-light); }

    .payment-summary-bar  { grid-template-columns: repeat(2, 1fr); }
    .psb-item:nth-child(2n)  { border-right: none; }
    .psb-item:nth-child(n+3) { border-top: 1px solid var(--border-light); }
}

@media (max-width: 767px) {
    .company-hero         { flex-wrap: wrap; }
    .company-hero-actions { width: 100%; justify-content: flex-start; }
    .company-quick-stats  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575px) {
    .company-quick-stats  { grid-template-columns: 1fr; }
    .cqs-item             { border-right: none; }
    .cqs-item:nth-child(n+2) { border-top: 1px solid var(--border-light); }

    .fin-summary-grid     { grid-template-columns: 1fr; }
    .fsg-item             { border-right: none; }
    .fsg-item:nth-child(n+2) { border-top: 1px solid var(--border-light); }

    .payment-summary-bar  { grid-template-columns: 1fr; }
    .psb-item             { border-right: none; }
    .psb-item:nth-child(n+2) { border-top: 1px solid var(--border-light); }

    .form-row > [style*="grid-column"] { grid-column: 1 / -1 !important; }
}

/* ============================================
   Şirket hücresi: kod satırı taşmasın
   ============================================ */
.cell-email .company-code {
    display: inline-block;
    vertical-align: middle;
}

/* ============================================
   Liste Sayfası — Tablet (640-991px): Sütun Gizleme
   ============================================ */
@media (min-width: 640px) and (max-width: 991px) {
    /* Müşteri tablosu: Şirket, Tür, Kayıt Tarihi gizle */
    #customerTable th:nth-child(3),
    #customerTable td:nth-child(3),
    #customerTable th:nth-child(4),
    #customerTable td:nth-child(4),
    #customerTable th:nth-child(6),
    #customerTable td:nth-child(6) {
        display: none;
    }

    /* Şirket tablosu: Sektör, Tür, Borç gizle */
    #companyTable th:nth-child(3),
    #companyTable td:nth-child(3),
    #companyTable th:nth-child(4),
    #companyTable td:nth-child(4),
    #companyTable th:nth-child(8),
    #companyTable td:nth-child(8) {
        display: none;
    }

    .list-filters {
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* ============================================
   Liste Sayfası — Mobil (<640px): Tablo → Kart
   ============================================ */
@media (max-width: 639px) {

    /* Tablo başlığını gizle */
    .data-table thead {
        display: none;
    }

    /* Tablo ve tbody blok hale gelsin */
    .data-table,
    .data-table tbody {
        display: block;
    }

    /* Her satır = kart */
    .data-table tbody tr {
        display: block;
        background: var(--bg-card);
        border: 1px solid var(--border-light);
        border-radius: var(--radius-lg);
        margin-bottom: 10px;
        box-shadow: var(--shadow-sm);
        overflow: hidden;
        transition: box-shadow 0.15s;
    }

    .data-table tbody tr:hover {
        background: var(--bg-card);
        box-shadow: var(--shadow-md);
    }

    /* İlk hücre = kart başlığı (avatar + ad) */
    .data-table tbody td:first-child {
        display: block;
        padding: 14px 16px 12px;
        background: var(--bg-hover);
        border-bottom: 1px solid var(--border-light);
    }

    /* data-label olan hücreler = etiket - değer satırı */
    .data-table tbody td[data-label] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 16px;
        border-bottom: 1px solid var(--border-light);
        font-size: 0.82rem;
        gap: 8px;
        min-height: 38px;
    }

    .data-table tbody td[data-label]::before {
        content: attr(data-label);
        font-size: 0.67rem;
        font-weight: 700;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        flex-shrink: 0;
        min-width: 80px;
        white-space: nowrap;
    }

    /* Son hücre = kart footer (işlemler) */
    .data-table tbody td:last-child {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 10px 16px;
        background: var(--bg-hover);
        border-top: 1px solid var(--border-light);
        border-bottom: none;
    }

    /* Son hücrede label gösterme */
    .data-table tbody td:last-child::before {
        display: none;
    }

    /* Kart modunda overflow kapama */
    .card .table-responsive {
        overflow-x: visible;
        padding: 12px 16px 4px;
    }

    /* Son satırın alt border kaldırılmasın (kart modunda gerek yok) */
    .data-table tbody tr:last-child td {
        border-bottom: 1px solid var(--border-light);
    }

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

    /* ---- Toolbar ---- */
    .list-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
    }

    /* Arama + toggle buton satırı */
    .list-toolbar-row {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
    }

    .list-search {
        flex: 1;
        min-width: 0;
        max-width: none;
        width: auto;
    }

    /* Filtre toggle butonu */
    .filter-toggle-btn {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 8px 13px;
        border: 1.5px solid var(--border-color);
        border-radius: var(--radius);
        background: var(--bg-hover);
        color: var(--text-secondary);
        font-size: 0.8rem;
        font-weight: 600;
        white-space: nowrap;
        cursor: pointer;
        transition: var(--transition);
        font-family: var(--font-family);
        flex-shrink: 0;
    }

    .filter-toggle-btn:hover,
    .filter-toggle-btn.open {
        border-color: var(--primary);
        background: var(--primary-subtle);
        color: var(--primary);
    }

    .filter-toggle-btn.open .filter-caret {
        transform: rotate(180deg);
    }

    /* ---- Açılır filtre paneli ---- */
    .list-filter-panel {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.28s ease;
        border-top: 1px solid transparent;
        transition: max-height 0.28s ease, border-top-color 0.28s ease;
    }

    .list-filter-panel.open {
        max-height: 280px;
        border-top-color: var(--border-light);
    }

    /* Chip filtreleri panel içinde */
    .list-filter-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-left: 0;
        padding: 12px 14px 14px;
    }

    .filter-chip-label { display: none; }

    .filter-chip {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    /* Select filtreleri panel içinde — 2 sütun */
    .list-filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 12px 14px 14px;
    }

    .list-filters .filter-select:last-child {
        grid-column: 1 / -1;
    }

    .filter-select {
        width: 100%;
        height: 36px;
    }

    /* Page header — mobilde alt alta */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 16px;
    }

    .page-header-right {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .page-header-right .btn {
        font-size: 0.78rem;
        padding: 7px 12px;
    }

    .page-title {
        font-size: 1.15rem;
    }
}

/* ============================================
   Mobil — Pagination & Card Footer
   ============================================ */
@media (max-width: 639px) {

    /* Card-footer'ın kendi padding'ini sıfırla;
       pagination-wrapper zaten kendi padding'ini veriyor */
    .card-footer {
        padding: 0;
    }

    /* Pagination: dikey düzen + ortalama */
    .pagination-wrapper {
        flex-direction: column;
        align-items: center;
        padding: 12px 16px;
        gap: 8px;
    }

    .pagination-info {
        font-size: 0.75rem;
    }

    /* Pagination butonları sarılsın */
    .pagination-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 3px;
    }

    .pagination-nav .page-btn {
        min-width: 30px;
        height: 30px;
        font-size: 0.75rem;
        padding: 0 7px;
    }
}

/* ============================================
   Şirket Detay Hero — Küçük ekran
   ============================================ */
@media (max-width: 480px) {
    .company-hero-actions .btn .btn-label {
        display: none;
    }

    .company-hero-actions .btn {
        padding: 7px 10px;
        min-width: unset;
    }
}

/* ============================================
   UÇAK BİLETİ — Rota Gösterimi
   ============================================ */
.flight-route-card {
    background: linear-gradient(135deg, var(--primary) 0%, #3b41a0 100%);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    position: relative;
    overflow: hidden;
}
.flight-route-card::before {
    content: '';
    position: absolute;
    top: -60px; right: -40px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}
.frc-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}
.frc-airport { text-align: center; min-width: 72px; }
.frc-code { font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1; }
.frc-city { font-size: 0.7rem; color: rgba(255,255,255,0.6); margin-top: 4px; }
.frc-time { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.85); margin-top: 3px; }
.frc-track { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.frc-flight-info { font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.6); letter-spacing: 0.06em; text-transform: uppercase; }
.frc-line { display: flex; align-items: center; width: 100%; gap: 4px; }
.frc-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); border: 2px solid rgba(255,255,255,0.8); flex-shrink: 0; }
.frc-bar { flex: 1; height: 1px; background: rgba(255,255,255,0.3); }
.frc-plane-icon { color: rgba(255,255,255,0.9); font-size: 1.1rem; flex-shrink: 0; }
.frc-duration { font-size: 0.69rem; color: rgba(255,255,255,0.5); }

/* ============================================
   BİLET ÖZET BANTI
   ============================================ */
.ticket-summary-bar {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-light);
}
.tsb-item {
    flex: 1;
    min-width: 110px;
    padding: 14px 20px;
    border-right: 1px solid var(--border-light);
}
.tsb-item:last-child { border-right: none; }
.tsb-label { font-size: 0.67rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.tsb-value { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }
.tsb-value.amount { font-size: 1.1rem; color: var(--success); }

/* ============================================
   BİLET OPERASYON BUTONLARI
   ============================================ */
.ops-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    margin-bottom: 8px;
}
.ops-btn:last-child { margin-bottom: 0; }
.ops-btn-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
    transition: var(--transition);
}
.ops-btn-title { font-size: 0.84rem; font-weight: 600; color: var(--text-primary); line-height: 1.2; }
.ops-btn-desc { font-size: 0.71rem; color: var(--text-muted); margin-top: 1px; }
.ops-btn.refund .ops-btn-icon { background: var(--info-light); color: var(--info); }
.ops-btn.refund:hover { border-color: var(--info); background: var(--info-light); }
.ops-btn.void .ops-btn-icon { background: var(--warning-light); color: var(--warning); }
.ops-btn.void:hover { border-color: var(--warning); background: var(--warning-light); }
.ops-btn.cancel .ops-btn-icon { background: var(--danger-light); color: var(--danger); }
.ops-btn.cancel:hover { border-color: var(--danger); background: var(--danger-light); }
.ops-btn.split .ops-btn-icon { background: var(--primary-subtle); color: var(--primary); }
.ops-btn.split:hover { border-color: var(--primary); background: var(--primary-subtle); }

/* ============================================
   FİYAT KIRILIM SATIRLARI
   ============================================ */
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
}
.price-row:last-child { border-bottom: none; }
.price-row .pr-label { color: var(--text-secondary); }
.price-row .pr-value { font-weight: 600; color: var(--text-primary); }
.price-row.total { border-top: 2px solid var(--border); border-bottom: none; margin-top: 4px; padding-top: 12px; }
.price-row.total .pr-label { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); }
.price-row.total .pr-value { font-size: 1.1rem; font-weight: 800; color: var(--success); }

/* ============================================
   SEGMENT ROZET (J · S)
   ============================================ */
.segment-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.71rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--primary-subtle);
    color: var(--primary);
    white-space: nowrap;
    font-family: monospace;
}

/* ============================================
   UÇAK LİSTE — Uçuş kodu + rota hücresi
   ============================================ */
.flight-cell { display: flex; flex-direction: column; gap: 2px; }
.flight-cell-code { font-size: 0.84rem; font-weight: 700; color: var(--text-primary); }
.flight-cell-sub { font-size: 0.72rem; color: var(--text-muted); }
.flight-route-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-primary);
}
.flight-route-inline .fri-arrow { color: var(--text-muted); font-size: 0.9rem; }

/* ============================================
   OTEL KONAKLAMA HERO KARTI
   ============================================ */
.hotel-stay-card {
    background: linear-gradient(135deg, #0f4c81 0%, #1a6aa8 100%);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
}
.hotel-stay-card::before {
    content: '\F16A6';
    font-family: "bootstrap-icons";
    position: absolute;
    right: 20px; bottom: -10px;
    font-size: 8rem;
    color: rgba(255,255,255,0.05);
    line-height: 1;
    pointer-events: none;
}
.hsc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}
.hsc-hotel-name { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 3px; line-height: 1.2; }
.hsc-hotel-sub  { font-size: 0.75rem; color: rgba(255,255,255,0.55); }
.hsc-badges     { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.hsc-stay {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.hsc-date { text-align: center; min-width: 80px; }
.hsc-date-day   { font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1; }
.hsc-date-month { font-size: 0.72rem; color: rgba(255,255,255,0.6); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.06em; }
.hsc-date-year  { font-size: 0.7rem; color: rgba(255,255,255,0.45); }
.hsc-track { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.hsc-nights-badge {
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.25);
}
.hsc-line { display: flex; align-items: center; width: 100%; gap: 4px; }
.hsc-line-bar { flex: 1; height: 1px; background: rgba(255,255,255,0.25); }
.hsc-line-dot  { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.4); border: 2px solid rgba(255,255,255,0.75); flex-shrink: 0; }
.hsc-room { font-size: 0.75rem; color: rgba(255,255,255,0.65); text-align: center; margin-top: 8px; }

/* Otel özet bantı */
.hotel-summary-bar { display: flex; align-items: stretch; flex-wrap: wrap; border-top: 1px solid var(--border-light); }
.hsb-item { flex: 1; min-width: 110px; padding: 14px 20px; border-right: 1px solid var(--border-light); }
.hsb-item:last-child { border-right: none; }
.hsb-label { font-size: 0.67rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.hsb-value { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }
.hsb-value.amount { font-size: 1.05rem; color: var(--success); }

/* İptal koşulları uyarı bandı */
.cancellation-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 12px;
}
.cancellation-alert.free { background: var(--success-light); color: #0f6b3a; border: 1px solid #a3d9b8; }
.cancellation-alert.paid { background: var(--warning-light); color: #8a5200; border: 1px solid #ffd97d; }

/* Teknik detay satırları */
.tech-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.83rem;
    gap: 8px;
}
.tech-row:last-child { border-bottom: none; }
.tech-row .tr-key { color: var(--text-muted); flex-shrink: 0; }
.tech-row .tr-val { font-weight: 600; color: var(--text-primary); text-align: right; word-break: break-all; font-size: 0.8rem; }
.tech-row .tr-val.mono { font-family: monospace; font-size: 0.75rem; }

/* ── Araç Kiralama ── */
.car-rental-card { background: linear-gradient(135deg, #1b4f72 0%, #2e86ab 100%); border-radius: var(--radius-lg); padding: 22px 24px; position: relative; overflow: hidden; }
.car-rental-card::before { content: '\F5DF'; font-family: 'bootstrap-icons'; position: absolute; right: -10px; bottom: -18px; font-size: 7rem; color: rgba(255,255,255,0.06); line-height: 1; pointer-events: none; }
.crc-order-id { font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.crc-car-name { font-size: 1.2rem; font-weight: 800; color: #fff; line-height: 1.2; }
.crc-car-sub { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 4px; }
.crc-route { display: flex; align-items: center; gap: 14px; }
.crc-loc { text-align: center; }
.crc-loc-code { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -0.02em; }
.crc-loc-label { font-size: 0.65rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }
.crc-track { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.crc-duration-badge { background: rgba(255,255,255,0.15); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 3px 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.2); white-space: nowrap; }
.crc-line { display: flex; align-items: center; width: 100%; gap: 4px; }
.crc-line-bar { flex: 1; height: 1px; background: rgba(255,255,255,0.25); }
.crc-line-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.4); border: 2px solid rgba(255,255,255,0.75); flex-shrink: 0; }
.car-summary-bar { display: flex; align-items: stretch; flex-wrap: wrap; border-top: 1px solid var(--border-light); }
.csb-item { flex: 1; min-width: 110px; padding: 14px 20px; border-right: 1px solid var(--border-light); }
.csb-item:last-child { border-right: none; }
.csb-label { font-size: 0.67rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.csb-value { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }
.csb-value.amount { font-size: 1.05rem; color: var(--success); }
.ops-btn.fetch .ops-btn-icon { background: var(--primary-subtle); color: var(--primary); }
.ops-btn.fetch:hover { border-color: var(--primary); background: var(--primary-subtle); }
.raw-json-block { background: #0d1117; border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; max-height: 260px; overflow-y: auto; }
.raw-json-block pre { margin: 0; font-family: monospace; font-size: 0.72rem; color: #e6edf3; white-space: pre; line-height: 1.6; }
