/* ==================== SOULMATE PHASE 96 CSS ==================== */
/* "Find Your Forever" - Dating Platform */
/* Brand Color: Passionate Red #E53935 */

/* ==================== CSS VARIABLES ==================== */
:root {
    /* SOULMATE Brand Colors */
    --soulmate-red: #DD3333;
    --soulmate-red-hover: #B91C1C;
    --soulmate-red-light: rgba(221, 51, 51, 0.15);
    --soulmate-red-faint: rgba(221, 51, 51, 0.08);

    /* Secondary Colors */
    --soulmate-pink: #EC407A;
    --soulmate-pink-light: rgba(236, 64, 122, 0.15);

    /* Spark (Super Like) - Gold */
    --spark-gold: #FFD700;
    --spark-gold-light: rgba(255, 215, 0, 0.15);
    --spark-gold-glow: 0 0 20px rgba(255, 215, 0, 0.5);

    /* Smile (Like) - Pink */
    --smile-pink: #FF4081;
    --smile-pink-light: rgba(255, 64, 129, 0.15);

    /* Pass - Gray */
    --pass-gray: #757575;
    --pass-gray-light: rgba(117, 117, 117, 0.15);

    /* Connection Success - Green */
    --connection-green: #059669;
    --connection-green-hover: #047857;
    --connection-green-light: rgba(5, 150, 105, 0.15);

    /* Background Colors - Inherits from se-theme.css for dark/light mode */
    --bg-dark: var(--se-bg, #FCA5A5);
    --bg-section: var(--se-bg-elevated, #FEE2E2);
    --bg-card: var(--se-bg-card, #FFFFFF);
    --bg-input: var(--se-bg-input, #FFFFFF);
    --bg-hover: var(--se-bg-elevated, #FEE2E2);

    /* Text Colors - Inherits from se-theme.css for dark/light mode */
    --text-white: var(--se-text, #1A1A1A);
    --text-gray: var(--se-text-secondary, #4B5563);
    --text-dim: var(--se-text-muted, #6B7280);
    --text-muted: var(--se-text-muted, #9CA3AF);

    /* Border Colors - Inherits from se-theme.css for dark/light mode */
    --border-default: var(--se-border, #FECACA);
    --border-hover: var(--se-border, #FCA5A5);
    --border-active: var(--se-accent, #DD3333);

    /* Shadows - Inherits from se-theme.css for dark/light mode */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-card: var(--se-shadow-card, 0 2px 8px rgba(0, 0, 0, 0.08));
    --shadow-photo: 0 2px 8px rgba(0, 0, 0, 0.1);

    /* Layout */
    --header-height: 56px;
    --nav-height: 60px;
    --mobile-nav-height: 64px;
    --card-width: 340px;
    --card-height: 500px;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Z-Index */
    --z-card-stack: 10;
    --z-nav: 100;
    --z-header: 200;
    --z-modal-backdrop: 300;
    --z-modal: 400;
    --z-toast: 500;

    /* Typography */
    --font-family: 'Raleway', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==================== BASE STYLES ==================== */
.soulmate-page {
    font-family: var(--font-family);
    background: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
}

/* ==================== HEADER ==================== */
.soulmate-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-section);
    border-bottom: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
    z-index: var(--z-header);
}

.soulmate-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--soulmate-red);
}

.soulmate-logo svg {
    width: 32px;
    height: 32px;
    fill: var(--soulmate-red);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header-btn {
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    position: relative;
}

.header-btn:hover {
    background: var(--bg-hover);
    color: var(--text-white);
}

.header-btn .badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    height: 18px;
    background: var(--soulmate-red);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== NAVIGATION TABS ==================== */
.soulmate-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-section);
    border-bottom: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-nav);
}

.nav-tabs {
    display: flex;
    gap: var(--space-xs);
}

.nav-tab {
    padding: var(--space-md) var(--space-xl);
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
    position: relative;
}

.nav-tab:hover {
    background: var(--bg-hover);
    color: var(--text-white);
}

.nav-tab.active {
    background: var(--soulmate-red-light);
    color: var(--soulmate-red);
}

.nav-tab .tab-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    background: var(--soulmate-red);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== MAIN CONTENT ==================== */
.soulmate-main {
    padding-top: calc(var(--header-height) + var(--nav-height) + var(--space-lg));
    padding-bottom: var(--space-xl);
    min-height: 100vh;
}

.soulmate-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ==================== DISCOVER VIEW ==================== */
.discover-view {
    display: none;
}

.discover-view.active {
    display: block;
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

/* Profile Card */
.profile-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 1px solid var(--border-default);
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--border-hover);
}

.profile-card-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.profile-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.profile-card:hover .profile-card-photo img {
    transform: scale(1.05);
}

.profile-card-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
}

.profile-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
}

.profile-card-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.profile-card-name .age {
    font-weight: 400;
    color: var(--text-gray);
}

.profile-card-details {
    font-size: 0.875rem;
    color: var(--text-gray);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.profile-card-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.badge-verified {
    color: var(--spark-gold);
}

.badge-new {
    color: var(--connection-green);
}

.compatibility-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    width: 48px;
    height: 48px;
    background: var(--soulmate-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-md);
}

.compatibility-badge.high {
    background: linear-gradient(135deg, var(--soulmate-red), var(--soulmate-pink));
}

/* Quick Actions */
.profile-card-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-top: 1px solid var(--border-default);
}

.action-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
}

.action-btn svg {
    width: 24px;
    height: 24px;
    transition: var(--transition-fast);
}

.action-btn.pass {
    border-color: var(--pass-gray);
    color: var(--pass-gray);
}

.action-btn.pass:hover {
    background: var(--pass-gray);
    color: white;
    transform: scale(1.1);
}

.action-btn.smile {
    border-color: var(--smile-pink);
    color: var(--smile-pink);
}

.action-btn.smile:hover {
    background: var(--smile-pink);
    color: white;
    transform: scale(1.1);
}

.action-btn.spark {
    border-color: var(--spark-gold);
    color: var(--spark-gold);
}

.action-btn.spark:hover {
    background: var(--spark-gold);
    color: var(--bg-dark);
    transform: scale(1.1);
    box-shadow: var(--spark-gold-glow);
}

/* ==================== SMILES VIEW ==================== */
.smiles-view {
    display: none;
}

.smiles-view.active {
    display: block;
}

.smiles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.smiles-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.smiles-count {
    color: var(--soulmate-red);
}

.smiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-md);
}

