@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Instrument+Serif:ital,wght@0,400;1,400&family=EB+Garamond:wght@400;500;600&display=swap');

:root {
    /* Midnight Glass Prestige Palette */
    --primary-bg: #0A0A0C;
    --sidebar-bg: #0A0A0C;
    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.4);
    --card-shadow: 0 12px 40px rgba(0,0,0,0.4);
    --btn-shadow: 0 8px 15px rgba(0,0,0,0.2);
    
    /* Brand Colors (Consolidated) */
    --accent-gold: #FFFFFF;
    --accent-slate: #FFFFFF;
    --accent-neutral: rgba(255, 255, 255, 0.4);
    --accent-blue: #FFFFFF;
    --accent-teal: #FFFFFF;
    --accent-purple: #FFFFFF;
    --accent-ice: rgba(255,255,255,0.05); 
    --accent-neon-blue: #FFFFFF;

    /* Landing Legacy (Preserved for compatibility) */
    --landing-white: #FFFFFF;
    --landing-dark: #051c2c;
    
    /* Spacing & Radii (Mathematical Precision) */
    --space-8: 8px;
    --space-16: 16px;
    --space-24: 24px;
    --space-32: 32px;
    --space-48: 48px;
    --space-64: 64px;
    --space-96: 96px;
    --radius-outer: 24px;
    --radius-inner: 12px;
    --radius-button: 12px;

    /* Material Tokens */
    --glass-blur: 64px;
    --glass-opacity: 0.03;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-light: rgba(0, 0, 0, 0.05);
    
    /* 10/10 Layered Shadows (Notion/Claude style) */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-premium: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-glow: 0 20px 48px rgba(143, 140, 242, 0.2);

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-editorial: 'Instrument Serif', serif;
    
    /* Overdamped Spring (Anchored Professional) */
    --transition-spring: 600ms cubic-bezier(0.19, 1, 0.22, 1);
    --transition-stagger: 400ms cubic-bezier(0.23, 1, 0.32, 1);
    
    --anim-float: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

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

@keyframes pulse-soft {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.premium-shimmer-bg {
    background: linear-gradient(90deg, #fbfbfc 25%, #f2f4f7 50%, #fbfbfc 75%);
    background-size: 200% 100%;
    animation: shimmer 2.5s infinite linear;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-bg);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100dvh;
    width: 100vw;
    display: flex;
    overflow: hidden; /* Prevent body scroll, all scrolling happens inside containers */
}

@media (max-width: 600px) {
    body {
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
}

/* Typography System */
h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: inherit;
}

h2 {
    font-size: 18px;
    font-weight: 600;
    line-height: inherit;
}

body, p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

.label-meta {
    font-size: 12px;
    font-weight: 500;
}

.swiped-label {
    font-family: 'EB Garamond', serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.tag-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

button {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition-fast);
}

/* Layout Utilities */
.container {
    padding: var(--space-24);
}

.hidden {
    display: none !important;
}

.btn {
    padding: 20px 64px; /* Massive elite presence */
    border-radius: var(--radius-button);
    font-size: 18px; /* Corrected scale */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em; /* Extreme luxury tracking */
    transition: all var(--transition-glass);
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.premium-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: all var(--transition-glass);
    pointer-events: none;
}

.premium-shimmer:hover::before {
    left: 140%;
}

.premium-shimmer:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 48px rgba(0,0,0,0.15);
}

.mckinsey-highlight {
    font-family: var(--font-editorial);
    font-style: italic;
    font-weight: 400;
    color: #4B4ACF; /* Elite Brand Blue (matches squiggle) */
    text-transform: lowercase;
    font-size: 1.25em;
    position: relative;
    z-index: 2;
    display: inline-block;
}

.mckinsey-highlight::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='20' viewBox='0 0 200 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 C 20 0, 30 20, 50 10 S 80 0, 100 10 S 130 20, 150 10 S 180 0, 200 10' fill='none' stroke='%234B4ACF' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 100% 12px;
    background-repeat: no-repeat;
    background-position: left bottom;
}

