@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --background: #0d1321;
    --foreground: #f8fafc;
    --card: #111827;
    --card-foreground: #f8fafc;
    --popover: #111827;
    --popover-foreground: #f8fafc;
    --primary: #FF3366;
    --primary-foreground: #ffffff;
    --secondary: #2563eb;
    --secondary-foreground: #ffffff;
    --muted: #1f2937;
    --muted-foreground: #94a3b8;
    --accent: #9333ea;
    --accent-foreground: #ffffff;
    --destructive: #ef4444;
    --destructive-foreground: #ffffff;
    --border: #374151;
    --input: #374151;
    --ring: #FF3366;
    --radius: 1rem;

    /* Kimi Colors */
    --tm-pink: #FF3366;
    --tm-purple: #9333ea;
    --tm-blue: #2563eb;
    --tm-cyan: #06b6d4;
    --tm-orange: #F97316;
    --tm-green: #22C55E;
    --tm-surface: #111827;
    --tm-surface-elevated: #131820;

    --bg-gradient-start: #0d1321;
    --bg-gradient-end: #050811;

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;

    /* Typography scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --shadow-glow-pink: 0 0 30px hsla(340,82%,60%,0.3), 0 0 60px hsla(340,82%,60%,0.1);

    /* Radius scale */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s cubic-bezier(0.4,0,0.2,1);
    --transition-slow: 0.5s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="light"] {
    --background: #ffffff;
    --foreground: #0f172a;
    --card: #ffffff;
    --card-foreground: #0f172a;
    --popover: #ffffff;
    --popover-foreground: #0f172a;
    --primary: #2563eb;
    --primary-foreground: #ffffff;
    --secondary: #f1f5f9;
    --secondary-foreground: #0f172a;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --accent: #2563eb;
    --accent-foreground: #ffffff;
    --border: #e2e8f0;
    --input: #e2e8f0;
    --ring: #2563eb;
    --radius: 0.75rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-color: var(--border);
}

