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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #0f0f0f;
    color: #e0e0e0;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #888;
    margin-top: 0.5rem;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 12px;
}

.stat {
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.stat.clickable {
    cursor: pointer;
}

.stat.clickable:hover {
    background: #2a2a2a;
}

.stat.clickable.active {
    background: #7c3aed33;
    border: 1px solid #7c3aed;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
}

.stat.new .stat-value { color: #00d4ff; }
.stat.reviewed .stat-value { color: #fbbf24; }
.stat.launched .stat-value { color: #22c55e; }
.stat.analyzed .stat-value { color: #a78bfa; }

.controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-left: auto;
}

.sort-select {
    background: #0f0f0f;
    color: #e0e0e0;
    border: 1px solid #2a2a2a;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: #7c3aed;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-secondary {
    background: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #3a3a3a;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #3a3a3a;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-danger:disabled {
    background: #666;
    cursor: not-allowed;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #1a1a1a;
    border-radius: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    background: transparent;
    color: #888;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: #2a2a2a;
    color: #e0e0e0;
}

.tab-btn.active {
    background: linear-gradient(135deg, #7c3aed33, #00d4ff22);
    color: #fff;
    border: 1px solid #7c3aed55;
}

.tab-count {
    background: #2a2a2a;
    color: #888;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tab-btn.active .tab-count {
    background: #7c3aed;
    color: white;
}

/* Active Filters */
.active-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    background: #7c3aed22;
    border: 1px solid #7c3aed44;
    border-radius: 8px;
}

.filter-label {
    font-size: 0.8rem;
    color: #888;
}

.filter-tag {
    background: #7c3aed;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.clear-filters {
    background: transparent;
    color: #a78bfa;
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: auto;
}

.clear-filters:hover {
    text-decoration: underline;
}

/* Opportunities Grid */
.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.25rem;
}

.opportunity-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.opportunity-card:hover {
    transform: translateY(-4px);
    border-color: #7c3aed;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.opportunity-card.analyzed {
    border-color: #7c3aed44;
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background: #2a2a2a;
}

.category-badge.physical_product { background: #7c3aed33; color: #a78bfa; }
.category-badge.digital_product { background: #00d4ff33; color: #00d4ff; }
.category-badge.app { background: #22c55e33; color: #22c55e; }
.category-badge.arbitrage { background: #fbbf2433; color: #fbbf24; }

.source-badge {
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.source-badge.user-idea {
    background: #7c3aed22;
    color: #a78bfa;
    border: 1px solid #7c3aed44;
}

.score {
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.score.score-green { color: #22c55e; background: #22c55e22; }
.score.score-yellow { color: #fbbf24; background: #fbbf2422; }
.score.score-red { color: #ef4444; background: #ef444422; }

.btn-delete {
    background: transparent;
    border: none;
    color: #666;
    padding: 0.25rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete:hover {
    color: #ef4444;
    background: #ef444422;
}

/* Card Content */
.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: #fff;
}

.card-description-wrapper {
    margin-bottom: 0.75rem;
}

.card-description {
    color: #888;
    font-size: 0.8rem;
    line-height: 1.5;
}

.desc-ellipsis {
    color: #888;
}

.desc-expand {
    background: none;
    border: none;
    color: #7c3aed;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
}

.desc-expand:hover {
    text-decoration: underline;
}

/* Score Bars - Compact */
.score-bars {
    margin-bottom: 0.75rem;
    padding: 0.6rem;
    background: #0f0f0f;
    border-radius: 8px;
}

.score-bar-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.score-bar-row:last-child {
    margin-bottom: 0;
}

.score-bar-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.score-label {
    width: 32px;
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
}

.score-bar {
    flex: 1;
    height: 5px;
    background: #2a2a2a;
    border-radius: 3px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.score-fill.score-green { background: #22c55e; }
.score-fill.score-yellow { background: #fbbf24; }
.score-fill.score-red { background: #ef4444; }

.score-value {
    width: 20px;
    font-size: 0.65rem;
    color: #888;
    text-align: right;
}

/* Card Meta */
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #2a2a2a;
}

.source-label {
    text-transform: capitalize;
}

.analyzed-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: #7c3aed33;
    color: #a78bfa;
}

/* Validation Display (User Ideas) */
.validation-display {
    margin-bottom: 0.75rem;
    padding: 0.6rem;
    background: #0f0f0f;
    border-radius: 8px;
    border: 1px solid #7c3aed33;
}

.validation-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    color: #a78bfa;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0;
}

.validation-toggle:hover {
    color: #c4b5fd;
}

.verdict-mini {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.verdict-mini.verdict-go { background: #22c55e33; color: #22c55e; }
.verdict-mini.verdict-maybe { background: #fbbf2433; color: #fbbf24; }
.verdict-mini.verdict-skip { background: #ef444433; color: #ef4444; }

.toggle-icon {
    margin-left: auto;
    font-size: 1rem;
}

.validation-content {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #2a2a2a;
}

.validation-summary {
    font-size: 0.85rem;
    color: #e0e0e0;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Accordion */
.accordion-section {
    margin-bottom: 0.75rem;
}

.accordion-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
    border: none;
    color: #e0e0e0;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
}

.accordion-toggle:hover {
    background: #2a2a2a;
}

.acc-icon {
    font-size: 0.9rem;
    color: #888;
}

.accordion-content {
    display: none;
    padding: 0.75rem 0;
}

.competitor-card {
    background: #1a1a1a;
    padding: 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.comp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.comp-header strong {
    color: #fff;
    font-size: 0.85rem;
}

.comp-price {
    font-size: 0.75rem;
    color: #22c55e;
}

.comp-weaknesses {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.weakness-tag {
    font-size: 0.7rem;
    background: #fbbf2422;
    color: #fbbf24;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

/* Build Estimate Grid */
.build-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.build-item {
    background: #1a1a1a;
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
}

.build-label {
    display: block;
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.build-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.build-value.complexity-simple { color: #22c55e; }
.build-value.complexity-medium { color: #fbbf24; }
.build-value.complexity-complex { color: #ef4444; }

/* Monetization Pills */
.monetization-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.monetization-pill {
    background: #00d4ff22;
    color: #00d4ff;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pill-score {
    background: #00d4ff;
    color: #0f0f0f;
    padding: 0.1rem 0.3rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
}

/* Differentiation Box */
.differentiation-box {
    background: linear-gradient(135deg, #7c3aed11, #00d4ff11);
    border: 1px solid #7c3aed44;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.diff-label {
    display: block;
    font-size: 0.7rem;
    color: #a78bfa;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.diff-text {
    font-size: 0.85rem;
    color: #e0e0e0;
    font-style: italic;
    line-height: 1.5;
}

/* First Steps */
.first-steps-section {
    margin-bottom: 0.5rem;
}

.steps-label {
    display: block;
    font-size: 0.7rem;
    color: #22c55e;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.steps-list {
    padding-left: 1.25rem;
    font-size: 0.8rem;
    color: #e0e0e0;
}

.steps-list li {
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

/* Offer Section */
.offer-section {
    margin-bottom: 0.75rem;
    padding: 0.6rem;
    background: #0f0f0f;
    border-radius: 8px;
    border: 1px solid #7c3aed33;
}

.offer-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: #a78bfa;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.2rem 0;
}

.offer-toggle:hover {
    color: #c4b5fd;
}

.offer-content {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #2a2a2a;
}

.offer-header-block {
    margin-bottom: 1rem;
}

.offer-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.offer-tagline {
    font-size: 0.85rem;
    color: #a78bfa;
    font-style: italic;
}

/* Pricing Card */
.pricing-card {
    background: linear-gradient(135deg, #22c55e11, #22c55e22);
    border: 1px solid #22c55e44;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.anchor-price {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.price-label {
    font-size: 0.75rem;
    color: #888;
}

.price-strikethrough {
    font-size: 1rem;
    color: #666;
    text-decoration: line-through;
}

.actual-price {
    font-size: 2rem;
    font-weight: 700;
    color: #22c55e;
}

.discount-badge {
    background: #ef4444;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.payment-option {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.5rem;
}

/* Core Offer Card */
.core-offer-card {
    background: #1a1a1a;
    border-left: 3px solid #00d4ff;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.core-header {
    font-size: 0.7rem;
    color: #00d4ff;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.core-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.3rem;
}

.core-desc {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.core-value {
    font-size: 0.75rem;
    color: #22c55e;
    font-weight: 600;
}

/* Bonus Stack */
.bonus-stack {
    margin-bottom: 1rem;
}

.bonus-header {
    font-size: 0.7rem;
    color: #fbbf24;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.bonus-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #1a1a1a;
    border-radius: 6px;
    margin-bottom: 0.4rem;
}

.bonus-num {
    background: #fbbf24;
    color: #0f0f0f;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bonus-name {
    flex: 1;
    font-size: 0.85rem;
    color: #e0e0e0;
}

.bonus-value {
    font-size: 0.85rem;
    color: #22c55e;
    font-weight: 600;
}

/* Guarantee Card */
.guarantee-card {
    background: #fbbf2411;
    border: 1px solid #fbbf2433;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.guarantee-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #fbbf24;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.guarantee-icon {
    font-size: 1rem;
}

.guarantee-terms {
    font-size: 0.8rem;
    color: #e0e0e0;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.guarantee-duration {
    font-size: 0.7rem;
    color: #888;
}

/* Urgency Box */
.urgency-box {
    background: #ef444411;
    border: 1px solid #ef444433;
    border-radius: 8px;
    padding: 0.6rem;
    margin-bottom: 1rem;
}

.scarcity-text {
    font-size: 0.85rem;
    color: #ef4444;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.urgency-text {
    font-size: 0.8rem;
    color: #fbbf24;
}

/* ROI Box */
.roi-box {
    background: #22c55e22;
    color: #22c55e;
    padding: 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 0.75rem;
}

/* CTA Button */
.cta-button {
    text-align: center;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Offer Error */
.offer-section.offer-error {
    border-color: #ef444466;
    background: #1a0f0f;
}

.offer-error .error-message {
    color: #f87171;
    font-size: 0.8rem;
    margin: 0;
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.status-select {
    flex: 1;
    min-width: 90px;
    background: #0f0f0f;
    color: #e0e0e0;
    border: 1px solid #2a2a2a;
    padding: 0.45rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
}

.status-select:focus {
    outline: none;
    border-color: #7c3aed;
}

.status-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-analyze {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: white;
    border: none;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-analyze:hover {
    opacity: 0.9;
}

.btn-analyze:disabled {
    background: #2a2a2a;
    color: #666;
    cursor: not-allowed;
}

.btn-link {
    color: #00d4ff;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid #00d4ff33;
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-link:hover {
    background: #00d4ff22;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-state p {
    margin-bottom: 0.5rem;
}

/* Idea Validator Section */
.idea-validator-section {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.idea-validator-section h2 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.validator-subtitle {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.validator-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.validator-form textarea {
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 0.75rem;
    color: #e0e0e0;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 70px;
}

.validator-form textarea:focus {
    outline: none;
    border-color: #7c3aed;
}

.validator-form textarea::placeholder {
    color: #666;
}

.validator-options {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.validator-options select {
    flex: 1;
    max-width: 180px;
    background: #0f0f0f;
    color: #e0e0e0;
    border: 1px solid #2a2a2a;
    padding: 0.6rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.validation-loading {
    text-align: center;
    padding: 1.5rem;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #2a2a2a;
    border-top-color: #7c3aed;
    border-radius: 50%;
    margin: 0 auto 0.75rem;
    animation: spin 1s linear infinite;
}

.validation-loading p {
    color: #888;
    font-size: 0.85rem;
}

.validation-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #22c55e22;
    border: 1px solid #22c55e44;
    border-radius: 8px;
    margin-top: 1rem;
}

.success-icon {
    color: #22c55e;
    font-size: 1.25rem;
    font-weight: bold;
}

.success-text {
    color: #22c55e;
    font-weight: 500;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-content h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.modal-content p {
    color: #888;
    margin-bottom: 1.25rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    header h1 {
        font-size: 1.75rem;
    }

    .stats-bar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stat {
        padding: 0.4rem 0.75rem;
    }

    .controls {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .category-tabs {
        padding: 0.4rem;
    }

    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .opportunities-grid {
        grid-template-columns: 1fr;
    }

    .card-actions {
        flex-direction: column;
    }

    .status-select, .btn-analyze, .btn-link {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .validator-options {
        flex-direction: column;
    }

    .validator-options select,
    .validator-options button {
        width: 100%;
        max-width: none;
    }

    .build-grid {
        grid-template-columns: 1fr 1fr;
    }

    .score-bar-row {
        flex-direction: column;
        gap: 0.3rem;
    }

    .price-display {
        flex-direction: column;
        gap: 0.5rem;
    }

    .actual-price {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }

    .opportunity-card {
        padding: 1rem;
    }

    .build-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   BUILD ASSETS STYLES
   ======================================== */

/* Build Assets Button */
.btn-build-assets {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-build-assets:hover {
    opacity: 0.9;
}

.btn-build-assets:disabled {
    background: #166534;
    color: #86efac;
    cursor: not-allowed;
}

/* Assets Section */
.assets-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #2a2a2a;
}

.assets-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #0a2e1f;
    border: 1px solid #22c55e44;
    border-radius: 8px;
    color: #22c55e;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.assets-toggle:hover {
    background: #0d3f29;
}

.assets-badge {
    background: #22c55e;
    color: #0f0f0f;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.assets-content {
    margin-top: 1rem;
}

/* Asset Tabs */
.asset-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.asset-tab {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #888;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.asset-tab:hover {
    background: #2a2a2a;
    color: #e0e0e0;
}

.asset-tab.active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: white;
}

/* Asset Panels */
.asset-panel {
    display: none;
}

.asset-panel.active {
    display: block;
}

/* Asset Blocks */
.asset-block {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.asset-block h5 {
    color: #e0e0e0;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.asset-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.asset-block-header h5 {
    margin-bottom: 0;
}

/* Copy Button */
.copy-btn {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #888;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #3a3a3a;
    color: #e0e0e0;
}

.copy-btn.copied {
    background: #22c55e;
    border-color: #22c55e;
    color: #0f0f0f;
}

/* Ad Scripts */
.ad-scripts-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ad-script-item {
    background: #0f0f0f;
    padding: 0.6rem;
    border-radius: 6px;
    border-left: 3px solid #7c3aed;
}

.script-hook {
    color: #a78bfa;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.script-body {
    color: #888;
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
}

.script-cta {
    color: #00d4ff;
    font-size: 0.75rem;
}

.more-link {
    color: #7c3aed;
    font-size: 0.75rem;
    cursor: pointer;
    margin-top: 0.3rem;
}

/* Landing Page Preview */
.landing-preview {
    background: #0f0f0f;
    padding: 0.75rem;
    border-radius: 6px;
}

.lp-headline {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.lp-subheadline {
    color: #888;
    font-size: 0.85rem;
}

/* Headlines List */
.headlines-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.headline-item {
    background: #0f0f0f;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #e0e0e0;
}

/* Email Preview */
.email-preview {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.email-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.4rem;
    background: #0f0f0f;
    border-radius: 4px;
}

.email-num {
    background: #7c3aed;
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.email-subject {
    color: #e0e0e0;
    font-size: 0.8rem;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* UGC Concept */
.ugc-concept {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Platform Grid */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.platform-card {
    background: #0f0f0f;
    padding: 0.6rem;
    border-radius: 6px;
    border-left: 3px solid #666;
}

.platform-card.priority-high {
    border-left-color: #22c55e;
}

.platform-card.priority-medium {
    border-left-color: #fbbf24;
}

.platform-card.priority-low {
    border-left-color: #666;
}

.platform-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.platform-name {
    color: #e0e0e0;
    font-weight: 600;
    font-size: 0.85rem;
}

.priority-badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.platform-card.priority-high .priority-badge {
    background: #22c55e22;
    color: #22c55e;
}

.platform-card.priority-medium .priority-badge {
    background: #fbbf2422;
    color: #fbbf24;
}

.platform-card.priority-low .priority-badge {
    background: #66666622;
    color: #666;
}

.platform-detail {
    color: #888;
    font-size: 0.75rem;
}

/* Marketplace List */
.marketplace-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.marketplace-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #0f0f0f;
    border-radius: 4px;
}

.mp-name {
    color: #00d4ff;
    text-decoration: none;
    font-size: 0.85rem;
}

.mp-name:hover {
    text-decoration: underline;
}

.mp-budget {
    color: #888;
    font-size: 0.75rem;
}

/* Template List */
.template-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.template-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #0f0f0f;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.template-item:hover {
    background: #1a1a1a;
}

.template-item span:first-child {
    color: #e0e0e0;
    font-size: 0.85rem;
}

.template-item .arrow {
    color: #7c3aed;
}

/* Budget Tier Card */
.budget-tier-card {
    background: #0f0f0f;
    border: 1px solid #22c55e44;
    border-radius: 8px;
    padding: 0.75rem;
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.tier-name {
    color: #22c55e;
    font-weight: 700;
    font-size: 1rem;
}

.tier-budget {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.tier-desc {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

.tier-activities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.activity-tag {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
}

/* Break-even Grid */
.breakeven-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.breakeven-item {
    background: #0f0f0f;
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
}

.be-label {
    display: block;
    color: #888;
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
}

.be-value {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Advice List */
.advice-list {
    padding-left: 1.2rem;
    margin: 0;
}

.advice-list li {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

/* Supplier Card */
.supplier-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.supplier-card {
    background: #0f0f0f;
    padding: 0.6rem;
    border-radius: 6px;
}

.supplier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.supplier-platform {
    color: #00d4ff;
    font-weight: 600;
    font-size: 0.85rem;
}

.supplier-rating {
    color: #fbbf24;
    font-size: 0.75rem;
}

.supplier-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.3rem;
}

.supplier-cost {
    color: #22c55e;
    font-weight: 600;
    font-size: 0.85rem;
}

.supplier-ship {
    color: #888;
    font-size: 0.8rem;
}

.supplier-notes {
    color: #666;
    font-size: 0.75rem;
    font-style: italic;
}

.recommendation-box {
    background: #22c55e11;
    border: 1px solid #22c55e33;
    border-radius: 6px;
    padding: 0.6rem;
    margin-top: 0.75rem;
}

.recommendation-box strong {
    color: #22c55e;
}

.recommendation-box p {
    color: #888;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

/* Margin Grid */
.margin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.margin-item {
    background: #0f0f0f;
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
}

.margin-item.profit {
    border: 1px solid #22c55e44;
}

.m-label {
    display: block;
    color: #888;
    font-size: 0.65rem;
    margin-bottom: 0.2rem;
}

.m-value {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
}

.margin-item.profit .m-value {
    color: #22c55e;
}

/* PRD Preview */
.prd-preview {
    background: #0f0f0f;
    padding: 0.75rem;
    border-radius: 6px;
}

.prd-preview p {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.prd-preview p strong {
    color: #e0e0e0;
}

.features-list {
    margin-top: 0.5rem;
}

.features-list strong {
    color: #e0e0e0;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.3rem;
}

.feature-tag {
    display: inline-block;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-right: 0.3rem;
    margin-bottom: 0.3rem;
}

.feature-tag.pP0 {
    background: #ef444422;
    color: #f87171;
}

.feature-tag.pP1 {
    background: #fbbf2422;
    color: #fbbf24;
}

.feature-tag.pP2 {
    background: #22c55e22;
    color: #22c55e;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tech-item {
    background: #0f0f0f;
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
}

.tech-label {
    display: block;
    color: #888;
    font-size: 0.65rem;
    margin-bottom: 0.2rem;
}

.tech-value {
    color: #00d4ff;
    font-size: 0.8rem;
    font-weight: 500;
}

.dev-time {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.dev-time span {
    color: #888;
    font-size: 0.75rem;
}

/* App Store Preview */
.app-store-preview {
    background: #0f0f0f;
    padding: 0.6rem;
    border-radius: 6px;
}

.app-title {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.app-subtitle {
    color: #888;
    font-size: 0.85rem;
}

/* Export Row */
.asset-export-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #2a2a2a;
}

.export-btn {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #e0e0e0;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.export-btn:hover {
    background: #3a3a3a;
    border-color: #4a4a4a;
}

/* Responsive for Assets */
@media (max-width: 768px) {
    .platform-grid {
        grid-template-columns: 1fr;
    }

    .breakeven-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .margin-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .asset-tabs {
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .asset-export-row {
        flex-direction: column;
    }

    .export-btn {
        width: 100%;
        text-align: center;
    }
}
