/* ============================================================
   HookMeUp — Global Styles & Design System
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --primary: #e94560;
    --primary-dark: #c23152;
    --primary-light: #ff6b81;
    --secondary: #1a1a2e;
    --accent: #f5a623;
    --accent-light: #ffd166;
    --bg-dark: #16213e;
    --bg-darker: #0f0f23;
    --bg-light: #f8f9fa;
    --surface-dark: #0f3460;
    --surface-light: #ffffff;
    --surface-card: rgba(255,255,255,0.06);
    --text-primary-dark: #e8e8e8;
    --text-primary-light: #1a1a2e;
    --text-secondary: #8892b0;
    --text-muted: #5a6178;
    --success: #00d67f;
    --warning: #ffc107;
    --danger: #ff4757;
    --border-dark: rgba(255,255,255,0.08);
    --border-light: rgba(0,0,0,0.08);
    --glass-bg: rgba(255,255,255,0.05);
    --glass-border: rgba(255,255,255,0.1);
    --glass-shadow: 0 8px 32px rgba(0,0,0,0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.3);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
    --font-body: 'DM Sans', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary-dark);
    background: var(--bg-darker);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.light-mode {
    color: var(--text-primary-light);
    background: var(--bg-light);
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-light); }

img { max-width: 100%; height: auto; display: block; }

input, textarea, select, button {
    font-family: var(--font-body);
    font-size: 16px;
}

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

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }

/* ── Utility Classes ───────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container-sm { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.container-md { max-width: 800px; margin: 0 auto; padding: 0 16px; }

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.glass-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 16px rgba(233,69,96,0.3);
}
.btn-primary:hover { background: var(--primary-dark); color: white; box-shadow: 0 6px 20px rgba(233,69,96,0.4); }

.btn-accent {
    background: var(--accent);
    color: var(--secondary);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }

.btn-ghost {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary-dark);
    border: 1px solid var(--border-dark);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: var(--radius-full); }

/* ── Form Elements ─────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    color: var(--text-primary-dark);
    font-size: 15px;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233,69,96,0.15);
    background: rgba(255,255,255,0.08);
}

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

.form-input.light {
    background: white;
    border-color: var(--border-light);
    color: var(--text-primary-light);
}

textarea.form-input { resize: vertical; min-height: 100px; }

.form-error { color: var(--danger); font-size: 13px; margin-top: 4px; }

/* ── Chips / Tags ──────────────────────────────────────────── */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
}

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

.chip-sm { padding: 4px 10px; font-size: 12px; }

/* ── Badge ─────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-full);
}
.badge-success { background: var(--success); }
.badge-warning { background: var(--warning); color: var(--secondary); }
.badge-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #3b82f6;
    font-size: 14px;
}

.online-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid var(--bg-darker);
    display: inline-block;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
    background: var(--surface-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: all var(--transition);
}

.card:hover {
    border-color: rgba(255,255,255,0.12);
    box-shadow: var(--shadow-md);
}

.card-light {
    background: white;
    border-color: var(--border-light);
    color: var(--text-primary-light);
}

/* ── Navigation ────────────────────────────────────────────── */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 16px;
    transition: all var(--transition);
}

.nav-header.scrolled {
    background: rgba(15,15,35,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-dark);
    box-shadow: var(--shadow-md);
}

.nav-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15,15,35,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-dark);
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.nav-mobile-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-mobile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 12px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
    text-decoration: none;
}

.nav-mobile-item.active,
.nav-mobile-item:hover { color: var(--primary); }

.nav-mobile-item .nav-badge {
    position: absolute;
    top: -2px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Swipe Card ────────────────────────────────────────────── */
.swipe-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 520px;
    margin: 0 auto;
}

.swipe-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: grab;
    touch-action: none;
    will-change: transform;
    transition: box-shadow var(--transition);
    box-shadow: var(--shadow-xl);
}

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

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

.swipe-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.swipe-card-name {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.swipe-card-meta {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.swipe-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

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

.swipe-btn-pass { border-color: var(--danger); color: var(--danger); }
.swipe-btn-pass:hover { background: var(--danger); color: white; }
.swipe-btn-like { border-color: var(--success); color: var(--success); }
.swipe-btn-like:hover { background: var(--success); color: white; }
.swipe-btn-super { border-color: var(--accent); color: var(--accent); width: 48px; height: 48px; }
.swipe-btn-super:hover { background: var(--accent); color: white; }

.swipe-stamp {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(-25deg);
    font-size: 48px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 8px 20px;
    border: 4px solid;
    border-radius: var(--radius-md);
    opacity: 0;
    transition: opacity 0.1s;
    pointer-events: none;
}

.swipe-stamp.like { color: var(--success); border-color: var(--success); right: 30px; }
.swipe-stamp.nope { color: var(--danger); border-color: var(--danger); left: 30px; }
.swipe-stamp.super { color: var(--accent); border-color: var(--accent); left: 50%; transform: translateX(-50%) translateY(-50%) rotate(-25deg); }

/* ── Match Popup ───────────────────────────────────────────── */
.match-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
}

.match-popup.show { display: flex; }

.match-popup-content {
    text-align: center;
    animation: matchBounce 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.match-popup-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.match-popup-avatars {
    display: flex;
    justify-content: center;
    gap: -20px;
    margin-bottom: 24px;
}

.match-popup-avatars img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
}

.match-popup-avatars img:last-child { margin-left: -20px; }

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

/* ── Toast Notifications ───────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 360px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(30,30,60,0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 14px;
    box-shadow: var(--shadow-xl);
    animation: toastSlide 0.4s ease;
    cursor: pointer;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.info { border-left: 3px solid var(--primary); }

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

/* ── Modal / Bottom Sheet ──────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 480px;
    width: calc(100% - 32px);
    max-height: 85vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
}

@media (max-width: 640px) {
    .modal-overlay { align-items: flex-end; }
    .modal-content {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        max-width: 100%;
        width: 100%;
        max-height: 90vh;
        animation: sheetIn 0.3s ease;
    }
}

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

@keyframes sheetIn {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ── Loading Skeleton ──────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

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

.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }
.skeleton-text { height: 16px; margin-bottom: 8px; }
.skeleton-text.short { width: 60%; }
.skeleton-card { height: 200px; border-radius: var(--radius-xl); }

/* ── Empty States ──────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state-text {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

/* ── Profile Cards Grid ───────────────────────────────────── */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}

