/* ============================================
   PoliPilot - Professional Design System
   Sigorta Acenteleri İçin AI Destekli Platform
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    /* Brand Colors */
    --pp-primary: #0ea5e9;
    --pp-primary-dark: #0284c7;
    --pp-primary-light: #38bdf8;
    --pp-primary-glow: rgba(14, 165, 233, 0.15);

    --pp-secondary: #1e3a5f;
    --pp-accent: #06d6a0;
    --pp-accent-dark: #05b384;

    /* Dark Theme */
    --bg-body: #0f172a;
    --bg-sidebar: #0c1222;
    --bg-card: #1e293b;
    --bg-card-hover: #273548;
    --bg-input: #1a2438;
    --bg-topbar: rgba(15, 23, 42, 0.85);

    --border-color: rgba(148, 163, 184, 0.12);
    --border-light: rgba(148, 163, 184, 0.06);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-white: #ffffff;

    /* Status Colors */
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #0ea5e9;

    /* Layout */
    --sidebar-width: 260px;
    --sidebar-collapsed: 70px;
    --topbar-height: 64px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-xs: 6px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.2);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}


/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--pp-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--pp-primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--pp-primary);
    color: var(--text-white);
}


/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}


/* ===== APP CONTAINER ===== */
.app-container {
    display: flex;
    min-height: 100vh;
}


/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), width var(--transition-base);
    overflow: hidden;
}

.sidebar-header {
    padding: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    min-height: 72px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(14, 165, 233, 0.3));
    transition: filter var(--transition-fast);
}

.sidebar-brand:hover .sidebar-logo {
    filter: drop-shadow(0 4px 16px rgba(14, 165, 233, 0.5));
}

.sidebar-close-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
}

/* Sidebar Agency */
.sidebar-agency {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
}

.agency-avatar {
    width: 38px;
    height: 38px;
    border-radius: var(--border-radius-sm);
    background: linear-gradient(135deg, var(--pp-primary), var(--pp-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1rem;
    flex-shrink: 0;
}

.agency-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.agency-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agency-plan {
    font-size: 0.7rem;
    color: var(--pp-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin: 2px 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    background: var(--pp-primary-glow);
    color: var(--pp-primary-light);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(14, 165, 233, 0.05));
    color: var(--pp-primary-light);
    font-weight: 600;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--pp-primary);
    border-radius: 0 3px 3px 0;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.nav-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-primary {
    background: var(--pp-primary);
    color: var(--text-white);
}

.badge-info {
    background: rgba(14, 165, 233, 0.2);
    color: var(--pp-primary-light);
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: var(--color-success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--color-warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--color-danger);
}

/* Submenu */
.nav-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.has-children.open .nav-submenu {
    max-height: 300px;
}

.nav-sublink {
    display: block;
    padding: 7px 16px 7px 48px;
    color: var(--text-muted);
    font-size: 0.82rem;
    border-radius: var(--border-radius-xs);
    transition: all var(--transition-fast);
}

.nav-sublink:hover {
    color: var(--pp-primary-light);
    background: rgba(14, 165, 233, 0.05);
}

.nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 12px 16px;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    transition: background var(--transition-fast);
}

.sidebar-user:hover {
    background: rgba(148, 163, 184, 0.05);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pp-primary), var(--pp-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.7rem;
    color: var(--text-muted);
}


/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-base);
}


/* ===== TOPBAR ===== */
.topbar {
    height: var(--topbar-height);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-topbar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 6px;
}

.page-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search */
.topbar-search {
    position: relative;
    display: flex;
    align-items: center;
}

.topbar-search i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.topbar-search input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 8px 14px 8px 36px;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 280px;
    outline: none;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.topbar-search input::placeholder {
    color: var(--text-muted);
}

.topbar-search input:focus {
    border-color: var(--pp-primary);
    box-shadow: var(--shadow-glow);
}

/* Icon Buttons */
.topbar-icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.topbar-icon-btn:hover {
    background: var(--pp-primary-glow);
    color: var(--pp-primary-light);
}

.icon-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-danger);
    color: var(--text-white);
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Profile Dropdown */
.topbar-profile {
    position: relative;
}

.profile-trigger {
    cursor: pointer;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pp-primary), var(--pp-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: 700;
    font-size: 0.85rem;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast);
}

.profile-trigger:hover .profile-avatar {
    border-color: var(--pp-primary);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 6px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-lg);
    z-index: 200;
}

.topbar-profile.open .profile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--border-radius-xs);
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.profile-menu-item:hover {
    background: var(--pp-primary-glow);
    color: var(--pp-primary-light);
}

.profile-menu-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
}


/* ===== SIDEBAR OVERLAY (Mobile) ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
}


/* ===== PAGE CONTENT ===== */
.page-content {
    padding: 24px;
    flex: 1;
}