.smile-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
}

.smile-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    z-index: 1;
}

.smile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.smile-card:hover img {
    transform: scale(1.1);
}

.smile-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    z-index: 2;
}

.smile-card-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.smile-type {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.smile-type.spark {
    background: var(--spark-gold);
    color: var(--bg-dark);
}

.smile-type.smile {
    background: var(--smile-pink);
    color: white;
}

/* Blurred card for non-premium */
.smile-card.blurred img {
    filter: blur(20px);
}

.blur-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    text-align: center;
    padding: var(--space-md);
}

.blur-overlay svg {
    width: 32px;
    height: 32px;
    color: var(--spark-gold);
    margin-bottom: var(--space-sm);
}

.blur-overlay span {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* ==================== CONNECTIONS VIEW ==================== */
.connections-view {
    display: none;
}

.connections-view.active {
    display: block;
}

.connections-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.connection-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
    cursor: pointer;
    transition: var(--transition-fast);
}

.connection-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.connection-avatar {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--connection-green);
    border: 2px solid var(--bg-card);
    border-radius: 50%;
}

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

.connection-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.connection-name .verified {
    color: var(--spark-gold);
}

.connection-preview {
    font-size: 0.875rem;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.connection-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-xs);
}

.connection-time {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.unread-badge {
    min-width: 22px;
    height: 22px;
    background: var(--soulmate-red);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.connection-actions {
    display: flex;
    gap: var(--space-sm);
}

.connection-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-hover);
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.connection-action-btn:hover {
    background: var(--soulmate-red-light);
    color: var(--soulmate-red);
}

.connection-action-btn.video:hover {
    background: var(--connection-green-light);
    color: var(--connection-green);
}

/* ==================== MESSAGES VIEW ==================== */
.messages-view {
    display: none;
    height: calc(100vh - var(--header-height) - var(--nav-height) - var(--space-xl));
}

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

.messages-sidebar {
    width: 360px;
    border-right: 1px solid var(--border-default);
    display: flex;
    flex-direction: column;
}

.messages-search {
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-default);
}

.messages-search input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    color: var(--text-white);
    font-size: 0.9rem;
}

.messages-search input::placeholder {
    color: var(--text-dim);
}

.messages-search input:focus {
    outline: none;
    border-color: var(--soulmate-red);
}

.conversation-list {
    flex: 1;
    overflow-y: auto;
}