body {
    background: var(--background);
    color: var(--foreground);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Reset trocmatch.css body overrides for V2 market page */
body.market-v2 {
    display: block;
    padding: 0;
    gap: 0;
    background-image: none;
    background: var(--background);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Glassmorphism */
.glass {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-strong {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .glass {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .glass-strong {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .glass-input {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--border);
}

[data-theme="light"] .premium-user-card:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .session-item {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .menu-item {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .menu-item:hover {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .match-card-v2 {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .kimi-nav-btn:not(.active):hover .kimi-nav-icon {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .navbar-icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .tab-link:hover {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .action-btn {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .matcher-card {
    background: var(--card);
    box-shadow: var(--shadow-lg);
}

[data-theme="light"] .btn-icon {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .valise-product-card {
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .suitcase-item {
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .bg-animation {
    background: radial-gradient(circle at 50% 50%, #f0f4ff 0%, #ffffff 100%);
}

[data-theme="light"] .kimi-bottom-nav-fade {
    background: linear-gradient(to top, #ffffff 0%, #ffffff 30%, transparent 100%);
}

/* Gradients */
.gradient-pink-purple {
    background: linear-gradient(135deg, var(--tm-pink) 0%, var(--tm-purple) 100%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--tm-pink) 0%, var(--tm-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar (legacy - kept for index.html) */
header:not(.top-navbar) {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1rem 0;
}

.nav-wrapper,
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    border-radius: 1.25rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--foreground);
}

.logo img {
    height: auto;
    max-width: 180px;
    max-height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.logo-mark {
    width: 2.5rem;
    height: 2.5rem;
    background: radial-gradient(circle at 25% 25%, #22c55e, #0ea5e9);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.nav-links {
    display: none;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--foreground);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
}

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

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background: var(--muted);
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 51, 102, 0.1);
    color: var(--tm-pink);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Background Animation Placeholder */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1a1f3c 0%, #050811 100%);
    overflow: hidden;
}

/* Bottom Nav (Mobile) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: space-around;
    padding: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
}

.nav-item.active {
    color: var(--tm-pink);
}

/* V1 Return Button */
#return-v1 {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Marketplace V2 Layout */
.content-container {
    padding-top: 5rem;
    padding-bottom: 7rem;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.market-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .market-grid {
        grid-template-columns: 380px 1fr;
    }
}

/* User Sidebar */
.user-sidebar {
    border-radius: 1.5rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 12rem);
}

.sidebar-header {
    margin-bottom: 1.5rem;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.online-count {
    font-size: 0.75rem;
    color: var(--tm-green);
    background: rgba(34, 197, 94, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.filter-chips {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.chip {
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    background: var(--muted);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    color: var(--muted-foreground);
    transition: all 0.2s;
}

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

.user-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Premium User Card */
.premium-user-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    cursor: pointer;
    margin-bottom: 0.75rem;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.premium-user-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.premium-user-card.selected {
    background: rgba(255, 51, 102, 0.1);
    border-color: var(--tm-pink);
}

.card-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.875rem;
    background: var(--muted);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: 2px solid var(--card);
}

.status-indicator.online {
    background: var(--tm-green);
}

.status-indicator.offline {
    background: #6b7280;
}

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

.card-info h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Detail Panel */
.detail-panel {
    border-radius: 1.5rem;
    height: calc(100vh - 12rem);
}

.empty-state {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.detail-header {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.suitcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    padding: 1.5rem;
}

/* Suitcase Item */
.suitcase-item {
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.suitcase-item:hover {
    transform: translateY(-4px);
}

.item-thumb {
    width: 100%;
    aspect-ratio: 1;
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.item-info {
    padding: 0.75rem;
}

.item-info h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.item-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--tm-green);
}

/* Profie Card refinements */
.profile-card {
    max-width: 500px;
    margin: 0 auto;
    border-radius: 1.5rem;
    overflow: hidden;
}

.profile-banner {
    height: 100px;
}

.profile-info {
    padding: 2rem;
    text-align: center;
    position: relative;
    margin-top: -50px;
}

.profile-avatar-large {
    width: 6rem;
    height: 6rem;
    border-radius: 1.5rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    border: 4px solid var(--card);
}

.profile-menu {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 1rem;
    color: var(--foreground);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.menu-item.danger {
    color: #ef4444;
}

/* Utility Hidden */
.hidden {
    display: none;
}

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

.text-center {
    text-align: center;
}

/* ══════════════════════════════════════════
   V2 EXTENSIONS
   ══════════════════════════════════════════ */

/* ── Modals ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

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

.modal-content {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 1.5rem;
    animation: fadeIn 0.3s ease-out;
}

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

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--muted-foreground);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    color: var(--foreground);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ── Forms ── */
.glass-input {
    width: 100%;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--foreground);
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.glass-input:focus {
    border-color: var(--tm-pink);
}

.glass-input::placeholder {
    color: var(--muted-foreground);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted-foreground);
    margin-bottom: 0.375rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.emoji-chip {
    font-size: 1.25rem;
    padding: 0.375rem 0.625rem;
}

.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.85rem;
    color: var(--foreground);
    cursor: pointer;
}

.radio-label input[type="radio"] {
    accent-color: var(--tm-pink);
}

/* ── Toasts ── */
.toast-container {
    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    background: var(--muted);
    border: 1px solid var(--border);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    background: rgba(34, 197, 94, 0.9);
    border-color: var(--tm-green);
}

.toast-error {
    background: rgba(239, 68, 68, 0.9);
    border-color: #ef4444;
}

.toast-info {
    background: rgba(59, 130, 246, 0.9);
    border-color: #3b82f6;
}

/* ── Valise ── */
.valise-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.valise-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.valise-product-card {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.valise-product-card:hover {
    transform: translateY(-3px);
}

.valise-product-thumb {
    width: 100%;
    aspect-ratio: 1;
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    overflow: hidden;
}

.valise-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.valise-product-info {
    padding: 0.75rem;
}

.valise-product-info h4 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.valise-product-actions {
    display: flex;
    gap: 0.25rem;
    padding: 0 0.75rem 0.75rem;
}

.btn-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted-foreground);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--foreground);
}

.btn-icon.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: #ef4444;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.item-category {
    display: inline-block;
    font-size: 0.65rem;
    padding: 0.125rem 0.5rem;
    background: rgba(147, 51, 234, 0.15);
    color: var(--tm-purple);
    border-radius: 9999px;
    margin-top: 0.25rem;
}

/* ── Matcher ── */
.matcher-container {
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
}

.matcher-header {
    margin-bottom: 1.5rem;
}

.matcher-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: var(--muted);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--tm-pink), var(--tm-purple));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.matcher-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    max-height: 480px;
    margin-bottom: 1.5rem;
}

.matcher-card {
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
    border: 1px solid var(--border);
}

.matcher-card:active {
    cursor: grabbing;
}

.matcher-card-body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.matcher-card-body.intro-card {
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.matcher-card-image {
    flex: 1;
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.matcher-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.matcher-card-emoji {
    font-size: 4rem;
}

.matcher-card-info {
    padding: 1rem 1.25rem;
    text-align: left;
}

.matcher-card-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.matcher-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tm-green);
    margin-bottom: 0.25rem;
}

.matcher-card-owner {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.match-reason-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 51, 102, 0.15);
    color: var(--tm-pink);
    border-radius: 9999px;
    font-weight: 600;
    margin-right: 0.25rem;
}

.swipe-overlay {
    position: absolute;
    top: 1.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

.like-overlay {
    right: 1.5rem;
    color: var(--tm-green);
    border: 4px solid var(--tm-green);
    transform: rotate(15deg);
    font-size: 1.75rem;
}

.nope-overlay {
    left: 1.5rem;
    color: #ef4444;
    border: 4px solid #ef4444;
    transform: rotate(-15deg);
    font-size: 1.75rem;
}

.matcher-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
}

.action-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.action-btn:hover {
    transform: scale(1.1);
}

.action-btn.pass {
    color: #ef4444;
    border-color: #ef4444;
}

.action-btn.pass:hover {
    background: rgba(239, 68, 68, 0.15);
}

.action-btn.like {
    color: var(--tm-green);
    border-color: var(--tm-green);
    width: 4rem;
    height: 4rem;
}

.action-btn.like:hover {
    background: rgba(34, 197, 94, 0.15);
}

.action-btn.undo {
    color: var(--muted-foreground);
    width: 2.75rem;
    height: 2.75rem;
}

.action-btn.undo:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--foreground);
}

/* ── Session ── */
.session-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .session-grid {
        grid-template-columns: 1fr 1.2fr 1fr;
    }
}

.session-column {
    border-radius: 1rem;
    padding: 1.25rem;
}

.session-column h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.session-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    font-size: 0.85rem;
    gap: 0.5rem;
}

.session-item.in-offer {
    border-color: var(--tm-pink);
    background: rgba(255, 51, 102, 0.1);
}

.session-item.small {
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
}

.session-center {
    border: 1px solid rgba(255, 51, 102, 0.3);
}

.exchange-split {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.offer-side {
    flex: 1;
}

.offer-side h5 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.offer-items {
    min-height: 60px;
}

.offer-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tm-green);
    margin-top: 0.5rem;
    text-align: center;
}

.exchange-divider {
    font-size: 1.5rem;
    color: var(--muted-foreground);
    padding-top: 2rem;
    flex-shrink: 0;
}

.badge-ready {
    background: rgba(34, 197, 94, 0.2) !important;
    color: var(--tm-green) !important;
}

.session-no-active {
    border-radius: 1.5rem;
}

/* ── Profile ── */
.profile-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.profile-stat {
    text-align: center;
}

.profile-stat .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
}

.profile-stat .label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.profile-section {
    margin-top: 1rem;
}

/* ── Nav Tabs Desktop ── */
.nav-tabs {
    display: none;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .nav-tabs {
        display: flex;
    }
}

.tab-link {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--muted-foreground);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.tab-link:hover {
    color: var(--foreground);
    background: rgba(255, 255, 255, 0.05);
}

.tab-link.active {
    color: var(--tm-pink);
    background: rgba(255, 51, 102, 0.1);
}

/* Profile button in header */
.profile-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--foreground);
}

/* ── Mobile responsive ── */
.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .desktop-only {
        display: flex;
    }

    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .market-grid {
        grid-template-columns: 1fr;
    }

    .user-sidebar {
        height: auto;
        max-height: 50vh;
    }

    .detail-panel {
        height: auto;
    }

    .session-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .exchange-split {
        flex-direction: column;
    }

    .exchange-divider {
        padding-top: 0;
        text-align: center;
    }

    .profile-stats {
        gap: 1rem;
    }

    .matcher-stack {
        max-height: 380px;
    }
}

/* ══════════════════════════════════════════
   KIMI-STYLE TOP NAVBAR
   ══════════════════════════════════════════ */

.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 64px;
}

.top-navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1rem;
}

.top-navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--foreground);
    position: relative;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.3);
    flex-shrink: 0;
}