/* ===== ALERTS ===== */
.alerts-container {
    padding: 12px 24px 0;
}

.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
    font-size: 0.88rem;
    margin-bottom: 8px;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: var(--color-success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--color-danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--color-warning);
}

.alert-info {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: var(--color-info);
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    padding: 4px;
}


/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.card:hover {
    border-color: rgba(148, 163, 184, 0.2);
}

.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--pp-primary);
}

.card-body {
    padding: 22px;
}

.card-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border-color);
}


/* ===== STAT CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--stat-color, var(--pp-primary));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-info h3 {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1;
}

.stat-change {
    font-size: 0.75rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.up {
    color: var(--color-success);
}

.stat-change.down {
    color: var(--color-danger);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-icon.blue {
    background: rgba(14, 165, 233, 0.12);
    color: var(--pp-primary);
}

.stat-icon.green {
    background: rgba(34, 197, 94, 0.12);
    color: var(--color-success);
}

.stat-icon.orange {
    background: rgba(245, 158, 11, 0.12);
    color: var(--color-warning);
}

.stat-icon.red {
    background: rgba(239, 68, 68, 0.12);
    color: var(--color-danger);
}

.stat-icon.purple {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
}

.stat-icon.teal {
    background: rgba(6, 214, 160, 0.12);
    color: var(--pp-accent);
}


/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pp-primary), var(--pp-primary-dark));
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--pp-primary-light), var(--pp-primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--color-success), #16a34a);
    color: var(--text-white);
}

.btn-danger {
    background: linear-gradient(135deg, var(--color-danger), #dc2626);
    color: var(--text-white);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--pp-primary);
    color: var(--pp-primary);
    background: var(--pp-primary-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: rgba(148, 163, 184, 0.08);
    color: var(--text-primary);
}


/* ===== TABLES ===== */
.table-container {
    overflow-x: auto;
    border-radius: var(--border-radius);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.data-table td {
    padding: 14px 16px;
    font-size: 0.88rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

.data-table tr:hover td {
    background: rgba(14, 165, 233, 0.03);
}

.data-table .text-muted {
    color: var(--text-muted);
}

.data-table .text-success {
    color: var(--color-success);
}

.data-table .text-warning {
    color: var(--color-warning);
}

.data-table .text-danger {
    color: var(--color-danger);
}


/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.status-active {
    background: rgba(34, 197, 94, 0.1);
    color: var(--color-success);
}

.status-expired {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.status-cancelled {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-muted);
}


/* ===== FORMS ===== */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.88rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--pp-primary);
    box-shadow: 0 0 0 3px var(--pp-primary-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--pp-primary);
    cursor: pointer;
}


/* ===== SECTIONS ===== */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.section-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}


/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 20px;
}


/* ===== LIST ITEMS ===== */
.list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.list-item-right {
    text-align: right;
    flex-shrink: 0;
}

.list-item-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.list-item-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}


/* ===== ANIMATIONS ===== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}


/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .topbar-search {
        display: none;
    }

    .btn-text-desktop {
        display: none;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close-btn {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .topbar {
        padding: 0 16px;
    }

    .page-content {
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .section-grid {
        grid-template-columns: 1fr;
    }

    .section-grid-3 {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .page-title {
        font-size: 1rem;
    }
}


/* ===== LOGIN PAGE ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(14, 165, 233, 0.08), transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(6, 214, 160, 0.05), transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(10px, -10px) rotate(1deg);
    }

    66% {
        transform: translate(-5px, 5px) rotate(-0.5deg);
    }
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

.login-logo {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo img {
    height: 72px;
    width: auto;
    filter: drop-shadow(0 4px 20px rgba(14, 165, 233, 0.35));
}

.login-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.login-subtitle {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-control {
    padding: 12px 16px;
    font-size: 0.9rem;
}

.login-btn {
    width: 100%;
    padding: 13px;
    font-size: 0.95rem;
    margin-top: 8px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.78rem;
    color: var(--text-muted);
}


/* ===== UTILITY ===== */
.text-primary {
    color: var(--pp-primary) !important;
}

.text-success {
    color: var(--color-success) !important;
}

.text-danger {
    color: var(--color-danger) !important;
}

.text-warning {
    color: var(--color-warning) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.fw-bold {
    font-weight: 700;
}

.fw-semibold {
    font-weight: 600;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}


/* ===== POWERED BY POLIPILOT (Sidebar) ===== */
.sidebar-powered {
    padding: 8px 16px;
    border-top: 1px solid var(--border-light);
}

.powered-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(6, 214, 160, 0.04));
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.powered-logo {
    height: 20px;
    width: auto;
    object-fit: contain;
}

