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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
    color: #1a1a2e;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px 24px;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.logo img {
    border-radius: 8px;
}

.header-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 500;
}

/* Hero Section */
.hero {
    background: white;
    padding: 40px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px 280px;
    gap: 32px;
    align-items: center;
}

.hero-text h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    line-height: 1.3;
}

.hero-text p {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 400px;
    margin-top: 20px;
}

.hero-stat-item {
    text-align: left;
}

.hero-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 12px;
    color: #999;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
}

.section-subtitle {
    font-size: 14px;
    color: #999;
}

.section-actions {
    margin-left: auto;
    display: flex;
    gap: 12px;
}

.reset-btn, .share-btn, .export-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.reset-btn:hover, .share-btn:hover, .export-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* Inputs Section */
.inputs-section {
    max-width: 1400px;
    margin: 32px auto;
    padding: 0 24px;
}

.inputs-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

@media (min-width: 768px) {
    .inputs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .inputs-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.input-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.card-icon {
    font-size: 20px;
}

.card-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.card-subtitle {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 8px;
}

.hours-display {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
}

.input-with-symbol {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.input-with-symbol span {
    padding: 10px 12px;
    background: #f5f5f5;
    color: #666;
    font-weight: 500;
    flex-shrink: 0;
}

.input-with-symbol input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    min-width: 0;
    width: 100%;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

#hoursValue {
    font-weight: 600;
    color: #667eea;
}

.reference-text {
    font-size: 12px;
    color: #999;
}

.cost-breakdown p {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.disclaimer {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
}

/* Platform Checkboxes */
.platform-options {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
}

.platform-item {
    position: relative;
    width: 100%;
}

.platform-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 10px 8px 0;
    border-radius: 8px;
    transition: background 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.platform-checkbox:hover {
    background: #f9f9f9;
}

.platform-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
    z-index: 1;
}

.platform-item input[type="checkbox"]:checked ~ .platform-checkbox .checkmark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.platform-item input[type="checkbox"]:checked ~ .platform-checkbox .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
}

.platform-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.platform-link {
    color: #667eea;
    text-decoration: none;
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.platform-link:hover {
    opacity: 1;
}

.platform-fee {
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
}

select {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: white;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    box-sizing: border-box;
}

/* Level Options */
.level-options {
    display: flex;
    gap: 8px;
    width: 100%;
}

.level-radio {
    flex: 1;
    min-width: 0;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.3;
    box-sizing: border-box;
}

.level-radio small {
    font-size: 9px;
    color: #999;
    font-weight: 400;
}

.level-radio:hover {
    border-color: #667eea;
}

.level-radio input[type="radio"] {
    display: none;
}

.level-radio.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.tax-range {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* Results Section */
.results-section {
    max-width: 1400px;
    margin: 32px auto;
    padding: 0 24px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.result-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card-title {
    font-size: 13px;
    font-weight: 500;
    color: #999;
    margin-bottom: 16px;
}

.rate-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.rate-card .card-title {
    color: rgba(255, 255, 255, 0.8);
}

.rate-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 16px;
}

.rate-symbol {
    font-size: 24px;
    font-weight: 600;
    color: white;
}

.rate-value {
    font-size: 56px;
    font-weight: 700;
    color: white;
}

.rate-unit {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.rate-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.quote-card {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.quote-card .card-title {
    color: rgba(255, 255, 255, 0.8);
}

.quote-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}

.quote-value {
    font-size: 32px;
    font-weight: 700;
    color: white;
}

.quote-separator {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
}

.quote-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.feedback-card {
    background: #fffef5;
    border: 1px solid #fff3cd;
}

.feedback-icon {
    margin-right: 8px;
}

.feedback-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 16px;
}

.feedback-icon-lg {
    font-size: 48px;
    text-align: center;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
}

.chart-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.chart-header {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.chart-icon {
    margin-right: 8px;
}

.chart-container {
    height: 200px;
}

/* Table Card */
.table-card {
    grid-column: span 1;
}

.table-container {
    overflow-x: auto;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.table-container th,
.table-container td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.table-container th {
    font-weight: 600;
    color: #666;
    background: #f9f9f9;
}

.table-container td:first-child {
    font-weight: 500;
    color: #333;
}

.table-note {
    font-size: 11px;
    color: #999;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

/* Benchmarks Section */
.benchmarks-section {
    max-width: 1400px;
    margin: 32px auto;
    padding: 0 24px;
}

.benchmarks-table-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow-x: auto;
}

.benchmarks-table {
    width: 100%;
    border-collapse: collapse;
}

.benchmarks-table th,
.benchmarks-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.benchmarks-table th {
    font-weight: 600;
    color: #666;
    background: #f9f9f9;
}

.benchmarks-table tr:last-child td {
    border-bottom: none;
}

.benchmarks-table tr:last-child {
    background: #f9f9f9;
}

.market-insight {
    background: linear-gradient(135deg, #fff3e0 0%, #fff8e1 100%);
    border: 1px solid #ffe0b2;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.insight-header {
    font-size: 14px;
    font-weight: 600;
    color: #e65100;
    margin-bottom: 8px;
}

.insight-icon {
    margin-right: 8px;
}

.market-insight p {
    font-size: 14px;
    color: #5d4037;
    line-height: 1.6;
}

.benchmarks-source {
    font-size: 11px;
    color: #999;
    margin-top: 16px;
    text-align: center;
}

/* Tips Section */
.tips-section {
    max-width: 1400px;
    margin: 32px auto;
    padding: 0 24px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tip-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tip-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.tip-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.tip-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.ad-slot-bottom {
    background: #fff3e0;
    border: 2px dashed #ff9800;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    background: #1a1a2e;
    padding: 32px 24px;
    margin-top: 40px;
}

.footer p {
    color: #888;
    font-size: 12px;
    text-align: center;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
    color: #666;
}

/* Responsive */
@media (max-width: 1200px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tips-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    .results-grid {
        grid-template-columns: 1fr;
    }
    .charts-grid {
        grid-template-columns: 1fr;
    }
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }
}