.logo-icon-pulse {
    position: absolute;
    bottom: -2px;
    left: 2rem;
    width: 0.875rem;
    height: 0.875rem;
    background: var(--tm-green);
    border-radius: 50%;
    border: 2px solid var(--background);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
}

.pulse-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--tm-green);
    animation: pulse-dot 2s ease-in-out infinite;
}

.top-navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.navbar-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--foreground);
}

.navbar-user-menu {
    width: auto;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem 0.25rem 0.25rem;
    border-radius: 9999px;
}

.navbar-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.notif-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--tm-pink);
    border-radius: 50%;
}

/* ══════════════════════════════════════════
   KIMI-STYLE BOTTOM NAV
   ══════════════════════════════════════════ */

.kimi-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    pointer-events: none;
}

.kimi-bottom-nav-fade {
    position: absolute;
    inset: 0;
    bottom: 0;
    height: 6rem;
    background: linear-gradient(to top, var(--background) 0%, var(--background) 30%, transparent 100%);
    pointer-events: none;
}

.kimi-bottom-nav-container {
    position: relative;
    margin: 0 1rem 1rem;
    pointer-events: auto;
}

.kimi-bottom-nav-bar {
    border-radius: 1.25rem;
    padding: 0.5rem 0.25rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.kimi-nav-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    border-radius: 0.75rem;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    min-width: 52px;
    transition: all 0.3s;
}