.powered-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.powered-label strong {
    color: var(--pp-primary-light);
    font-weight: 600;
}


/* ===== AI ASSISTANT BUTTON ===== */
.ai-btn {
    position: relative;
    color: var(--pp-accent) !important;
}

.ai-btn:hover {
    background: rgba(6, 214, 160, 0.12) !important;
    color: var(--pp-accent) !important;
}

.ai-pulse {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pp-accent);
    animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.4;
    }
}


/* ===== POLICY PERIOD COUNTERS ===== */
.period-counters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.period-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 18px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.period-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--period-color, var(--pp-primary));
    opacity: 0.7;
}

.period-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.period-card:hover::after {
    opacity: 1;
}

.period-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.period-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.5px;
}

.period-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .period-counters {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .period-card {
        padding: 14px 12px;
    }

    .period-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .period-counters {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .period-card {
        padding: 10px 8px;
    }

    .period-value {
        font-size: 1.3rem;
    }

    .period-label {
        font-size: 0.6rem;
    }
}


/* ===== LOGIN POWERED BY ===== */
.login-powered {
    margin-bottom: 12px;
}

.login-powered-logo {
    height: 22px;
    width: auto;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.login-powered-logo:hover {
    opacity: 0.8;
}


/* ===== CHAT WIDGET ===== */
.chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pp-primary), var(--pp-accent));
    color: var(--text-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    z-index: 900;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
    transition: all var(--transition-fast);
}

.chat-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(14, 165, 233, 0.5);
}

.chat-fab .chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-danger);
    color: var(--text-white);
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-body);
    animation: badgePulse 2s ease infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

.chat-window {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 360px;
    height: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    z-index: 901;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: chatSlideUp 0.25s ease;
    transition: all 0.3s ease;
}

.chat-window.open {
    display: flex;
}

/* Tam ekran modu */
.chat-window.fullscreen {
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: none;
    z-index: 9999;
}

@keyframes chatSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(6, 214, 160, 0.06));
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header-title i {
    color: var(--pp-primary);
    font-size: 1.1rem;
}

.chat-header-title span {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-fullscreen,
.chat-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: color var(--transition-fast);
}

.chat-fullscreen:hover,
.chat-close:hover {
    color: var(--text-primary);
}

/* Tam ekran modunda mesajlar daha genis */
.chat-window.fullscreen .chat-msg {
    max-width: 65%;
}

.chat-window.fullscreen .chat-msg-bubble {
    font-size: 0.92rem;
}

.chat-window.fullscreen .chat-input {
    font-size: 0.95rem;
    padding: 14px 18px;
}


.chat-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.chat-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.chat-tab.active {
    color: var(--pp-primary-light);
}

.chat-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--pp-primary);
    border-radius: 2px;
}

.chat-tab .tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-danger);
    color: var(--text-white);
    font-size: 0.6rem;
    font-weight: 700;
    margin-left: 4px;
    vertical-align: middle;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg {
    display: flex;
    gap: 8px;
    max-width: 85%;
}

.chat-msg.incoming {
    align-self: flex-start;
}

.chat-msg.outgoing {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pp-primary), var(--pp-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 0.6rem;
    font-weight: 700;
    flex-shrink: 0;
}

.chat-msg-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.5;
}

.incoming .chat-msg-bubble {
    background: var(--bg-input);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.outgoing .chat-msg-bubble {
    background: linear-gradient(135deg, var(--pp-primary), var(--pp-primary-dark));
    color: var(--text-white);
    border-bottom-right-radius: 4px;
}

.chat-msg-time {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 2px;
    text-align: right;
}

.chat-input-area {
    padding: 12px 14px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.82rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.chat-input:focus {
    border-color: var(--pp-primary);
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pp-primary), var(--pp-primary-dark));
    color: var(--text-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.chat-send:hover {
    transform: scale(1.08);
}

/* Notification items in chat */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--border-radius-sm);
    background: var(--bg-input);
    margin-bottom: 8px;
    border-left: 3px solid var(--pp-primary);
    transition: background var(--transition-fast);
}

.notif-item:hover {
    background: rgba(14, 165, 233, 0.05);
}

.notif-item.unread {
    border-left-color: var(--color-warning);
}