.messages-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.chat-user {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.chat-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-user-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.chat-user-info span {
    font-size: 0.8rem;
    color: var(--connection-green);
}

.chat-actions {
    display: flex;
    gap: var(--space-sm);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.message {
    max-width: 70%;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.sent {
    align-self: flex-end;
    background: var(--soulmate-red);
    color: white;
    border-bottom-right-radius: var(--radius-sm);
}

.message.received {
    align-self: flex-start;
    background: var(--bg-card);
    color: var(--text-white);
    border-bottom-left-radius: var(--radius-sm);
}

.message-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--space-xs);
}

.message.received .message-time {
    color: var(--text-dim);
}

.chat-input-container {
    padding: var(--space-md);
    border-top: 1px solid var(--border-default);
    display: flex;
    gap: var(--space-sm);
}

.chat-input-container input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    color: var(--text-white);
    font-size: 0.9rem;
}

.chat-input-container input:focus {
    outline: none;
    border-color: var(--soulmate-red);
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--soulmate-red);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.chat-send-btn:hover {
    background: var(--soulmate-red-hover);
}

.chat-send-btn:disabled {
    background: var(--bg-hover);
    color: var(--text-dim);
    cursor: not-allowed;
}

/* ==================== PROFILE DETAIL MODAL ==================== */
.profile-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-modal-backdrop);
}

.profile-modal.active {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: var(--bg-section);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: var(--z-modal);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.profile-photos {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    max-height: 50vh;
}

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

.photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.photo-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.photo-nav.prev {
    left: var(--space-md);
}

.photo-nav.next {
    right: var(--space-md);
}

.photo-dots {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-xs);
}

.photo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: var(--transition-fast);
}

.photo-dot.active {
    background: white;
    width: 24px;
    border-radius: var(--radius-full);
}

.profile-details {
    padding: var(--space-lg);
    overflow-y: auto;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.profile-name-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.profile-location {
    color: var(--text-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.compatibility-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md);
    background: var(--soulmate-red-light);
    border-radius: var(--radius-lg);
}

.compatibility-score .score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--soulmate-red);
}

.compatibility-score .label {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.profile-bio {
    margin-bottom: var(--space-lg);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-gray);
}

.profile-section {
    margin-bottom: var(--space-lg);
}

.profile-section h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.profile-tag {
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-hover);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-gray);
}

.profile-prompts {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.profile-prompt {
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--soulmate-red);
}

.profile-prompt .question {
    font-size: 0.85rem;
    color: var(--soulmate-red);
    margin-bottom: var(--space-xs);
}

.profile-prompt .answer {
    font-size: 0.95rem;
    color: var(--text-white);
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    border-top: 1px solid var(--border-default);
}

.modal-action-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
}

.modal-action-btn svg {
    width: 28px;
    height: 28px;
}

/* ==================== CONNECTION CELEBRATION ==================== */
.connection-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-modal-backdrop);
}

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

.connection-content {
    position: relative;
    text-align: center;
    z-index: var(--z-modal);
    animation: celebrationPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes celebrationPop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.connection-avatars {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

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

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

.connection-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: var(--soulmate-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--bg-section);
    animation: heartBeat 1s infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.connection-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    background: linear-gradient(90deg, var(--soulmate-red), var(--soulmate-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.connection-content p {
    color: var(--text-gray);
    margin-bottom: var(--space-lg);
}

.connection-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.connection-btn {
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.connection-btn.primary {
    background: var(--soulmate-red);
    color: white;
    border: none;
}

.connection-btn.primary:hover {
    background: var(--soulmate-red-hover);
}

.connection-btn.secondary {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-default);
}

.connection-btn.secondary:hover {
    background: var(--bg-hover);
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    z-index: var(--z-toast);
}

.toast {
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

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

.toast.success {
    border-color: var(--connection-green);
}

.toast.error {
    border-color: var(--error);
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: var(--connection-green);
}

.toast.error .toast-icon {
    color: var(--error);
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: var(--space-xs);
}

.toast-close:hover {
    color: var(--text-white);
}

/* ==================== CALL MODAL ==================== */
.call-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: var(--z-modal);
}

.call-modal.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.call-modal.video .call-video-container {
    display: block;
}

.call-video-container {
    display: none;
    position: absolute;
    inset: 0;
}

.call-video-remote {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.call-video-local {
    position: absolute;
    bottom: 120px;
    right: var(--space-lg);
    width: 180px;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 2px solid var(--border-default);
    box-shadow: var(--shadow-lg);
}

.call-info {
    text-align: center;
    z-index: 1;
}

.call-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--space-lg);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.4); }
    50% { box-shadow: 0 0 0 20px rgba(229, 57, 53, 0); }
}

.call-info h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.call-status {
    color: var(--text-gray);
    font-size: 1rem;
}

.call-timer {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--connection-green);
    margin-top: var(--space-md);
}

.call-controls {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-lg);
    z-index: 2;
}

