/* SafeConnect — Azar Style Clean */

/* --- ROOT VARIABLES --- */
:root {
    --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

    /* Clean Dark Navy Base */
    --bg-dark: #0d0e14;
    --bg-card: rgba(22, 24, 35, 0.9);
    --bg-card-hover: rgba(28, 30, 44, 0.95);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(255, 70, 100, 0.3);

    /* Azar Coral/Rose Accent */
    --primary: #ff4666;
    --primary-light: #ff6b84;
    --primary-glow: rgba(255, 70, 102, 0.25);
    --secondary: #ff8c42;
    --secondary-glow: rgba(255, 140, 66, 0.2);
    --secondary-gradient: linear-gradient(135deg, #ff4666 0%, #ff6b45 100%);
    --gradient-accent: linear-gradient(135deg, #ff4666 0%, #ff8c42 100%);
    --gradient-hero: linear-gradient(135deg, #ff4666, #ff8c42);
    --gradient-card: linear-gradient(135deg, rgba(255,70,102,0.06) 0%, rgba(255,140,66,0.03) 100%);

    --text-main: #ffffff;
    --text-normal: #e2e4ef;
    --text-muted: #7c7f9a;
    --text-dark: #0d0e14;

    /* Functional */
    --success: #22c55e;
    --success-glow: rgba(34, 197, 94, 0.2);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.2);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.25);

    /* Layout */
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 9px;
    --shadow-premium: 0 20px 40px rgba(0,0,0,0.5);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASIC SETUP --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* --- ANIMATED MESH BACKGROUND (Azar style) --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 15% 10%, rgba(255,70,102,0.22) 0%, transparent 55%),
        radial-gradient(ellipse 60% 80% at 85% 85%, rgba(236,72,153,0.18) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 55% 35%, rgba(168,85,247,0.12) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    opacity: 0.15;
    pointer-events: none;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-accent);
    top: -200px;
    left: -200px;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary-gradient);
    bottom: -100px;
    right: -100px;
}

.bg-glow-3 {
    width: 400px;
    height: 400px;
    background: var(--danger);
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- TYPOGRAPHY & GRADIENTS --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.text-gradient {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }

/* --- MAIN HEADER (Azar-style) --- */
.main-header {
    background: rgba(13,14,20,0.85);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 30px rgba(0,0,0,0.4);
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    box-shadow: 0 0 20px var(--primary-glow), 0 0 8px var(--secondary-glow);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-title span {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 1px;
}

/* --- NAVIGATION (Azar-style pill nav) --- */
.nav-menu {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    padding: 5px;
    border-radius: 99px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    backdrop-filter: blur(10px);
}

.nav-item {
    padding: 8px 18px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 99px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.nav-item i {
    font-size: 13px;
    opacity: 0.8;
}

.nav-item:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.06);
}

.nav-item.active {
    color: white;
    background: var(--secondary-gradient);
    box-shadow: 0 4px 14px var(--primary-glow), 0 2px 6px var(--secondary-glow);
}

/* --- HEADER STATUS & BADGES --- */
.header-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.online-counter-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
}

.online-dot {
    width: 7px;
    height: 7px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
    flex-shrink: 0;
}

.connection-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}

.status-secure {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

/* --- USER PROFILE BADGE (Azar style) --- */
.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 14px 5px 5px;
    background: rgba(255,255,255,0.06);
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.user-profile-badge:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(255,255,255,0.06);
}

.user-profile-badge img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-card);
    border: 2px solid var(--primary);
}

.verified-badge {
    color: var(--success);
    font-size: 14px;
    display: flex;
    align-items: center;
}

/* --- MAIN CONTAINER & SECTIONS --- */
.app-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 28px 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.app-section {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
    flex-grow: 1;
}

.app-section.active {
    display: block;
}


/* --- GLASS CARD SYSTEM (Azar-inspired) --- */
.glass-card {
    background: rgba(22,24,35,0.92);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,70,102,0.05) 0%, rgba(236,72,153,0.03) 100%);
    pointer-events: none;
    border-radius: inherit;
}

.glass-card:hover {
    border-color: rgba(255,255,255,0.06);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,70,102,0.2), 0 0 30px rgba(255,70,102,0.08);
}

.card-header {
    padding: 22px 26px;
    border-bottom: 1px solid rgba(255,70,102,0.12);
    background: rgba(255,70,102,0.04);
}

.card-header h2 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.card-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 5px;
    line-height: 1.5;
}

.card-body {
    padding: 24px 26px;
    flex-grow: 1;
}

.border-bottom { border-bottom: 1px solid rgba(255,70,102,0.12); }
.border-top { border-top: 1px solid rgba(255,70,102,0.12); }


