/* ==========================================
   KENEGDO DEMO DESIGN SYSTEM & STYLESHEET
   ========================================== */

/* Design Tokens & CSS Variables */
:root {
    /* Color Schemes */
    --color-scheme: dark;
    
    /* Backgrounds */
    --bg-base: #07090e;
    --bg-panel: rgba(17, 21, 37, 0.7);
    --bg-card: rgba(26, 32, 53, 0.55);
    --bg-card-hover: rgba(36, 44, 71, 0.7);
    --bg-input: rgba(10, 12, 22, 0.6);
    --bg-tooltip: rgba(15, 18, 32, 0.95);
    
    /* Borders & Outlines */
    --border-color: rgba(255, 255, 255, 0.05);
    --border-color-hover: rgba(255, 255, 255, 0.12);
    --border-color-focus: #8b5cf6;
    
    /* Brand Accents & Gradients */
    --color-primary: #8b5cf6; /* Violet */
    --color-secondary: #3b82f6; /* Electric Blue */
    --color-success: #10b981; /* Emerald */
    --color-pending: #f59e0b; /* Amber */
    
    --brand-gradient: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    --card-header-gradient: linear-gradient(135deg, rgba(139, 92, 246, 0.8) 0%, rgba(59, 130, 246, 0.8) 100%);
    --glow-gradient: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
    
    /* Typography */
    --font-header: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 50px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Transition speeds */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Scrollbar Properties */
    --scrollbar-thumb: rgba(139, 92, 246, 0.4);
    --scrollbar-track: rgba(10, 12, 22, 0.5);
}

/* Light Theme Variables */
.light-theme {
    --color-scheme: light;
    
    --bg-base: #f3f4f6;
    --bg-panel: rgba(255, 255, 255, 0.85);
    --bg-card: rgba(243, 244, 246, 0.9);
    --bg-card-hover: rgba(229, 231, 235, 1);
    --bg-input: #ffffff;
    --bg-tooltip: rgba(255, 255, 255, 0.98);
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-hover: rgba(0, 0, 0, 0.15);
    
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 50px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.15);
    
    --scrollbar-thumb: rgba(139, 92, 246, 0.3);
    --scrollbar-track: rgba(243, 244, 246, 0.7);
    
    --glow-gradient: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
}

/* Base Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
    color-scheme: var(--color-scheme);
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Custom Standardized Scrollbars */
.chat-messages-container,
.tags-scroller-container,
.workspace-sidebar,
.modal-body {
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    scrollbar-width: thin;
}

/* Legacy fallback for WebKit/Blink browsers */
@supports not (scrollbar-color: auto) {
    .chat-messages-container::-webkit-scrollbar,
    .tags-scroller-container::-webkit-scrollbar,
    .workspace-sidebar::-webkit-scrollbar,
    .modal-body::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    .chat-messages-container::-webkit-scrollbar-thumb,
    .tags-scroller-container::-webkit-scrollbar-thumb,
    .workspace-sidebar::-webkit-scrollbar-thumb,
    .modal-body::-webkit-scrollbar-thumb {
        background: var(--scrollbar-thumb);
        border-radius: var(--radius-full);
    }

    .chat-messages-container::-webkit-scrollbar-track,
    .tags-scroller-container::-webkit-scrollbar-track,
    .workspace-sidebar::-webkit-scrollbar-track,
    .modal-body::-webkit-scrollbar-track {
        background: var(--scrollbar-track);
        border-radius: var(--radius-full);
    }
}

/* Atmospheric Ambient Glowing Gradients */
.radial-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--glow-gradient);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

.glow-top-left {
    top: -200px;
    left: -200px;
}

.glow-bottom-right {
    bottom: -200px;
    right: -200px;
}

/* Demo workspace announcement banner */
.demo-banner {
    background: var(--brand-gradient);
    padding: 8px 16px;
    font-family: var(--font-header);
    font-size: 13px;
    color: #ffffff;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    z-index: 999;
    position: relative;
}

.banner-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition-fast);
}

.banner-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* App Container Layout */
.app-container {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 16px;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}

/* Premium Floating Header */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    transition: background var(--transition-normal), border-color var(--transition-normal);
}

.header-logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-symbol {
    display: flex;
    align-items: center;
}