/* 10/10 Minimalist SaaS Footer */
.landing-footer {
    border-top: 1px solid rgba(0,0,0,0.05); /* Subtle light border */
    padding: var(--space-64) var(--space-32);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-48);
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: var(--space-24);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #051c2c; /* McKinsey Navy */
    opacity: 0.9;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: var(--space-12);
}

.footer-col ul li a {
    color: #051c2c;
    opacity: 0.6;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 200ms ease;
}

.footer-col ul li a:hover {
    opacity: 1;
}

/* iOS 26 'Liquid Glass' Materiality (Light & Dark Variants) */
.glass-panel, .glass-panel-light {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(80px) saturate(180%);
    -webkit-backdrop-filter: blur(80px) saturate(180%);
    border-radius: 32px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.3); 
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 40px 100px -20px rgba(0, 0, 0, 0.4),
        inset 0 0 24px rgba(255, 255, 255, 0.04);
}

.glass-panel-light {
    background: rgba(255, 255, 255, 0.95); /* 95% White 'Milk Glass' */
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 
        0 20px 40px -12px rgba(0, 0, 0, 0.05),
        inset 0 0 40px rgba(255, 255, 255, 0.5);
    color: var(--landing-dark);
}

.glass-panel::after, .glass-panel-light::after {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 70%
    );
    filter: blur(60px);
    pointer-events: none;
}

.glass-panel:hover, .glass-panel-light:hover {
    transform: translateY(-8px) scale(1.02);
}

.glass-panel-light:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 40px 80px -10px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(75, 74, 207, 0.05);
    transform: translateY(-8px) scale(1.01);
}

/* Swiped Component */
.card-swiped {
    padding: 48px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 
        0 20px 48px -12px rgba(0, 0, 0, 0.08),
        inset 0 0 40px rgba(255, 255, 255, 0.8);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.card-vanguard:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.12);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(75, 74, 207, 0.1) 0%, rgba(75, 74, 207, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4B4ACF;
    margin-bottom: 8px;
}

.micro-heading {
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #4B4ACF;
    opacity: 0.6;
}

.glass-panel:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
    background-color: var(--text-light);
    color: var(--primary-bg);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    background-color: var(--accent-primary);
    color: var(--primary-bg);
    box-shadow: 0 20px 48px rgba(143, 140, 242, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-glass);
}

.btn-outline:hover {
    border-color: var(--landing-dark);
    background: rgba(5, 28, 45, 0.02);
}

.glass-pill {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(48px);
    -webkit-backdrop-filter: blur(48px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-button);
    padding: var(--space-8) var(--space-24);
    box-shadow: var(--shadow-elite);
    color: var(--text-light);
}

/* Utility Classes */

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #051C2D, #0A2A43);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s ease;
}

.splash-screen.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.splash-logo {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400; 
    font-size: 88px;
    color: var(--text-light);
    text-transform: none;
    letter-spacing: -0.02em;
    animation: splash-glow 3s infinite ease-in-out;
}

@keyframes splash-glow {
    0%, 100% { opacity: 0.8; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes splash-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.splash-screen.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Landing Header Component - Elite Transparent */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--space-32) var(--space-64);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.header-logo {
    font-family: 'Instrument Serif', serif !important;
    font-style: italic !important;
    font-weight: 400 !important;
    font-size: 32px !important;
    text-transform: none !important;
    text-decoration: none;
    color: var(--text-main) !important;
    letter-spacing: -0.02em !important;
}

.btn-login {
    background: var(--landing-dark);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-button);
    font-size: 13px;
    font-weight: 600;
    text-transform: lowercase; /* Per Stitch aesthetics */
    letter-spacing: 0.05em;
}

.btn-login:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Atmospheric Divider Component */
.fuzzy-divider {
    position: relative;
    width: 100%;
    height: 200px;
    background: var(--landing-white);
    z-index: 5;
    margin-top: -180px; /* Pulling blocked higher */
}

