@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=Urbanist:wght@400;600;700;800&display=swap');

:root {
    --bg-dark: #0a0c14;
    --card-bg: rgba(18, 20, 29, 0.75);
    --card-border: rgba(255, 255, 255, 0.08);
    --neon-lime: #deff9a;
    --neon-cyan: #00f2fe;
    --neon-red: #ff4c4c;
    --gold: #ffd700;
    --text-main: #f0f2f8;
    --text-muted: #8e95a5;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(222, 255, 154, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 242, 254, 0.05) 0px, transparent 50%);
    color: var(--text-main);
    font-family: 'Urbanist', sans-serif;
    min-height: 100vh;
    padding-bottom: 40px;
}

/* HEADER */
header {
    background: rgba(10, 12, 20, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 30px;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--neon-lime);
    color: #000;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(222, 255, 154, 0.4);
}

.logo-text h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-text h1 span {
    color: var(--neon-lime);
}

.logo-text p {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* CRISIS BANNER */
.crisis-banner {
    background: linear-gradient(90deg, rgba(255, 76, 76, 0.2), rgba(255, 76, 76, 0.05));
    border: 1px solid var(--neon-red);
    color: var(--neon-red);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 76, 76, 0.3); }
    50% { box-shadow: 0 0 25px rgba(255, 76, 76, 0.6); }
}

/* NEWS TICKER CONTAINER (NEWS TRADING) */
.news-ticker-container {
    max-width: 1400px;
    margin: 15px auto 0 auto;
    background: rgba(18, 20, 29, 0.85);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: var(--radius-md);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.15);
    overflow: hidden;
}

.news-ticker-badge {
    background: var(--neon-cyan);
    color: #000;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.5);
    animation: pulseBlue 2s infinite;
}

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

.news-ticker-content {
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.news-ticker-content strong {
    color: var(--neon-lime);
}

/* DASHBOARD LAYOUT */
.dashboard-container {
    max-width: 1400px;
    margin: 25px auto 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 25px;
}

/* GLASS CARD */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.card-title i {
    color: var(--neon-lime);
}

/* WEALTH BOX */
.wealth-box {
    background: linear-gradient(135deg, rgba(222, 255, 154, 0.1), rgba(0, 242, 254, 0.05));
    border: 1px solid rgba(222, 255, 154, 0.2);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.wealth-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
}

.wealth-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--neon-lime);
    margin-top: 4px;
}

/* FUNDS BREAKDOWN */
.funds-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fund-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.fund-item label {
    color: var(--text-muted);
}

.fund-item .val {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

/* PORTFOLIO HOLDINGS LIST */
.portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.portfolio-item .holding {
    color: var(--neon-lime);
    font-weight: 600;
}

/* MAIN CONTENT GRID */
.main-content-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* MARKETS TABS & CARDS */
.market-tabs {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--neon-lime);
    background: rgba(222, 255, 154, 0.1);
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.market-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: var(--transition);
}

.market-card:hover {
    transform: translateY(-3px);
    border-color: rgba(222, 255, 154, 0.3);
}

.market-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.symbol-code {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 16px;
}

.symbol-name {
    font-size: 11px;
    color: var(--text-muted);
}

.symbol-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.badge-up {
    background: rgba(222, 255, 154, 0.15);
    color: var(--neon-lime);
}

.badge-down {
    background: rgba(255, 76, 76, 0.15);
    color: var(--neon-red);
}

.market-card-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.trade-actions {
    display: flex;
    gap: 8px;
}

.btn-trade {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-buy {
    background: var(--neon-lime);
    color: #000;
}

.btn-buy:hover {
    box-shadow: 0 0 15px rgba(222, 255, 154, 0.4);
}

.btn-sell {
    background: rgba(255, 76, 76, 0.2);
    color: var(--neon-red);
    border: 1px solid var(--neon-red);
}

.btn-sell:hover {
    background: var(--neon-red);
    color: #fff;
}

/* ENERGY & SUBMISSION FORM */
.energy-section {
    margin-bottom: 25px;
}

.energy-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.energy-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.energy-val {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--neon-cyan);
}

.energy-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.energy-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-lime));
    transition: width 0.5s ease;
}

.energy-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
}

/* ANTI-FRAUD WARNING */
.anti-fraud-alert {
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 12px;
    color: #ffe680;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* FORM FIELDS */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.form-group label span {
    color: var(--text-muted);
    font-weight: 400;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: #111524;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: #fff;
    font-family: 'Urbanist', sans-serif;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--neon-lime);
    box-shadow: 0 0 15px rgba(222, 255, 154, 0.2);
}

/* SECTOR RADIOS */
.sector-radios {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.sector-option input {
    display: none;
}

.sector-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.sector-option input:checked + .sector-box {
    border-color: var(--neon-lime);
    background: rgba(222, 255, 154, 0.08);
}

.sector-box i {
    font-size: 18px;
    margin-bottom: 4px;
    display: block;
    color: var(--neon-lime);
}

.sector-box span {
    font-size: 12px;
    font-weight: 700;
}

.multiplier-tag {
    font-size: 10px;
    color: var(--neon-cyan);
    font-weight: bold;
    margin-top: 2px;
}

.btn-submit-idea {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--neon-lime), #a8cf45);
    border: none;
    border-radius: var(--radius-md);
    color: #000;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 25px rgba(222, 255, 154, 0.3);
}

.btn-submit-idea:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(222, 255, 154, 0.5);
}

.btn-pr-game {
    background: linear-gradient(135deg, var(--neon-cyan), #00c6ff);
    color: #000;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 18px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.btn-pr-game:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.5);
}

/* AI EVALUATION MODAL */
.ai-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.ai-modal-overlay.active {
    display: flex;
}

.ai-result-box {
    background: #111524;
    border: 2px solid var(--neon-lime);
    border-radius: var(--radius-lg);
    width: 520px;
    max-width: 90%;
    padding: 30px;
    box-shadow: 0 0 50px rgba(222, 255, 154, 0.3);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.ai-header {
    text-align: center;
    margin-bottom: 20px;
}

.ai-badge {
    display: inline-block;
    background: rgba(222, 255, 154, 0.15);
    color: var(--neon-lime);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.score-display {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 64px;
    font-weight: 800;
    color: var(--neon-lime);
    margin: 10px 0;
}

.criteria-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.criteria-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.criteria-item label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.criteria-item span {
    font-weight: 700;
    color: #fff;
}

.feedback-quote {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--neon-cyan);
    padding: 12px;
    font-size: 13px;
    font-style: italic;
    color: #d0d5e2;
    margin-bottom: 20px;
}

.vurgun-explosion {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(222, 255, 154, 0.1));
    border: 1px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.vurgun-title {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--gold);
    font-size: 14px;
    font-weight: 800;
}

.vurgun-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--neon-lime);
}

.btn-close-modal {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    cursor: pointer;
}

.pr-answer-btn {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: 'Urbanist', sans-serif;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.pr-answer-btn:hover {
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--neon-cyan);
}
