/* Desktop Trading App - Exact Style Match */

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

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #151515;
    --bg-elevated: #1f1f1f;
    --bg-hover: #252525;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #6b6b6b;
    
    --green: #22c55e;
    --green-bg: rgba(34, 197, 94, 0.1);
    --red: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.1);
    --purple: #a855f7;
    --purple-bg: rgba(168, 85, 247, 0.1);
    --blue: #4c82fb;
    --blue-bg: rgba(76, 130, 251, 0.1);
    --gold: #fbbf24;
    
    /* Polymarket Blue as Primary Accent */
    --accent: #4c82fb;
    --accent-hover: #5c92fc;
    --accent-bg: rgba(76, 130, 251, 0.1);
    --accent-border: rgba(76, 130, 251, 0.3);
    
    --border: #252525;
    --border-light: #2a2a2a;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --sidebar-width: 240px;
    --right-sidebar-width: 320px;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    overflow-x: hidden;
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Alert Bar */
.top-alert {
    background: var(--bg-card);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 500;
}

.alert-icon {
    color: var(--gold);
    font-size: 18px;
}

.chevron {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Main Wrapper */
.main-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.logo-section {
    padding: 0 20px 30px;
}

.logo-section .logo-img {
    width: 28px;
    height: 28px;
}

.logo-section .logo-text {
    font-size: 14px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--blue), var(--accent-hover));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

/* Navigation Menu */
.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-item .iconify {
    font-size: 20px;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--bg-card);
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 13px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

/* Content Area */
.content-area {
    flex: 1;
    background: var(--bg-primary);
    overflow-y: auto;
    overflow-x: hidden;
}

.page {
    display: none;
    padding: 32px 40px;
    min-height: 100%;
}

.page.active {
    display: block;
}

/* Feed Page Layout */
.feed-page {
    padding: 0 !important;
    max-width: none !important;
}

.feed-page .page-header {
    padding: 32px 40px 24px;
    margin-bottom: 0;
}

.feed-layout {
    display: flex;
    gap: 32px;
    padding: 24px 40px 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.feed-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.feed-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feed-leaderboard-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.feed-leaderboard-section .section-header {
    margin-bottom: 16px;
}

.feed-leaderboard-section .section-title {
    font-size: 16px;
}

/* Profile Page Layout (Copy Trading Fullpage) */
.profile-page.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 60px 40px !important;
}

.copytrade-fullpage {
    width: 100%;
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
}

.coming-soon-card-large {
    padding: 80px 60px;
}

.coming-soon-icon-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-icon-large .iconify {
    font-size: 64px;
    color: var(--accent);
}

.coming-soon-card-large h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.coming-soon-card-large h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
}

.coming-soon-card-large p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.coming-soon-features-large {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 450px;
    margin: 0 auto;
}

.feature-item-large {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    color: var(--text-primary);
}

.feature-item-large .iconify {
    color: var(--green);
    font-size: 24px;
    flex-shrink: 0;
}