.logo-text-group h1 {
    font-family: var(--font-header);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text-group p.tagline {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* Header Navigation Links */
.header-nav {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.15);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.nav-item {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-header);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item:hover {
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.nav-badge {
    background: var(--color-primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: var(--radius-full);
}

/* Header Utility Buttons */
.header-utilities {
    display: flex;
    align-items: center;
    gap: 12px;
}

.utility-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-header);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.utility-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-color-hover);
}

.notification-btn {
    position: relative;
    padding: 8px;
    border-radius: var(--radius-full);
}

.notification-indicator {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
    box-shadow: 0 0 6px var(--color-primary);
}

/* User pill dropdown */
.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
}

.user-avatar-text {
    width: 24px;
    height: 24px;
    background: var(--brand-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
}

.user-name {
    font-size: 12px;
    font-weight: 600;
}

.user-role-badge {
    font-size: 9px;
    background: rgba(255,255,255,0.06);
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.user-chevron {
    font-size: 10px;
    color: var(--text-muted);
}

/* Main Workspace Pane States */
.main-content {
    flex-grow: 1;
    position: relative;
}

.tab-pane {
    display: none;
    width: 100%;
}

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

/* Glassmorphism Card Style */
.glass-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
    transition: background var(--transition-normal), border-color var(--transition-normal);
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
}

/* ==========================================
   BROWSE TAB: Batch Completed Styles
   ========================================== */
.browse-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 32px;
    padding-bottom: 40px;
    min-height: 480px;
    width: 100%;
}

/* ==========================================
   BROWSE TAB: Interactive Card Deck Styles
   ========================================== */
.profile-deck-container {
    max-width: 580px;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.profile-deck-header {
    text-align: center;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.deck-subtitle {
    font-family: var(--font-header);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--color-primary);
    background: rgba(139, 92, 246, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.profile-deck-container h2 {
    font-family: var(--font-header);
    font-size: 24px;
    font-weight: 800;
    margin-top: 4px;
    letter-spacing: -0.3px;
}

.profile-deck-container p {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 440px;
}

.profile-deck {
    display: grid;
    width: 100%;
    margin-top: 10px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.profile-deck-card {
    grid-row: 1;
    grid-column: 1;
    display: flex;
    flex-direction: column;
    backface-visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.15), opacity 0.4s ease, filter 0.4s ease;
    border-radius: var(--radius-lg);
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.profile-deck-card .card-body {
    overflow-y: auto;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    scrollbar-width: thin;
    max-height: 380px;
}

.profile-deck-card .card-body::-webkit-scrollbar {
    width: 4px;
}

.profile-deck-card .card-body::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: var(--radius-full);
}

.card-gradient-top.female-gradient {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.2);
}

/* Card active/middle/bottom layered state rules */
.profile-deck-card.active-card {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
    filter: blur(0);
}

.profile-deck-card.sibling-card-1 {
    transform: translate3d(0, 0, 0) scale(0.95);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    filter: blur(1px);
}

.profile-deck-card.sibling-card-2 {
    transform: translate3d(0, 0, 0) scale(0.9);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    filter: blur(2px);
}

/* Swipe slide-out exit animations */
.profile-deck-card.swiped-pass {
    transform: translate3d(-150%, 40px, 0) rotate(-15deg) scale(0.9) !important;
    opacity: 0 !important;
    pointer-events: none;
}

.profile-deck-card.swiped-intro {
    transform: translate3d(150%, 40px, 0) rotate(15deg) scale(0.9) !important;
    opacity: 0 !important;
    pointer-events: none;
}

/* Deck Actions Panel */
.deck-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 12px;
    width: 100%;
}

.deck-btn {
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
    outline: none;
    min-width: 160px;
    user-select: none;
}

.deck-btn i {
    font-size: 15px;
}

.deck-btn.btn-pass {
    background: rgba(10, 12, 22, 0.4);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.deck-btn.btn-pass:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.15);
}

.deck-btn.btn-pass:active {
    transform: translateY(1px);
}

.deck-btn.btn-intro {
    background: var(--brand-gradient);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

.deck-btn.btn-intro:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4), 0 0 15px rgba(59, 130, 246, 0.2);
}

.deck-btn.btn-intro:active {
    transform: translateY(1px);
}