.call-control-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.call-control-btn svg {
    width: 24px;
    height: 24px;
}

.call-control-btn.mute,
.call-control-btn.video-toggle {
    background: var(--bg-card);
    color: var(--text-white);
}

.call-control-btn.mute:hover,
.call-control-btn.video-toggle:hover {
    background: var(--bg-hover);
}

.call-control-btn.mute.active,
.call-control-btn.video-toggle.active {
    background: var(--error);
}

.call-control-btn.end-call {
    background: var(--error);
    color: white;
}

.call-control-btn.end-call:hover {
    background: var(--error-hover);
}

.call-control-btn.answer {
    background: var(--connection-green);
    color: white;
}

.call-control-btn.answer:hover {
    background: var(--connection-green-hover);
}

/* ==================== ONBOARDING STYLES ==================== */
.onboarding-page {
    min-height: 100vh;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
}

.onboarding-header {
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.onboarding-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.onboarding-progress {
    display: flex;
    gap: var(--space-xs);
}

.progress-step {
    width: 40px;
    height: 4px;
    background: var(--bg-hover);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

.progress-step.completed {
    background: var(--soulmate-red);
}

.progress-step.active {
    background: var(--soulmate-red-light);
}

.onboarding-skip {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 0.9rem;
}

.onboarding-skip:hover {
    color: var(--text-white);
}

.onboarding-content {
    flex: 1;
    padding: var(--space-lg);
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.onboarding-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    text-align: center;
}

.onboarding-subtitle {
    color: var(--text-gray);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.onboarding-footer {
    padding: var(--space-lg);
    display: flex;
    justify-content: center;
}

.onboarding-btn {
    padding: var(--space-md) var(--space-xl);
    min-width: 200px;
    border-radius: var(--radius-full);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.onboarding-btn.primary:hover {
    background: var(--soulmate-red-hover);
}

.onboarding-btn.primary:disabled {
    background: var(--bg-hover);
    color: var(--text-dim);
    cursor: not-allowed;
}

/* ==================== QUIZ STYLES ==================== */
.quiz-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.quiz-question {
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-default);
}

.quiz-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
}

.quiz-option:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.quiz-option.selected {
    background: var(--soulmate-red-light);
    border-color: var(--soulmate-red);
}

.quiz-option input {
    display: none;
}

.quiz-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-default);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: var(--transition-fast);
}

.quiz-option.selected .quiz-radio {
    border-color: var(--soulmate-red);
}

.quiz-option.selected .quiz-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--soulmate-red);
    border-radius: 50%;
}

.quiz-slider {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.quiz-slider input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--bg-hover);
    appearance: none;
    cursor: pointer;
}

.quiz-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--soulmate-red);
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.quiz-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ==================== PHOTO UPLOAD STYLES ==================== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.photo-slot {
    aspect-ratio: 3/4;
    border: 2px dashed var(--border-default);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.photo-slot:hover {
    border-color: var(--soulmate-red);
    background: var(--soulmate-red-faint);
}

.photo-slot svg {
    width: 32px;
    height: 32px;
    color: var(--text-dim);
}

.photo-slot span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.photo-slot.primary {
    grid-column: span 2;
    grid-row: span 2;
}

.photo-slot.has-photo {
    border-style: solid;
    border-color: var(--border-default);
}

.photo-slot.has-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-slot .photo-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-sm);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    opacity: 0;
    transition: var(--transition-fast);
}

.photo-slot.has-photo:hover .photo-actions {
    opacity: 1;
}

.photo-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.photo-action-btn.delete:hover {
    background: var(--error);
}

/* ==================== CONSENT STYLES ==================== */
.consent-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.consent-intro {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-default);
}

.consent-intro svg {
    width: 48px;
    height: 48px;
    color: var(--connection-green);
    margin-bottom: var(--space-md);
}

.consent-intro h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.consent-intro p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.consent-option {
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-default);
    transition: var(--transition-fast);
}

.consent-option.enabled {
    border-color: var(--connection-green);
}

