/* Obelisk DEX - Tools Stylesheet */

/* Tools Container */
.tools-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.tools-header {
    text-align: center;
    margin-bottom: 32px;
}

.tools-header h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.tools-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Info Box - Explanations */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 157, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.info-box .info-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.info-box p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Tool Card */
.tool-card {
    background: linear-gradient(180deg, rgba(5, 15, 25, 0.95) 0%, rgba(3, 10, 18, 0.98) 100%);
    border-radius: 4px;
    border: 1px solid var(--border-glow);
    box-shadow: var(--glow-subtle), var(--inner-glow);
    overflow: hidden;
    transition: var(--transition-glow);
    position: relative;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.5;
}

.tool-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--glow), var(--inner-glow);
}

.tool-card.wide {
    grid-column: span 2;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 180, 220, 0.03);
}

.tool-icon {
    font-size: 24px;
}

.tool-header h3 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.tool-body {
    padding: 20px;
}

/* Tool Input Groups */
.tool-input-group {
    margin-bottom: 14px;
}

.tool-input-group label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-input-group input,
.tool-input-group select {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 10px 12px;
    outline: none;
    transition: var(--transition-fast);
}

.tool-input-group input:focus,
.tool-input-group select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.tool-input-group input::placeholder {
    color: var(--text-muted);
}

/* Tool Toggle */
.tool-toggle {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: var(--bg-secondary);
    border-radius: 6px;
    padding: 4px;
}

.toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.toggle-btn:hover {
    color: var(--text-primary);
}

.toggle-btn.active {
    background: var(--accent-primary);
    color: #000;
}

/* Tool Button */
.tool-btn {
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.9) 0%, rgba(0, 150, 200, 0.9) 100%);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-glow);
    margin-top: 8px;
}

.tool-btn:hover {
    box-shadow: var(--glow);
    transform: translateY(-1px);
}

.tool-btn.small {
    padding: 8px 16px;
    font-size: 11px;
}

/* Tool Result */
.tool-result {
    margin-top: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
}

.result-row:last-child {
    border-bottom: none;
}

.result-row span:first-child {
    color: var(--text-secondary);
}

.result-row span:last-child {
    font-family: var(--font-mono);
    font-weight: 500;
}

.result-row.highlight {
    background: rgba(0, 212, 255, 0.1);
    margin: 4px -16px;
    padding: 10px 16px;
    border-radius: 4px;
}

.result-row.warning span:last-child {
    color: var(--warning);
}

/* Gas Tracker Styles */
.gas-prices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.gas-tier {
    text-align: center;
    padding: 16px 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.gas-tier.slow {
    border-color: rgba(255, 153, 0, 0.3);
}

.gas-tier.standard {
    border-color: rgba(0, 212, 255, 0.3);
}

.gas-tier.fast {
    border-color: rgba(0, 255, 157, 0.3);
}

.gas-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.gas-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    margin-bottom: 4px;
}

.gas-time {
    font-size: 11px;
    color: var(--text-muted);
}

.gas-estimates {
    margin-bottom: 16px;
}

.gas-estimates h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.estimate-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
}

.estimate-row span:first-child {
    color: var(--text-secondary);
}

.estimate-row span:last-child {
    font-family: var(--font-mono);
    color: var(--accent-primary);
}

/* Funding Rates Table */
.funding-table {
    margin-bottom: 16px;
}

.funding-header-row,
.funding-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
}

.funding-header-row {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.funding-row span:first-child {
    font-weight: 500;
}

.funding-info {
    text-align: center;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.funding-info strong {
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

/* Converter Styles */
.converter-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.converter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.converter-section h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Token Scanner Styles */
.scanner-input {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.scanner-input input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 12px 16px;
    outline: none;
}

.scanner-input input:focus {
    border-color: var(--accent-primary);
}

.scanner-input .tool-btn {
    width: auto;
    margin-top: 0;
}

.scanner-result {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 20px;
}

.scanner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.token-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.token-name {
    font-size: 20px;
    font-weight: 600;
}

.token-symbol {
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: 4px;
}

.safety-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.safety-badge.safe {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(0, 255, 157, 0.3);
}

.safety-badge.warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(255, 153, 0, 0.3);
}

.safety-badge.danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(255, 51, 102, 0.3);
}

.scanner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.scanner-stat {
    text-align: center;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.stat-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-mono);
}

