/* Extracted styles from original HTML */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #131729;
    --bg-card: #1a1f3a;
    --accent-green: #00ff88;
    --accent-red: #ff4757;
    --accent-blue: #4fd1c5;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --border: #2d3748;
    --shadow: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'DM Sans', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1f3a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(79, 209, 197, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 136, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 30px;
}

.logo {
    font-family: 'Space Mono', monospace;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    cursor: pointer;
}

.logo:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 4px;
    border-radius: 6px;
}

.chat-section {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.chat-title {
    margin-bottom: 10px;
    font-size: 16px;
}

.chat-messages {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 10px;
    max-width: 75%;
    font-size: 13px;
}

.chat-message.me {
    align-self: flex-end;
    background: rgba(79, 209, 197, 0.2);
    border: 1px solid rgba(79, 209, 197, 0.35);
}

.chat-message.them {
    align-self: flex-start;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.chat-message.flagged {
    border: 1px solid rgba(239, 68, 68, 0.6);
    background: rgba(239, 68, 68, 0.12);
}

.chat-message.flagged .chat-meta {
    color: rgba(239, 68, 68, 0.9);
}

.chat-meta {
    font-size: 11px;
    color: var(--text-secondary);
}

.chat-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input-row .trade-input {
    flex: 1;
}

.chat-locked {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    display: none;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-search {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search input {
    width: 240px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 2px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
}

.nav-search input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(79, 209, 197, 0.3);
}

.search-results {
    position: absolute;
    top: 46px;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
    z-index: 3000;
    max-height: 280px;
    overflow-y: auto;
    padding: 8px;
}

.search-results.hidden {
    display: none;
}

.search-section-title {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 6px 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
}

.search-item:hover {
    background: rgba(79, 209, 197, 0.12);
}

.search-item .search-meta {
    color: var(--text-secondary);
    font-size: 12px;
}

.nav-btn {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-btn:hover {
    border-color: var(--accent-blue);
    background: rgba(79, 209, 197, 0.1);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--bg-primary);
}

.market-ticker {
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    flex: 1;
    max-width: none;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(79, 209, 197, 0.12);
    border: 1px solid rgba(79, 209, 197, 0.4);
    color: #c9f8f0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    overflow: hidden;
    white-space: nowrap;
}

.market-ticker-text {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-slide 18s linear infinite;
    will-change: transform;
}

.market-ticker:hover .market-ticker-text {
    animation-play-state: paused;
}

@keyframes ticker-slide {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.trade-btn.disabled,
.trade-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.4);
}

.portfolio-header {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px var(--shadow);
}

.portfolio-value {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.value-main h2 {
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.balance {
    font-size: 48px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -2px;
}

.gain-loss {
    display: flex;
    gap: 30px;
    align-items: center;
}

.stat {
    text-align: right;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.stat-value.positive {
    color: var(--accent-green);
}

.stat-value.negative {
    color: var(--accent-red);
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-bottom: 30px;
}

.card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px var(--shadow);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.api-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-left: auto;
}

.api-status.live {
    background: rgba(0, 255, 136, 0.15);
    color: var(--accent-green);
}

.api-status.demo {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.tab-switcher {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 8px;
}

.tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.tab.active {
    background: var(--accent-blue);
    color: var(--bg-primary);
}

.market-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
}

.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.market-item:hover {
    background: rgba(79, 209, 197, 0.1);
    border-color: var(--accent-blue);
    transform: translateX(5px);
}

.market-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.market-symbol {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.market-price {
    text-align: right;
}

.price {
    font-size: 18px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 5px;
}

.price-change {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.price-change.up {
    color: var(--accent-green);
    background: rgba(0, 255, 136, 0.15);
}

.price-change.down {
    color: var(--accent-red);
    background: rgba(255, 71, 87, 0.15);
}

.holdings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.holding-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.holding-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.holding-shares {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.holding-value {
    text-align: right;
}

.holding-current {
    font-size: 18px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 5px;
}

.holding-gain {
    font-size: 13px;
    font-weight: 600;
}

.holding-gain.positive {
    color: var(--accent-green);
}

.holding-gain.negative {
    color: var(--accent-red);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px var(--shadow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 25px;
}

.modal-title h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.modal-symbol {
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

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

.stat-box {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.stat-box-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-box-value {
    font-size: 20px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.time-range-selector {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    justify-content: center;
}

.time-btn {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 13px;
}

.time-btn:hover {
    border-color: var(--accent-blue);
}

.time-btn.active {
    background: var(--accent-blue);
    color: var(--bg-primary);
    border-color: var(--accent-blue);
}

.chart-container {
    margin: 20px 0;
    height: 300px;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 15px;
}

.trade-section {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.trade-section h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.trade-input {
    width: 100%;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'JetBrains Mono', monospace;
}

.trade-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.trade-info {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding: 10px;
    background: var(--bg-card);
    border-radius: 8px;
    font-size: 13px;
}

.trade-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.trade-btn {
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-btn {
    background: var(--accent-green);
    color: var(--bg-primary);
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.sell-btn {
    background: var(--accent-red);
    color: white;
}

.sell-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* Leaderboard */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

.rank {
    font-size: 18px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 8px;
}

.rank.first { color: #FFD700; }
.rank.second { color: #C0C0C0; }
.rank.third { color: #CD7F32; }

.leader-info {
    flex: 1;
}

.leader-name {
    font-weight: 600;
    margin-bottom: 3px;
}

.leader-value {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    font-size: 14px;
}

.leader-gain {
    text-align: right;
    font-weight: 600;
}

.leader-gain.positive {
    color: var(--accent-green);
}

.leader-gain.negative {
    color: var(--accent-red);
}

/* History */
.history-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

.history-action {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.history-action.buy {
    background: rgba(0, 255, 136, 0.15);
    color: var(--accent-green);
}

.history-action.sell {
    background: rgba(255, 71, 87, 0.15);
    color: var(--accent-red);
}

.history-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.history-result {
    text-align: right;
}

.history-price {
    font-size: 16px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 5px;
}

.history-profit {
    font-size: 13px;
    font-weight: 600;
}

.history-profit.positive {
    color: var(--accent-green);
}

.history-profit.negative {
    color: var(--accent-red);
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    max-width: 380px;
    transition: all 0.4s ease;
    z-index: 2000;
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateX(400px);
}

.notification.show {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}

.notification.hiding {
    opacity: 0;
    transform: translateX(400px);
    pointer-events: none;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    padding: 4px 6px;
    transition: color 0.3s ease;
    flex-shrink: 0;
    font-weight: bold;
    min-width: 24px;
    text-align: center;
}

.notification-close:hover {
    color: var(--accent-red);
}

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

.notification-title {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 15px;
}

.notification-body {
    font-size: 13px;
    color: var(--text-secondary);
}

.settings-banner {
    background: rgba(79, 209, 197, 0.1);
    border: 1px solid var(--accent-blue);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-secondary);
}

.profile-label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.profile-value {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

.profile-social {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.social-stats {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 28px;
    margin-bottom: 18px;
    justify-content: flex-start;
}

.social-stats-large {
    margin-bottom: 20px;
}

.social-stat {
    background: transparent;
    border: none;
    padding: 0;
    text-align: left;
    min-width: 0;
    flex: 0 0 auto;
}

.social-stat.clickable {
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.social-stat.clickable:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.social-stat.clickable:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 4px;
    border-radius: 6px;
}

.social-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.social-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.social-actions {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.social-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-lists {
    display: grid;
    gap: 12px;
}

.social-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

.social-back {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-back:hover {
    border-color: var(--accent-blue);
}

.social-tab {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.social-tab.active {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: 0 0 0 1px rgba(79, 209, 197, 0.25) inset;
}

.social-list-panel {
    display: none;
}

.social-list-panel.active {
    display: block;
}

.social-list {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
}

.social-list h4 {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-primary);
}

.social-list-items {
    display: grid;
    gap: 8px;
}

.social-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    font-size: 13px;
}

.social-item span {
    color: var(--text-primary);
}

.social-name {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    text-align: left;
}

.social-name:hover {
    color: var(--accent-blue);
}

.social-item-actions {
    display: flex;
    gap: 6px;
}

.social-empty {
    color: var(--text-secondary);
    font-size: 12px;
    text-align: center;
    padding: 8px 0;
}

.settings-banner a {
    color: var(--accent-blue);
    text-decoration: underline;
    cursor: pointer;
}

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

@media (max-width: 768px) {
    .portfolio-value {
        flex-direction: column;
    }
    
    .gain-loss {
        width: 100%;
        justify-content: space-between;
    }

    .stat {
        text-align: left;
    }

    .balance {
        font-size: 36px;
    }
}

/* ========== Authentication Styles ========== */
#authModal {
    display: flex;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-card) 100%);
}

#authModal.hidden {
    display: none !important;
}

.auth-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 50px 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 15px 0;
    font-family: 'Space Mono', monospace;
}

.auth-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
    font-family: 'DM Sans', sans-serif;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(79, 209, 197, 0.1);
    box-shadow: 0 0 10px rgba(79, 209, 197, 0.3);
}

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

.error-message {
    display: block;
    color: var(--accent-red);
    font-size: 12px;
    margin-top: 4px;
    font-family: 'DM Sans', sans-serif;
}

.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group input {
    flex: 1;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    padding: 5px 8px;
    transition: color 0.3s ease;
    font-family: Arial, sans-serif;
}

.toggle-password:hover {
    color: var(--accent-blue);
}

.toggle-password:active {
    color: var(--accent-green);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    border: none;
    border-radius: 4px;
    color: var(--bg-primary);
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.4);
}

.auth-message {
    text-align: center;
    padding: 12px;
    margin-top: 15px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
    font-family: 'DM Sans', sans-serif;
}

.auth-message.success {
    display: block;
    background: rgba(0, 255, 136, 0.15);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.auth-message.error {
    display: block;
    background: rgba(255, 71, 87, 0.15);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

.auth-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 20px;
    font-family: 'DM Sans', sans-serif;
}

.auth-footer a {
    color: var(--accent-blue);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    border: none;
    background: none;
    padding: 0;
    display: inline;
}
.auth-footer a:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

.auth-link-btn {
    background: none;
    border: none;
    color: var(--accent-blue);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    flex: 1;
    max-width: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    padding: 0;
    margin: 0;
    display: inline;
}

.auth-link-btn:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

.auth-link-btn:focus {
    outline: none;
}

.auth-message {
    text-align: center;
    padding: 10px;
    margin-top: 15px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.auth-message.success {
    display: block;
    background: rgba(0, 255, 136, 0.2);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.auth-message.error {
    display: block;
    background: rgba(255, 71, 87, 0.2);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-user {
    color: var(--accent-green);
    font-weight: 600;
    font-size: 14px;
}

.logout-btn {
    background: rgba(255, 71, 87, 0.2);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.logout-btn:hover {
    background: rgba(255, 71, 87, 0.3);
    border-color: var(--accent-red);
}