.notif-item .notif-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--pp-primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pp-primary);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.notif-item .notif-content h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.notif-item .notif-content p {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.notif-item .notif-time {
    font-size: 0.6rem;
    color: var(--text-muted);
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

.chat-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.chat-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.4;
}

.chat-empty p {
    font-size: 0.82rem;
}

@media (max-width: 480px) {
    .chat-window {
        right: 8px;
        left: 8px;
        bottom: 80px;
        width: auto;
        height: 70vh;
    }

    .chat-fab {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}


/* ===== EMERGENCY POPUP ===== */
.emergency-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    animation: fadeIn 0.3s ease;
}

.emergency-popup {
    background: var(--bg-card);
    border: 2px solid var(--color-danger);
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 60px rgba(239, 68, 68, 0.3), var(--shadow-lg);
    animation: popupBounce 0.4s ease;
}

@keyframes popupBounce {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    60% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.emergency-popup .emergency-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--color-danger);
    animation: pulseGlow 1.5s ease infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
    }
}

.emergency-popup h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-danger);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.emergency-popup .emergency-message {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.emergency-popup .emergency-from {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.emergency-popup .emergency-close {
    padding: 10px 32px;
    background: var(--color-danger);
    color: var(--text-white);
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.emergency-popup .emergency-close:hover {
    background: #dc2626;
    transform: translateY(-1px);
}


/* ===== SUPER ADMIN BADGE ===== */
.superadmin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: var(--text-white);
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.superadmin-nav .nav-link {
    color: var(--color-warning) !important;
}

.superadmin-nav .nav-link i {
    color: var(--color-warning) !important;
}


/* ===== POLI MASCOT ===== */
.poli-fab {
    background: transparent !important;
    box-shadow: none !important;
    width: 68px !important;
    height: 68px !important;
}

.poli-fab:hover {
    transform: scale(1.12) !important;
    box-shadow: none !important;
}

.poli-fab-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(14, 165, 233, 0.4));
    transition: filter var(--transition-fast);
    animation: poliFloat 3s ease-in-out infinite;
}

.poli-fab:hover .poli-fab-img {
    filter: drop-shadow(0 6px 20px rgba(14, 165, 233, 0.6));
}

@keyframes poliFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* Poli avatar in chat messages */
.poli-avatar {
    background: transparent !important;
    overflow: hidden;
}

.poli-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Poli Greeting Bubble */
.poli-greeting {
    position: fixed;
    bottom: 98px;
    right: 20px;
    z-index: 899;
    animation: greetingSlideIn 0.5s ease 1s both;
}

@keyframes greetingSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.poli-greeting-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px 14px 4px 14px;
    padding: 14px 18px;
    max-width: 260px;
    font-size: 0.82rem;
    color: var(--text-primary);
    line-height: 1.5;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    position: relative;
}

.poli-greeting-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 24px;
    width: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--bg-card);
}

.poli-greeting-close {
    position: absolute;
    top: 4px;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    line-height: 1;
}

.poli-greeting.hidden {
    display: none;
}

/* Poli notification speech bubble (for inline notifications) */
.poli-speech {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(6, 214, 160, 0.04));
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
}

.poli-speech img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.poli-speech p {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.poli-speech strong {
    color: var(--pp-primary-light);
}

/* Poli Chat Interactive Elements */
.poli-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--pp-primary), var(--pp-accent));
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.poli-link-btn:hover {
    filter: brightness(1.15);
    transform: scale(1.03);
}

.poli-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.poli-suggestion-chip {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: var(--pp-primary-light);
    border-radius: 16px;
    padding: 5px 12px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.poli-suggestion-chip:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: var(--pp-primary);
    transform: translateY(-1px);
}


/* ===== LANDING PAGE ===== */
.landing-page {
    min-height: 100vh;
    background: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-primary);
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 5%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.landing-nav-logo img {
    height: 44px;
    width: auto;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.landing-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.landing-nav-links a:hover {
    color: var(--pp-primary-light);
}

.landing-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 8% 60px;
    gap: 40px;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.landing-hero-text {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.landing-hero-text h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-white), var(--pp-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-hero-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.landing-hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.landing-hero-img {
    flex: 1;
    max-width: 400px;
    z-index: 1;
    animation: poliFloat 3s ease-in-out infinite;
    text-align: center;
}

.landing-hero-img img {
    width: 100%;
    max-width: 320px;
    filter: drop-shadow(0 20px 40px rgba(14, 165, 233, 0.3));
}

/* Features */
.landing-features {
    padding: 80px 8%;
    background: rgba(15, 23, 42, 0.6);
}

.landing-section-title {
    text-align: center;
    margin-bottom: 48px;
}

.landing-section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.landing-section-title p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.landing-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all var(--transition-base);
}

.landing-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.landing-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 16px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--pp-primary-light);
}

.landing-feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.landing-feature-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA Section */
.landing-cta {
    padding: 80px 8%;
    text-align: center;
}

.landing-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.landing-cta p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 32px;
}

/* Footer */
.landing-footer {
    padding: 32px 8%;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .landing-hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
    }

    .landing-hero-cta {
        justify-content: center;
    }

    .landing-nav-links {
        display: none;
    }
}