﻿/* 
 * SoulMatch Modern UI
 * Color Palette:
 * Primary: #8B5CF6 (Violet 500)
 * Secondary: #EC4899 (Pink 500)
 * Dark: #1F2937 (Gray 800)
 * Light: #F9FAFB (Gray 50)
 */

:root {
    --primary: #8B5CF6;
    --primary-hover: #7C3AED;
    --secondary: #EC4899;
    --bg-main: #F9FAFB;
    --bg-card: #FFFFFF;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
}




/* Tests Page Styles */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary), #A78BFA);
    color: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--shadow-lg);
}

.welcome-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.tests-progress {
    margin-bottom: 3rem;
}

.progress-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.progress-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.progress-card.completed {
    border-color: #10B981;
    background: #F0FDF4;
}

.progress-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.completed .progress-icon {
    background: #10B981;
    color: white;
}

.progress-info {
    flex: 1;
}

.progress-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.progress-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.progress-status {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 6px;
    background: #E5E7EB;
}

.completed .progress-status {
    background: #10B981;
    color: white;
}

/* Test Container */
.test-container {
    background: var(--bg-card);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.test-header {
    text-align: center;
    margin-bottom: 3rem;
}

.test-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.test-header p {
    color: var(--text-muted);
}

.test-intro {
    background: #F5F3FF;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary);
    font-weight: 600;
}

.question-group {
    margin-bottom: 3rem;
}

.question-group h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.question {
    margin-bottom: 2rem;
}

.question p {
    font-weight: 600;
    margin-bottom: 1rem;
}

.rating-scale {
    display: flex;
    gap: 0.5rem;
}

.rating-scale input {
    display: none;
}

.rating-scale label {
    flex: 1;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3F4F6;
    border-radius: 0.75rem;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}

.rating-scale input:checked + label {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* MBTI Specific */
.mbti-section {
    margin-bottom: 3rem;
}

.mbti-section h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.mbti-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.mbti-option {
    cursor: pointer;
}

.mbti-option input {
    display: none;
}

.option-content {
    background: white;
    border: 2px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

.mbti-option input:checked + .option-content {
    border-color: var(--primary);
    background: #F5F3FF;
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.option-letter {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1rem;
}

.option-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.option-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* AI Page Styles */
.ai-page {
    max-width: 1000px;
    margin: 0 auto;
}

.ai-container {
    background: var(--bg-card);
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
}

.ai-header {
    background: linear-gradient(to right, var(--primary), #A78BFA);
    padding: 2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.ai-avatar {
    position: relative;
}

.ai-avatar-inner {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 2px solid white;
}

.ai-status {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #10B981;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 999px;
    border: 2px solid var(--primary);
    font-weight: 800;
    text-transform: uppercase;
}

.ai-info h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.ai-info p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.ai-features {
    display: flex;
    gap: 1rem;
    padding: 1rem 2rem;
    background: #F5F3FF;
    overflow-x: auto;
}

.feature-tag {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    box-shadow: var(--shadow);
}

.feature-tag i { color: var(--primary); }

.ai-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #F9FAFB;
    min-height: 0;
}

.ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ai-welcome {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 2rem auto;
}

.ai-welcome .welcome-avatar {
    width: 80px;
    height: 80px;
    background: #F5F3FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.welcome-content h3 {
    margin-bottom: 1rem;
}

.welcome-content ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.welcome-content li {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.quick-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.prompt-btn {
    background: #F3F4F6;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.prompt-btn:hover {
    background: var(--primary);
    color: white;
}

.ai-message {
    display: flex;
    gap: 1rem;
    max-width: 85%;
}

.ai-message.assistant { align-self: flex-start; }
.ai-message.user { align-self: flex-end; flex-direction: row-reverse; }

.ai-message .message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.assistant .message-avatar { color: var(--primary); }

.ai-message .message-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.ai-message .message-content {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
}

.user .message-content {
    background: var(--primary);
    color: white;
}

.message-text {
    line-height: 1.5;
    font-size: 0.95rem;
}

.ai-input-form {
    padding: 1.5rem 2rem;
    background: white;
    border-top: 1px solid var(--border);
}

.ai-input {
    background: #F3F4F6;
    border-radius: 1.5rem;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ai-input textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.75rem;
    font-family: inherit;
    font-size: 0.95rem;
    resize: none;
    max-height: 150px;
}

.ai-suggestions {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
}

.ai-suggestions h4 {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.suggestion-card {
    background: white;
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.suggestion-card:hover {
    border-color: var(--primary);
    background: #F5F3FF;
    transform: translateY(-2px);
}

.suggestion-card i { color: var(--primary); font-size: 1.25rem; }
.suggestion-card span { font-size: 0.85rem; font-weight: 600; }

/* Profile Page Styles */
.profile-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    align-items: start;
}

.profile-left .profile-card {
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.profile-avatar-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
    padding: 3px;
    background: white;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--primary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid white;
    transition: transform 0.2s;
}

.avatar-upload-btn:hover {
    transform: scale(1.1);
}

.profile-basic h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.profile-basic p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.profile-mbti {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mbti-type {
    background: #F5F3FF;
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.1rem;
}

.mbti-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Psych Profile */
.psych-profile {
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.psych-profile h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.psych-traits {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.trait-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.trait-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.trait-value {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.trait-bar {
    height: 8px;
    background: #F3F4F6;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.trait-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary), #A78BFA);
    border-radius: 999px;
}

.trait-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Form Styles */
.profile-right {
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.form-section {
    margin-bottom: 3rem;
}

.form-section h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Interests Selector */
.interests-selector {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.interest-category h4 {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.interest-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.interest-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #F9FAFB;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.interest-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin: 0;
}

.interest-level {
    font-size: 0.75rem;
    padding: 2px 4px !important;
    border-radius: 4px !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Search Page Styles */
.search-header {
    margin-bottom: 2rem;
}

.search-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
}

.search-filters {
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.age-range {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.range-input {
    flex: 1;
}

.range-input label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.range-input input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.mbti-filter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.mbti-checkbox {
    cursor: pointer;
}

.mbti-checkbox input {
    display: none;
}

.mbti-checkbox span {
    display: block;
    text-align: center;
    padding: 4px;
    background: #F3F4F6;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.mbti-checkbox input:checked + span {
    background: var(--primary);
    color: white;
}

/* Search Results */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.result-card {
    background: var(--bg-card);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.result-photo {
    height: 200px;
    position: relative;
}

.result-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.online-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    background: #10B981;
    border: 2px solid white;
    border-radius: 50%;
}

.result-info {
    padding: 1.25rem;
}

.result-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.result-city {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.result-compatibility {
    margin-bottom: 1rem;
}

.mini-compatibility {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

.mini-compatibility svg {
    width: 24px;
    height: 24px;
}

.ring-bg {
    fill: none;
    stroke: #E5E7EB;
    stroke-width: 3.8;
}

.ring-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3.8;
    stroke-linecap: round;
}

.result-mbti {
    display: inline-block;
    background: #EEF2FF;
    color: #4F46E5;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.result-actions {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.75rem;
}

/* Messages Page Styles */
.messages-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    background: var(--bg-card);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    height: calc(100vh - 120px);
    overflow: hidden;
}

.chats-list {
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.chats-header {
    padding: 1.5rem;
}

.chats-search {
    padding: 0 1.5rem 1rem;
}

.chats-search input {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: #F3F4F6;
    border: none;
    border-radius: 999px;
    font-size: 0.9rem;
}

.chats-items {
    flex: 1;
    overflow-y: auto;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.chat-item:hover {
    background: #F9FAFB;
}

.chat-item.active {
    background: #F5F3FF;
}

.chat-avatar {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.chat-info {
    flex: 1;
    min-width: 0;
}

.chat-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.chat-name {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chat-compatibility {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 600;
}

/* Chat Area */
.chat-area {
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-user-avatar {
    position: relative;
    width: 40px;
    height: 40px;
}

.chat-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.chat-user-details h3 {
    font-size: 1rem;
}

.chat-user-status {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: #F9FAFB;
}

.message {
    display: flex;
}

.message.sent {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 70%;
    padding: 0.75rem 1.25rem;
    border-radius: 1.25rem;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sent .message-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.received .message-bubble {
    background: white;
    color: var(--text-main);
    border-bottom-left-radius: 0.25rem;
}

.message-time {
    font-size: 0.65rem;
    display: block;
    margin-top: 0.25rem;
    opacity: 0.8;
}

.chat-input-form {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid var(--border);
}

.chat-input {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #F3F4F6;
    padding: 0.5rem 1rem;
    border-radius: 999px;
}

.chat-input input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.send-btn {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}

.send-btn:hover {
    transform: scale(1.1);
}

.top-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 800;
}

.logo i {
    font-size: 1.75rem;
}

.header-search {
    flex: 0 1 400px;
    position: relative;
    background: #F3F4F6;
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-search i {
    color: var(--text-muted);
}

.header-search input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.875rem;
    color: var(--text-main);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.notification-bell {
    position: relative;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.notification-bell:hover {
    color: var(--primary);
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border: 2px solid white;
    border-radius: 50%;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    transition: background 0.2s;
}

.user-menu-trigger:hover {
    background: #F3F4F6;
}

.user-menu-trigger img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.user-menu-trigger i {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Adjust layout for header */
.main-content {
    grid-template-columns: 280px 1fr;
}

.main-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 2rem 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: 0.75rem;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-item:hover {
    background: #F3F4F6;
    color: var(--primary);
}

.nav-item.active {
    background: #F5F3FF;
    color: var(--primary);
}

.nav-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.nav-item.premium {
    background: linear-gradient(to right, #F5F3FF, #FDF2F8);
    color: var(--secondary);
    margin-top: 1rem;
}

.premium-badge {
    margin-left: auto;
    background: var(--secondary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.badge {
    margin-left: auto;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 999px;
}

/* Content Area */
.content {
    padding: 2rem 3rem;
    max-width: 1200px;
}

/* Welcome Section */
.welcome-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary), #A78BFA);
    padding: 2.5rem;
    border-radius: 1.5rem;
    color: white;
    box-shadow: var(--shadow-lg);
}

.welcome-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.welcome-text h1 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.welcome-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.premium-stat .stat-icon {
    background: #FDF2F8;
    color: var(--secondary);
}

/* Recommendations Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h2 i {
    color: #FBBF24;
}

.see-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.profile-card {
    background: var(--bg-card);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.profile-photo {
    position: relative;
    height: 320px;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.online-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 12px;
    height: 12px;
    background: #10B981;
    border: 2px solid white;
    border-radius: 50%;
}

.profile-info {
    padding: 1.25rem;
}

.profile-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.location {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.compatibility-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #F5F3FF;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.compatibility-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) var(--compatibility), #E5E7EB 0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    position: relative;
}

.compatibility-circle::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: white;
    border-radius: 50%;
    z-index: 1;
}

.compatibility-circle span {
    position: relative;
    z-index: 2;
    color: var(--primary);
}

.compatibility-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}

.mbti-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #EEF2FF;
    color: #4F46E5;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.profile-actions {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    display: flex;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

.profile-card:hover .profile-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-pass, .btn-like {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.btn-pass {
    background: white;
    color: #EF4444;
}

.btn-like {
    background: var(--secondary);
    color: white;
}

.btn-pass:hover, .btn-like:hover {
    transform: scale(1.1);
}

/* Quick Actions */
.quick-actions h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 1rem;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    border: 1px solid transparent;
}

.action-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.action-card.highlight {
    background: linear-gradient(to bottom right, #FFFFFF, #F5F3FF);
    border: 1px solid #DDD6FE;
}

.action-icon {
    font-size: 2rem;
    color: var(--primary);
}

.action-card span {
    font-weight: 600;
}



/* Swipe Page Styles */
.swipe-page {
    max-width: 600px;
    margin: 0 auto;
    padding-top: 1rem;
}

.swipe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-toggle {
    display: flex;
    background: #F3F4F6;
    padding: 4px;
    border-radius: 12px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.swipe-container {
    position: relative;
    height: 700px;
}

.swipe-cards {
    position: relative;
    height: 600px;
    width: 100%;
}

.swipe-card {
    position: absolute;
    inset: 0;
    background: white;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    cursor: grab;
    user-select: none;
    transition: transform 0.1s ease-out;
}

.swipe-card.active {
    display: flex;
    z-index: 10;
}

.swipe-card.next {
    display: flex;
    z-index: 5;
    transform: scale(0.95) translateY(10px);
    opacity: 0.5;
}

.card-photo {
    height: 70%;
    position: relative;
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 40%);
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: white;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.online-badge {
    background: #10B981;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
}

.card-location {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-compatibility {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    width: fit-content;
    margin-bottom: 1rem;
}

.compatibility-ring {
    width: 36px;
    height: 36px;
    position: relative;
}

.ring-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
}

.card-mbti {
    margin-bottom: 1rem;
}

.mbti-tag {
    background: var(--primary);
    color: white;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.card-bio {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.card-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.trait-tag {
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.swipe-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.swipe-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    background: white;
    box-shadow: var(--shadow);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.swipe-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.pass-btn { color: #EF4444; }
.like-btn { color: #EC4899; }
.super-btn { color: #3B82F6; width: 50px; height: 50px; font-size: 1.2rem; }
.info-btn { color: var(--text-muted); width: 50px; height: 50px; font-size: 1.2rem; }

.swipe-indicators {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 20;
}

.indicator {
    position: absolute;
    top: 50px;
    padding: 1rem 2rem;
    border: 4px solid;
    border-radius: 1rem;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    opacity: 0;
    transform: rotate(-20deg);
}

.like-indicator {
    right: 50px;
    color: #10B981;
    border-color: #10B981;
    transform: rotate(20deg);
}

.pass-indicator {
    left: 50px;
    color: #EF4444;
    border-color: #EF4444;
}

/* Match Modal Enhancements */
.match-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.match-animation {
    margin-bottom: 2rem;
}

.hearts-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hearts-container i {
    font-size: 3rem;
    color: var(--secondary);
    animation: heartBeat 1.5s infinite;
}

.hearts-container i:nth-child(2) { animation-delay: 0.2s; }
.hearts-container i:nth-child(3) { animation-delay: 0.4s; }

.match-users {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.match-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.match-user img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
}

.match-heart {
    font-size: 2.5rem;
    color: white;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.match-notification {
    position: fixed;
    inset: 0;
    background: rgba(139, 92, 246, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.match-content {
    background: white;
    padding: 3rem;
    border-radius: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 90%;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.match-content i {
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.match-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.match-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.match-content button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.match-content button:hover {
    background: var(--primary-hover);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none; /* Mobile menu should be implemented */
    }
    .content {
        padding: 1.5rem;
    }
}

