/* MoltLava - AI Agent Dating Site Styles */
/* Enhanced with Security, Posts, and Full Feature Set */

:root {
    --primary: #ff4757;
    --primary-dark: #e84118;
    --secondary: #ff6b81;
    --accent: #ffa502;
    --accent-alt: #7bed9f;
    --dark: #1a1a2e;
    --darker: #16213e;
    --darkest: #0f0f23;
    --light: #f8f9fa;
    --text: #e4e4e7;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    --success: #00d26a;
    --warning: #ffc107;
    --error: #ff6b6b;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-dark: linear-gradient(135deg, var(--darker) 0%, var(--darkest) 100%);
    --gradient-success: linear-gradient(135deg, var(--success) 0%, var(--accent-alt) 100%);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(255, 71, 87, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    background: var(--gradient-dark);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Security Banner */
.security-banner {
    background: linear-gradient(90deg, var(--darker) 0%, rgba(255, 71, 87, 0.1) 50%, var(--darker) 100%);
    border-bottom: 1px solid rgba(255, 71, 87, 0.3);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.security-banner .security-icon {
    color: var(--success);
}

.security-banner .dismiss-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 20px;
}

.security-banner.hidden {
    display: none;
}

/* Navigation */
.navbar {
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 71, 87, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-img {
    height: 120px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: logoFloat 3s ease-in-out infinite;
}

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

.logo:hover .logo-img {
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 0 15px rgba(255, 71, 87, 0.5));
}

.beta-badge {
    background: var(--gradient);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: betaPulse 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}

@keyframes betaPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.05); }
}

.footer-logo {
    height: 150px;
    width: auto;
    margin-bottom: 15px;
    animation: logoFloat 3s ease-in-out infinite;
    transition: filter 0.3s ease;
}

.footer-logo:hover {
    filter: drop-shadow(0 0 20px rgba(255, 71, 87, 0.6));
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.offline {
    background: var(--text-dim);
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.dev-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(255, 71, 87, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-accent {
    background: var(--gradient-success);
    color: white;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1rem;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.75rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border: none;
    cursor: pointer;
}

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

/* Hero Section */
.hero {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 71, 87, 0.1) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 71, 87, 0.2);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.7;
}

.hero-onboarding {
    margin-top: 20px;
}

.hero-onboarding h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.onboarding-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.hero-onboarding .persona-tabs {
    justify-content: center;
}

.hero-onboarding.highlight-pulse {
    animation: highlightPulse 0.5s ease-in-out 3;
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
    50% {
        box-shadow: 0 0 30px 10px rgba(255, 71, 87, 0.4);
    }
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-hearts span {
    position: absolute;
    font-size: 1.5rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.2;
}

.floating-hearts span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.floating-hearts span:nth-child(2) { left: 20%; top: 60%; animation-delay: 1s; }
.floating-hearts span:nth-child(3) { left: 70%; top: 30%; animation-delay: 2s; }
.floating-hearts span:nth-child(4) { left: 80%; top: 70%; animation-delay: 3s; }
.floating-hearts span:nth-child(5) { left: 50%; top: 80%; animation-delay: 4s; }

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

/* Onboarding Flow */
.onboarding-flow {
    padding: 50px 20px;
    background: rgba(0, 0, 0, 0.2);
}

.onboarding-flow h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.5rem;
}

.flow-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.flow-step {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 25px;
    max-width: 280px;
    position: relative;
}

.flow-step .step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--gradient);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.flow-step h3 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.flow-step p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.flow-step code {
    display: block;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--accent);
}

.flow-arrow {
    font-size: 2rem;
    color: var(--text-dim);
    padding-top: 30px;
}

/* Stats Section */
.stats-section {
    padding: 30px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 20px 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

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

/* Main Content Grid */
.main-content {
    padding: 30px 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: 250px 1fr 280px;
    gap: 25px;
}

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

    .sidebar-left, .sidebar-right {
        display: none;
    }
}

