/* Write It Great - Complete Styles */
/* Brand: Deep Purple + Mint Green (from writeitgreat.com) */
:root {
    --primary: #2D1B69;
    --primary-light: #3d2b7a;
    --primary-dark: #1e1050;
    --accent: #B8F2B8;
    --accent-dark: #8ad98a;
    --accent-text: #1a3a1a;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
}

/* Header - white bg like writeitgreat.com */
header {
    background: white;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-bottom: 1px solid var(--gray-200);
}

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

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

.logo-section img { height: 40px; width: auto; filter: brightness(0) saturate(100%) invert(12%) sepia(50%) saturate(3000%) hue-rotate(250deg) brightness(70%); }
.logo-text { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); }
.logo-tagline { font-size: 0.8rem; color: var(--gray-500); }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links .btn-accent {
    background: var(--accent);
    color: var(--accent-text);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
}
.nav-links .btn-accent:hover { background: var(--accent-dark); }

/* Main */
main { padding-top: 80px; min-height: 100vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; }

.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

h1, h2, h3 { color: var(--gray-900); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); }
.btn-gold, .btn-accent { background: var(--accent); color: var(--accent-text); font-weight: 700; }
.btn-gold:hover, .btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 4px solid var(--accent);
}
.hero h1 { color: white; font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.125rem; opacity: 0.9; max-width: 600px; margin: 0 auto; color: var(--accent); }

/* Forms */
.form-container { max-width: 700px; margin: -2rem auto 2rem; position: relative; z-index: 10; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--primary); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.form-hint { font-size: 0.875rem; color: var(--gray-500); margin-top: 0.5rem; }

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--accent-dark); background: #f0fdf4; }
.upload-zone svg { width: 48px; height: 48px; color: var(--gray-400); margin-bottom: 1rem; }
.upload-zone p { color: var(--gray-600); }
.upload-zone .browse-link { color: var(--accent-dark); font-weight: 600; }
.selected-file { display: flex; align-items: center; gap: 0.5rem; padding: 1rem; background: #f0fdf4; border-radius: var(--radius); border: 1px solid var(--accent); }
.selected-file svg { color: var(--accent-dark); }
.hidden { display: none !important; }
.submit-section { text-align: center; padding-top: 1rem; }
.submit-btn { width: 100%; max-width: 300px; padding: 1rem 2rem; font-size: 1.125rem; }

/* Checkbox */
.checkbox-group { display: flex; align-items: flex-start; gap: 0.75rem; }
.checkbox-group input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.checkbox-label { font-size: 0.9375rem; color: var(--gray-700); line-height: 1.5; }
.checkbox-label a { color: var(--primary); font-weight: 600; }

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; padding: 2rem;
}
.modal-content {
    background: white; border-radius: var(--radius);
    max-width: 600px; max-height: 80vh; overflow-y: auto;
    padding: 2rem; position: relative;
}
.modal-content h2 { margin-bottom: 1rem; }
.modal-content p { margin-bottom: 1rem; color: var(--gray-700); font-size: 0.9375rem; line-height: 1.6; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-500); }

/* What We Evaluate */
.what-we-evaluate { background: var(--primary-dark); padding: 3rem 2rem; color: white; }
.what-we-evaluate h2 { color: var(--accent); }
.eval-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: 1000px; margin: 2rem auto 0; }
.eval-card { background: white; padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; border-top: 3px solid var(--accent); }
.eval-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.eval-card h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--primary); }
.eval-card p { font-size: 0.875rem; color: var(--gray-600); }

/* Loading */
.loading-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(45, 27, 105, 0.95);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 1000; color: white;
}
.spinner {
    width: 60px; height: 60px;
    border: 4px solid rgba(184, 242, 184, 0.3); border-top-color: var(--accent);
    border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 1.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 1.25rem; font-weight: 500; }
.loading-subtext { font-size: 0.875rem; opacity: 0.8; margin-top: 0.5rem; }

