/* ===== POLY.FUN - Premium Dark Theme ===== */

:root {
    --bg-primary: #0d1f12;
    --bg-secondary: #0a1a0e;
    --bg-tertiary: #132919;
    --bg-card: #0f2414;
    --bg-hover: #1a3320;
    
    --text-primary: #ffffff;
    --text-secondary: #a8c4ad;
    --text-muted: #5a7a5f;
    
    --accent: #22c55e;
    --accent-hover: #4ade80;
    --accent-glow: rgba(34, 197, 94, 0.3);
    
    --green: #22c55e;
    --green-bg: rgba(34, 197, 94, 0.15);
    --green-border: rgba(34, 197, 94, 0.4);
    
    --red: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.1);
    --red-border: rgba(239, 68, 68, 0.3);
    
    --yellow: #fbbf24;
    --purple: #22c55e;
    
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 12px;
}

.empty-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text .accent {
    color: var(--accent);
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

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

.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.balance-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    font-weight: 600;
}

.balance-icon {
    color: var(--purple);
}

.btn-connect {
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-connect:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 160px 24px 80px;
    text-align: center;
    overflow: hidden;
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #22c55e, #4ade80, #86efac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

/* ===== FILTERS ===== */
.filters-section {
    padding: 20px 0 40px;
    border-bottom: 1px solid var(--border);
}

.filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

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

.filter-tab {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.filter-tab.active {
    background: var(--bg-tertiary);
    border-color: var(--accent);
    color: var(--text-primary);
}

.search-box {
    position: relative;
    width: 300px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ===== MARKETS GRID ===== */
.markets-section {
    padding: 50px 0;
}

.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}

.market-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: all 0.3s;
    cursor: pointer;
}

.market-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

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

.market-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.market-badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.market-tag {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.market-tag.hot {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid var(--red-border);
}

.market-tag.new {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid var(--green-border);
}

.market-tag.ending {
    background: rgba(251, 191, 36, 0.1);
    color: var(--yellow);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.market-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.market-token {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.market-token .ticker {
    color: var(--accent);
    font-weight: 600;
}

.market-odds {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.odds-btn {
    flex: 1;
    padding: 14px;
    border-radius: var(--radius-md);
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.odds-btn.yes {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid var(--green-border);
}

.odds-btn.yes:hover {
    background: rgba(34, 197, 94, 0.2);
    transform: scale(1.02);
}

.odds-btn.no {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid var(--red-border);
}

.odds-btn.no:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.02);
}

.odds-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

.odds-value {
    font-size: 1.25rem;
}

.market-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.market-volume, .market-ends {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.volume-value, .ends-value {
    font-weight: 600;
    color: var(--text-secondary);
}

/* ===== LEADERBOARD ===== */
.leaderboard-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

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

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.view-all {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.view-all:hover {
    color: var(--accent-hover);
}

.leaderboard-table {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow: hidden;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 80px 1fr 100px 100px 120px;
    padding: 18px 24px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.leaderboard-row:not(.header):hover {
    background: var(--bg-hover);
}

.leaderboard-row.header {
    background: var(--bg-tertiary);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rank {
    font-weight: 700;
    font-size: 1.1rem;
}

.rank-1 { color: #fbbf24; }
.rank-2 { color: #94a3b8; }
.rank-3 { color: #cd7f32; }

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

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-name {
    font-weight: 600;
}

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

.trades, .winrate {
    color: var(--text-secondary);
}

.profit {
    font-weight: 600;
    color: var(--green);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-card));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 500px;
}

.cta-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary svg {
    width: 20px;
    height: 20px;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.cta-graphic {
    position: relative;
    width: 200px;
    height: 200px;
}

.floating-card {
    position: absolute;
    font-size: 3rem;
    animation: float 4s ease-in-out infinite;
}

.card-1 { top: 0; left: 50%; animation-delay: 0s; }
.card-2 { bottom: 20%; left: 10%; animation-delay: 0.5s; }
.card-3 { bottom: 10%; right: 10%; animation-delay: 1s; }

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

/* ===== PAGES ===== */
.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    padding: 140px 0 50px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
}

/* ===== LEADERBOARD FULL ===== */
.leaderboard-section.full {
    padding: 40px 0 80px;
    background: var(--bg-primary);
}

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

.lb-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

.lb-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent);
}

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

.leaderboard-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.lb-filter {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.lb-filter:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.lb-filter.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ===== PORTFOLIO ===== */
.portfolio-section {
    padding: 40px 0 80px;
}

.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

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

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.portfolio-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

.portfolio-stat .value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

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

.positions-list {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.positions-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    padding: 16px 24px;
    background: var(--bg-tertiary);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.position-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    padding: 20px 24px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

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

.position-row:last-child {
    border-bottom: none;
}

.position-market {
    display: flex;
    align-items: center;
    gap: 12px;
}

.position-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.position-title {
    font-weight: 500;
    font-size: 0.95rem;
}

.position-side {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
}

.position-side.yes {
    background: var(--green-bg);
    color: var(--green);
}

.position-side.no {
    background: var(--red-bg);
    color: var(--red);
}

.position-pnl.green { color: var(--green); font-weight: 600; }
.position-pnl.red { color: var(--red); font-weight: 600; }

/* ===== CREATE ===== */
.create-section {
    padding: 40px 0 80px;
}

.create-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form-group select {
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-info {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
}

.form-info .info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.form-info .info-row:last-child {
    border-bottom: none;
}

.form-info .info-row span:first-child {
    color: var(--text-secondary);
}

.form-info .info-row span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo-icon {
    font-size: 1.5rem;
}

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

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

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 90%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.modal-lg {
    max-width: 540px;
}

.modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

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

.modal-content-scroll {
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.modal-market-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.modal-market-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.modal-market-info {
    flex: 1;
}

.modal-market-info .modal-token {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.modal-market-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.modal-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.modal-stat {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
}

.modal-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-stat-value {
    font-size: 1.1rem;
    font-weight: 600;
}

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

.modal-resolution {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
}

.modal-resolution h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-resolution p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.bet-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.bet-options {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.bet-option {
    flex: 1;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bet-option.yes {
    background: var(--green-bg);
    color: var(--green);
    border-color: var(--green-border);
}

.bet-option.yes:hover, .bet-option.yes.selected {
    border-color: var(--green);
    background: rgba(34, 197, 94, 0.2);
}

.bet-option.no {
    background: var(--red-bg);
    color: var(--red);
    border-color: var(--red-border);
}

.bet-option.no:hover, .bet-option.no.selected {
    border-color: var(--red);
    background: rgba(239, 68, 68, 0.2);
}

.option-label {
    font-size: 0.85rem;
    font-weight: 600;
}

.option-odds {
    font-size: 1.5rem;
    font-weight: 700;
}

.bet-input-section {
    margin-bottom: 24px;
}

.bet-input-section label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.bet-input-row {
    display: flex;
    gap: 12px;
}

.bet-input-row input {
    flex: 1;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
}

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

.quick-amounts {
    display: flex;
    gap: 6px;
}

.quick-amt {
    padding: 14px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-amt:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.bet-summary {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
}

.summary-row:first-child {
    border-bottom: 1px solid var(--border);
}

.summary-row span:first-child {
    color: var(--text-secondary);
}

.potential-return {
    font-weight: 600;
}

.potential-profit {
    font-weight: 700;
}

.potential-profit.green {
    color: var(--green);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    font-weight: 500;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-lg);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .markets-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }
    
    .cta-graphic {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .filters-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .leaderboard-row {
        grid-template-columns: 60px 1fr 80px 80px;
    }
    
    .profit {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        gap: 40px;
        flex-wrap: wrap;
    }
}