.fuzzy-divider::after {
    content: '';
    position: absolute;
    bottom: -300px;
    left: -10%;
    right: -10%;
    height: 1000px;
    background: radial-gradient(circle at 50% 50%, var(--accent-primary-glow) 0%, var(--accent-blue-glow) 30%, transparent 60%);
    filter: blur(120px);
    pointer-events: none;
    z-index: 1;
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, var(--surface-elevated) 25%, #0F3A5A 50%, var(--surface-elevated) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Discovery Feed Styles */
#app {
    width: 100vw;
    min-height: 100dvh;
    position: relative;
    background-color: var(--primary-bg);
}

#main-content {
    width: 100%;
    height: 100%;
}

.discovery-feed {
    height: 100%;
    width: 100%;
    position: relative;
    background: 
        radial-gradient(circle at 0% 0%, rgba(5, 28, 44, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(5, 28, 44, 0.12) 0%, transparent 60%),
        #f5f7fa;
}

.stack-container {
    height: 100dvh;
    width: 100vw;
    position: relative;
    overflow: hidden;
    background: var(--landing-dark);
}

.swipe-card-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    z-index: 5;
}

.swipe-card {
    position: relative;
    width: 100%;
    height: 100%;
    background: #051C2D;
    overflow: hidden;
    transition: transform var(--transition-swipe), opacity var(--transition-swipe);
    will-change: transform, opacity;
}

.swipe-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-gradient {
    position: absolute;
    top: 50%; /* Start fade at mid-screen as requested */
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.6));
    pointer-events: none;
}

.card-info {
    position: absolute;
    bottom: var(--space-32);
    left: var(--space-24);
    color: var(--text-light);
    z-index: 10;
}

/* Animation Classes */
.card-exit-right {
    transform: translateX(100vw) rotate(20deg) !important;
    opacity: 0;
}

.card-exit-left {
    transform: translateX(-100vw) rotate(-20deg) !important;
    opacity: 0;
}

.card-enter {
    animation: scaleUp 150ms ease-out forwards;
}

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

/* Landing Page Base - Creative Milkshake High Growth */
.landing-page {
    background-color: var(--landing-white);
    background: 
        radial-gradient(at 50% 110%, rgba(75, 74, 207, 0.35) 0%, transparent 70%),
        linear-gradient(to bottom, #FFFFFF 0%, #FFFFFF 30%, rgba(75, 74, 207, 0.08) 70%, rgba(75, 74, 207, 0.15) 100%);
    color: var(--text-dark);
    min-height: 100vh;
    padding-top: 180px;
    position: relative;
    overflow-x: hidden;
}

.landing-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.landing-hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px var(--space-32); /* Added air at top */
    text-align: center;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0; /* Let margins bridge the gap */
}

.hero-title {
    font-family: var(--font-display); /* Using Bodoni Moda with Optical Sizing */
    font-optical-sizing: auto;
    font-variation-settings: "opsz" 144;
    font-size: 96px; /* Optimized scale */
    font-weight: 800;
    line-height: 0.92;
    margin-bottom: 24px;
    color: var(--text-dark);
    letter-spacing: -0.04em;
    position: relative; /* Anchor for flourish */
}

.script-flourish {
    font-family: var(--font-script);
    font-size: 0.8em;
    color: var(--text-dark);
    position: absolute;
    top: -0.45em;
    left: 1.2em; /* The "Kissing" position */
    opacity: 0.95;
    pointer-events: none;
    transform: rotate(-3deg);
}

.title-main {
    display: inline-block;
}

.title-sub {
    font-family: var(--font-serif); /* Instrument Serif lighter contrast */
    font-weight: 400;
    font-style: normal;
}

.hero-title span.accent-blue {
    color: var(--accent-blue);
    font-style: italic;
    position: relative;
}

.hero-subtext {
    font-family: var(--font-sans);
    font-size: 24px;
    line-height: 1.4;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 56px;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: var(--space-16);
}

/* Wall of Work - Kinetic Energy */
.landing-grid-bg {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: var(--space-16);
    padding: var(--space-16);
    opacity: 0.08;
    filter: blur(1px);
    pointer-events: none;
    z-index: 1;
}

.grid-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
}

