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

:root {
    --gold-primary: #d4af37;
    --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
    --gold-dark: #aa771c;
    --black-bg: #0a0a0a;
    --black-card: #111111;
    --wood-gradient: linear-gradient(to right, #2c1915, #3e2b24);
    --text-white: #ffffff;
    --text-gray: #eeeeee; /* Lightened from #e0e0e0 */
    
    /* Default Font */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

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

body {
    font-family: var(--font-main);
    background: var(--black-bg);
    color: var(--text-white);
    min-height: 100vh;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--gold-primary);
    line-height: 1.3;
}

/* Navigation Bar */
nav {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
}

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

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--gold-primary);
    border-color: rgba(212, 175, 55, 0.3);
}

.nav-link.active {
    background: var(--gold-gradient);
    color: black;
    font-weight: 600;
}

.nav-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #8b0000; /* Dark Red */
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    border: 1px solid var(--gold-primary);
}

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

/* Landing Page */
.landing-page {
    display: block;
}

.hero {
    background: var(--black-card);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 2px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

/* Wood accent at top of hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--wood-gradient);
}

.hero h1 {
    font-size: 3.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.hero .tagline {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    font-family: var(--font-main);
    font-weight: 300;
    letter-spacing: 1px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gold-gradient);
    color: #1a1a1a;
    padding: 15px 40px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--gold-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--gold-primary);
    padding: 15px 40px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid var(--gold-primary);
    transition: all 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #fff;
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--black-card);
    padding: 25px;
    border-radius: 2px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: bold;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* How It Works Section */
.how-it-works {
    background: var(--black-card);
    border-radius: 2px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 50px 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 40px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 2px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--black-bg);
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    color: var(--gold-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.step p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* About Section */
.about-section {
    background: var(--black-card);
    border-radius: 2px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 50px 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 40px;
}

.about-content {
    display: grid;
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-box {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 2px;
    border-left: 4px solid var(--gold-primary);
}

.about-box h3 {
    color: var(--gold-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-box p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Privacy & Terms & Settings Views */
.privacy-view, .terms-view, .settings-view {
    display: none;
}

/* Settings Styles */
.settings-section {
    margin-bottom: 30px;
}

.settings-section h2 {
    color: var(--gold-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.settings-card {
    background: var(--black-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    padding: 25px;
}

.settings-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item label {
    display: block;
    color: var(--gold-primary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.policy-container {
    background: var(--black-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    padding: 50px 40px;
    max-width: 900px;
    margin: 20px auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.policy-container h1 {
    color: var(--gold-primary);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.policy-container .last-updated {
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 30px;
}

.policy-container h2 {
    color: var(--gold-primary);
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.policy-container p, .policy-container li {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.policy-container strong {
    color: var(--gold-primary);
}

/* Photo Upload Section */
.photo-upload-section {
    margin: 25px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 2px;
    border-left: 4px solid var(--gold-primary);
}

.photo-upload-section h3 {
    color: var(--gold-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 2px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

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

.photo-item-empty {
    border: 1px dashed rgba(212, 175, 55, 0.4);
    color: rgba(212, 175, 55, 0.4);
    font-size: 2rem;
}

.photo-delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(139, 0, 0, 0.8);
    color: white;
    border: 1px solid white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.photo-delete-btn:hover {
    background: #8b0000;
    transform: scale(1.1);
}

.photo-upload-btn {
    width: 100%;
    padding: 12px;
    background: var(--gold-gradient);
    color: #1a1a1a;
    border: none;
    border-radius: 2px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.photo-upload-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.photo-upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.photo-upload-note {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
}

/* Chat View */
.chat-view {
    display: none;
}

.chat-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    height: calc(100vh - 150px);
}

.chat-main {
    background: var(--black-card);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.chat-header {
    background: var(--wood-gradient);
    color: var(--gold-primary);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gold-primary);
}

.chat-header h3 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-primary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--black-card);
}

.message {
    margin-bottom: 15px;
    padding: 12px 18px;
    border-radius: 2px;
    max-width: 75%;
    animation: slideIn 0.3s ease;
    border: 1px solid transparent;
}

.message.user {
    background: var(--gold-gradient);
    color: #000;
    margin-left: auto;
    border-bottom-right-radius: 0;
    font-weight: 500;
}

.message.ai {
    background: #1a1a1a;
    color: var(--text-white);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-bottom-left-radius: 0;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 5px;
}

.chat-input-area {
    padding: 20px;
    background: #1a1a1a;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    padding: 12px 18px;
    background: #000;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 2px;
    font-size: 1rem;
    color: white;
    transition: border 0.2s;
}

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

.chat-input-area button {
    padding: 12px 30px;
    background: var(--gold-gradient);
    color: #000;
    border: none;
    border-radius: 2px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    min-width: 100px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chat-input-area button:hover:not(:disabled) {
    transform: scale(1.05);
}

.chat-input-area button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--black-card);
    padding: 16px 24px;
    border-radius: 2px;
    border: 1px solid var(--gold-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInUp 0.3s ease, fadeOut 0.3s ease 2.7s;
    z-index: 10000;
    max-width: 400px;
}

.toast.success {
    border-left: 4px solid #28a745;
}

.toast.error {
    border-left: 4px solid #dc3545;
}

.toast.info {
    border-left: 4px solid var(--gold-primary);
}

.toast-icon {
    font-size: 1.5rem;
    color: var(--gold-primary);
}

.toast-message {
    flex: 1;
    color: var(--text-white);
    font-weight: 500;
}

.toast-close {
    cursor: pointer;
    color: var(--text-gray);
    font-size: 1.2rem;
    padding: 0 4px;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #1a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 2px;
    max-width: 75px;
    margin-bottom: 15px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--gold-primary);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

/* Chat Sidebar */
.chat-sidebar {
    background: var(--black-card);
    border-radius: 2px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.json-viewer {
    flex: 1;
    background: #000;
    color: var(--gold-primary);
    border-radius: 2px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    overflow-y: auto;
    max-height: calc(100vh - 300px);
    white-space: pre-wrap;
    word-break: break-word;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.sidebar-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.sidebar-title {
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.profile-progress {
    margin-top: 10px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.progress-bar-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
}

.progress-bar {
    background: var(--gold-gradient);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.dimension-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2px;
    font-size: 0.9rem;
    color: var(--text-gray);
    border: 1px solid transparent;
}

.dimension-item.completed {
    background: rgba(212, 175, 55, 0.1);
    border-left: 3px solid var(--gold-primary);
    color: var(--text-white);
}

.dimension-item.active {
    background: rgba(212, 175, 55, 0.2);
    border-left: 3px solid #fff;
    color: #fff;
}

/* Matches View */
.matches-view {
    display: none;
}

.matches-header {
    background: var(--black-card);
    border-radius: 2px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.matches-header h2 {
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 10px;
}

.match-card {
    background: var(--black-card);
    border-radius: 2px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: all 0.3s;
    border: 1px solid var(--gold-primary);
}

.compatibility-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--black-bg);
    border: 4px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--gold-primary);
    font-size: 2rem;
    font-weight: bold;
    font-family: var(--font-heading);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.match-info h3 {
    color: var(--text-white);
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.dimension-tag {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Match Chat */
.match-chat-container {
    background: var(--black-card);
    border-radius: 2px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    margin-top: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.match-chat-messages {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #000;
    border-radius: 2px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.match-message.sent {
    background: var(--gold-gradient);
    color: #000;
    margin-left: auto;
    border-bottom-right-radius: 0;
    font-weight: 500;
}

.match-message.received {
    background: #1a1a1a;
    color: white;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-bottom-left-radius: 0;
}

.match-chat-input-area input {
    flex: 1;
    padding: 12px 18px;
    background: #000;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 2px;
    font-size: 1rem;
    color: white;
}

.match-chat-input-area input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

/* Profile View */
.profile-view {
    display: none;
}

.profile-container {
    background: var(--black-card);
    border-radius: 2px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.profile-header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 20px;
}

.profile-header h2 {
    color: var(--gold-primary);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.profile-stat {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 2px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.profile-stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--gold-primary);
    font-family: var(--font-heading);
}

.dimension-chip {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-primary);
    padding: 8px 12px;
    border-radius: 2px;
    font-size: 0.85rem;
    text-align: center;
    font-weight: 500;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.json-panel {
    background: var(--black-card);
    border-radius: 2px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
}

.json-scroll {
    background: #000;
    color: #d4d4d4;
    border-radius: 2px;
    padding: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

/* Auth Section */
.auth-section {
    background: var(--black-card);
    border-radius: 2px;
    padding: 40px;
    margin: 20px auto;
    max-width: 900px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.auth-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 2px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.auth-box h2 {
    color: var(--gold-primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-family: var(--font-heading);
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--gold-primary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    font-size: 1rem;
    color: white;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.auth-box button {
    width: 100%;
    padding: 12px;
    background: var(--gold-gradient);
    color: #000;
    border: none;
    border-radius: 2px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background: #111;
    /* Thinner, cleaner border */
    border-top: 1px solid var(--gold-primary);
    padding: 60px 20px 30px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--gold-primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
}

.footer-section p {
    color: var(--text-gray);
    line-height: 1.6;
}

.footer-section a {
    display: block;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: var(--text-gray);
}

/* Toggle Switch Styles */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.toggle-label {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dc3545;
    transition: 0.3s;
    border-radius: 32px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #28a745;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(28px);
}

.status-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.status-text.active {
    color: #28a745;
}

.status-text.inactive {
    color: #dc3545;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .chat-container {
        grid-template-columns: 1fr;
        height: calc(100vh - 120px);
    }
    
    .chat-sidebar {
        display: none; /* Hide sidebar on mobile for now */
    }
    
    .profile-layout {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none; /* Basic hamburger menu to be added later */
    }
}

/* ==========================================================================
   THEMES - RESTORED & FIXED
   ========================================================================== */

/* 
   Note: The base theme (Luxury Gold) is defined in :root.
   Other themes override these variables or apply specific styles.
*/

/* Borland Classic Theme (Turbo Vision) */
.theme-borland {
    --black-bg: #000080;
    --black-card: #0000a8;
    --gold-primary: #FFFF00;
    --gold-gradient: #00AA00;
    --gold-dark: #00AA00;
    --text-white: #FFFFFF;
    --text-gray: #00FFFF;
    --wood-gradient: #000080;
    --font-main: 'Courier Prime', 'Courier New', monospace;
    --font-heading: 'Courier Prime', 'Courier New', monospace;
}

.theme-borland body {
    font-family: var(--font-main);
    background: var(--black-bg);
}

.theme-borland * {
    border-radius: 0 !important;
}

.theme-borland nav {
    background: #0000AA;
    border-bottom: 2px double #00FFFF;
}

.theme-borland .nav-link.active {
    background: #00AA00;
    color: #FFFFFF;
}

.theme-borland .hero, 
.theme-borland .stat-card,
.theme-borland .about-box,
.theme-borland .settings-card,
.theme-borland .profile-container {
    border: 2px double #00FFFF;
    box-shadow: 10px 10px 0 rgba(0,0,0,0.5);
}

.theme-borland .btn-primary,
.theme-borland button {
    background: #00AA00;
    color: #FFFFFF;
    border: 2px solid #00FF00;
    text-shadow: 1px 1px #000;
}

.theme-borland input,
.theme-borland select,
.theme-borland textarea {
    background: #000080;
    color: #FFFF00;
    border: 1px solid #00FFFF;
    font-family: var(--font-main);
}

/* Dark Mode (Material) */
.theme-dark {
    --black-bg: #121212;
    --black-card: #1E1E1E;
    --gold-primary: #BB86FC;
    --gold-gradient: linear-gradient(135deg, #BB86FC 0%, #3700B3 100%);
    --gold-dark: #3700B3;
    --text-white: #ffffff;
    --text-gray: #d0d0d0;
    --wood-gradient: #2d2d2d;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Inter', sans-serif;
}

.theme-dark .hero,
.theme-dark .stat-card,
.theme-dark .about-box {
    border: 1px solid #333;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.theme-dark nav {
    border-bottom: 1px solid #333;
}

/* Nature Green Theme */
.theme-nature {
    --black-bg: #f1f8e9;
    --black-card: #ffffff;
    --gold-primary: #2e7d32;
    --gold-gradient: linear-gradient(135deg, #66bb6a 0%, #2e7d32 100%);
    --gold-dark: #1b5e20;
    --text-white: #1b5e20;
    --text-gray: #558b2f;
    --wood-gradient: #a5d6a7;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

.theme-nature body {
    color: #33691e;
}

.theme-nature h1, .theme-nature h2, .theme-nature h3 {
    color: #1b5e20;
}

.theme-nature .hero,
.theme-nature .stat-card,
.theme-nature .about-box {
    border: 1px solid #c8e6c9;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.1);
}

.theme-nature .btn-primary {
    color: white;
}

.theme-nature nav {
    background: #ffffff;
    border-bottom: 1px solid #c8e6c9;
}

.theme-nature .nav-link {
    color: #558b2f;
}

.theme-nature .nav-link.active {
    color: white;
}

/* Ocean Blue Theme */
.theme-ocean {
    --black-bg: #e1f5fe;
    --black-card: #ffffff;
    --gold-primary: #0277bd;
    --gold-gradient: linear-gradient(135deg, #4fc3f7 0%, #0277bd 100%);
    --gold-dark: #01579b;
    --text-white: #01579b;
    --text-gray: #0288d1;
    --wood-gradient: #b3e5fc;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Inter', sans-serif;
}

.theme-ocean body {
    color: #01579b;
}

.theme-ocean h1, .theme-ocean h2, .theme-ocean h3 {
    color: #01579b;
}

.theme-ocean .hero,
.theme-ocean .stat-card,
.theme-ocean .about-box {
    border: 1px solid #b3e5fc;
    box-shadow: 0 5px 15px rgba(3, 169, 244, 0.1);
}

.theme-ocean .btn-primary {
    color: white;
}

.theme-ocean nav {
    background: #ffffff;
    border-bottom: 1px solid #b3e5fc;
}

.theme-ocean .nav-link {
    color: #0288d1;
}

.theme-ocean .nav-link.active {
    color: white;
}