.kimi-nav-btn:hover {
    color: var(--foreground);
}

.kimi-nav-btn.active {
    color: var(--foreground);
}

.kimi-nav-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    margin-bottom: 0.125rem;
    transition: all 0.3s;
}

.kimi-nav-btn.active .kimi-nav-icon {
    background: linear-gradient(135deg, var(--tm-pink) 0%, var(--tm-purple) 100%);
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.25);
    color: white;
}

.kimi-nav-btn.active .kimi-nav-icon svg {
    color: white;
    stroke: white;
}

.kimi-nav-btn:not(.active):hover .kimi-nav-icon {
    background: rgba(255, 255, 255, 0.08);
}

.kimi-nav-label {
    font-size: 0.65rem;
    font-weight: 500;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.kimi-nav-btn:not(.active) .kimi-nav-label {
    opacity: 0.7;
}

.kimi-nav-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 1rem;
    height: 1rem;
    background: #ef4444;
    border-radius: 50%;
    font-size: 0.6rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--background);
}

/* FAB (Floating Action Button) */
.kimi-fab-wrapper {
    position: relative;
    margin-top: -2rem;
}

.kimi-fab {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    box-shadow: 0 8px 24px rgba(255, 51, 102, 0.3);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.kimi-fab:hover {
    box-shadow: 0 8px 24px rgba(255, 51, 102, 0.5);
    transform: scale(1.05);
}

.kimi-fab-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    filter: blur(16px);
    opacity: 0.4;
    z-index: 0;
}

/* Hide old bottom-nav if still present */
.bottom-nav.mobile-only {
    display: none !important;
}

/* Show kimi bottom nav on all screen sizes for mobile */
@media (min-width: 768px) {
    .kimi-bottom-nav {
        display: none;
    }
}