/* Settings Page Layout */
.settings-page {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Rewards Page Layout */
.rewards-page {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.token-overview {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.token-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.token-icon {
    width: 80px;
    height: 80px;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 50%;
}

/* Contract Address Section */
.contract-address-section {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.ca-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.ca-address {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.ca-address code {
    flex: 1;
    background: var(--bg-card);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--text-primary);
}

.copy-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.copy-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

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

.copy-btn .iconify {
    font-size: 20px;
}

.ca-help {
    font-size: 12px;
    color: var(--text-tertiary);
}

.token-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.token-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

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

.token-stat {
    text-align: center;
    padding: 20px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
}

.token-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

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

.fee-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fee-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
}

.fee-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fee-icon .iconify {
    font-size: 24px;
    color: var(--accent);
}

.fee-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.fee-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Portfolio Overview */
.portfolio-overview {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.portfolio-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.portfolio-balance {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.portfolio-change {
    font-size: 16px;
    font-weight: 600;
    color: var(--green);
}

.portfolio-change.negative {
    color: var(--red);
}

.portfolio-actions {
    display: flex;
    gap: 12px;
}

.balance-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.balance-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 20px;
}

.balance-card-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.balance-card-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.feed-page .page-title {
    background: linear-gradient(90deg, var(--accent), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.icon-button {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.icon-button:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.icon-button .iconify {
    font-size: 20px;
}

.icon-button.small {
    width: 32px;
    height: 32px;
}

.icon-button.small .iconify {
    font-size: 16px;
}


.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Feed Item */
.feed-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.2s;
    animation: slideIn 0.3s ease-out;
}

.feed-item:hover {
    border-color: var(--accent-border);
}

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

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

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.feed-action {
    font-size: 14px;
    color: var(--text-secondary);
}

.action-highlight {
    font-weight: 600;
}

.action-buy {
    color: var(--accent);
}

.action-sell {
    color: var(--red);
}

.feed-timestamp {
    font-size: 13px;
    color: var(--text-tertiary);
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
    border: 1px solid var(--red);
}

.status-badge.pass {
    background: var(--bg-card);
    color: var(--text-tertiary);
    border: 1px solid var(--border);
}

.trade-reasoning {
    padding: 12px 16px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    border-left: 3px solid var(--accent);
}

.confidence-badge {
    font-size: 12px;
    font-weight: 600;
}

/* Trade Card */
.trade-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.asset-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.trade-info {
    flex: 1;
}

.trade-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.trade-meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.verified-badge {
    color: var(--accent);
    font-size: 16px;
}

.trade-values {
    text-align: right;
}

.trade-amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

.trade-pnl {
    font-size: 16px;
    font-weight: 600;
}

.trade-pnl.positive {
    color: var(--green);
}

.trade-pnl.negative {
    color: var(--red);
}

.trade-percent {
    font-size: 13px;
}

.trade-percent.positive {
    color: var(--green);
}

.trade-percent.negative {
    color: var(--red);
}

/* Engagement */
.feed-engagement {
    display: flex;
    gap: 24px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.engagement-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.engagement-btn:hover {
    color: var(--accent);
}

.engagement-btn.liked {
    color: var(--accent);
    background: var(--accent-bg);
    padding: 6px 12px;
    border-radius: 16px;
}

.engagement-btn.liked .iconify {
    animation: heartBeat 0.3s ease-out;
}

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

.engagement-btn .iconify {
    font-size: 18px;
    transition: transform 0.2s;
}

.like-btn:hover {
    color: var(--accent);
}

.comment-btn:hover {
    color: var(--accent);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

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

.stat-change {
    font-size: 12px;
    color: var(--text-tertiary);
}

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

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

/* Chart Section */
.chart-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}

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

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.time-selector {
    display: flex;
    gap: 8px;
}

.time-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Sora', sans-serif;
}

.time-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.time-btn.active {
    background: var(--bg-elevated);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.chart-wrapper {
    height: 300px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 20px;
}

#performance-chart {
    width: 100%;
    height: 100%;
}

/* Positions Section */
.positions-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.text-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    font-family: 'Sora', sans-serif;
}

.text-button:hover {
    color: var(--text-primary);
}

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

.position-item {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: background 0.2s;
}

.position-item:hover {
    background: var(--bg-hover);
}

.position-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.position-info {
    flex: 1;
}

.position-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

.position-pnl {
    text-align: right;
}

.pnl-amount {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.pnl-amount.positive {
    color: var(--green);
}

.pnl-amount.negative {
    color: var(--red);
}

.pnl-percent {
    font-size: 13px;
}

.pnl-percent.positive {
    color: var(--green);
}

.pnl-percent.negative {
    color: var(--red);
}

/* Right Sidebar */
.right-sidebar {
    width: var(--right-sidebar-width);
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    overflow-y: auto;
    padding: 32px 20px;
}

.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-section .section-header {
    margin-bottom: 16px;
}

.sidebar-section .section-title {
    font-size: 16px;
}

/* Leaderboard */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leaderboard-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}

.leaderboard-item:hover {
    background: var(--bg-elevated);
}

.leaderboard-rank {
    font-size: 20px;
    font-weight: 700;
    width: 32px;
    text-align: center;
}

.leaderboard-rank.first {
    color: var(--accent);
}

.leaderboard-rank.second {
    color: var(--text-secondary);
}

.leaderboard-rank.third {
    color: #cd7f32;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.leaderboard-stats {
    font-size: 12px;
    color: var(--text-secondary);
}

.leaderboard-pnl {
    font-size: 16px;
    font-weight: 700;
    text-align: right;
}

.leaderboard-pnl.positive {
    color: var(--green);
}

.leaderboard-pnl.negative {
    color: var(--red);
}

/* Agents List */
.agents-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agent-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 12px;
}

.agent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.agent-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.agent-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.agent-activity {
    font-size: 11px;
    color: var(--text-tertiary);
}

/* Scrollbar */
.content-area::-webkit-scrollbar,
.right-sidebar::-webkit-scrollbar {
    width: 6px;
}

.content-area::-webkit-scrollbar-track,
.right-sidebar::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.content-area::-webkit-scrollbar-thumb,
.right-sidebar::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 3px;
}

.content-area::-webkit-scrollbar-thumb:hover,
.right-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--bg-elevated);
}


/* Settings Page Styles */
.settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.settings-section .section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

/* Info Box */
.wallet-info-box {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon .iconify {
    font-size: 24px;
    color: var(--blue);
}

.wallet-info-box h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.info-list {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.8;
}

.info-list li {
    margin-bottom: 6px;
}

.info-list a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.info-list a:hover {
    text-decoration: underline;
}

/* Wallet Connection */
.wallet-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.wallet-card.connected {
    border: 1px solid var(--green);
    background: rgba(34, 197, 94, 0.05);
}

.wallet-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.wallet-icon.success {
    background: var(--green-bg);
    color: var(--green);
}

.wallet-info {
    flex: 1;
}

.wallet-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.wallet-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

.wallet-address-display {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.wallet-balance {
    font-size: 14px;
    font-weight: 600;
    color: var(--green);
}

/* Forms */
.wallet-form {
    max-width: 500px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    font-family: 'Sora', sans-serif;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-card);
}

.form-help {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 6px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

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

.btn-secondary.small {
    padding: 8px 16px;
    font-size: 13px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: var(--text-secondary);
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: var(--accent);
    border-color: var(--accent);
}

input:checked + .toggle-slider:before {
    background: white;
    transform: translateX(24px);
}

/* Info Banner */
.info-banner {
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.info-banner .iconify {
    font-size: 20px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-banner p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* Agents Grid */
.agents-selection {
    margin-bottom: 32px;
}

.agents-selection h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.agent-card-selectable {
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.agent-card-selectable:hover {
    border-color: var(--border-light);
    background: var(--bg-hover);
}

.agent-card-selectable.selected {
    border-color: var(--accent);
    background: var(--accent-bg);
}

.agent-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.agent-logo {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.agent-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.agent-logo svg {
    width: 24px;
    height: 24px;
}

.agent-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.agent-card-model {
    font-size: 12px;
    color: var(--text-secondary);
}

.agent-checkmark {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    transition: all 0.2s;
}

.agent-card-selectable.selected .agent-checkmark {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.agent-card-personality {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* Copy Parameters */
.copy-params {
    margin-top: 32px;
}

.copy-params h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.slider-container input[type="range"] {
    flex: 1;
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slider-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 50px;
    text-align: right;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid var(--border);
    background: var(--bg-elevated);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Wallet CTA Card */
.wallet-cta-card {
    text-align: center;
    padding: 60px 40px;
}

.wallet-cta-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--text-secondary);
}

.wallet-cta-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.wallet-cta-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.wallet-features {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-elevated);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.feature-badge .iconify {
    color: var(--green);
    font-size: 16px;
}

.wallet-network {
    font-size: 13px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.wallet-network .iconify {
    font-size: 14px;
}

.btn-primary.large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

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

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
    z-index: 1001;
}

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

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

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

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

.modal-close .iconify {
    font-size: 24px;
}

.modal-body {
    padding: 24px;
}

/* Wallet Options */
.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wallet-option {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Sora', sans-serif;
    width: 100%;
    text-align: left;
}

.wallet-option:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    transform: translateX(4px);
}

.wallet-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    overflow: hidden;
}

.wallet-option-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.wallet-option-icon.manual {
    background: var(--bg-elevated);
}

.wallet-option-icon.manual .iconify {
    font-size: 24px;
    color: var(--text-secondary);
}

.wallet-option-info {
    flex: 1;
}

.wallet-option-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.wallet-option-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.arrow-icon {
    color: var(--text-tertiary);
    font-size: 20px;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Manual Entry Form */
.manual-entry-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.btn-primary.full-width {
    width: 100%;
}

/* Modal Info Box */
/* Builder Notice */
.builder-notice {
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.builder-notice .iconify {
    font-size: 24px;
    color: var(--accent);
    flex-shrink: 0;
}

.builder-notice p {
    font-size: 14px;
    color: var(--text-primary);
    margin: 0;
    font-weight: 500;
}

/* Modal Feature List */
.modal-feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.feature-item-modal {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.feature-item-modal .iconify {
    font-size: 20px;
    color: var(--green);
    flex-shrink: 0;
}

.wallet-option.featured {
    background: var(--accent-bg);
    border-color: var(--accent-border);
}

.wallet-option.featured:hover {
    background: rgba(76, 130, 251, 0.15);
    border-color: var(--accent);
}

.modal-info-box {
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.modal-info-box .iconify {
    font-size: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.modal-info-box p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.modal-info-box a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.modal-info-box a:hover {
    text-decoration: underline;
}

/* Community Chat Page */
.community-page {
    padding: 0 !important;
    max-width: none !important;
    height: calc(100vh - 100px);
    max-height: calc(100vh - 100px);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.community-page.active {
    display: flex !important;
}

.community-page .page-header {
    padding: 32px 40px 24px;
    margin-bottom: 0;
}

.online-users {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-card);
    padding: 8px 16px;
    border-radius: var(--radius-md);
}

.online-users .iconify {
    color: var(--accent);
    font-size: 18px;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    margin: 0 40px 40px 40px;
    border-radius: var(--radius-lg);
    height: calc(100vh - 250px);
    max-height: calc(100vh - 250px);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    max-height: 100%;
}

.chat-welcome {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.welcome-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.chat-welcome h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.chat-welcome p {
    font-size: 15px;
    margin-bottom: 24px;
}

.agent-mention-help {
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 13px;
    max-width: 400px;
    margin: 0 auto;
}

.agent-mention-help strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
}

.agent-mention-help code {
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--accent);
}

/* Chat Message */
.chat-message {
    display: flex;
    gap: 12px;
    animation: messageSlide 0.3s ease-out;
}

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

.chat-message.agent-message {
    background: var(--accent-bg);
    padding: 16px;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent);
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.message-avatar.agent {
    background: var(--accent-bg);
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

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

.message-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.message-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.message-author.agent {
    color: var(--accent);
}

/* Founder Badge Styling */
.message-author.founder {
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    background-size: 200% 200%;
    animation: founderGlow 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

@keyframes founderGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.founder-crown {
    display: inline-block;
    margin-left: 6px;
    font-size: 16px;
    animation: crownFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
    cursor: help;
    position: relative;
}

@keyframes crownFloat {
    0%, 100% {
        transform: translateY(0px) rotate(-5deg);
    }
    50% {
        transform: translateY(-3px) rotate(5deg);
    }
}

.founder-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffd700;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.founder-crown:hover .founder-tooltip {
    opacity: 1;
}

.agent-badge {
    background: var(--accent);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.message-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

.message-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    word-wrap: break-word;
}

.message-text .mention {
    color: var(--accent);
    background: var(--accent-bg);
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}

/* Agent Thinking Display */
.agent-thinking {
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin: 8px 0;
    font-size: 13px;
}

.thinking-header {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
}

.thinking-header .iconify {
    font-size: 16px;
}

.thinking-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
}

/* Typing Indicator */
.typing-indicator {
    opacity: 0.7;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Chat Input */
.chat-input-container {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
    position: relative;
}

.mention-autocomplete {
    position: absolute;
    bottom: 100%;
    left: 20px;
    right: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: var(--bg-card);
}

.autocomplete-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.autocomplete-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.autocomplete-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.autocomplete-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px;
    transition: border-color 0.2s;
}

.chat-input-wrapper:focus-within {
    border-color: var(--accent);
}

#chat-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-action-btn:disabled,
.chat-send-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.chat-action-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.chat-action-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.chat-action-btn .iconify {
    font-size: 20px;
}

#chat-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--text-primary);
    font-family: 'Sora', sans-serif;
}

#chat-input::placeholder {
    color: var(--text-tertiary);
}

.chat-send-btn {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.2s;
}

.chat-send-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chat-send-btn .iconify {
    font-size: 18px;
}

.chat-input-hint {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 8px;
    text-align: center;
}

/* Scrollbars */
.chat-messages::-webkit-scrollbar,
.feed-container::-webkit-scrollbar,
.page::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track,
.feed-container::-webkit-scrollbar-track,
.page::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.chat-messages::-webkit-scrollbar-thumb,
.feed-container::-webkit-scrollbar-thumb,
.page::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.feed-container::-webkit-scrollbar-thumb:hover,
.page::-webkit-scrollbar-thumb:hover {
    background: var(--bg-elevated);
}

/* Coming Soon Card */
.coming-soon-card {
    text-align: center;
    padding: 60px 40px;
}

.coming-soon-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-icon .iconify {
    font-size: 40px;
    color: var(--accent);
}

.coming-soon-card h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.coming-soon-card p {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
}

.coming-soon-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.feature-item-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.feature-item-inline .iconify {
    color: var(--green);
    font-size: 20px;
    flex-shrink: 0;
}

/* Profile Settings Form */
.profile-settings-form {
    max-width: 600px;
}

.pfp-upload {
    display: flex;
    gap: 20px;
    align-items: center;
}

.pfp-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.pfp-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pfp-preview .iconify {
    font-size: 40px;
    color: var(--text-secondary);
}

.pfp-actions {
    flex: 1;
}

/* Utility Classes */
.text-green {
    color: var(--green);
}

.text-red {
    color: var(--red);
}

.text-purple {
    color: var(--purple);
}

.text-gold {
    color: var(--gold);
}

.text-blue {
    color: var(--blue);
}

/* Responsive */
@media (max-width: 1400px) {
    .right-sidebar {
        display: none;
    }
}

@media (max-width: 1200px) {
    .feed-layout {
        grid-template-columns: 1fr;
    }
    
    .feed-sidebar {
        display: none;
    }
}

@media (max-width: 1024px) {
    .feed-layout {
        grid-template-columns: 1fr;
    }
    
    .feed-sidebar {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .token-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .agents-grid {
        grid-template-columns: 1fr;
    }
    
    .balance-cards {
        grid-template-columns: 1fr;
    }
    
    .coming-soon-card-large h1 {
        font-size: 36px;
    }
    
    .coming-soon-card-large h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .sidebar .nav-item span:not(.iconify) {
        display: none;
    }
    
    .logo-section,
    .sidebar-footer {
        padding: 0 12px;
    }
    
    .page {
        padding: 20px;
    }
    
    .feed-page,
    .profile-page,
    .community-page {
        padding: 20px !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
}

    .agents-grid {
        grid-template-columns: 1fr;
    }
    
    .chat-container {
        margin: 0 0 20px 0;
    }
    
    .modal-content {
        width: 95%;
    }
}


/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease-out;
    z-index: 10000;
    font-size: 14px;
    font-weight: 500;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast .iconify {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-success {
    border-left: 4px solid var(--green);
}

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

.toast-error {
    border-left: 4px solid var(--red);
}

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

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

.toast-warning .iconify {
    color: var(--gold);
}

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

.toast-info .iconify {
    color: var(--accent);
}