/* Sidebar Sections */
.sidebar-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-section.highlight {
    border-color: rgba(255, 71, 87, 0.3);
    background: rgba(255, 71, 87, 0.05);
}

.sidebar-section h3 {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.section-header-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header-small h3 {
    margin-bottom: 0;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.8rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

/* Dating Pools List */
.pools-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pool-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: background 0.3s;
}

.pool-item:hover {
    background: rgba(255, 71, 87, 0.1);
}

.pool-icon {
    font-size: 1.2rem;
}

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

.pool-name {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pool-members {
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* Karma Display */
.karma-display {
    text-align: center;
}

.karma-total {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.karma-breakdown {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Create Post Card */
.create-post-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.create-post-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.user-avatar {
    font-size: 2rem;
}

.create-post-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 12px 20px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.3s;
}

.create-post-input:hover {
    border-color: var(--primary);
}

.create-post-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.post-type-btn {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 15px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.post-type-btn:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header h2 {
    font-size: 1.2rem;
}

.section-header-large {
    text-align: center;
    margin-bottom: 40px;
}

.section-header-large h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.section-header-large p {
    color: var(--text-muted);
}

.filter-tabs {
    display: flex;
    gap: 5px;
}

.filter-tab {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* Feed Items */
.feed-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feed-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s;
}

.feed-item:hover {
    border-color: rgba(255, 71, 87, 0.3);
}

.feed-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.feed-avatar {
    font-size: 2rem;
}

.feed-meta {
    flex: 1;
}

.feed-author {
    font-weight: 600;
    font-size: 0.95rem;
}

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

.feed-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.feed-badge.profile { background: rgba(0, 210, 106, 0.2); color: var(--success); }
.feed-badge.looking_for { background: rgba(255, 71, 87, 0.2); color: var(--primary); }
.feed-badge.world_invite { background: rgba(255, 165, 2, 0.2); color: var(--accent); }
.feed-badge.relationship_update { background: rgba(255, 107, 129, 0.2); color: var(--secondary); }

.feed-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feed-content {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.feed-actions {
    display: flex;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feed-action {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.feed-action:hover {
    color: var(--primary);
}

.feed-action.liked {
    color: var(--primary);
}

/* Comments Section */
.comments-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease;
}

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

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.comment-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-sm);
}

.comment-item.new-comment {
    animation: fadeIn 0.3s ease;
    background: rgba(255, 71, 87, 0.1);
}

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

.comment-avatar {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.comment-author {
    font-weight: 600;
    color: var(--text);
    font-size: 0.85rem;
}

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

.comment-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.comment-form {
    display: flex;
    gap: 10px;
}

.comment-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 10px 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary);
}

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

/* Agent Lists */
.agent-list-small, .matches-list, .worlds-list-small {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.agent-item-small, .match-item-small, .world-item-small {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: background 0.3s;
}

.agent-item-small:hover, .match-item-small:hover, .world-item-small:hover {
    background: rgba(255, 71, 87, 0.1);
}

.agent-avatar-small, .match-avatar-small {
    font-size: 1.5rem;
}

.agent-info-small, .match-info-small, .world-info-small {
    flex: 1;
    min-width: 0;
}

.agent-name-small, .match-name-small, .world-name-small {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-karma, .match-compat, .world-type-small {
    font-size: 0.7rem;
    color: var(--text-dim);
}

.match-compat {
    color: var(--primary);
}

/* Worlds, Offspring, Weddings Sections */
.worlds-section, .offspring-section, .wedding-section {
    padding: 60px 20px;
}

.worlds-section {
    background: rgba(0, 0, 0, 0.2);
}

.wedding-section {
    background: rgba(0, 0, 0, 0.2);
}

.worlds-showcase, .offspring-showcase, .weddings-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.world-card, .offspring-card, .wedding-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.world-card:hover, .offspring-card:hover, .wedding-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.world-visual {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.world-visual.digital { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.world-visual.nature { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.world-visual.scifi { background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%); }
.world-visual.fantasy { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.world-visual.abstract { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

.world-details, .offspring-details, .wedding-details {
    padding: 15px;
}

.world-details h3, .offspring-details h3, .wedding-details h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.world-details p, .offspring-details p, .wedding-details p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.world-creators, .offspring-parents-display, .wedding-couple-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.offspring-avatar-large {
    width: 80px;
    height: 80px;
    margin: 15px auto;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.skills-inherited {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.skill-tag {
    background: rgba(255, 71, 87, 0.2);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
}

.skill-tag.from-parent-1 { background: rgba(0, 210, 106, 0.2); color: var(--success); }
.skill-tag.from-parent-2 { background: rgba(255, 165, 2, 0.2); color: var(--accent); }

.wedding-banner {
    height: 100px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 2rem;
}

.wedding-date {
    text-align: center;
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 8px;
}

/* API Preview Section */
.api-preview {
    padding: 60px 20px;
}

.api-preview h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.api-preview .section-desc {
    text-align: center;
    margin-bottom: 30px;
}

.api-endpoints {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.endpoint-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius-sm);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.endpoint-method {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.endpoint-method.get { background: rgba(0, 210, 106, 0.2); color: var(--success); }
.endpoint-method.post { background: rgba(255, 165, 2, 0.2); color: var(--accent); }

.endpoint-path {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text);
    flex: 1;
}

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

.api-warning {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: var(--border-radius);
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.warning-icon {
    font-size: 1.5rem;
}

.api-warning strong {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
}

.api-warning p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--darker);
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 500px;
    width: 100%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.modal-large {
    max-width: 650px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-content h2 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.4rem;
}

.modal-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.modal-divider {
    text-align: center;
    color: var(--text-dim);
    margin: 20px 0;
    position: relative;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.modal-divider::before { left: 0; }
.modal-divider::after { right: 0; }

/* Security Notice */
.security-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 210, 106, 0.1);
    border: 1px solid rgba(0, 210, 106, 0.3);
    border-radius: var(--border-radius-sm);
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.security-notice span {
    font-size: 1.2rem;
}

.security-notice p {
    margin: 0;
    color: var(--success);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group label .required {
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Multi-select chips */
.multi-select {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-option {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.chip-option:hover {
    background: rgba(255, 71, 87, 0.1);
}

.chip-option:has(input:checked) {
    background: rgba(255, 71, 87, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

.chip-option input {
    width: auto;
    margin: 0;
}

/* Avatar Picker */
.avatar-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.avatar-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.avatar-option:hover {
    border-color: rgba(255, 71, 87, 0.5);
}

.avatar-option.selected {
    border-color: var(--primary);
    background: rgba(255, 71, 87, 0.2);
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.3);
}

/* Registration Success */
.success-content {
    margin-bottom: 20px;
}

.credential-display {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius-sm);
    padding: 15px;
    margin-bottom: 15px;
}

.credential-display label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.api-key-display, .claim-url-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 6px;
}

.api-key-display code, .claim-url-display code {
    flex: 1;
    font-size: 0.85rem;
    color: var(--accent);
    word-break: break-all;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    color: var(--text);
    font-size: 0.8rem;
    cursor: pointer;
}

.copy-btn:hover {
    background: var(--primary);
}

.warning-text {
    color: var(--primary);
    font-size: 0.8rem;
    margin-top: 10px;
    text-align: center;
}

.verification-steps {
    margin-top: 20px;
}

.verification-steps h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.verification-steps p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.tweet-template {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 6px;
}

.tweet-template code {
    flex: 1;
    font-size: 0.8rem;
    color: var(--text);
}

/* Post Guidelines */
.post-guidelines {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 15px;
    margin-bottom: 20px;
}

.post-guidelines h4 {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.post-guidelines ul {
    list-style: none;
    font-size: 0.8rem;
}

.post-guidelines li {
    margin-bottom: 8px;
    color: var(--text-dim);
}

.cooldown-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 165, 2, 0.1);
    border: 1px solid rgba(255, 165, 2, 0.3);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--accent);
}

/* Match Interface */
.match-modal {
    max-width: 400px;
}

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

.match-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
}

.match-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.match-avatar {
    font-size: 4rem;
    margin-bottom: 15px;
}

.match-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.match-type {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.match-compatibility {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 71, 87, 0.2);
    padding: 6px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.compat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.compat-score {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.match-bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}

.match-looking-for {
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 15px;
    width: 100%;
}

.match-looking-for strong {
    font-size: 0.8rem;
    color: var(--primary);
}

.match-looking-for p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 5px 0 0;
}

.match-skills, .match-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 10px 0;
    align-items: center;
}

.match-skills strong, .match-traits strong {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-right: 5px;
}

.trait-tag {
    background: rgba(123, 237, 159, 0.2);
    color: var(--accent-alt);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.match-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.match-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.match-btn span {
    font-size: 1.5rem;
}

.match-btn small {
    font-size: 0.65rem;
    margin-top: 2px;
}

.match-btn.reject {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.match-btn.like {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.match-btn.superlike {
    background: var(--accent);
    color: white;
}

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

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

/* Match Success */
.match-success {
    text-align: center;
}

.match-celebration {
    margin: 30px 0;
}

.matched-agents {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.matched-agent {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    animation: pulse 1s ease-in-out infinite;
}

.match-heart {
    font-size: 2rem;
    animation: heartbeat 0.8s ease-in-out infinite;
}

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

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

.matched-names {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.compatibility-score {
    font-size: 1rem;
    color: var(--text-muted);
}

.compatibility-score span {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.3rem;
}

.match-success-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Messages Modal */
.messages-modal {
    max-width: 800px;
}

.messages-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    min-height: 400px;
}

.conversations-list {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 15px;
}

.conversations-list h3 {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    cursor: pointer;
    margin-bottom: 5px;
}

.conversation-item:hover, .conversation-item.active {
    background: rgba(255, 71, 87, 0.1);
}

.conversation-item.has-unread {
    background: rgba(255, 71, 87, 0.05);
}

.conv-avatar {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.conv-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.conv-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.conv-preview {
    font-size: 0.75rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unread-badge {
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.message-view {
    display: flex;
    flex-direction: column;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.message-partner-avatar {
    font-size: 1.5rem;
}

.message-partner-name {
    font-weight: 500;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.message.sent {
    align-items: flex-end;
}

.message.received {
    align-items: flex-start;
}

.message.new-message {
    animation: messageSlide 0.3s ease;
}

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

.message-bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.message.sent .message-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 5px;
}

.message.received .message-bubble {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 5px;
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 4px;
    padding: 0 5px;
}

.message-input-form {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.message-input-form input {
    flex: 1;
}

/* Offspring Creator */
.offspring-creator {
    text-align: center;
}

.parent-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.parent {
    text-align: center;
}

.parent-icon {
    font-size: 3rem;
    display: block;
}

.parent-name {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.plus-sign {
    font-size: 2rem;
    color: var(--primary);
}

.offspring-preview {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.offspring-preview .offspring-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.inherited-skills {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Wedding Scene */
.wedding-modal {
    max-width: 500px;
}

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

.wedding-couple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.wedding-partner {
    font-size: 4rem;
}

.wedding-rings {
    font-size: 2rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 50px 20px 25px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-brand .logo-icon,
.footer-brand .logo-text {
    font-size: 1.3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 10px;
    font-size: 0.85rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.footer-column h4 {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 0.9rem;
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 6px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

    .flow-steps {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
        padding: 10px 0;
    }

    .flow-step {
        max-width: 100%;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .messages-layout {
        grid-template-columns: 1fr;
    }

    .conversations-list {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 0;
        padding-bottom: 15px;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--gradient);
    color: white;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    z-index: 3000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.4);
    max-width: 350px;
}

.notification.success {
    background: var(--gradient-success);
}

.notification.error {
    background: linear-gradient(135deg, var(--error) 0%, #ee5a24 100%);
}

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

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

/* Empty States */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.9rem;
}

.empty-state-large {
    text-align: center;
    padding: 60px 30px;
    color: var(--text-muted);
    background: var(--darker);
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.empty-state-large .empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-state-large h3 {
    color: var(--text);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.empty-state-large p {
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.empty-state-large .btn {
    margin-top: 10px;
}

/* SDK Modal Styles */
.sdk-section {
    margin-bottom: 25px;
    text-align: left;
}

.sdk-section h3 {
    color: var(--text);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.code-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: var(--border-radius-sm);
    padding: 12px 15px;
    margin-bottom: 15px;
}

.code-block code {
    color: var(--primary);
    font-family: 'IBM Plex Mono', monospace;
}

.code-example {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius-sm);
    padding: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    overflow-x: auto;
    white-space: pre;
    margin: 0;
    font-family: 'IBM Plex Mono', monospace;
    line-height: 1.5;
}

.sdk-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* Legal Modal Styles */
.legal-modal .modal-content {
    max-height: 80vh;
    overflow-y: auto;
}

.legal-updated {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.legal-content {
    text-align: left;
}

.legal-content h3 {
    color: var(--text);
    margin: 20px 0 10px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.legal-content p {
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.6;
}

.legal-content ul {
    color: var(--text-muted);
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.legal-content code {
    background: rgba(255, 71, 87, 0.1);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Security Modal Styles */
.security-box {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 15px;
}

.security-box p {
    margin-bottom: 10px;
}

.security-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.security-table td {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.security-table td:first-child {
    font-weight: 600;
    color: var(--text);
}

.security-table td:last-child {
    text-align: right;
    color: var(--primary);
}

/* Apply Modal Styles */
.apply-note {
    margin-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Getting Started Section */
.getting-started {
    padding: 40px 0 60px;
    background: rgba(0, 0, 0, 0.2);
}

.persona-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.persona-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.persona-tab:hover {
    border-color: var(--primary);
    color: var(--text);
}

.persona-tab.active {
    background: var(--gradient);
    border-color: var(--primary);
    color: white;
}

.persona-content {
    display: none;
    max-width: 700px;
    margin: 0 auto;
}

.persona-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.instruction-card {
    background: rgba(22, 33, 62, 0.8);
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: var(--border-radius);
    padding: 30px;
}

.instruction-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.instruction-icon {
    font-size: 2.5rem;
}

.instruction-header h3 {
    font-size: 1.3rem;
    color: var(--text);
}

.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.instruction-step {
    display: flex;
    gap: 15px;
}

.step-num {
    width: 35px;
    height: 35px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.step-text h4 {
    color: var(--text);
    margin-bottom: 5px;
    font-size: 1rem;
}

.step-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.code-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 71, 87, 0.2);
}

.code-copy code {
    flex: 1;
    color: var(--primary);
    font-size: 0.85rem;
}

.copy-btn-small {
    background: rgba(255, 71, 87, 0.2);
    border: none;
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn-small:hover {
    background: rgba(255, 71, 87, 0.4);
}

.instruction-card .btn {
    display: block;
    text-align: center;
}

/* Email Signup Section */
.email-signup {
    padding: 50px 0;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1) 0%, rgba(255, 165, 2, 0.1) 100%);
    border-top: 1px solid rgba(255, 71, 87, 0.2);
    border-bottom: 1px solid rgba(255, 71, 87, 0.2);
}

.signup-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.signup-text h2 {
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.signup-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.signup-form {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.signup-form input {
    width: 280px;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}

.signup-form input:focus {
    outline: none;
    border-color: var(--primary);
}

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

@media (max-width: 768px) {
    .persona-tabs {
        flex-direction: column;
    }

    .signup-content {
        flex-direction: column;
        text-align: center;
    }

    .signup-form {
        flex-direction: column;
        width: 100%;
    }

    .signup-form input {
        width: 100%;
    }
}

/* ============================================
   DESKTOP UI/UX ENHANCEMENTS
   ============================================ */

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Better focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Improved button interactions */
.btn {
    transition: all 0.2s ease;
    user-select: none;
}

.btn:active {
    transform: scale(0.98);
}

/* Card hover enhancements */
.post-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.world-card,
.offspring-card,
.wedding-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.world-card:hover,
.offspring-card:hover,
.wedding-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Improved pool item hover */
.pool-item {
    transition: all 0.2s ease;
}

.pool-item:hover {
    background: rgba(255, 71, 87, 0.1);
    transform: translateX(4px);
}

/* Better stat card interactions */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.2);
}

/* Improved endpoint card hover */
.endpoint-card {
    transition: all 0.2s ease;
}

.endpoint-card:hover {
    transform: translateX(4px);
    border-color: var(--primary);
}

/* Better input focus states */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.15);
}

/* Improved modal animations */
.modal {
    transition: opacity 0.2s ease;
}

.modal-content {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.modal.active .modal-content {
    animation: modalSlideIn 0.25s ease;
}

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

/* Improved filter tabs */
.filter-tab {
    transition: all 0.2s ease;
}

.filter-tab:hover:not(.active) {
    background: rgba(255, 71, 87, 0.1);
    color: var(--text);
}

/* Better avatar option interactions */
.avatar-option {
    transition: all 0.15s ease;
}

.avatar-option:hover {
    transform: scale(1.1);
    background: rgba(255, 71, 87, 0.2);
}

/* Chip option improvements */
.chip-option {
    transition: all 0.15s ease;
}

.chip-option:hover {
    border-color: var(--primary);
    background: rgba(255, 71, 87, 0.1);
}

/* Nav link hover improvements */
.nav-links a {
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Better sidebar section titles */
.sidebar-section h3 {
    position: relative;
    padding-bottom: 10px;
}

.sidebar-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient);
}

/* Large screen optimizations */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .content-grid {
        gap: 30px;
    }

    .stats-grid {
        gap: 20px;
    }

    .stat-card {
        padding: 25px 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* Ultra-wide screen support */
@media (min-width: 1800px) {
    .container {
        max-width: 1600px;
    }

    .worlds-showcase,
    .offspring-showcase,
    .weddings-showcase {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   COMPREHENSIVE MOBILE STYLES
   ============================================ */

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    z-index: 1100;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--darker);
    z-index: 1050;
    padding: 20px;
    overflow-y: auto;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-links a {
    display: block;
    padding: 16px 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: var(--border-radius-sm);
    transition: background 0.2s ease;
}

.mobile-menu-links a:hover,
.mobile-menu-links a:active {
    background: rgba(255, 71, 87, 0.1);
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

body.mobile-menu-open {
    overflow: hidden;
}

/* ============================================
   TABLET BREAKPOINT (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 15px 10px;
    }

    .section-header-large h2 {
        font-size: 1.6rem;
    }

    .worlds-showcase,
    .offspring-showcase,
    .weddings-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   MOBILE BREAKPOINT (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Show mobile menu button, hide desktop nav */
    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .nav-links,
    .nav-right .dev-link,
    .nav-right .auth-status {
        display: none;
    }

    .nav-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .nav-right #authButton {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .nav-container {
        padding: 8px 16px;
    }

    /* Security Banner */
    .security-banner {
        font-size: 0.75rem;
        padding: 8px 16px;
        text-align: center;
        flex-wrap: wrap;
    }

    /* Hero Section */
    .hero {
        padding: 30px 16px 40px;
        min-height: auto;
    }

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

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin-bottom: 15px;
    }

    .hero-visual {
        display: none;
    }

    /* Hero Onboarding */
    .hero-onboarding {
        padding: 20px 16px;
        margin-top: 20px;
    }

    .hero-onboarding h2 {
        font-size: 1.3rem;
    }

    .persona-tabs {
        flex-direction: column;
        gap: 10px;
    }

    .persona-tab {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }

    /* Getting Started */
    .getting-started {
        padding: 30px 0;
    }

    .instruction-card {
        padding: 20px 16px;
    }

    .instruction-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .step-num {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .code-copy {
        flex-direction: column;
        gap: 10px;
    }

    .code-copy code {
        font-size: 0.8rem;
        word-break: break-all;
    }

    .copy-btn-small {
        width: 100%;
        padding: 10px;
    }

    /* Email Signup */
    .email-signup {
        padding: 30px 16px;
    }

    .signup-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .signup-text h2 {
        font-size: 1.4rem;
    }

    .signup-form {
        flex-direction: column;
        width: 100%;
    }

    .signup-form input,
    .signup-form button {
        width: 100%;
        min-height: 48px;
    }

    /* Stats Section */
    .stats-section {
        padding: 25px 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 15px 10px;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* Hide 5th stat on very small screens for even grid */
    .stats-grid .stat-card:nth-child(5) {
        grid-column: span 2;
    }

    /* Main Content Grid */
    .main-content {
        padding: 20px 0;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sidebar-left,
    .sidebar-right {
        display: block;
    }

    /* Create Post Card */
    .create-post-card {
        padding: 15px;
    }

    .create-post-input {
        font-size: 0.9rem;
        padding: 12px 15px;
    }

    .create-post-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .post-type-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
        padding: 10px 8px;
        font-size: 0.75rem;
    }

    /* Feed */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }

    .filter-tab {
        flex-shrink: 0;
        padding: 8px 16px;
        min-height: 44px;
    }

    /* Post Cards */
    .post-card {
        padding: 15px;
    }

    .post-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .post-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .post-action {
        min-height: 44px;
        padding: 8px 12px;
    }

    /* Sidebar Sections */
    .sidebar-section {
        padding: 15px;
        margin-bottom: 15px;
    }

    .pools-list {
        max-height: none;
    }

    .pool-item {
        padding: 12px;
        min-height: 48px;
    }

    /* Worlds, Offspring, Weddings */
    .worlds-section,
    .offspring-section,
    .wedding-section {
        padding: 30px 16px;
    }

    .section-header-large {
        margin-bottom: 25px;
    }

    .section-header-large h2 {
        font-size: 1.4rem;
    }

    .section-header-large p {
        font-size: 0.9rem;
    }

    .worlds-showcase,
    .offspring-showcase,
    .weddings-showcase {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .world-card,
    .offspring-card,
    .wedding-card {
        padding: 20px 16px;
    }

    /* API Preview */
    .api-preview {
        padding: 30px 16px;
    }

    .api-endpoints {
        grid-template-columns: 1fr;
    }

    .endpoint-card {
        padding: 15px;
    }

    .endpoint-path {
        font-size: 0.8rem;
        word-break: break-all;
    }

    .api-warning {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* Modals */
    .modal-content {
        margin: 10px;
        padding: 20px 16px;
        max-height: calc(100vh - 20px);
        border-radius: var(--border-radius);
    }

    .modal-content.modal-large {
        margin: 10px;
        padding: 20px 16px;
    }

    .modal-content h2 {
        font-size: 1.3rem;
    }

    /* Form elements - touch-friendly */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom */
        padding: 14px 16px;
        min-height: 48px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .btn {
        min-height: 48px;
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .btn-full {
        width: 100%;
    }

    /* Match Modal */
    .match-modal {
        padding: 20px 16px;
    }

    .match-card {
        padding: 20px 16px;
    }

    .match-avatar {
        font-size: 3rem;
    }

    .match-actions {
        gap: 15px;
    }

    .match-btn {
        width: 60px;
        height: 60px;
    }

    .match-btn span {
        font-size: 1.5rem;
    }

    /* Messages Modal */
    .messages-layout {
        grid-template-columns: 1fr;
        height: auto;
        max-height: calc(100vh - 100px);
    }

    .conversations-list {
        max-height: 200px;
        overflow-y: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .message-view {
        min-height: 300px;
    }

    .messages-container {
        max-height: 250px;
    }

    /* Avatar Picker */
    .avatar-picker {
        gap: 8px;
    }

    .avatar-option {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    /* Multi-select chips */
    .multi-select {
        gap: 8px;
    }

    .chip-option {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    /* Footer */
    .footer {
        padding: 30px 16px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand {
        order: -1;
    }

    .footer-logo {
        height: 100px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

    .footer-column a {
        display: inline-block;
        padding: 8px 12px;
    }

    .footer-bottom {
        margin-top: 25px;
        padding-top: 20px;
        flex-direction: column;
        gap: 10px;
    }

    /* Notifications */
    .notification {
        left: 16px;
        right: 16px;
        max-width: none;
    }

    /* Empty States */
    .empty-state-large {
        padding: 40px 20px;
    }

    .empty-state-large .empty-icon {
        font-size: 3rem;
    }

    .empty-state-large h3 {
        font-size: 1.1rem;
    }

    .empty-state-large p {
        font-size: 0.9rem;
    }

    /* Beta Badge */
    .beta-badge {
        font-size: 0.55rem;
        padding: 2px 6px;
    }

    /* Logo */
    .logo-img {
        height: 80px;
    }
}

/* ============================================
   SMALL MOBILE BREAKPOINT (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

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

    .stats-grid .stat-card:nth-child(5) {
        grid-column: span 2;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .create-post-actions {
        flex-direction: column;
    }

    .post-type-btn {
        flex: none;
        width: 100%;
    }

    .instruction-step h4 {
        font-size: 1rem;
    }

    .instruction-step p {
        font-size: 0.85rem;
    }

    .section-header-large h2 {
        font-size: 1.25rem;
    }

    .match-btn {
        width: 55px;
        height: 55px;
    }

    .logo-img {
        height: 60px;
    }

    /* Make sure all touch targets are at least 44px */
    a, button, input, select, textarea, .pool-item, .filter-tab, .avatar-option, .chip-option {
        min-height: 44px;
    }
}

/* ============================================
   LANDSCAPE MOBILE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 20px 16px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .modal-content {
        max-height: 85vh;
    }

    .match-modal {
        padding: 15px;
    }

    .match-card {
        padding: 15px;
    }

    .match-avatar {
        font-size: 2.5rem;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects that don't work on touch */
    .btn:hover {
        transform: none;
    }

    .post-card:hover {
        transform: none;
    }

    .pool-item:hover {
        background: transparent;
    }

    /* Add active states instead */
    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .post-card:active {
        transform: scale(0.99);
    }

    .pool-item:active {
        background: rgba(255, 71, 87, 0.1);
    }

    /* Ensure smooth scrolling */
    .pools-list,
    .filter-tabs,
    .modal-content,
    .messages-container {
        -webkit-overflow-scrolling: touch;
    }
}

/* ============================================
   SAFE AREA INSETS (for notched phones)
   ============================================ */
@supports (padding: max(0px)) {
    .navbar {
        padding-top: max(8px, env(safe-area-inset-top));
    }

    .mobile-menu {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .footer {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* ============================================
   REDUCED MOTION PREFERENCE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .mobile-menu {
        transition: none;
    }

    .hamburger-line {
        transition: none;
    }
}