/* --- FORM ELEMENTS (Azar style) --- */
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 14px;
    z-index: 1;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 11px 14px 11px 40px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: var(--transition-smooth);
}

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

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.06), 0 0 15px rgba(255,70,102,0.1);
}

/* --- INTEREST TAGS --- */
.interests-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.tag {
    padding: 7px 13px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
}

.tag:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text-main);
    border-color: rgba(124, 58, 237, 0.4);
}

.tag.active {
    background: rgba(255,255,255,0.06);
    border-color: var(--primary);
    color: #ffcba0;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
}

/* Verification Box */
.verification-box {
    margin-top: 25px;
    padding: 16px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.verification-status {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.verification-status i {
    font-size: 20px;
    margin-top: 2px;
}

.verification-status h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.verification-status p {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* --- BUTTONS (Azar gradient style) --- */
button {
    font-family: var(--font-body);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--secondary-gradient);
    color: white;
    padding: 12px 26px;
    font-size: 14px;
    border-radius: 99px;
    box-shadow: 0 6px 24px rgba(255,255,255,0.06), 0 2px 8px rgba(236,72,153,0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    border-radius: inherit;
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.6), 0 4px 12px rgba(236,72,153,0.35);
}

.btn-secondary {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-main);
    padding: 12px 26px;
    font-size: 14px;
    border-radius: 99px;
}

.btn-secondary:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.6);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: white;
    padding: 12px 26px;
    font-size: 14px;
    border-radius: 99px;
    box-shadow: 0 4px 15px var(--danger-glow);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.5);
}

.btn-sm {
    padding: 7px 16px;
    font-size: 12px;
    border-radius: 99px;
}

.btn-lg {
    padding: 15px 36px;
    font-size: 16px;
    border-radius: 99px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 30px rgba(255,70,102,0.3), 0 4px 12px rgba(236,72,153,0.3);
}

.pulse {
    animation: pulse-glow 2.2s infinite;
}

/* --- SECTION 1: PORTAL GRID (Azar layout) --- */
.portal-grid {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 28px;
    margin-bottom: 36px;
}

.portal-hero {
    text-align: center;
    padding: 24px 36px 12px;
}

.portal-hero h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 12px;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portal-hero p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.matching-hub {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px;
}


.match-view {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: scaleUp 0.3s ease-out forwards;
}

.match-view.active {
    display: flex;
}

/* Radar graphics — Azar purple theme */
.matching-graphics {
    margin-bottom: 36px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.06);
}

.radar-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.06);
}

.circle-1 { width: 120px; height: 120px; }
.circle-2 { width: 60px; height: 60px; }
.circle-3 { width: 10px; height: 10px; background: var(--primary); box-shadow: 0 0 8px var(--primary-glow); }

.radar-hand {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 60%, rgba(255,255,255,0.06) 100%);
    animation: spin 3s linear infinite;
}

.radar-dot {
    position: absolute;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(20, 10, 45, 0.85);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 13px;
    box-shadow: 0 0 12px var(--primary-glow);
    animation: pulse 2s infinite alternate;
}

.dot-1 { top: 20px; left: 30px; animation-delay: 0.3s; border-color: var(--primary); }
.dot-2 { bottom: 30px; right: 20px; animation-delay: 0.7s; border-color: var(--secondary); color: var(--secondary); }
.dot-3 { top: 80px; right: 120px; animation-delay: 1.1s; }


/* Search Animation */
.pulse-avatar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    position: relative;
    height: 140px;
    width: 320px;
}

.user-avatar-pulse, .target-avatar-pulse {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: rgba(20, 10, 45, 0.85);
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
    box-shadow: 0 0 20px var(--primary-glow);
}

.user-avatar-pulse img {
    width: 100%; height: 100%;
    border-radius: 50%;
}

.target-avatar-pulse {
    border-color: rgba(255,70,102,0.4);
    font-size: 32px;
    color: var(--text-muted);
    box-shadow: 0 0 15px rgba(255,70,102,0.2);
}

.user-avatar-pulse::after {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    top: 0; left: 0;
    animation: avatarPulse 2s infinite;
    z-index: -1;
}

.wave-lines {
    width: 80px; height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 50%, var(--secondary) 100%);
    position: relative;
}

.wave-lines::after {
    content: '';
    position: absolute;
    width: 12px; height: 12px;
    background: var(--primary);
    border-radius: 50%;
    top: -5px; left: 0;
    box-shadow: 0 0 10px var(--primary-glow);
    animation: flowNode 1.5s infinite linear;
}