/* Swipe Feedback Overlays - Tinder Stamp Style */
.swipe-feedback {
    position: absolute;
    top: 45px;
    padding: 8px 16px;
    border: 6px solid currentColor;
    border-radius: 12px;
    font-size: 48px;
    font-weight: 900;
    z-index: 100;
    pointer-events: none;
    transition: opacity 100ms ease-out;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Inter', sans-serif;
}

.feedback-right {
    color: #11e298; /* Tinder Green */
    right: 30px;
    transform: rotate(-25deg);
}

.feedback-left {
    color: #051c2c; /* Monochrome Slate */
    left: 30px;
    transform: rotate(25deg);
}

/* Tinder Button Console */
.action-buttons-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 0;
    width: 100%;
}

.tinder-btn {
    background: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tinder-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tinder-btn:active {
    transform: scale(0.95);
}

.btn-small {
    width: 48px;
    height: 48px;
}

.btn-large {
    width: 65px;
    height: 65px;
}

.btn-xl {
    width: 80px;
    height: 80px;
}

/* Iconic Colors */
.icon-undo { color: #f5d13b; }
.icon-nope { color: #ff4458; }
.icon-super { color: #1bb3ff; }
.icon-like { color: #11e298; }
.icon-boost { color: #b152ff; }

.scroll-indicator {
    position: absolute;
    bottom: var(--space-32);
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* Value Props Section */
.value-props {
    background: #FAFAFA;
    padding: 120px var(--space-32);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-64);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.prop-group h3 {
    font-family: var(--font-serif);
    font-size: 36px;
    margin-bottom: var(--space-32);
    color: var(--text-dark);
}

.prop-group ul {
    list-style: none;
}

.prop-group li {
    font-size: 18px;
    margin-bottom: var(--space-16);
    display: flex;
    align-items: center;
    gap: var(--space-12);
    color: var(--text-dark);
}

.check {
    color: var(--accent-teal);
    font-weight: 800;
}

/* Responsive Adaptation: Pull Hero higher on short windows (Windowed Mode) */
@media (max-height: 800px) {
    .hero-white {
        padding-top: 60px !important;
    }
}

/* Logo & Header Refinements */
.landing-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: var(--space-32) var(--space-64);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.header-logo {
    font-family: 'Instrument Serif', serif;
    font-size: 32px;
    font-weight: 800;
    font-style: normal;
    color: #051c2c; /* McKinsey Navy */
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity 200ms ease;
    text-transform: none;
}

/* -------------------------------------------------------------------------- */
/* MIDNIGHT GLASS - STARTUP X LUXURY THEME */
/* -------------------------------------------------------------------------- */
.dark-theme {
    /* Prevents the body from scrolling when wrapped in a dark theme container */
}

.midnight-glass-frame {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.midnight-glass-btn {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #F5F5F7;
    transition: all 0.3s ease;
}

.midnight-glass-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.midnight-action-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    cursor: pointer;
}

.midnight-action-btn:hover {
    transform: translateY(-4px) scale(1.05);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.midnight-action-btn:active {
    transform: translateY(2px) scale(0.95);
}

.header-logo:hover {
    opacity: 0.8;
}

/* --- DISCOVERY STUDIO (VANGUARD 3-COLUMN) --- */
/* --- THE SWIPED HUB WORKBENCH --- */
.swiped-studio {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--primary-bg);
}

/* Slot Containers for Dynamic Content Injection */
.nav-rail {
    width: 72px;
    flex-shrink: 0;
    height: 100%;
    background: rgba(0,0,0,0.2);
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 1002;
    transition: all 0.4s var(--transition-spring);
}

.sidebar-slot {
    width: 320px; 
    flex-shrink: 0;
    height: 100%;
    z-index: 100;
    background: transparent;
    overflow: hidden;
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.hidden-slot {
    display: none !important;
}

.main-slot {
    flex-grow: 1;
    height: 100%;
    z-index: 5;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.panel-slot {
    width: 340px;
    flex-shrink: 0;
    height: 100%;
    z-index: 15;
    background: transparent; /* Seamless Right Panel */
    overflow: hidden;
    position: relative;
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.panel-slot.hidden-panel {
    display: none;
}

/* Seamless Sidebar Base (Fix 1) */
.milk-glass {
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    padding: var(--space-48) var(--space-32);
    z-index: 10;
    transition: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Discovery Page Styles */
.discovery-swiped {
    padding: 100px var(--space-32) 160px;
    position: relative;
    z-index: 10;
}

.milk-glass.right {
    border-right: none;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 15;
    animation: slideInRight 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Discovery History Thumbnails */
.history-scroll {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 32px;
    overflow-y: auto;
    padding-bottom: 40px;
}

.history-thumb {
    aspect-ratio: 3/4;
    background: #000;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.history-thumb:hover {
    transform: scale(1.05);
}

.history-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.match-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #051c2c;
    font-size: 8px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.1em;
}

/* Liquid Glass Controls (Floating Pill) */
.liquid-glass-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 200;
}

.control-btn-vanguard {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease;
    border: none;
}

.control-btn-vanguard:active {
    transform: scale(0.92);
}

.btn-reject {
    background: #FFFFFF;
    color: #000;
}

.btn-accept {
    background: #000000;
    color: #FFF;
}

/* Detail Panel Typography */
.detail-name {
    font-family: 'Instrument Serif', serif;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    color: #051c2c;
    margin-bottom: 8px;
    letter-spacing: -0.04em;
}

.results-roundel {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(75, 74, 207, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    position: relative;
}

.workbench-root {
    position: relative !important;
}

.workbench-label {
    position: absolute;
    top: 30px;
    left: 40px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    z-index: 100;
}

/* Discovery Studio Responsive Logic */
/* Discovery Studio Responsive Logic */
@media (max-width: 1024px) {
    .swiped-studio {
        flex-direction: column !important;
    }

    .sidebar-slot, .panel-slot {
        display: none !important;
        width: 0 !important;
    }
    
    .nav-rail {
        width: 100vw !important;
        height: 72px !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        top: auto !important;
        flex-direction: row !important;
        padding: 0 !important;
        border-right: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        justify-content: center !important;
        background: rgba(10, 10, 12, 0.8) !important;
        backdrop-filter: blur(40px) saturate(150%) !important;
        -webkit-backdrop-filter: blur(40px) saturate(150%) !important;
        z-index: 10000 !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5) !important;
    }

    .studio-tabs {
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
        height: 100% !important;
        width: 100% !important;
        max-width: 500px !important;
        margin-top: 0 !important;
        gap: 0 !important;
    }

    .studio-tab {
        flex: 1 !important;
        height: 100% !important;
        padding: 0 !important;
        justify-content: center !important;
        background: none !important;
        border: none !important;
    }

    .studio-tab.active::after {
        left: 50% !important;
        top: auto !important;
        bottom: 4px !important;
        transform: translateX(-50%) !important;
        width: 20px !important;
        height: 3px !important;
        border-radius: 4px !important;
    }

    .main-slot {
        width: 100vw !important;
        height: 100dvh !important;
        padding-bottom: 72px !important; /* Space for nav-rail */
        overflow-y: auto !important;
    }

    /* Fixed Swipe Console on Mobile (Slack style anchoring) */
    .action-buttons-container {
        position: fixed !important;
        bottom: 92px !important; /* Anchor above bottom bar */
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 100% !important;
        padding: 0 20px !important;
        margin: 0 !important;
        z-index: 9999 !important;
    }

    .workbench-root {
        flex-direction: column !important;
    }

    .workbench-stage {
        position: relative !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
        padding: 64px 20px 40px !important; 
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #workbench-label-id {
        position: absolute !important;
        top: 24px !important;
        left: 24px !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0 !important;
        display: flex !important;
    }
}

/* --- MESSAGING STUDIO (VANGUARD 3-COLUMN) --- */
.messaging-studio {
    display: grid;
    grid-template-columns: 375px 1fr 25%;
    height: 100dvh; width: 100vw; position: fixed; top: 0; left: 0; overflow: hidden;
    background: #0A0A0C;
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.messaging-studio main {
    z-index: 5;
    position: relative;
    overflow-y: auto;
    background: transparent;
}

/* Conversation Sidebar Items */
.convo-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 32px;
    overflow-y: auto;
}

.convo-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
    border-left: 3px solid transparent;
}

.convo-item:hover {
    background: rgba(255,255,255,0.03);
}

.convo-item.active {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #FFF;
}

.avatar-micro {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
    overflow: hidden;
}

.avatar-micro img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.convo-name {
    font-size: 14px;
    font-weight: 800;
    color: #FFF;
    margin-bottom: 2px;
}

.convo-preview {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Vanguard Bubble System */
.chat-window {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 100px 48px 140px; /* Offset for header and input */
    overflow-y: auto;
    gap: 16px;
}

.bubble {
    max-width: 70%;
    padding: 14px 20px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    font-weight: 450;
}

.bubble-employer {
    align-self: flex-end;
    background: #FFF;
    color: #000;
    border-radius: 20px 20px 4px 20px;
}

.bubble-candidate {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #FFF;
    border-radius: 20px 20px 20px 4px;
}

/* Messaging Input Pill */
.messaging-input-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 100px);
    max-width: 800px;
}

.messaging-input-pill {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 8px 12px 8px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.chat-input-field {
    flex: 1;
    background: transparent;
    border: none;
    color: #FFF;
    font-size: 15px;
    outline: none;
}

.chat-input-field::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.btn-chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #051c2c;
    color: #FFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 200ms ease;
}

.btn-chat-send:hover {
    transform: scale(1.05);
}

/* --- STUDIO TABS & NAVIGATION (SLACK-STYLE) --- */
.studio-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
}

.studio-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 4px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    color: rgba(5, 28, 44, 0.4);
    text-align: center;
    border: none;
    background: none;
    width: 100%;
}

.studio-tab svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.2px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.studio-tab .tab-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.studio-tab:hover {
    color: #051c2c;
}

.studio-tab:hover svg {
    transform: translateY(-1px);
}

.studio-tab.active {
    color: #051c2c;
}

.studio-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: #051c2c;
    border-radius: 0 4px 4px 0;
}

.studio-tab.active svg {
    color: #051c2c;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* --- AI-STUDIO COMPLIANT ANIMATIONS --- */
@keyframes bubbleEntry {
    from { opacity: 0; transform: translateY(12px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sidebarHorizontalSwap {
    from { transform: translateX(40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes blurBackgroundDelta {
    from { filter: blur(0); }
    to { filter: blur(4px); }
}

.sidebar-horizontal-swap {
    animation: sidebarHorizontalSwap 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.bubble {
    animation: bubbleEntry 350ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.blur-delta {
    animation: blurBackgroundDelta 350ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- SWIPE ANIMATION DECK (Restore) --- */
.card-exit-right {
    transform: translateX(150%) rotate(15deg) !important;
    opacity: 0 !important;
}

.card-exit-left {
    transform: translateX(-150%) rotate(-15deg) !important;
    opacity: 0 !important;
}

.tinder-card-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

/* Background Card Styling (Fix: Stack Depth) */
.card-background {
    transform: scale(0.95) translateY(10px) !important;
    opacity: 0.6 !important;
    z-index: 1 !important;
    pointer-events: none; /* Background shouldn't intercept drags */
}

/* --- ACTION BUTTON BLING (Heavy Inspo) --- */
.action-buttons-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 0;
}

.tinder-btn {
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: white;
    box-shadow: var(--btn-shadow);
    transition: all 250ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tinder-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.tinder-btn:active {
    transform: scale(0.9);
}

.btn-small { width: 48px; height: 48px; }
.btn-large { width: 64px; height: 64px; }

.btn-undo { color: var(--accent-gold); }
.btn-reject { color: var(--accent-red); }
.btn-super { color: var(--accent-blue); }
.btn-accept { color: var(--accent-teal); }
.btn-boost { color: var(--accent-purple); }

.action-buttons-container svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

/* --- WORKBENCH RESPONSIVE (PROFILE EDIT) --- */
.workbench-root {
    display: flex;
    width: 100%;
    height: 100%;
}

@media (max-width: 1024px) {
    .workbench-root {
        flex-direction: column !important;
        height: auto !important;
        overflow-y: auto !important;
    }

    .workbench-stage {
        flex: none !important;
        width: 100% !important;
        height: 620px !important;
        padding: 60px 20px 10px 20px !important; /* Reduced bottom padding */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .workbench-label {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        margin-bottom: 64px !important; /* Yellow: Bigger space */
    }

    #workbench-console {
        flex: none !important;
        width: 100% !important;
        height: auto !important;
        padding: 20px 24px 80px 24px !important; /* Green: Smaller top padding, extra bottom for scroll */
        border-left: none !important;
        backdrop-filter: none !important;
        background: transparent !important;
    }

    #live-preview-container {
        max-width: 280px !important;
        margin-bottom: 0 !important; /* Green: Smaller space */
    }
}

.sidebar-content-swap {
    width: 100%; 
    height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    padding: 32px 12px; /* Reduced side padding to allow internal list to have its own padding */
    position: relative;
    z-index: 100;
}

.convo-list {
    margin-top: 32px;
    padding: 8px 12px;
    flex: 1; /* Take up remaining height */
    min-height: 0; /* Allow shrinking for scrollability */
    overflow-y: auto;
    overflow-x: visible; 
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.convo-list::-webkit-scrollbar { display: none; }

.sidebar-content-swap .header-logo {
    color: var(--text-main);
    padding-left: 12px;
}
/* Layout End */

/* --- STUDIO DASHBOARD REFINEMENTS --- */
.swiped-studio {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: var(--primary-bg);
    transition: background 600ms ease;
}

.sidebar-slot {
    width: 320px;
    flex-shrink: 0;
    height: 100%;
    overflow: visible !important;
    z-index: 1001; /* Ensure sidebar content can overlap the main slot */
}

.main-slot {
    flex-grow: 1;
    height: 100%;
    overflow: hidden;
}

.panel-slot {
    width: 400px;
    flex-shrink: 0;
    height: 100%;
    border-left: 1px solid rgba(0,0,0,0.05);
    background: #fff;
    transition: all 400ms var(--transition-spring);
}

.hidden-panel {
    width: 0 !important;
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none !important;
    border-left: none !important;
}

/* Interest Card Micro-Visuals */
.interest-card-mini {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.interest-card-mini:hover {
    transform: scale(1.05);
}
.active-interest {
    box-shadow: 0 0 0 3px var(--accent-neon-blue);
}

/* Staggered Entrance Engine */
.stagger-in-up {
    animation: staggerUp 600ms var(--transition-spring) both;
}

.stagger-in-right {
    animation: staggerRight 600ms var(--transition-spring) both;
}

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

@keyframes staggerRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Bloom Micro-Animation */
@keyframes bubbleBloom {
    0% { transform: scale(0.95); opacity: 0; filter: blur(4px); }
    100% { transform: scale(1); opacity: 1; filter: blur(0); }
}

.bubble-bloom {
    animation: bubbleBloom 400ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

/* Luminescent Accents */
.ice-blue-glow {
    box-shadow: inset 0 0 12px var(--accent-ice);
    border-left: 2px solid var(--accent-neon-blue);
}

.luminescent-name {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(0, 136, 255, 0.2);
}

/* 0.5px Column Dividers */
.studio-divider {
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 136, 255, 0.1), transparent);
    opacity: 0.5;
}

/* --- CHAT BUBBLES (ELITE GLASS) --- */
.chat-bubble-v2 {
    max-width: 65%;
    padding: 14px 20px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.5;
    position: relative;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.chat-bubble-me {
    align-self: flex-end;
    background: rgba(0, 122, 255, 0.9);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-bubble-them {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.8);
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom-left-radius: 4px;
}

/* --- VANGUARD ONBOARDING STUDIOS --- */
.onboarding-container {
    height: 100dvh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 0% 0%, rgba(5, 28, 44, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(5, 28, 44, 0.08) 0%, transparent 50%),
                #f5f7fa;
    position: relative;
    overflow: hidden;
}

.onboarding-workbench {
    width: 100%;
    max-width: 480px;
    min-height: 600px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 24px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 64px rgba(0,0,0,0.05);
    z-index: 10;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.onboarding-workbench.slide-out {
    transform: translateX(-40px);
    opacity: 0;
}

.onboarding-workbench.slide-in {
    animation: swipedSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes swipedSlideIn {
    from { transform: translateX(60px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.swiped-input-group {
    margin-bottom: 12px;
}

.swiped-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: block;
    text-transform: uppercase;
}

.swiped-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(5, 28, 44, 0.1);
    padding: 8px 0;
    font-family: inherit;
    font-size: 17px;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.swiped-input:focus {
    outline: none;
    border-bottom-color: var(--accent-blue);
    padding-left: 8px;
}

.specialty-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.specialty-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0,136,255,0.08);
    border-color: rgba(0,136,255,0.2);
}

.specialty-card.selected {
    border: 2px solid var(--accent-blue);
    background: rgba(0,136,255,0.02);
}

.strength-meter {
    height: 4px;
    background: rgba(0,0,0,0.05);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.6s ease, background 0.6s ease;
}

/* --- SWIPED MODAL SYSTEM --- */
.swiped-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    padding: 40px 20px; /* Added breathing room at top/bottom */
    animation: swipedFadeIn 0.4s ease forwards;
}

.swiped-modal-content {
    width: 100%;
    max-width: 520px;
    max-height: calc(100dvh - 80px);
    background: linear-gradient(180deg, rgba(30, 30, 35, 0.4) 0%, rgba(15, 15, 20, 0.6) 100%);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border-radius: 24px;
    padding: 0;
    position: relative;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 80px rgba(0, 136, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(0, 136, 255, 0.4);
    transform: translateY(24px);
    opacity: 0;
    animation: swipedModalSlide 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.swiped-modal-content::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

@keyframes swipedFadeIn {
    to { opacity: 1; }
}

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

.modal-close-trigger {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: rgba(255,255,255,0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.modal-close-trigger:hover {
    background: rgba(255,255,255,0.1);
    transform: rotate(90deg);
    color: #FFF;
}

/* Swiped Premium Loader */
.swiped-loader {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(5, 28, 44, 0.1);
    border-top: 2px solid #051c2c;
    border-radius: 50%;
    margin: 40px auto;
    animation: swiped-spin 0.8s linear infinite;
}

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

/* --- NOTIFICATION CENTER --- */
.notif-center {
    position: relative;
    display: flex;
    align-items: center;
}

.notif-bell {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-main);
}

.notif-bell:hover {
    background: rgba(0,0,0,0.04);
    transform: scale(1.05);
}

.notif-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    background: #ff4458;
    border: 2px solid #fff;
    border-radius: 50%;
    z-index: 2;
}

.notif-dropdown {
    position: absolute;
    top: 54px;
    left: 0;
    width: 380px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.12);
    padding: 12px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-dropdown.show {
/* --- CUSTOM DUAL SLIDER (ONE LINE) --- */
.custom-range-container {
    width: 100%;
    padding: 16px 0;
    position: relative;
    user-select: none;
}

.custom-slider-track {
    width: 100%;
    height: 6px;
    background: #cbd5e1;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}

.custom-slider-fill {
    position: absolute;
    height: 100%;
    background: #051c2c;
    border-radius: 10px;
    z-index: 1;
}

.custom-slider-dot {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 3px solid #051c2c;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.1s ease, left 0.1s ease;
}

.custom-slider-dot:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.15);
}

.notif-header {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 8px;
}

.notif-item {
    padding: 16px;
    border-radius: 12px;
    display: flex;
    gap: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.notif-item:hover {
    background: rgba(0,0,0,0.02);
}

.notif-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFEFEE;
    color: #ff4458;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-item-content {
    flex: 1;
}

.notif-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #051c2c;
    margin-bottom: 4px;
}

.notif-item-desc {
    font-size: 13px;
    color: rgba(0,0,0,0.6);
    line-height: 1.4;
    font-weight: 500;
}

.notif-empty {
    padding: 40px 20px;
    text-align: center;
    color: rgba(0,0,0,0.3);
    font-size: 13px;
    font-weight: 600;
}