.batch-completed-card {
    max-width: 580px;
    width: 100%;
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.animated-icon-wrapper {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.completed-icon {
    font-size: 32px;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 2;
}

.pulsing-halo {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-full);
    z-index: 1;
    animation: pulseGlow 3s infinite ease-in-out;
}

.batch-completed-card h2 {
    font-family: var(--font-header);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.completed-description {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 480px;
}

/* Referral Box inside Empty State */
.referral-box {
    width: 100%;
    text-align: left;
}

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

.referral-tag {
    font-family: var(--font-header);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--color-primary);
    background: rgba(139, 92, 246, 0.12);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.referral-counter {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

.referral-box h3 {
    font-family: var(--font-header);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.referral-box p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.link-input-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.link-input-wrapper input {
    flex-grow: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: monospace;
    font-size: 11px;
    padding: 8px 12px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.link-input-wrapper input:focus {
    border-color: var(--color-primary);
}

/* Sharing buttons */
.sharing-actions {
    display: flex;
    gap: 10px;
}

.share-action-btn {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.whatsapp-btn:hover {
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.3) !important;
    background: rgba(37, 211, 102, 0.05) !important;
}

/* ==========================================
   REQUESTS TAB STYLES
   ========================================== */
.requests-layout {
    width: 100%;
}

.requests-header {
    margin-bottom: 24px;
}

.requests-header h2 {
    font-family: var(--font-header);
    font-size: 24px;
    font-weight: 700;
}

.requests-header p {
    color: var(--text-secondary);
}

.requests-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: start;
}

.limit-status-card {
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.limit-status-card h3 {
    font-family: var(--font-header);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.limit-counter-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.35s;
    transform-origin: 50% 50%;
}

.limit-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.limit-count {
    font-family: var(--font-header);
    font-size: 22px;
    font-weight: 700;
}

.limit-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.limit-disclaimer {
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.4;
}

.requests-list-panel {
    padding: 24px;
}

.requests-list-panel h3 {
    font-family: var(--font-header);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.requests-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.request-item {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: var(--radius-md);
}

.request-avatar {
    width: 44px;
    height: 44px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 12px;
    color: var(--color-primary);
    margin-right: 16px;
}

.request-details {
    flex-grow: 1;
}

.request-details h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.request-details p {
    font-size: 11px;
    color: var(--text-muted);
}

.request-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.request-status.pending {
    background: rgba(245, 158, 11, 0.12);
    color: var(--color-pending);
}

.requests-list.empty {
    padding: 32px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.05);
}

.empty-inbox-icon {
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.requests-list.empty p {
    color: var(--text-secondary);
    font-size: 12px;
    max-width: 320px;
}

/* ==========================================
   SHADCHANIM TAB: 3-Column Workspace Styles
   ========================================== */
.shadchan-workspace {
    display: grid;
    grid-template-columns: 240px 1fr 280px;
    gap: 16px;
    min-height: calc(100vh - 200px);
    height: 580px;
}

/* Column 1: Sidebar Directory Accordion */
.workspace-sidebar {
    padding: 16px;
    overflow-y: auto;
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-header);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 0;
}

.accordion-arrow {
    font-size: 9px;
    margin-right: 8px;
    transition: transform var(--transition-fast);
}

.accordion-header.active .accordion-arrow {
    transform: rotate(90deg); /* Handled by JS toggling custom icon class */
}

.accordion-badge {
    margin-left: auto;
    font-size: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 6px;
    border-radius: var(--radius-full);
}

.accordion-badge-new {
    margin-left: auto;
    font-size: 8px;
    background: var(--brand-gradient);
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    color: #ffffff;
}

.accordion-content {
    display: none;
    padding-top: 8px;
}

.accordion-content.open {
    display: block;
}

.matchmaker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}

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

.matchmaker-item.active {
    background: rgba(139, 92, 246, 0.15);
    border-left: 2px solid var(--color-primary);
}

.mm-avatar-glow {
    width: 32px;
    height: 32px;
    background: var(--brand-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.mm-info-block {
    display: flex;
    flex-direction: column;
}

.mm-name {
    font-size: 12px;
    font-weight: 600;
}

.mm-status {
    font-size: 9px;
    color: var(--text-muted);
}

.empty-accordion-msg {
    font-size: 11px;
    color: var(--text-muted);
    padding: 6px 10px;
    font-style: italic;
}

.public-directory-promo {
    padding: 8px 10px;
}

.public-directory-promo p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
}

/* Column 2: Chat Layout */
.workspace-chat {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

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

.chat-header-title h3 {
    font-family: var(--font-header);
    font-size: 15px;
    font-weight: 600;
}

.chat-status-indicator {
    font-size: 10px;
    color: var(--color-success);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 1px;
}

.dot-online {
    width: 6px;
    height: 6px;
    background-color: var(--color-success);
    border-radius: var(--radius-full);
    display: inline-block;
    box-shadow: 0 0 6px var(--color-success);
}

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

.info-toggle-label {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Message Feed */
.chat-messages-container {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.system-time {
    text-align: center;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 12px 0 4px 0;
}

.msg-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    position: relative;
    animation: msgBubblePop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.msg-time {
    font-size: 9px;
    color: var(--text-muted);
    display: block;
    text-align: right;
    margin-top: 4px;
}

.shadchan-msg {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 2px;
}

.user-msg {
    align-self: flex-end;
    background: var(--color-primary);
    color: #ffffff;
    border-bottom-right-radius: 2px;
    box-shadow: var(--shadow-sm);
}

.user-msg .msg-time {
    color: rgba(255, 255, 255, 0.7);
}

/* Attachment preview bubble layout */
.msg-attachment {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 10px;
    border-radius: var(--radius-sm);
    margin-top: 4px;
}

.msg-attachment i {
    font-size: 18px;
    color: var(--color-primary);
}

.attachment-details h5 {
    font-size: 11px;
    font-weight: 600;
}

.attachment-details span {
    font-size: 9px;
    color: var(--text-muted);
}

/* Typing indicator */
.typing-indicator-bubble {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    border-bottom-left-radius: 2px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: var(--radius-full);
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* Message Input area */
.chat-input-bar {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-attach-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.chat-attach-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-color-hover);
}

.chat-input-wrapper {
    flex-grow: 1;
}

.chat-input-wrapper input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 16px;
    outline: none;
    transition: border-color var(--transition-fast);
}

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

.chat-send-btn {
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-send-btn:hover {
    background: #6d28d9;
}

/* Column 3: Drawer Info Panel */
.workspace-info-drawer {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
    transition: transform var(--transition-normal), width var(--transition-normal);
}

.workspace-info-drawer.collapsed {
    display: none; /* Smooth toggling */
}

.drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.drawer-header h4 {
    font-family: var(--font-header);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.drawer-body {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.drawer-avatar-glow {
    width: 64px;
    height: 64px;
    background: var(--brand-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.drawer-body h5 {
    font-family: var(--font-header);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.drawer-subtext {
    font-size: 11px;
    color: var(--text-muted);
}

.drawer-divider {
    width: 100%;
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 20px 0;
}

.info-field {
    width: 100%;
    text-align: left;
    margin-bottom: 16px;
}

.info-field label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.info-field p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.status-badge-green {
    color: var(--color-success);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bio-text {
    font-style: italic;
}

/* ==========================================
   PROFILE ONBOARDING TAB STYLES
   ========================================== */
.profile-layout {
    width: 100%;
}

/* Onboarding Stepper Header */
.profile-stepper-wrapper {
    padding: 16px 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.stepper-items {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-basis: 0;
    flex-grow: 1;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-secondary);
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.stepper-item.active .step-num {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.stepper-item.completed .step-num {
    background: rgba(16, 185, 129, 0.12);
    border-color: var(--color-success);
    color: var(--color-success);
}

.stepper-item span {
    font-family: var(--font-header);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.stepper-item.active span {
    color: var(--text-primary);
}

.step-completion-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
}

.step-progress-bar {
    height: 100%;
    background: var(--brand-gradient);
    transition: width var(--transition-normal);
}

/* Split Column Layout for onboarding and live preview */
.profile-split-view {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    align-items: start;
}

.onboarding-forms-container {
    padding: 32px;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.onboarding-step-pane {
    display: none;
}

.onboarding-step-pane.active {
    display: block;
    animation: fadeInPane var(--transition-normal);
}

.step-pane-header {
    margin-bottom: 24px;
}

.step-pane-header h2 {
    font-family: var(--font-header);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.step-pane-header p {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Onboarding navigation buttons */
.onboarding-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

/* Form layout items */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 14px;
    outline: none;
    font-family: var(--font-body);
    font-size: 13px;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
}

/* ==========================================
   AI RESUME PARSER DROPZONE
   ========================================== */
.resume-parser-zone {
    background: rgba(139, 92, 246, 0.03);
    border: 2px dashed rgba(139, 92, 246, 0.25);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.resume-parser-zone:hover {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.45);
}

.resume-parser-zone.dragover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--color-primary);
}

.parser-icon-halo {
    position: relative;
    width: 48px;
    height: 48px;
    background: rgba(139, 92, 246, 0.12);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
}

.parser-pdf-icon {
    font-size: 20px;
    color: var(--color-primary);
}

.parser-sparkle-overlay {
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 11px;
    color: var(--color-success);
    animation: pulseGlow 2s infinite ease-in-out;
}

.resume-parser-zone h4 {
    font-family: var(--font-header);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.resume-parser-zone p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    max-width: 380px;
    margin: 0 auto 12px auto;
}

/* Spinner and loading lines */
.spinner-sparkle {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    margin: 0 auto 12px auto;
    animation: rotate 1s infinite linear;
}

.parser-progress-bar-wrapper {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-full);
    margin: 12px auto 0 auto;
    overflow: hidden;
}

.parser-progress-bar {
    height: 100%;
    background: var(--brand-gradient);
    width: 0%;
    transition: width var(--transition-fast);
}

.parser-success-icon {
    font-size: 28px;
    color: var(--color-success);
    margin-bottom: 12px;
}

/* ==========================================
   STEP 3: TAG LAYOUT SEARCH & FILTER
   ========================================== */
.tag-search-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.tag-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 12px;
}

.tag-search-wrapper input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 14px 10px 38px;
    outline: none;
    font-size: 12px;
    transition: border-color var(--transition-fast);
}

.tag-search-wrapper input:focus {
    border-color: var(--color-primary);
}

.tags-scroller-container {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 6px;
}

.tag-category-group h4 {
    font-family: var(--font-header);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.tags-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.tag-pill:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
}

.tag-pill.selected {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.2);
}

.tag-pill-filled {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    color: var(--text-secondary);
}

/* Visibility card list */
.visibility-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.visibility-text-block h4 {
    font-family: var(--font-header);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.visibility-text-block p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Custom switch toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.08);
    transition: .4s;
    border: 1px solid var(--border-color);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--color-primary);
}

input:checked + .slider:before {
    transform: translateX(20px);
    background-color: #ffffff;
}

.slider.round {
    border-radius: var(--radius-full);
}

.slider.round:before {
    border-radius: 50%;
}

/* Summary Review styling */
.summary-fields-review {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    border-radius: var(--radius-md);
}

.review-block h4 {
    font-family: var(--font-header);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-block p {
    font-size: 13px;
    color: var(--text-primary);
    margin-top: 6px;
}

/* ==========================================
   RIGHT SIDEBAR: High Fidelity Card Preview
   ========================================== */
.onboarding-preview-container {
    position: relative;
    width: 100%;
}

.sticky-preview-wrapper {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.preview-header h4 {
    font-family: var(--font-header);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.preview-disclaimer-badge {
    font-size: 9px;
    font-weight: 700;
    color: var(--color-success);
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* The Anonymized Card Container */
.anonymous-profile-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
}

.card-gradient-top {
    background: var(--card-header-gradient);
    padding: 24px;
    text-align: center;
    color: #ffffff;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.card-avatar-placeholder {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.anonym-avatar-icon {
    font-size: 22px;
    color: #ffffff;
}

.card-profile-id {
    font-family: var(--font-header);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.card-profile-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-detail-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.card-detail-pill i {
    font-size: 10px;
    color: var(--color-primary);
}

.card-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-section.border-top {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.card-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.card-ai-summary {
    font-size: 12px;
    color: var(--text-primary);
    line-height: 1.5;
    background: rgba(139, 92, 246, 0.04);
    border-left: 2px solid var(--color-primary);
    padding: 8px 12px;
    border-radius: 2px var(--radius-sm) var(--radius-sm) 2px;
}

.card-looking-for-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Trust assurance box */
.security-assurance-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.assurance-icon-cell {
    font-size: 18px;
    color: var(--color-primary);
    width: 36px;
    height: 36px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.assurance-text-cell h5 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
}

.assurance-text-cell p {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================
   MODAL WINDOW & DIRECTORY DIALOGS
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity var(--transition-normal);
}

.modal-window {
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-header h3 {
    font-family: var(--font-header);
    font-size: 16px;
    font-weight: 600;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.modal-search-bar {
    position: relative;
    margin-bottom: 20px;
}

.modal-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.modal-search-bar input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 14px 10px 38px;
    outline: none;
    font-size: 13px;
    transition: border-color var(--transition-fast);
}

.modal-search-bar input:focus {
    border-color: var(--color-primary);
}

.modal-matchmaker-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-mm-card {
    display: flex;
    gap: 16px;
    align-items: start;
    padding: 16px;
}

.modal-mm-avatar {
    width: 44px;
    height: 44px;
    background: var(--brand-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.25);
    flex-shrink: 0;
}

.modal-mm-details {
    flex-grow: 1;
}

.modal-mm-details h4 {
    font-family: var(--font-header);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.badge-specialty {
    font-size: 9px;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(139, 92, 246, 0.1);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: 6px;
}

.modal-mm-loc {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.modal-mm-bio {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 12px;
}

/* ==========================================
   CUSTOM ALERTS & SYSTEM TOUURS
   ========================================== */
.custom-alert {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-tooltip);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.alert-icon {
    font-size: 24px;
    color: var(--color-success);
}

.alert-content h4 {
    font-family: var(--font-header);
    font-size: 13px;
    font-weight: 600;
}

.alert-content p {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Guided system tour step dialog box */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1500;
    pointer-events: auto;
}

.tour-tooltip-box {
    position: absolute;
    width: 320px;
    padding: 18px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: var(--shadow-lg), 0 0 15px rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    z-index: 1501;
    pointer-events: auto;
    background: var(--bg-tooltip);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: pulseBorder 3s infinite ease-in-out;
}

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

.tour-step-indicator {
    font-size: 9px;
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(139, 92, 246, 0.1);
    padding: 1px 6px;
    border-radius: var(--radius-sm);
}

.tour-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
}

.tour-body h4 {
    font-family: var(--font-header);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.tour-body p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.tour-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    align-items: center;
}

/* ==========================================
   STANDARD BTN UTILS & FORM ATOMS
   ========================================== */
button {
    font-family: var(--font-header);
    outline: none;
}

.action-btn {
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.action-btn:hover {
    background: #6d28d9;
}

.action-btn:active {
    transform: scale(0.98);
}

.action-btn-sm {
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.action-btn-sm:hover {
    background: #6d28d9;
}

.action-btn-sm.inline-btn {
    margin-top: 8px;
}

.border-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

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

.border-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: var(--border-color);
}

.btn-copy {
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.btn-copy:hover {
    background: #6d28d9;
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.btn-text:hover {
    text-decoration: underline;
}

.success-btn {
    background: var(--color-success) !important;
}

.success-btn:hover {
    background: #059669 !important;
}

/* Spacer helpers */
.margin-top-sm { margin-top: 8px; }
.margin-top-md { margin-top: 16px; }
.margin-top-lg { margin-top: 24px; }
.margin-top-xl { margin-top: 32px; }
.hidden { display: none !important; }

/* ==========================================
   ANIMATION KEYFRAMES
   ========================================== */
@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 0.95; }
}

@keyframes pulseBorder {
    0%, 100% { border-color: rgba(139, 92, 246, 0.3); }
    50% { border-color: rgba(139, 92, 246, 0.75); }
}

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

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

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

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

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

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

/* ==========================================
   RESPONSIVE LAYOUT MEDIA QUERIES
   ========================================== */
@media (max-width: 1024px) {
    .shadchan-workspace {
        grid-template-columns: 200px 1fr;
    }
    
    .workspace-info-drawer {
        display: none !important; /* Force hide in tablet screens to avoid clamping */
    }
    
    .profile-split-view {
        grid-template-columns: 1fr;
    }
    
    .onboarding-preview-container {
        display: none; /* Hide sticky preview card, focus on form fields on tablet */
    }
}

@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        padding: 16px;
    }
    
    .header-nav {
        justify-content: center;
        width: 100%;
    }
    
    .header-utilities {
        justify-content: space-between;
    }
    
    .requests-grid {
        grid-template-columns: 1fr;
    }
    
    .shadchan-workspace {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }
    
    .workspace-sidebar {
        height: 200px;
    }
    
    .stepper-items span {
        display: none; /* Hide labels on mobile to keep stepper legible */
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
}

/* Mobile responsive adjustments for Browse Deck */
@media (max-width: 580px) {
    .deck-actions {
        gap: 16px;
    }
    .deck-btn {
        min-width: 120px;
        padding: 12px 20px;
        font-size: 13px;
    }
    .profile-deck-container h2 {
        font-size: 20px;
    }
}

/* Smooth expansion transition for children dropdown */
#children-dropdown-container {
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#children-dropdown-container.visible {
    display: flex;
    opacity: 1;
    max-height: 120px;
    margin-top: 12px;
}