.searching-status {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.ai-matching-logs-container {
    width: 85%;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 12px 16px;
    margin-bottom: 25px;
    text-align: left;
}

.ai-badge {
    background: rgba(255,255,255,0.06);
    color: #ffaa80;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.ai-matching-logs {
    height: 64px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-matching-logs div {
    animation: fadeIn 0.2s ease-out;
}

/* Match Found graphics */
.match-success-graphics {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
}

.success-ring {
    width: 46px;
    height: 46px;
    background: var(--success);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: absolute;
    top: -20px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.matched-users {
    display: flex;
    align-items: center;
    gap: 30px;
}

.matched-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.matched-user img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--success);
    background: #1e293b;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
}

.matched-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.matched-connector {
    font-size: 32px;
    color: var(--warning);
    animation: spark 0.8s infinite alternate;
}

.match-stats-table {
    width: 80%;
    margin: 15px auto 25px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 18px;
}

.match-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.match-stat-row:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.match-stat-row span {
    color: var(--text-muted);
}

.match-actions {
    display: flex;
    gap: 15px;
}

/* Features summary cards — Azar style */
.features-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feat-summary-card {
    background: rgba(22,24,35,0.92);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-lg);
    padding: 26px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.feat-summary-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--secondary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feat-summary-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 20px rgba(255,70,102,0.1);
}

.feat-summary-card:hover::before { opacity: 1; }

.feat-icon {
    font-size: 26px;
    margin-bottom: 14px;
    display: block;
    filter: drop-shadow(0 0 8px currentColor);
}

.red-icon { color: #f87171; }
.green-icon { color: var(--success); }

.feat-summary-card h3 {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.feat-summary-card p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- SECTION 2: VIDEO CHAT & MONITORING PANEL --- */
.chat-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 30px;
    min-height: 820px;
}

.video-container {
    display: flex;
    flex-direction: column;
    position: relative;
}

.video-box {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #090c15;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.stranger-video-box {
    flex-grow: 1;
    margin-bottom: 20px;
}

.stranger-video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s ease;
}

/* User miniature video */
.user-video-box {
    position: absolute;
    width: 220px;
    height: 140px;
    bottom: 95px;
    right: 20px;
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    background: #020617;
}

.user-video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-video-box .video-partner-name {
    padding: 4px 10px;
    font-size: 11px;
}

/* Video controls & titles Overlay */
.video-top-meta {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
    pointer-events: none;
}

.verified-badge-label {
    background: rgba(16, 185, 129, 0.85);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.connection-status-badge {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-partner-name {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    z-index: 5;
    font-size: 13px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ping-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

.ping-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
}

.speech-active-indicator {
    font-size: 11px;
    color: var(--success);
    font-weight: 600;
    display: none; /* activated when speech detected */
}

/* Local Mic/Cam mini switches overlay */
.local-video-controls-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 6;
}

.icon-btn-round {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 12px;
}

.icon-btn-round.active {
    background: var(--primary);
    color: white;
}

/* Call Control bottom bar */
.call-controls-bar {
    height: 75px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
}

.call-duration-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
}

.call-duration-box i {
    color: var(--primary);
}

/* Safety Warning Blur Overlay */
.video-overlay-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 10, 19, 0.85);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: 8;
    display: none; /* Show/hide dynamically */
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease-out;
}

.blur-warning-box {
    text-align: center;
    padding: 40px;
    max-width: 480px;
    background: rgba(15, 23, 42, 0.5);
    border: 2px solid var(--danger);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 30px rgba(244, 63, 94, 0.25);
}

.warning-blink {
    font-size: 48px;
    color: var(--danger);
    margin-bottom: 20px;
    animation: blink 1.2s infinite;
}

.blur-warning-box h3 {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.blur-warning-box p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* --- SIDEBAR CONTAINER (AI GUARD) --- */
.sidebar-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-guard-card {
    min-height: 440px;
}

.card-body.py-sm {
    padding: 12px 18px;
}

.active-badge {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.safety-meters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.safety-meter-box {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    padding: 12px 14px;
    border-radius: var(--radius-md);
}

.meter-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}

.meter-gauge {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}

.gauge-fill {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.safety-good {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.safety-danger {
    background: linear-gradient(90deg, #f43f5e 0%, #e11d48 100%);
    box-shadow: 0 0 8px rgba(244, 63, 94, 0.4);
}

.meter-value {
    font-size: 11px;
    font-weight: 700;
}

/* Subtitle box */
.realtime-subtitles-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 20px;
}

.box-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

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

.subtitle-text {
    font-size: 13px;
    line-height: 1.5;
    color: #e2e8f0;
    min-height: 52px;
    font-style: italic;
}

.speech-tags-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.mini-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.tag-threat {
    background: rgba(244, 63, 94, 0.15);
    color: var(--danger);
    animation: blink 0.8s infinite alternate;
}

/* Simulation controllers */
.simulation-triggers-box {
    background: rgba(255, 158, 11, 0.05);
    border: 1px solid rgba(255, 158, 11, 0.12);
    border-radius: var(--radius-md);
    padding: 14px;
}

.simulation-triggers-box .box-title i {
    color: var(--warning);
}

.simulation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-sim {
    background: rgba(25, 30, 45, 0.8);
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    font-size: 11px;
    color: var(--text-main);
    border-radius: var(--radius-sm);
    justify-content: flex-start;
}

.btn-sim:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--warning);
}

.btn-sim-reset {
    grid-column: span 2;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.btn-sim-reset:hover {
    background: rgba(16, 185, 129, 0.18);
    border-color: var(--success);
}

/* Logs and chat card tabs */
.logs-card {
    flex-grow: 1;
    height: 320px;
}

.card-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border-radius: 0;
    color: var(--text-muted);
    font-size: 13px;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(255, 255, 255, 0.04);
}

.tab-content {
    display: none;
    flex-direction: column;
    height: 100%;
}

.tab-content.active {
    display: flex;
}

/* Chat text lists */
.chat-messages-container {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
}

.message-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.4;
}