.profile-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: transform var(--transition);
}

.profile-card:hover { transform: translateY(-4px); }

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

.profile-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 12px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.profile-card-name {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-card-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

/* ── Chat Bubbles ──────────────────────────────────────────── */
.chat-bubble {
    max-width: 75%;
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.4;
    position: relative;
    margin-bottom: 4px;
}

.chat-bubble.sent {
    background: var(--primary);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-bubble.received {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary-dark);
    border-bottom-left-radius: 4px;
}

.chat-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── Mode Selector ─────────────────────────────────────────── */
.mode-selector {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px;
    scrollbar-width: none;
}

.mode-selector::-webkit-scrollbar { display: none; }

.mode-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid var(--border-dark);
    background: transparent;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

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

/* ── Story Circles ─────────────────────────────────────────── */
.stories-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 12px 0;
    scrollbar-width: none;
}
.stories-row::-webkit-scrollbar { display: none; }

.story-circle {
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
}

.story-circle-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.story-circle-ring.seen { background: var(--text-muted); }

.story-circle-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-darker);
}

.story-circle-name {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── PWA Install Banner ────────────────────────────────────── */
.pwa-banner {
    position: fixed;
    bottom: 80px;
    left: 16px;
    right: 16px;
    z-index: 2000;
    padding: 16px 20px;
    background: rgba(30,30,60,0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: none;
    align-items: center;
    gap: 12px;
}

.pwa-banner.show { display: flex; }

.pwa-banner-icon { width: 40px; height: 40px; border-radius: var(--radius-md); }
.pwa-banner-text { flex: 1; }
.pwa-banner-title { font-weight: 600; font-size: 14px; }
.pwa-banner-desc { font-size: 12px; color: var(--text-secondary); }
.pwa-banner-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

/* ── App Content Spacing ───────────────────────────────────── */
.app-content {
    padding-top: 60px;
    padding-bottom: 80px;
    min-height: 100vh;
}

@media (min-width: 1024px) {
    .app-content {
        padding-left: 240px;
        padding-bottom: 0;
    }
}

/* ── Subscription Cards ────────────────────────────────────── */
.plan-card {
    position: relative;
    padding: 32px 24px;
    border-radius: var(--radius-xl);
    background: var(--surface-card);
    border: 1px solid var(--border-dark);
    text-align: center;
    transition: all var(--transition);
}

.plan-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(233,69,96,0.15);
}

.plan-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

.plan-price {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    margin: 16px 0 8px;
}

.plan-price span { font-size: 16px; font-weight: 400; color: var(--text-muted); }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

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

.animate-fade-in { animation: fadeIn 0.5s ease; }
.animate-slide-up { animation: slideUp 0.5s ease; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
    .profile-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .swipe-container { height: 460px; }
}

/* ── Loading Spinner ───────────────────────────────────────── */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-dark);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.spinner-sm { width: 20px; height: 20px; border-width: 2px; }

/* ── Tabs ──────────────────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border-dark);
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.tab.active, .tab:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ── Notification Dropdown ─────────────────────────────────── */
.notif-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    max-height: 480px;
    overflow-y: auto;
    background: rgba(22,33,62,0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: none;
    z-index: 5000;
}

.notif-dropdown.show { display: block; }

.notif-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-dark);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.notif-item:hover { background: rgba(255,255,255,0.04); }
.notif-item.unread { background: rgba(233,69,96,0.05); }

/* ══════════════════════════════════════════════════════════════
   v2 Additions — APPENDED, no existing rules modified
   ══════════════════════════════════════════════════════════════ */

/* Enhanced mobile swipe container */
@media (max-width: 480px) {
    .swipe-container { height: calc(58vh); max-height: 480px; }
}
@media (max-width: 360px) {
    .swipe-container { height: calc(52vh); }
    .swipe-actions { gap: 14px; padding: 14px; }
    .swipe-btn { width: 48px; height: 48px; }
}

/* Page enter animation */
.app-content { animation: v2PageIn 0.3s ease; }
@keyframes v2PageIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Chat layout — ensures input always visible */
.cht-wrap { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }

/* Better chat bubbles */
.chat-bubble.sent { border-radius: 18px 18px 4px 18px; }
.chat-bubble.received { border-radius: 18px 18px 18px 4px; }

/* Notification badge pulse */
@keyframes v2Pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(233,69,96,.35); }
    50% { box-shadow: 0 0 0 5px rgba(233,69,96,0); }
}
.nav-badge { animation: v2Pulse 2s infinite; }

/* Touch device: remove hover transforms */
@media (hover:none) and (pointer:coarse) {
    .profile-card:hover { transform: none; }
    .card:hover { border-color: inherit; }
}

/* Select styling */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238892b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