/* ── Pixel torus bg ── */
.pixel-torus-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ══════════════════════════════════════════
   CALENDAR
   ══════════════════════════════════════════ */

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-month-label {
    font-size: 1rem;
    font-weight: 700;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 1.25rem;
}

.calendar-day-label {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted-foreground);
    padding: 0.25rem 0;
}

.calendar-day {
    text-align: center;
    padding: 0.5rem 0;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
}

.calendar-day:hover:not(.disabled):not(.selected) {
    background: rgba(255, 255, 255, 0.08);
}

.calendar-day.disabled {
    color: var(--muted-foreground);
    opacity: 0.3;
    cursor: default;
}

.calendar-day.today {
    border: 1px solid var(--tm-pink);
    color: var(--tm-pink);
    font-weight: 700;
}

.calendar-day.selected {
    background: linear-gradient(135deg, var(--tm-pink), var(--tm-purple));
    color: white;
    font-weight: 700;
}

.calendar-time-section {
    margin-top: 0.5rem;
}

.calendar-time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    max-height: 120px;
    overflow-y: auto;
}

.time-slot {
    padding: 0.3rem 0.6rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.15s;
    color: var(--foreground);
}

.time-slot:hover:not(.selected) {
    background: rgba(255, 255, 255, 0.08);
}

.time-slot.selected {
    background: linear-gradient(135deg, var(--tm-pink), var(--tm-purple));
    color: white;
    border-color: transparent;
    font-weight: 600;
}

/* ══════════════════════════════════════════
   MATCH ANIMATION
   ══════════════════════════════════════════ */

.match-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 19, 33, 0.97);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1.5rem;
    text-align: center;
    animation: matchFadeIn 0.5s ease-out;
}

@keyframes matchFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.15); }
}

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

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

/* ══════════════════════════════════════════
   CONFIRM EXCHANGE MODAL
   ══════════════════════════════════════════ */

.exchange-summary {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.exchange-summary-side {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.exchange-summary-side h5 {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

/* ══════════════════════════════════════════
   STORY VIEW (LOBBY)
   ══════════════════════════════════════════ */

.story-row {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.75rem 0;
    margin-bottom: 0.75rem;
    scrollbar-width: none;
}

.story-row::-webkit-scrollbar {
    display: none;
}

.story-avatar {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    background: var(--muted);
    position: relative;
    transition: transform 0.2s;
    overflow: hidden;
}

.story-avatar:hover {
    transform: scale(1.1);
}

.story-avatar.has-products {
    padding: 3px;
    background: linear-gradient(135deg, var(--tm-pink), var(--tm-purple), var(--tm-cyan));
}

.story-avatar .story-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.story-avatar-name {
    font-size: 0.6rem;
    text-align: center;
    color: var(--muted-foreground);
    max-width: 3.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 0.25rem;
}

/* ══════════════════════════════════════════
   MATCHES ENRICHED
   ══════════════════════════════════════════ */

.matches-section-header {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted-foreground);
    padding: 0.5rem 0;
    margin-top: 0.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.match-card-v2 {
    border-radius: 1rem;
    border: 1px solid var(--border);
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.2s;
}

.match-card-v2:hover {
    transform: translateY(-2px);
}

.match-duo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
}

.match-duo-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.match-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.match-card-actions .btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
}

.match-scheduled-badge {
    background: rgba(163, 230, 53, 0.15);
    border: 1px solid #a3e635;
    color: #a3e635;
    padding: 0.375rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ══════════════════════════════════════════
   INVITATION ENRICHED
   ══════════════════════════════════════════ */

.invitation-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    overflow: hidden;
    border: 3px solid var(--tm-pink);
}

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

.modal-content.invitation-modal {
    animation: slideDown 0.4s ease-out;
}

/* ══════════════════════════════════════════
   DESIGN SYSTEM — UTILITY CLASSES
   ══════════════════════════════════════════ */

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* Card lift hover effect (reusable) */
.card-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Btn shine hover effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-20deg);
    transition: left var(--transition-slow);
    pointer-events: none;
}