.message-bubble.stranger {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.message-bubble.user {
    align-self: flex-end;
    background: var(--primary);
    color: white;
}

.message-bubble.system {
    align-self: center;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: var(--primary);
    text-align: center;
    max-width: 95%;
}

.message-bubble.warning {
    align-self: center;
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: var(--danger);
    text-align: center;
    max-width: 95%;
}

.message-author {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 3px;
    display: block;
}

.chat-input-row {
    display: flex;
    padding: 10px 15px;
    border-top: 1px solid var(--border-color);
    gap: 8px;
    background: rgba(0, 0, 0, 0.1);
}

.chat-input-row input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 30px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
}

.chat-input-row input:focus {
    border-color: var(--primary);
}

.btn-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
}

/* Incidents list */
.incident-logs-list {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 250px;
}

.empty-incidents {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 10px;
    font-size: 12px;
}

.empty-incidents i {
    font-size: 32px;
}

.incident-item {
    background: rgba(244, 63, 94, 0.05);
    border: 1px solid rgba(244, 63, 94, 0.15);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: slideIn 0.3s ease-out;
}

.incident-item-icon {
    width: 28px;
    height: 28px;
    background: rgba(244, 63, 94, 0.12);
    color: var(--danger);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.incident-item-content {
    flex-grow: 1;
}

.incident-item-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}

.incident-item-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}

.incident-item-time {
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 5px;
    display: block;
}

/* --- SECTION 3: ADMIN & ANALYTICS --- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-premium);
}

.kpi-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.blue-glow { background: rgba(59, 130, 246, 0.1); color: var(--primary); }
.green-glow { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.red-glow { background: rgba(244, 63, 94, 0.1); color: var(--danger); }
.yellow-glow { background: rgba(245, 158, 11, 0.1); color: var(--warning); }

.kpi-info {
    display: flex;
    flex-direction: column;
}

.kpi-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.kpi-value {
    font-size: 24px;
    font-weight: 800;
    margin: 4px 0;
}

.kpi-subtext {
    font-size: 11px;
    font-weight: 600;
}

/* Admin Charts Panel */
.admin-charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.chart-card {
    height: 320px;
}