.scanner-checks {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.scanner-checks h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
}

.check-item span:first-child {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
}

.check-item.pass span:first-child {
    background: var(--success-bg);
    color: var(--success);
}

.check-item.fail span:first-child {
    background: var(--danger-bg);
    color: var(--danger);
}

.check-item.warning span:first-child {
    background: var(--warning-bg);
    color: var(--warning);
}

/* Price Alerts Styles */
.alerts-list {
    margin-top: 16px;
}

.alert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
}

.alert-info {
    font-size: 13px;
    font-family: var(--font-mono);
}

.alert-remove {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.alert-remove:hover {
    background: var(--danger-bg);
    color: var(--danger);
}

/* Whale Tracker Styles */
.whale-feed {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.whale-tx {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
}

.whale-icon {
    font-size: 24px;
}

.whale-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.whale-action {
    font-size: 14px;
    font-weight: 500;
}

.whale-value {
    font-size: 13px;
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

.whale-route {
    font-size: 12px;
    color: var(--text-muted);
}

.whale-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* Portfolio Rebalancer Styles */
.allocation-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}

.allocation-row span:first-child {
    width: 50px;
    font-weight: 500;
}

.allocation-row input {
    width: 60px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 6px 8px;
    text-align: right;
}

.current-alloc {
    color: var(--text-muted);
    font-size: 12px;
    margin-left: auto;
}

.rebalance-trade {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-family: var(--font-mono);
    margin-bottom: 8px;
}

.rebalance-trade.buy {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(0, 255, 157, 0.2);
}

.rebalance-trade.sell {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(255, 51, 102, 0.2);
}

/* Responsive */
@media (max-width: 1200px) {
    .tool-card.wide {
        grid-column: span 1;
    }

    .scanner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .gas-prices {
        grid-template-columns: 1fr;
    }

    .scanner-input {
        flex-direction: column;
    }

    .scanner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Smart Intent Trading (NEW)
   ========================================================================== */

.intent-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.intent-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.intent-form {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.intent-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.intent-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.intent-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.intent-submit {
    padding: 16px 32px;
    font-weight: 600;
    white-space: nowrap;
}

/* Intent Suggestions */
.intent-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.suggestion-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-chip:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--accent-primary);
    color: white;
}

.suggestion-icon {
    font-size: 14px;
}

/* Active Intents List */
.active-intents {
    display: grid;
    gap: 12px;
}

.intent-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
}

.intent-card.pending {
    border-left: 3px solid #fbbf24;
}

.intent-card.executed {
    border-left: 3px solid #10b981;
}

.intent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.intent-type {
    font-weight: 600;
}

.intent-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.intent-body {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.intent-footer {
    display: flex;
    justify-content: flex-end;
}

.no-intents {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 32px;
}

/* ==========================================================================
   Arbitrage Scanner (NEW)
   ========================================================================== */

.arbitrage-section {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.scanner-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.scanner-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
}

.scanner-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Arbitrage Opportunity Cards */
.arbitrage-opportunities {
    display: grid;
    gap: 16px;
}

.arb-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.arb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.arb-card.risk-low {
    border-left: 3px solid #10b981;
}

.arb-card.risk-medium {
    border-left: 3px solid #fbbf24;
}

.arb-card.risk-high {
    border-left: 3px solid #ef4444;
}

.arb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.arb-pair {
    font-size: 18px;
    font-weight: 700;
}

.arb-profit {
    font-size: 20px;
    font-weight: 700;
    color: #10b981;
}

.arb-profit.high-profit {
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.arb-route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 12px;
}

.route-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.step-label {
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.step-venue {
    font-weight: 600;
}

.step-network {
    font-size: 12px;
    color: var(--accent-primary);
}

.route-arrow {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.3);
}

.bridge-icon {
    font-size: 18px;
}

.arb-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.arb-details {
    color: rgba(255, 255, 255, 0.6);
}

.arb-risk {
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
}

.arb-risk.risk-low {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.arb-risk.risk-medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.arb-risk.risk-high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.no-opportunities {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 40px;
}

/* ==========================================================================
   Social Recovery (NEW)
   ========================================================================== */

.recovery-section {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.1), rgba(251, 191, 36, 0.1));
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.guardian-setup-form {
    display: grid;
    gap: 16px;
}

.recovery-section .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.recovery-section .form-group textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-family: monospace;
    resize: vertical;
}

.recovery-section .form-group input[type="number"],
.recovery-section .form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

.form-help {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.recovery-status-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.recovery-status-card.active {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.recovery-status-card.inactive {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-icon {
    font-size: 32px;
}

.status-info strong {
    display: block;
    margin-bottom: 4px;
}

.status-info p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   AI Advisor (NEW)
   ========================================================================== */

.advisor-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.advisor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

#analyze-portfolio {
    display: flex;
    align-items: center;
    gap: 8px;
}

.analysis-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.analysis-section h4 {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.health-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.metric {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.metric-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
}

.metric-value.risk-low { color: #10b981; }
.metric-value.risk-medium { color: #fbbf24; }
.metric-value.risk-high { color: #ef4444; }

/* Allocation Chart */
.allocation-chart {
    display: grid;
    gap: 12px;
}

.allocation-bar {
    display: grid;
    grid-template-columns: 100px 1fr 60px;
    align-items: center;
    gap: 12px;
}

.cat-name {
    font-size: 13px;
    font-weight: 500;
}

.bar-container {
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.5s ease;
}

.bar-fill.cat-stable { background: linear-gradient(90deg, #10b981, #34d399); }
.bar-fill.cat-blue_chip { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.bar-fill.cat-large_cap { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.bar-fill.cat-defi { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bar-fill.cat-meme { background: linear-gradient(90deg, #ef4444, #f87171); }

.cat-percent {
    text-align: right;
    font-weight: 600;
}

/* Recommendations */
.recommendations {
    display: grid;
    gap: 12px;
}

.recommendation-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid transparent;
}

.recommendation-card.priority-high { border-left-color: #ef4444; }
.recommendation-card.priority-medium { border-left-color: #fbbf24; }
.recommendation-card.priority-low { border-left-color: #3b82f6; }

.rec-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rec-icon { font-size: 20px; }
.rec-title { flex: 1; font-weight: 600; }
.rec-priority {
    font-size: 11px;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.rec-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

/* Opportunities */
.opportunities-list {
    display: grid;
    gap: 12px;
}

.opportunity-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.opp-icon { font-size: 28px; }
.opp-info { flex: 1; }
.opp-info strong { display: block; margin-bottom: 4px; }
.opp-info p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.opp-profit { font-weight: 700; color: #10b981; }

/* Risks */
.risks-list {
    display: grid;
    gap: 12px;
}

.risk-card {
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.risk-card.severity-high {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.risk-card.severity-medium {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.risk-card strong { display: block; margin-bottom: 8px; }
.risk-card p { margin: 0 0 8px 0; color: rgba(255, 255, 255, 0.7); }
.risk-card small { color: rgba(255, 255, 255, 0.5); font-style: italic; }

/* ==========================================================================
   Notifications (NEW)
   ========================================================================== */

#notifications {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease;
    min-width: 280px;
}

.notification-success { border-left: 4px solid #10b981; }
.notification-error { border-left: 4px solid #ef4444; }
.notification-info { border-left: 4px solid #3b82f6; }

.notification-message { flex: 1; }

.notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 20px;
    padding: 0;
}

.notification.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { transform: translateX(100%); opacity: 0; }
}

/* ==========================================================================
   Responsive Additions
   ========================================================================== */

@media (max-width: 768px) {
    .intent-form { flex-direction: column; }
    .intent-submit { width: 100%; }
    .scanner-controls { flex-direction: column; }
    .scanner-btn { width: 100%; justify-content: center; }
    .arb-route { flex-wrap: wrap; }
    .health-metrics { grid-template-columns: 1fr 1fr; }
    .allocation-bar { grid-template-columns: 80px 1fr 50px; }
}