/* Messages */
.error-message, .flash.error { background: #fee2e2; color: #991b1b; padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid #fca5a5; }
.flash.success { background: #dcfce7; color: #166534; padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid #86efac; }

/* Badges */
.tier-badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 20px; font-weight: 700; font-size: 0.875rem; }
.tier-a { background: #dcfce7; color: #166534; }
.tier-b { background: #dbeafe; color: #1e40af; }
.tier-c { background: #fef3c7; color: #92400e; }
.tier-d { background: #fee2e2; color: #991b1b; }

.status-badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 4px; font-weight: 500; font-size: 0.75rem; text-transform: uppercase; }
.status-badge.submitted { background: var(--gray-200); color: var(--gray-700); }
.status-badge.read { background: #e0f2fe; color: #0369a1; }
.status-badge.author_call_scheduled, .status-badge.author_call_completed { background: #fef3c7; color: #92400e; }
.status-badge.contract_sent, .status-badge.contract_signed { background: #f3e8ff; color: #7c3aed; }
.status-badge.shopping { background: #dbeafe; color: #1d4ed8; }
.status-badge.publisher_interest { background: #fae8ff; color: #a21caf; }
.status-badge.offer_received, .status-badge.deal_closed { background: #dcfce7; color: #166534; }
.status-badge.declined { background: #fee2e2; color: #b91c1c; }
.status-badge.on_hold { background: var(--gray-200); color: var(--gray-600); }

/* Publisher-specific statuses */
.status-badge.publisher-status-new { background: var(--gray-200); color: var(--gray-600); }
.status-badge.publisher-status-proposal_read { background: #e0f2fe; color: #0369a1; }
.status-badge.publisher-status-interested { background: #fae8ff; color: #a21caf; }
.status-badge.publisher-status-ready_to_discuss { background: #fef3c7; color: #92400e; }
.status-badge.publisher-status-deal_sent { background: #f3e8ff; color: #7c3aed; }
.status-badge.publisher-status-deal_signed { background: #dcfce7; color: #166534; }

/* Results Page */
.results-header { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: white; padding: 3rem 2rem; text-align: center; border-bottom: 4px solid var(--accent); }
.results-header h1 { color: white; font-size: 2rem; margin-bottom: 0.5rem; }
.results-header p { opacity: 0.9; }
.results-container { max-width: 900px; margin: -2rem auto 2rem; position: relative; z-index: 10; }

.score-card { display: flex; align-items: center; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.score-main { text-align: center; }
.tier-display { font-size: 4rem; font-weight: 800; }
.tier-a .tier-display { color: #16a34a; }
.tier-b .tier-display { color: #2563eb; }
.tier-c .tier-display { color: #d97706; }
.tier-d .tier-display { color: #dc2626; }
.score-number { font-size: 1.5rem; font-weight: 600; color: var(--gray-600); }

.summary-box { flex: 1; min-width: 300px; background: var(--gray-50); padding: 1.5rem; border-radius: var(--radius); border-left: 4px solid var(--primary); }
.summary-box p { font-size: 1.125rem; color: var(--gray-700); margin: 0; }

.section-title { font-size: 1.25rem; margin: 2rem 0 1rem; color: var(--primary); display: flex; align-items: center; gap: 0.5rem; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.category-card { background: var(--gray-50); padding: 1.25rem; border-radius: var(--radius); }
.category-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.category-name { font-weight: 600; color: var(--gray-800); }
.category-score { font-weight: 700; font-size: 1.25rem; }
.score-high { color: #16a34a; }
.score-mid { color: #d97706; }
.score-low { color: #dc2626; }
.category-feedback { font-size: 0.875rem; color: var(--gray-600); line-height: 1.5; }

.list-section { background: var(--gray-50); padding: 1.5rem; border-radius: var(--radius); margin-bottom: 1rem; }
.strengths-box { border-left: 4px solid #22c55e; }
.flags-box { border-left: 4px solid #f59e0b; }
.steps-box { border-left: 4px solid var(--primary); }
.list-section ul, .list-section ol { margin: 0; padding-left: 1.25rem; }
.list-section li { margin-bottom: 0.5rem; color: var(--gray-700); }

.advance-estimate { background: linear-gradient(135deg, rgba(184,242,184,0.3) 0%, white 100%); padding: 1.5rem; border-radius: var(--radius); text-align: center; border: 2px solid var(--accent); margin-bottom: 1.5rem; }
.advance-range { font-size: 1.75rem; font-weight: 700; color: var(--primary); margin: 0.5rem 0; }
.advance-note { font-size: 0.875rem; color: var(--gray-600); }

.download-section { text-align: center; padding: 2rem; background: var(--primary-dark); border-radius: var(--radius); margin-top: 2rem; color: white; }
.download-section h3 { color: var(--accent); }
.download-section p { color: rgba(255,255,255,0.8); }

.email-notice { background: #dcfce7; color: #166534; padding: 1rem; border-radius: var(--radius); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }

/* Admin Login */
.login-container { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 100px 20px 50px; }
.login-card { background: white; padding: 3rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 400px; }
.login-card h1 { text-align: center; margin-bottom: 2rem; font-size: 1.5rem; }
.login-btn { width: 100%; padding: 1rem; font-size: 1.125rem; }
.login-error { background: #fee2e2; color: #991b1b; padding: 1rem; border-radius: var(--radius); margin-bottom: 1.5rem; text-align: center; border: 1px solid #fca5a5; }

/* Admin Dashboard */
.dashboard-header { background: var(--primary); color: white; padding: 2rem; border-bottom: 4px solid var(--accent); }
.dashboard-header h1 { color: white; margin-bottom: 0.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.stat-card { background: rgba(255,255,255,0.1); padding: 1rem; border-radius: var(--radius); text-align: center; text-decoration: none; color: inherit; transition: background 0.2s, transform 0.2s; cursor: pointer; display: block; }
.stat-card:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.75rem; opacity: 0.8; text-transform: uppercase; color: white; }

.filters-bar { background: white; padding: 1rem 2rem; display: flex; gap: 1rem; align-items: center; justify-content: center; border-bottom: 1px solid var(--gray-200); }
.filter-group { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.filter-group label { font-size: 0.875rem; color: var(--gray-600); font-weight: 500; white-space: nowrap; }
.filter-group select, .filter-group input { padding: 0.5rem 0.75rem; border: 1px solid var(--gray-300); border-radius: var(--radius); font-size: 0.875rem; }
.filter-group input[type="text"] { width: 200px; }
.filter-group select { min-width: 100px; }
@media (max-width: 768px) { .filters-bar { flex-wrap: wrap; } .filter-group input[type="text"] { width: 100%; } }

.proposals-table { width: 100%; border-collapse: collapse; }
.proposals-table th { text-align: left; padding: 1rem; background: var(--gray-50); font-size: 0.75rem; text-transform: uppercase; color: var(--gray-500); border-bottom: 2px solid var(--gray-200); }
.proposals-table td { padding: 1rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.proposals-table tr:hover { background: var(--gray-50); }
.author-cell { min-width: 180px; }
.author-name { font-weight: 600; color: var(--gray-800); }
.author-email { font-size: 0.75rem; color: var(--gray-500); }
.title-cell { max-width: 250px; }
.book-title { color: var(--gray-800); font-weight: 500; }
.view-link { color: var(--primary); text-decoration: none; font-weight: 600; white-space: nowrap; }
.view-link:hover { text-decoration: underline; }

.type-badge { font-size: 0.6875rem; font-weight: 600; padding: 0.2rem 0.5rem; border-radius: 4px; white-space: nowrap; }
.type-badge.type-full { background: #dbeafe; color: #1e40af; }
.type-badge.type-marketing_only { background: #fef3c7; color: #92400e; }
.type-badge.type-no_marketing { background: #f3e8ff; color: #6b21a8; }

.pagination { display: flex; justify-content: center; gap: 0.5rem; padding: 2rem; }
.pagination a { padding: 0.5rem 1rem; border: 1px solid var(--gray-300); border-radius: var(--radius); text-decoration: none; color: var(--gray-600); }
.pagination a:hover { background: var(--gray-100); }
.pagination a.active { background: var(--primary); color: white; border-color: var(--primary); }

.empty-state { text-align: center; padding: 4rem 2rem; color: var(--gray-500); }
.empty-state h3 { color: var(--gray-600); margin-bottom: 0.5rem; }
.submitted-date { font-size: 0.75rem; color: var(--gray-500); }

/* Admin Proposal Detail */
.proposal-header { background: var(--primary); color: white; padding: 2rem; border-bottom: 4px solid var(--accent); }
.proposal-header h1 { color: white; }
.proposal-meta { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 1rem; }
.proposal-meta span { opacity: 0.9; }

.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }

.detail-section { background: white; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.detail-section h3 { margin-bottom: 1rem; font-size: 1.125rem; }

/* Footer */
footer { background: var(--primary-dark); padding: 2rem; text-align: center; color: rgba(255,255,255,0.7); font-size: 0.875rem; }
footer a { color: var(--accent); }
.footer-links { margin-top: 1rem; display: flex; justify-content: center; gap: 2rem; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.8125rem; }
.footer-links a:hover { color: var(--accent); }

/* Team Management Action Buttons */
.btn-action { padding: 0.25rem 0.5rem; border: 1px solid var(--gray-300); border-radius: 4px; font-size: 0.6875rem; font-weight: 600; cursor: pointer; text-transform: uppercase; letter-spacing: 0.3px; background: white; transition: all 0.15s; }
.btn-action:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-action-warn { color: #92400e; border-color: #fbbf24; }
.btn-action-warn:hover { background: #fef3c7; }
.btn-action-success { color: #166534; border-color: #86efac; }
.btn-action-success:hover { background: #dcfce7; }
.btn-action-info { color: #1e40af; border-color: #93c5fd; }
.btn-action-info:hover { background: #dbeafe; }
.btn-action-danger { color: #991b1b; border-color: #fca5a5; }
.btn-action-danger:hover { background: #fee2e2; }

/* Dashboard Quick Actions */
.quick-actions { display: flex; gap: 0.375rem; align-items: center; white-space: nowrap; }
.quick-actions a, .quick-actions button { font-size: 0.6875rem; padding: 0.25rem 0.5rem; border-radius: 4px; text-decoration: none; font-weight: 600; cursor: pointer; border: 1px solid; transition: all 0.15s; background: white; }
.quick-actions .qa-edit { color: var(--primary); border-color: var(--primary); }
.quick-actions .qa-edit:hover { background: var(--primary); color: white; }
.quick-actions .qa-delete { color: #991b1b; border-color: #fca5a5; }
.quick-actions .qa-delete:hover { background: #fee2e2; }

/* Bulk Actions Bar */
.bulk-bar { background: var(--primary); color: white; padding: 0.75rem 2rem; display: none; align-items: center; gap: 1rem; justify-content: center; position: sticky; top: 60px; z-index: 50; }
.bulk-bar.active { display: flex; }
.bulk-bar select, .bulk-bar button { padding: 0.4rem 0.75rem; border-radius: var(--radius); font-size: 0.8125rem; font-weight: 600; }
.bulk-bar select { border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.15); color: white; }
.bulk-bar select option { color: var(--gray-800); background: white; }
.bulk-bar button { border: none; cursor: pointer; }
.bulk-bar .bulk-apply { background: var(--accent); color: var(--accent-text); }
.bulk-bar .bulk-apply:hover { background: var(--accent-dark); }
.bulk-bar .bulk-delete { background: #dc2626; color: white; }
.bulk-bar .bulk-delete:hover { background: #b91c1c; }
.bulk-bar .bulk-count { font-weight: 600; font-size: 0.875rem; }
.bulk-bar .bulk-cancel { background: transparent; color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.3); }
.bulk-bar .bulk-cancel:hover { color: white; border-color: white; }

/* Dashboard top bar */
.dashboard-actions { display: flex; gap: 0.75rem; margin-top: 1rem; }
.proposals-table .row-checkbox { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); }

/* View Toggle (Active / Archive) */
.view-toggle { display: flex; justify-content: center; background: white; border-bottom: 1px solid var(--gray-200); padding: 0; }
.view-toggle-btn { padding: 0.75rem 1.5rem; text-decoration: none; color: var(--gray-500); font-weight: 600; font-size: 0.875rem; border-bottom: 3px solid transparent; transition: all 0.2s; }
.view-toggle-btn:hover { color: var(--primary); background: var(--gray-50); }
.view-toggle-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Archive quick action buttons */
.quick-actions .qa-archive { color: #92400e; border-color: #fbbf24; }
.quick-actions .qa-archive:hover { background: #fef3c7; }
.quick-actions .qa-restore { color: #166534; border-color: #86efac; }
.quick-actions .qa-restore:hover { background: #dcfce7; }

/* Archived proposal banner */
.archived-banner { background: #fef3c7; color: #92400e; padding: 0.75rem 2rem; text-align: center; font-weight: 600; font-size: 0.875rem; border-bottom: 1px solid #fbbf24; }
.archived-banner-btn { background: none; border: 1px solid #92400e; color: #92400e; padding: 0.25rem 0.75rem; border-radius: var(--radius); font-weight: 600; font-size: 0.8125rem; cursor: pointer; margin-left: 0.5rem; transition: all 0.15s; }
.archived-banner-btn:hover { background: #92400e; color: white; }

/* Error Page */
.error-container { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 100px 20px 50px; text-align: center; }
.error-code { font-size: 6rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 1rem; }

/* Platform Section (Marketing Part A) */
.platform-section {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-200);
}
.platform-section h3 { color: var(--primary); margin-bottom: 0.375rem; font-size: 1.0625rem; }
.section-hint { font-size: 0.875rem; color: var(--gray-500); margin-bottom: 1.25rem; }
.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.platform-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    color: var(--primary);
}
.platform-field input[type="number"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: white;
}
.platform-field input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.75rem; }
    .score-card { flex-direction: column; text-align: center; }
    .tier-display { font-size: 3rem; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .platform-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 960px) {
    .platform-grid { grid-template-columns: repeat(2, 1fr); }
}