.chart-pie-container {
    width: 180px;
    height: 180px;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Admin Logs Table */
.table-card {
    margin-bottom: 40px;
}

.admin-select-sm {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-family: var(--font-body);
    outline: none;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.admin-table th, 
.admin-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: rgba(0, 0, 0, 0.15);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.admin-badge-type {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}

.badge-speech { background: rgba(59, 130, 246, 0.1); color: var(--primary); }
.badge-image { background: rgba(244, 63, 94, 0.1); color: var(--danger); }
.badge-scam { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.badge-report { background: rgba(139, 92, 246, 0.1); color: #a78bfa; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 11px;
}

.status-flagged { color: var(--danger); }
.status-resolved { color: var(--success); }

/* --- MODALS --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 4, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 200;
    display: none; /* Show dynamically */
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-backdrop.active {
    display: flex;
}

.modal-container {
    width: 90%;
    max-width: 580px;
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-sm {
    max-width: 420px;
}

.close-modal-btn {
    background: transparent;
    color: var(--text-muted);
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.form-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.report-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.report-option-card {
    position: relative;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    padding: 15px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.report-option-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.report-option-card input {
    margin-top: 4px;
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-content i {
    font-size: 18px;
}

.option-content strong {
    font-size: 12px;
    color: var(--text-main);
}

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

.report-option-card:has(input:checked) {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.08);
}

textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    resize: none;
    transition: var(--transition-smooth);
}

textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    margin-top: 15px;
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}

.toast {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideInLeft 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
    transition: var(--transition-smooth);
}

.toast-success { border-left: 4px solid var(--success); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-danger { border-left: 4px solid var(--danger); }

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-success .toast-icon { color: var(--success); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-danger .toast-icon { color: var(--danger); }

.toast-body {
    flex-grow: 1;
}

.toast-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.toast-message {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
    line-height: 1.4;
}

/* --- ANIMATIONS DEFINITIONS --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

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

@keyframes pulse-dot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 242, 254, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

@keyframes avatarPulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes flowNode {
    0% { left: 0%; }
    100% { left: 100%; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes spark {
    0% { opacity: 0.6; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* --- ONLINE COUNTER BADGE --- */
.online-counter-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.online-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
    box-shadow: 0 0 6px var(--success);
}

/* Header settings gear button */
.icon-btn-header {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.icon-btn-header:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    transform: rotate(45deg);
}

/* --- CALL TYPE TOGGLE --- */
.call-type-toggle {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    justify-content: center;
}

.call-type-btn {
    padding: 8px 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.call-type-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.call-type-btn.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

/* --- CALL CONTROLS CENTER --- */
.call-controls-center {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-block-user {
    border-color: var(--warning) !important;
    color: var(--warning) !important;
}

.btn-block-user:hover {
    background: rgba(245, 158, 11, 0.15) !important;
}

/* --- BEHAVIORAL ANALYSIS BOX --- */
.behavior-analysis-box {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 20px;
}

.behavior-analysis-box .box-title i {
    color: #a78bfa;
}

.behavior-indicators {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.behavior-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.behavior-label {
    color: var(--text-muted);
    font-weight: 500;
}

.behavior-value {
    font-weight: 700;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}

.behavior-value.safe {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.behavior-value.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    animation: blink 1.5s infinite;
}

.behavior-value.danger {
    background: rgba(244, 63, 94, 0.15);
    color: var(--danger);
    animation: blink 0.8s infinite;
}

/* --- CALL HISTORY SECTION --- */
.history-list,
.blocked-users-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
}

.empty-history {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.empty-history i {
    font-size: 48px;
    opacity: 0.3;
}

.empty-history p {
    font-size: 14px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    animation: slideIn 0.3s ease-out;
}

.history-item:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
}

.history-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.history-info {
    flex-grow: 1;
}

.history-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.history-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.history-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.history-rating {
    display: flex;
    gap: 2px;
}

.history-rating i {
    font-size: 11px;
    color: var(--warning);
}

.history-rating i.dim {
    color: rgba(255, 255, 255, 0.15);
}

.history-safety-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.history-safety-badge.safe {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.history-safety-badge.risky {
    background: rgba(244, 63, 94, 0.1);
    color: var(--danger);
}

/* Blocked user item */
.blocked-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(244, 63, 94, 0.03);
    border: 1px solid rgba(244, 63, 94, 0.1);
    border-radius: var(--radius-md);
    animation: slideIn 0.3s ease-out;
}

.blocked-item .history-name {
    color: var(--text-muted);
    text-decoration: line-through;
}

/* --- POST-CALL RATING MODAL --- */
.rating-content {
    text-align: center;
}

.rating-user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.rating-user-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid var(--primary);
}

.rating-user-info span {
    font-size: 16px;
    font-weight: 700;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.star-rating i {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.star-rating i:hover {
    transform: scale(1.2);
}

.star-rating i.active {
    color: var(--warning);
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.rating-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.rating-quick-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.rating-tag {
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-muted);
}

.rating-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.rating-tag.active {
    background: rgba(59, 130, 246, 0.12);
    border-color: var(--primary);
    color: var(--primary);
}

/* --- SETTINGS MODAL --- */
.settings-group {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.settings-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.settings-group h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-group h4 i {
    color: var(--primary);
    font-size: 16px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.setting-row span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    display: inline-block;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    transition: var(--transition-smooth);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: var(--transition-smooth);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* --- FOOTER --- */
.main-footer {
    background: rgba(7, 10, 19, 0.9);
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand .logo {
    margin-bottom: 12px;
}

.logo-icon-sm {
    width: 32px;
    height: 32px;
    font-size: 15px;
}

.footer-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 320px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 30px;
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 12px;
    color: rgba(148, 163, 184, 0.6);
}

/* --- CRITICAL ALERT PANEL --- */
.critical-alert-panel {
    margin-bottom: 25px;
}

.alert-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    animation: slideIn 0.4s ease-out;
}

.alert-critical {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.25);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.1);
}

.alert-icon {
    font-size: 24px;
    color: var(--danger);
    flex-shrink: 0;
}

.alert-content {
    flex-grow: 1;
}

.alert-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.alert-content p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* --- AUTO-BAN CARD --- */
.auto-ban-card {
    margin-bottom: 30px;
}

.auto-ban-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.auto-ban-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.auto-ban-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.auto-ban-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.auto-ban-icon.danger {
    background: rgba(244, 63, 94, 0.1);
    color: var(--danger);
}

.auto-ban-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.auto-ban-label {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}

.auto-ban-stat strong {
    font-size: 13px;
    color: var(--text-main);
}

/* --- ADDITIONAL KPI GLOWS --- */
.purple-glow { background: rgba(139, 92, 246, 0.1); color: #a78bfa; }
.cyan-glow { background: rgba(0, 242, 254, 0.1); color: #00f2fe; }

/* --- ADMIN CHARTS GRID UPDATE --- */
.admin-charts-grid {
    grid-template-columns: 1fr 1fr;
}

/* Responsive Overrides */
@media (max-width: 1400px) {
    .kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .auto-ban-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .portal-grid {
        grid-template-columns: 1fr;
    }
    .chat-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .video-container {
        height: 500px;
    }
    .user-video-box {
        bottom: 95px;
    }
    .admin-charts-grid {
        grid-template-columns: 1fr;
    }
    .kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .header-container {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
    }
    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        overflow-x: auto;
    }
    .nav-item {
        font-size: 12px;
        padding: 6px 14px;
        white-space: nowrap;
    }
    .header-status {
        gap: 8px;
    }
    .connection-badge {
        display: none;
    }
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-summary-grid {
        grid-template-columns: 1fr;
    }
    .chat-grid {
        grid-template-columns: 1fr;
    }
    .sidebar-container {
        order: 2;
    }
    .call-controls-bar {
        flex-wrap: wrap;
        height: auto;
        padding: 12px;
        gap: 10px;
    }
    .call-controls-center {
        flex-wrap: wrap;
    }
    .auto-ban-stats-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .report-options-grid {
        grid-template-columns: 1fr;
    }
    .modal-container {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
}

@media (max-width: 600px) {
    .app-container {
        padding: 12px;
    }
    .logo-subtitle {
        display: none;
    }
    .online-counter-badge {
        font-size: 10px;
        padding: 4px 10px;
    }
    .portal-hero h1 {
        font-size: 24px;
    }
    .portal-hero p {
        font-size: 12px;
    }
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .user-video-box {
        width: 130px;
        height: 90px;
        right: 10px;
        bottom: 85px;
    }
    .video-partner-name {
        font-size: 11px;
        padding: 6px 12px;
    }
    .safety-meters-grid {
        grid-template-columns: 1fr;
    }
    .simulation-grid {
        grid-template-columns: 1fr;
    }
    .btn-sim-reset {
        grid-column: span 1;
    }
    .star-rating i {
        font-size: 26px;
    }
}

/* --- LOUNGE SYSTEM --- */
.lounge-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-bottom: 50px;
}

.lounge-header-card {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lounge-header-title h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.lounge-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.lounge-search-bar {
    position: relative;
    flex-grow: 1;
    min-width: 280px;
}

.lounge-search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.lounge-search-bar input {
    width: 100%;
    padding: 12px 15px 12px 42px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: var(--transition-smooth);
}

.lounge-search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.lounge-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.lounge-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lounge-filter-group label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.lounge-filter-group select {
    padding: 10px 15px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    outline: none;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lounge-filter-group select:focus {
    border-color: var(--primary);
}

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

.profile-lounge-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: var(--transition-smooth);
}

.profile-lounge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(59, 130, 246, 0.15);
}

.lounge-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lounge-card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 2px;
}

.lounge-card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lounge-card-name {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
}

.lounge-card-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.lounge-card-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 52px;
    align-content: flex-start;
}

.interest-badge {
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    color: var(--text-muted);
}

.lounge-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.lounge-card-actions button {
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-call-now {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-call-now:hover {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.btn-follow {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-follow:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-follow.following {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

/* --- LIKE/DISLIKE FEEDBACK IN RATING MODAL --- */
.like-dislike-rating {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 15px 0;
}

.btn-feedback {
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease-in-out;
}

.btn-feedback-like {
    background: rgba(16, 185, 129, 0.08);
    border: 2px dashed rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.btn-feedback-like:hover, .btn-feedback-like.active {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
    border-style: solid;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.btn-feedback-dislike {
    background: rgba(239, 68, 68, 0.08);
    border: 2px dashed rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.btn-feedback-dislike:hover, .btn-feedback-dislike.active {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    border-style: solid;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

/* --- AR FILTERS CAROUSEL --- */
.ar-filters-carousel-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.ar-filters-carousel-container::-webkit-scrollbar {
    height: 4px;
}
.ar-filters-carousel-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.ar-filter-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    outline: none;
}

.ar-filter-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.ar-filter-item.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-color: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

/* --- REPORT CHIPS --- */
.report-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.report-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-normal);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease-in-out;
    outline: none;
}

.report-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.report-chip.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

/* Azar Swipe Match Card Styles */
.swipe-match-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 100%;
    max-width: 340px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.swipe-match-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.swipe-card-avatar-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.swipe-card-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.swipe-match-card:hover .swipe-card-avatar {
    transform: scale(1.08);
}

.swipe-card-verified-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.swipe-card-compat-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.swipe-card-body {
    padding: 20px;
    text-align: left;
}

.swipe-card-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-normal);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.swipe-card-location {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.swipe-card-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.swipe-card-interests .interest-tag {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
    color: #ffd0b0;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 500;
}

.swipe-card-purpose-box {
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--text-muted);
    border-left: 3px solid var(--primary);
}

.swipe-card-purpose-box strong {
    color: var(--text-normal);
    display: block;
    margin-top: 2px;
    font-size: 13px;
}

.timer-badge {
    font-size: 12px;
    font-weight: 700;
    color: #f87171;
    background: rgba(244, 63, 94, 0.1);
    padding: 6px 14px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    border: 1px solid rgba(244, 63, 94, 0.2);
    box-shadow: 0 4px 10px rgba(244, 63, 94, 0.1);
}

.animate-spin-slow { animation: fa-spin 3s linear infinite; }

.skip-btn {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    color: var(--text-normal) !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
    border-radius: 99px !important;
}

.skip-btn:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #f87171 !important;
}

.call-btn {
    background: var(--secondary-gradient) !important;
    border: none !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4) !important;
    transition: all 0.2s ease !important;
    border-radius: 99px !important;
}

.call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255,70,102,0.3) !important;
}

/* Radar Circle Ripple */
@keyframes radar-ripple {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(2.2); opacity: 0; }
}
.radar-circle { animation: radar-ripple 3s infinite linear; }

/* Card Scanning during matching */
.searching-card-background {
    position: relative;
    width: 100%;
    max-width: 220px;
    height: 140px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px dashed rgba(124, 58, 237, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.searching-card-slider {
    position: absolute;
    width: 100px; height: 100px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(255,140,66,0.2) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: rgba(200, 160, 255, 0.4);
    animation: cardScan 2.5s infinite ease-in-out;
}

@keyframes cardScan {
    0% { transform: translateX(-150px) rotate(-10deg) scale(0.8); opacity: 0; }
    50% { transform: translateX(0) rotate(0deg) scale(1.1); opacity: 0.8; box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3); }
    100% { transform: translateX(150px) rotate(10deg) scale(0.8); opacity: 0; }
}

/* ============================================
   AZAR-STYLE KEYFRAME ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 8px 30px rgba(255,70,102,0.3), 0 4px 12px rgba(236,72,153,0.3); }
    50% { box-shadow: 0 8px 40px rgba(255,70,102,0.3), 0 4px 18px rgba(236,72,153,0.5), 0 0 60px rgba(255,255,255,0.06); }
}

@keyframes pulse {
    from { box-shadow: 0 0 5px var(--primary-glow); }
    to { box-shadow: 0 0 20px var(--primary-glow); }
}

@keyframes avatarPulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes flowNode {
    0% { left: 0; }
    100% { left: calc(100% - 12px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spark {
    from { transform: scale(0.9) rotate(-5deg); color: var(--warning); }
    to { transform: scale(1.15) rotate(5deg); color: var(--secondary); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

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

/* ============================================
   AZAR-STYLE LOUNGE PROFILE CARDS
   ============================================ */
.lounge-container { padding: 8px 0; }

.lounge-header-card .lounge-header-title { padding: 4px 0; }

.lounge-filters-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.lounge-filters-row .input-wrapper {
    flex: 1;
    min-width: 160px;
}

#lounge-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.profile-lounge-card {
    background: rgba(22,24,35,0.92);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
}

.profile-lounge-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 20px 45px rgba(0,0,0,0.5), 0 0 25px rgba(255,70,102,0.15);
}

.lounge-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255,70,102,0.06);
    border-bottom: 1px solid rgba(255,70,102,0.12);
}

.lounge-card-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
    flex-shrink: 0;
}

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

.lounge-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lounge-card-meta {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.lounge-card-interests {
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.interest-badge {
    background: rgba(255,70,102,0.12);
    border: 1px solid rgba(255,70,102,0.22);
    color: #ffd0b0;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 500;
}

.lounge-card-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    margin-top: auto;
    border-top: 1px solid rgba(255,70,102,0.1);
}

.btn-call-now {
    flex: 1;
    background: var(--secondary-gradient);
    color: white;
    border: none;
    border-radius: 99px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: var(--transition-smooth);
    box-shadow: 0 3px 12px rgba(255,70,102,0.35);
}

.btn-call-now:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(255,70,102,0.55);
}

.btn-follow {
    padding: 8px 14px;
    border-radius: 99px;
    border: 1px solid rgba(255,70,102,0.35);
    background: rgba(255,70,102,0.1);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-smooth);
}

.btn-follow:hover {
    background: rgba(255,70,102,0.2);
    color: var(--text-main);
    border-color: rgba(255,70,102,0.55);
}

.btn-follow.following {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--success);
}