.btn-shine:hover::after {
    left: 120%;
}

/* Custom scrollbar for specific containers */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

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

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Sparkle animation for badges */
@keyframes sparkle {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.8; filter: brightness(1.3); }
}

.badge-sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

/* Icon glow on hover */
.icon-glow {
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.icon-glow:hover {
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.4);
    transform: scale(1.05);
}

/* ══════════════════════════════════════════
   PHASE 2 — NAVIGATION IMPROVEMENTS
   ══════════════════════════════════════════ */

/* Top navbar — hide logo text on small screens */
@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
}

/* Desktop tabs scrollable on medium screens */
@media (min-width: 768px) and (max-width: 1024px) {
    .nav-tabs {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .nav-tabs::-webkit-scrollbar {
        display: none;
    }
}

/* Theme toggle icon (SVG replacement) */
.theme-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base);
}

.theme-toggle-icon:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Nav indicator (active tab bar on top) */
.kimi-nav-btn.active::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5rem;
    height: 3px;
    background: linear-gradient(90deg, var(--tm-pink), var(--tm-purple));
    border-radius: var(--radius-full);
}

/* Bottom nav spacing — Kimi exact */
.kimi-nav-btn {
    min-width: 64px;
    padding: 0.5rem 1rem;
}

/* Safe area inset for notch phones */
.kimi-bottom-nav-container {
    margin-bottom: calc(1rem + env(safe-area-inset-bottom));
}

/* FAB rotation on hover */
.kimi-fab:hover svg {
    transform: rotate(90deg);
    transition: transform var(--transition-base);
}

.kimi-fab svg {
    transition: transform var(--transition-base);
}

/* Logo icon btn-shine */
.logo-icon {
    position: relative;
    overflow: hidden;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
    transition: left var(--transition-slow);
    pointer-events: none;
}

.top-navbar-logo:hover .logo-icon::after {
    left: 120%;
}

/* User dropdown menu */
.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 180px;
    background: var(--tm-surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
    z-index: 100;
}

.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

[data-theme="light"] .user-dropdown {
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    color: var(--foreground);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: background var(--transition-fast);
}

.user-dropdown-item:hover {
    background: rgba(255,255,255,0.05);
}

[data-theme="light"] .user-dropdown-item:hover {
    background: rgba(0,0,0,0.04);
}

.user-dropdown-item.danger {
    color: #ef4444;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: var(--space-2) 0;
}

/* ══════════════════════════════════════════
   PHASE 3 — TAB CONTENT POLISH
   ══════════════════════════════════════════ */

/* Market: premium card lift */
.premium-user-card {
    transition: all var(--transition-base);
    border-radius: var(--radius-lg);
}

.premium-user-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Story row glow ring on active */
.story-avatar.active-story {
    box-shadow: 0 0 0 3px var(--tm-pink), var(--shadow-glow-pink);
}

/* Valise stats bar */
.valise-stats-bar {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border);
}

.valise-stat-box {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    text-align: center;
}

.valise-stat-box.green {
    background: rgba(34, 197, 94, 0.1);
    color: var(--tm-green);
}

.valise-stat-box.blue {
    background: rgba(37, 99, 235, 0.1);
    color: var(--tm-blue);
}

.valise-stat-box.purple {
    background: rgba(147, 51, 234, 0.1);
    color: var(--tm-purple);
}

.valise-stat-box .stat-value {
    font-size: var(--text-xl);
    font-weight: 800;
    display: block;
}

.valise-stat-box .stat-label {
    font-size: var(--text-xs);
    opacity: 0.8;
}

/* Valise product card hover lift */
.valise-product-card {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border-radius: var(--radius-lg);
}

.valise-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Matcher decorative circles */
.matcher-container {
    position: relative;
    overflow: hidden;
}

.matcher-container::before,
.matcher-container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.06;
}

.matcher-container::before {
    width: 300px;
    height: 300px;
    background: var(--tm-pink);
    top: -100px;
    right: -80px;
}

.matcher-container::after {
    width: 200px;
    height: 200px;
    background: var(--tm-purple);
    bottom: -60px;
    left: -60px;
}