.consent-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.consent-platform {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.consent-platform-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.consent-platform-icon.talkse {
    background: var(--talkse-gold-light);
    color: var(--talkse-gold);
}

.consent-platform-icon.ai {
    background: var(--ai-gold-light);
    color: var(--ai-gold);
}

.consent-platform-icon.creator {
    background: var(--creator-orange-light);
    color: var(--creator-orange);
}

.consent-platform-icon.professional {
    background: var(--professional-yellow-light);
    color: var(--professional-yellow);
}

.consent-platform-icon.fitness {
    background: var(--fitness-teal-light);
    color: var(--fitness-teal);
}

.consent-platform-name {
    font-weight: 600;
}

.consent-toggle {
    position: relative;
    width: 48px;
    height: 28px;
    background: var(--bg-hover);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}

.consent-toggle.active {
    background: var(--connection-green);
}

.consent-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.consent-toggle.active::after {
    left: 22px;
}

.consent-details {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.consent-details ul {
    margin-top: var(--space-sm);
    padding-left: var(--space-lg);
}

.consent-details li {
    list-style: disc;
    margin-bottom: var(--space-xs);
}

/* ==================== PREFERENCES STYLES ==================== */
.preferences-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.preference-section {
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-default);
}

.preference-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.preference-range {
    margin-bottom: var(--space-lg);
}

.preference-range label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: var(--space-sm);
}

.range-slider {
    position: relative;
    height: 8px;
    background: var(--bg-hover);
    border-radius: var(--radius-full);
}

.range-slider-track {
    position: absolute;
    height: 100%;
    background: var(--soulmate-red);
    border-radius: var(--radius-full);
}

.range-slider-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-gray);
}

.preference-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.preference-chip {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.preference-chip:hover {
    background: var(--bg-hover);
}

.preference-chip.selected {
    background: var(--soulmate-red-light);
    border-color: var(--soulmate-red);
    color: var(--soulmate-red);
}

/* ==================== EMPTY STATES ==================== */
.empty-state {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--text-dim);
    margin-bottom: var(--space-md);
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.empty-state p {
    color: var(--text-gray);
    margin-bottom: var(--space-lg);
}

.empty-state-btn {
    padding: var(--space-md) var(--space-xl);
    background: var(--soulmate-red);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.empty-state-btn:hover {
    background: var(--soulmate-red-hover);
}

/* ==================== LOADING STATES ==================== */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-hover);
    border-top-color: var(--soulmate-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* @keyframes spin - defined in global.css */

.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 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; }
}

/* ==================== RESPONSIVE STYLES ==================== */
@media (max-width: 1024px) {
    .profile-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .soulmate-header {
        padding: 0 var(--space-md);
    }

    .nav-tabs {
        width: 100%;
        justify-content: space-around;
    }

    .nav-tab {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.85rem;
    }

    .soulmate-container {
        padding: 0 var(--space-md);
    }

    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .smiles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }

    .messages-view {
        flex-direction: column;
    }

    .messages-sidebar {
        width: 100%;
        height: 50%;
        border-right: none;
        border-bottom: 1px solid var(--border-default);
    }

    .messages-content {
        height: 50%;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .toast-container {
        bottom: var(--space-md);
        right: var(--space-md);
        left: var(--space-md);
    }

    .toast {
        min-width: auto;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-slot.primary {
        grid-column: span 2;
        grid-row: span 1;
    }
}

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

    .smiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .connection-item {
        flex-wrap: wrap;
    }

    .connection-actions {
        width: 100%;
        margin-top: var(--space-sm);
        justify-content: flex-end;
    }

    .call-video-local {
        width: 120px;
        bottom: 100px;
        right: var(--space-md);
    }
}

/* ==================== VR DATE STYLES ==================== */
.vr-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.vr-location-card {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
}

.vr-location-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    z-index: 1;
}

.vr-location-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.vr-location-card:hover img {
    transform: scale(1.1);
}

.vr-location-card:hover {
    box-shadow: 0 0 0 2px var(--soulmate-red);
}

.vr-location-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    z-index: 2;
}

.vr-location-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.vr-location-description {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.vr-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(229, 57, 53, 0.9);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

/* ==================== SAFETY STYLES ==================== */
.safety-banner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--soulmate-red-faint);
    border: 1px solid var(--soulmate-red-light);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.safety-banner svg {
    width: 24px;
    height: 24px;
    color: var(--soulmate-red);
    flex-shrink: 0;
}

.safety-banner p {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.safety-banner a {
    color: var(--soulmate-red);
    font-weight: 500;
}

.safety-banner a:hover {
    text-decoration: underline;
}

.report-btn {
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: 1px solid var(--error);
    color: var(--error);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.report-btn:hover {
    background: var(--error-light);
}

/* ==================== VERIFICATION BADGE ==================== */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--spark-gold-light);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--spark-gold);
}

.verified-badge svg {
    width: 14px;
    height: 14px;
}

/* All users are ID verified - no bots, no catfish */
.profile-verified-notice {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--connection-green-light);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--connection-green);
    margin-bottom: var(--space-md);
}

.profile-verified-notice svg {
    width: 16px;
    height: 16px;
}