/* ============================================
   ICON BUTTON (header icons)
   ============================================ */
.icon-btn-header {
    width: 34px; height: 34px;
    background: rgba(255,70,102,0.1);
    border: 1px solid rgba(255,70,102,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.icon-btn-header:hover {
    background: rgba(255,70,102,0.22);
    color: var(--text-main);
    border-color: rgba(255,70,102,0.5);
    transform: scale(1.08);
}

/* ============================================
   AUTH MODAL — AZAR STYLE
   ============================================ */
.auth-modal-body {
    background: rgba(18,20,30,0.97);
    border: 1px solid rgba(255,70,102,0.3);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.auth-tab-bar {
    display: flex;
    border-bottom: 1px solid rgba(255,70,102,0.15);
    background: rgba(255,70,102,0.05);
}

.auth-tab-btn {
    flex: 1;
    padding: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
}

.auth-tab-btn.active {
    color: var(--text-main);
    border-bottom-color: var(--primary);
    background: rgba(255,70,102,0.06);
}

/* ============================================
   SWIPE MATCH CARD — AZAR STYLE  
   ============================================ */
.swipe-match-card {
    background: rgba(22,24,35,0.92);
    border: 1px solid rgba(255,70,102,0.3);
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 25px rgba(255,70,102,0.12);
    transition: transform 0.3s ease;
}

.swipe-match-card:hover { transform: scale(1.01); }

.swipe-card-avatar-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: rgba(255,70,102,0.08);
}

.swipe-card-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.swipe-card-verified-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(16, 185, 129, 0.85);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
}

.swipe-card-compat-badge {
    position: absolute;
    top: 10px; right: 10px;
    background: var(--secondary-gradient);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
}

.swipe-card-body {
    padding: 16px;
}

.swipe-card-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.swipe-card-location {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.swipe-card-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

/* ============================================
   TOAST NOTIFICATIONS — AZAR STYLE
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(22,24,35,0.92);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 280px;
    max-width: 360px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,70,102,0.1);
    backdrop-filter: blur(16px);
    animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: all;
    overflow: hidden;
    position: relative;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
}

.toast.success::before { background: var(--success); }
.toast.danger::before { background: var(--danger); }
.toast.warning::before { background: var(--warning); }
.toast.info::before { background: var(--primary); }

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

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(30px) scale(0.9); }
}

/* ============================================
   MODAL OVERLAY — AZAR STYLE
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8,9,14,0.85);
    backdrop-filter: blur(8px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-box {
    background: rgba(18,20,30,0.97);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 70px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,70,102,0.15), 0 0 60px rgba(255,70,102,0.08);
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleUp 0.25s ease-out forwards;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,70,102,0.15);
    background: rgba(255,70,102,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-body { padding: 24px; }

.modal-close-btn {
    width: 30px; height: 30px;
    background: rgba(255,70,102,0.1);
    border: 1px solid rgba(255,70,102,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 13px;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    background: rgba(244,63,94,0.15);
    color: var(--danger);
    border-color: rgba(244,63,94,0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .portal-grid { grid-template-columns: 1fr; }
    .chat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-container { padding: 12px 16px; }
    .nav-menu { display: none; }
    .app-container { padding: 16px; }
    .features-summary-grid { grid-template-columns: 1fr; }
    #lounge-profiles-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}


.swipe-card-purpose-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--text-muted);
    border-left: 3px solid var(--primary-color);
}

.swipe-card-purpose-box strong {
    color: var(--text-normal);
    display: block;
    margin-top: 2px;
    font-size: 13px;
}

.timer-badge {
    font-size: 12px;
    font-weight: 700;
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.1);
    padding: 6px 14px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    border: 1px solid rgba(244, 63, 94, 0.2);
    box-shadow: 0 4px 10px rgba(244, 63, 94, 0.1);
}

.animate-spin-slow {
    animation: fa-spin 3s linear infinite;
}

.skip-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-normal) !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
}

.skip-btn:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #ef4444 !important;
}

.call-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
    transition: all 0.2s ease !important;
}

.call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
}

/* Radar Circle Ripple Animation Upgrade */
@keyframes radar-ripple {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.radar-circle {
    animation: radar-ripple 3s infinite linear;
}

/* Card Background Scanning Animation during matching */
.searching-card-background {
    position: relative;
    width: 100%;
    max-width: 220px;
    height: 140px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.searching-card-slider {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.3);
    animation: cardScan 2.5s infinite ease-in-out;
}

@keyframes cardScan {
    0% {
        transform: translateX(-150px) rotate(-10deg) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateX(0) rotate(0deg) scale(1.1);
        opacity: 0.8;
        box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
    }
    100% {
        transform: translateX(150px) rotate(10deg) scale(0.8);
        opacity: 0;
    }
}