/* Matcher progress bar taller */
.progress-bar-container {
    height: 6px;
    border-radius: 3px;
}

.progress-bar {
    border-radius: 3px;
}

/* Matcher action buttons exact Kimi sizing */
.matcher-actions {
    gap: var(--space-6);
}

.action-btn {
    box-shadow: var(--shadow-sm);
}

.action-btn:hover {
    box-shadow: var(--shadow-md);
}

/* Session column headers */
.session-column h4 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-base);
}

.session-column h4 svg {
    color: var(--muted-foreground);
}

/* Session drag-over styling */
.session-item.drag-over {
    border-color: var(--tm-pink);
    background: rgba(255, 51, 102, 0.08);
    box-shadow: 0 0 0 2px rgba(255, 51, 102, 0.2);
}

/* Session timer gradient text */
.session-timer-gradient {
    font-family: monospace;
    font-size: var(--text-xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--tm-pink), var(--tm-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Session center border */
.session-center {
    border: 2px solid rgba(255, 51, 102, 0.2);
    background: rgba(255, 51, 102, 0.03);
}

/* Profile banner richer gradient */
.profile-banner {
    background: linear-gradient(135deg, var(--tm-pink) 0%, var(--tm-purple) 40%, var(--tm-blue) 70%, var(--tm-cyan) 100%);
    height: 120px;
}

/* Profile avatar overlap adjustment */
.profile-info {
    margin-top: -3.5rem;
}

.profile-avatar-large {
    border: 4px solid var(--card);
    box-shadow: var(--shadow-lg);
}

/* Profile stats grid 3 columns */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.profile-stat {
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

[data-theme="light"] .profile-stat {
    background: rgba(0, 0, 0, 0.02);
}

/* Profile menu items with icon space */
.menu-item {
    gap: var(--space-3);
    transition: all var(--transition-base);
}

.menu-item:hover {
    transform: translateX(4px);
}

.menu-item-icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .menu-item-icon {
    background: rgba(0, 0, 0, 0.04);
}

.menu-item-icon.pink { color: var(--tm-pink); background: rgba(255, 51, 102, 0.1); }
.menu-item-icon.blue { color: var(--tm-blue); background: rgba(37, 99, 235, 0.1); }
.menu-item-icon.purple { color: var(--tm-purple); background: rgba(147, 51, 234, 0.1); }
.menu-item-icon.green { color: var(--tm-green); background: rgba(34, 197, 94, 0.1); }
.menu-item-icon.orange { color: var(--tm-orange); background: rgba(249, 115, 22, 0.1); }
.menu-item-icon.cyan { color: var(--tm-cyan); background: rgba(6, 182, 212, 0.1); }
.menu-item-icon.red { color: #ef4444; background: rgba(239, 68, 68, 0.1); }

/* Match card improvements */
.match-card-v2 {
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.match-card-v2:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ══════════════════════════════════════════
   PHASE 4 — LANDING PAGE V2
   ══════════════════════════════════════════ */

/* Hero section bigger & more impactful */
.hero {
    padding-top: 10rem;
    padding-bottom: 5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 2rem;
}

.hero p {
    font-size: var(--text-lg);
    max-width: 36rem;
    line-height: 1.6;
}

/* Badge sparkle */
.badge {
    animation: sparkle 3s ease-in-out infinite;
    border: 1px solid rgba(255, 51, 102, 0.2);
}

/* Feature cards icon glow */
.feature-icon-box {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card-lift:hover .feature-icon-box {
    transform: scale(1.08);
}

.feature-icon-box.pink {
    background: rgba(255, 51, 102, 0.1);
    color: var(--tm-pink);
}

.feature-icon-box.pink:hover,
.card-lift:hover .feature-icon-box.pink {
    box-shadow: 0 0 24px rgba(255, 51, 102, 0.3);
}

.feature-icon-box.purple {
    background: rgba(147, 51, 234, 0.1);
    color: var(--tm-purple);
}

.feature-icon-box.purple:hover,
.card-lift:hover .feature-icon-box.purple {
    box-shadow: 0 0 24px rgba(147, 51, 234, 0.3);
}

.feature-icon-box.blue {
    background: rgba(37, 99, 235, 0.1);
    color: var(--tm-blue);
}

.feature-icon-box.blue:hover,
.card-lift:hover .feature-icon-box.blue {
    box-shadow: 0 0 24px rgba(37, 99, 235, 0.3);
}

/* CTA button with shine */
.cta-btn-shine {
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(255, 51, 102, 0.3);
    transition: all var(--transition-base);
}

.cta-btn-shine:hover {
    box-shadow: 0 12px 40px rgba(255, 51, 102, 0.4);
    transform: translateY(-2px);
}

.cta-btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.cta-btn-shine:hover::after {
    left: 120%;
}

/* Comment ça marche — step indicators */
.step-indicator {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tm-pink), var(--tm-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    font-weight: 800;
    color: white;
    margin: 0 auto var(--space-4);
    box-shadow: var(--shadow-glow-pink);
}

/* Landing bottom nav improvements */
.bottom-nav .nav-item {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.bottom-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .bottom-nav .nav-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.bottom-nav .nav-item.active {
    background: rgba(255, 51, 102, 0.1);
}

/* Landing login modal glassmorphism */
#welcome-modal .modal {
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-xl);
}

[data-theme="light"] #welcome-modal .modal {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Social button improvements */
.social-btn {
    transition: all var(--transition-base);
}

.social-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Section title gradient */
.section-title-gradient {
    font-size: var(--text-2xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--tm-pink), var(--tm-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ══════════════════════════════════════════
   ONBOARDING V2 OVERRIDES
   ══════════════════════════════════════════ */

.onboarding-container {
    background: var(--background) !important;
    color: var(--foreground) !important;
}

.onboarding-input {
    background: var(--muted) !important;
    border: 1px solid var(--border) !important;
    color: var(--foreground) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.75rem 1rem !important;
    font-size: var(--text-sm) !important;
    transition: border-color var(--transition-fast) !important;
}

.onboarding-input:focus {
    border-color: var(--tm-pink) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.15) !important;
}

.onboarding-input::placeholder {
    color: var(--muted-foreground) !important;
}

.onboarding-btn.primary {
    background: linear-gradient(135deg, var(--tm-pink), var(--tm-purple)) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    font-weight: 700 !important;
    padding: 0.875rem 1.5rem !important;
    box-shadow: 0 8px 24px rgba(255, 51, 102, 0.25) !important;
    transition: all var(--transition-base) !important;
}

.onboarding-btn.primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 32px rgba(255, 51, 102, 0.35) !important;
}

.onboarding-btn.secondary {
    background: var(--muted) !important;
    border: 1px solid var(--border) !important;
    color: var(--foreground) !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.25rem !important;
    transition: all var(--transition-base) !important;
}

.onboarding-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--tm-pink) !important;
}

.onboarding-card {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-xl) !important;
    color: var(--foreground) !important;
}

[data-theme="light"] .onboarding-card {
    background: rgba(0, 0, 0, 0.02) !important;
}

.onboarding-label {
    color: var(--muted-foreground) !important;
    font-size: var(--text-xs) !important;
}

.onboarding-title {
    color: var(--foreground) !important;
}

.onboarding-subtitle {
    color: var(--muted-foreground) !important;
}

.onboarding-progress {
    background: var(--muted) !important;
}

.onboarding-progress-bar {
    background: linear-gradient(90deg, var(--tm-pink), var(--tm-purple)) !important;
}

.tags-grid .tag-item {
    background: var(--muted) !important;
    border: 1px solid var(--border) !important;
    color: var(--foreground) !important;
    border-radius: var(--radius-full) !important;
    padding: 0.5rem 1rem !important;
    font-size: var(--text-sm) !important;
    transition: all var(--transition-fast) !important;
}

.tags-grid .tag-item.active {
    background: linear-gradient(135deg, var(--tm-pink), var(--tm-purple)) !important;
    border-color: var(--tm-pink) !important;
    color: #fff !important;
}