:root {
    --bg: #0a0a0a;
    --bg-elevated: #111111;
    --bg-card: #141414;
    
    --primary: #00ff88;
    --primary-dim: rgba(0, 255, 136, 0.1);
    --secondary: #ff3d71;
    --secondary-dim: rgba(255, 61, 113, 0.1);
    
    --text: #ffffff;
    --text-secondary: #e0e0e0;
    --text-tertiary: #b8b8b8;
    
    --border: #1a1a1a;
    --border-bright: #222222;
    
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-transform: lowercase;
}

.btn-retake {
    background: transparent;
    border: 1px solid var(--border-bright);
    color: var(--text-tertiary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-retake:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-dim);
}

/* ===== RESULTS CONTAINER ===== */
.results-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* ===== HERO SECTION ===== */
.results-hero {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeIn 0.6s ease-out;
}

.celebration-badge {
    display: inline-block;
    background: var(--primary-dim);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: slideDown 0.6s ease-out 0.2s backwards;
}

.results-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.1;
    animation: slideDown 0.6s ease-out 0.3s backwards;
}

.results-subtitle {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    max-width: 600px;
    margin: 0 auto;
    animation: slideDown 0.6s ease-out 0.4s backwards;
}

/* ===== MATCHES SECTION ===== */
.matches-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

/* ===== MATCH CARD ===== */
.match-card {
    background: var(--bg-card);
    border: 2px solid var(--border-bright);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s;
    animation: slideUp 0.6s ease-out backwards;
}

.match-card.rank-1 {
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.05);
    animation-delay: 0.5s;
}

.match-card.rank-2 {
    animation-delay: 0.6s;
}

.match-card.rank-3 {
    animation-delay: 0.7s;
}

.match-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===== MATCH HEADER ===== */
.match-header {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 255, 136, 0.02));
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.match-rank {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rank-badge {
    background: var(--primary-dim);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 700;
}

.rank-1 .rank-badge {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

.rank-icon {
    font-size: 2rem;
    line-height: 1;
}

/* ===== PERCENTAGE CIRCLE ===== */
.match-percentage {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.percentage-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.percentage-circle.small {
    width: 100px;
    height: 100px;
}

.percentage-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-background {
    fill: none;
    stroke: var(--border-bright);
    stroke-width: 8;
}

.ring-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    transition: stroke-dashoffset 1s ease-out 0.5s;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.5));
}

.rank-1 .ring-progress {
    stroke: var(--gold);
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.percentage-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
}

.rank-1 .percentage-text {
    color: var(--gold);
}

.percentage-circle.small .percentage-text {
    font-size: 1.75rem;
}

.percentage-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* ===== MATCH CONTENT ===== */
.match-content {
    padding: 2rem;
}

.trade-info {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.trade-icon {
    font-size: 4rem;
    line-height: 1;
    flex-shrink: 0;
}

.trade-details {
    flex: 1;
}

.trade-name {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.trade-tagline {
    font-size: 1rem;
    color: var(--text-tertiary);
}

/* ===== WHY SECTION ===== */
.why-section {
    background: rgba(0, 255, 136, 0.03);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.why-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.why-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.why-list li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.why-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ===== QUICK STATS ===== */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
}

.stat-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* ===== MATCH ACTIONS ===== */
.match-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    border: none;
    flex: 1;
}

.btn-primary:hover {
    background: #00dd77;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-bright);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-dim);
}

/* ===== COMPARE SECTION ===== */
.compare-section {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    margin-bottom: 3rem;
}

.compare-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.compare-subtitle {
    font-size: 1rem;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
}

.btn-compare {
    background: var(--bg);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-compare:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

/* ===== SHARE SECTION ===== */
.share-section {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 184, 255, 0.05));
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin-bottom: 4rem;
}

.share-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.share-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.share-subtitle {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.btn-share {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    color: var(--text-secondary);
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-share:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ===== EMAIL CAPTURE ===== */
.email-form {
    display: flex;
    gap: 0.75rem;
    max-width: 480px;
    margin: 0 auto 1rem;
}

.email-form input[type="email"] {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background: var(--bg);
    border: 2px solid var(--border-bright);
    border-radius: 0.75rem;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.email-form input[type="email"]::placeholder {
    color: var(--text-tertiary);
}

.email-form input[type="email"]:focus {
    border-color: var(--primary);
}

.email-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 480px;
    margin: 1.25rem auto;
}

.email-divider::before,
.email-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-bright);
}

.email-divider span {
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

/* ===== NEXT STEPS SECTION ===== */
.next-steps-section {
    margin-bottom: 4rem;
}

.next-steps-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
}

.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.next-step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s;
}

.next-step-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary-dim);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 auto 1.5rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.step-desc {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
}

.btn-step {
    background: transparent;
    border: 1px solid var(--border-bright);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-step:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-dim);
}

/* ===== WHAT'S NEXT SECTION ===== */
.whats-next-section {
    margin-bottom: 3rem;
}

.whats-next-title {
    font-size: 1.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
}

.next-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.next-step {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.next-step:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.next-step-number {
    width: 36px;
    height: 36px;
    background: var(--primary-dim);
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.next-step-content {
    flex: 1;
}

.next-step-content h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.next-step-content p {
    font-size: 0.9375rem;
    margin-top: 0.75rem;
    color: var(--text-tertiary);
}

.next-step-arrow {
    color: var(--text-tertiary);
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}

.next-step:hover .next-step-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* ===== EARNINGS SNAPSHOT ===== */
.earnings-snapshot {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    text-align: center;
}

.earnings-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.earnings-card {
    flex: 1;
    min-width: 240px;
    max-width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.earnings-trade {
    border-color: rgba(0, 255, 136, 0.3);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), var(--bg-card));
}

.earnings-college {
    border-color: rgba(255, 0, 128, 0.2);
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.03), var(--bg-card));
}

.earnings-card-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.earnings-big {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
}

.earnings-trade .earnings-big {
    color: var(--primary);
}

.earnings-college .earnings-big {
    color: var(--text-secondary);
}

.earnings-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.earnings-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

.earnings-vs {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-tertiary);
    padding: 0 0.5rem;
}

.earnings-advantage {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.03));
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.advantage-amount {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
    }

    .results-container {
        padding: 2rem 1.5rem;
    }

    .results-hero {
        margin-bottom: 3rem;
    }

    .results-title {
        font-size: 2rem;
    }

    .results-subtitle {
        font-size: 1rem;
    }

    .matches-section {
        gap: 1.5rem;
    }

    .match-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .match-percentage {
        width: 100%;
        justify-content: space-between;
    }

    .trade-icon {
        font-size: 3rem;
    }

    .trade-name {
        font-size: 1.75rem;
    }

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

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

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .share-content {
        flex-direction: column;
        text-align: center;
    }

    .share-buttons {
        width: 100%;
        flex-direction: column;
    }

    .btn-share {
        width: 100%;
        justify-content: center;
    }

    .next-steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .next-step {
        padding: 1rem;
    }

    .next-step-content h4 {
        font-size: 1rem;
    }

}

/* ===== SMALL PHONES ===== */
@media (max-width: 480px) {
    .results-container {
        padding: 1.5rem 1rem;
    }

    .results-title {
        font-size: 1.5rem;
    }

    .results-subtitle {
        font-size: 0.875rem;
    }

    .percentage-circle {
        width: 80px;
        height: 80px;
    }

    .percentage-circle.small {
        width: 64px;
        height: 64px;
    }

    .trade-name {
        font-size: 1.35rem;
    }

    .trade-icon {
        font-size: 2.25rem;
    }

    .quick-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .stat-value {
        font-size: 0.95rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .next-steps-grid {
        gap: 0.75rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

    body {
        background: #fff !important;
        color: #111 !important;
    }

    .nav, .share-section, .whats-next-section, .footer, .breadcrumb,
    .email-form, .btn-share, .btn-primary, .btn-secondary,
    .hardhat-progress-bar, .hardhat-search-overlay, .hardhat-recently-viewed {
        display: none !important;
    }

    .results-container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .results-hero {
        background: #fff !important;
        border: none !important;
        padding: 1rem 0 !important;
    }

    .results-hero h1 {
        color: #111 !important;
        background: none !important;
        -webkit-text-fill-color: #111 !important;
        font-size: 1.5rem !important;
    }

    .results-hero .subtitle {
        color: #666 !important;
    }

    .match-card {
        background: #fff !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
        box-shadow: none !important;
    }

    .match-card .match-header h2 {
        color: #111 !important;
    }

    .match-percentage {
        color: #00aa55 !important;
    }

    .stat-value, .match-tag {
        color: #111 !important;
    }

    .stat-label, .match-tag-label {
        color: #666 !important;
    }

    .compare-section, .earnings-snapshot {
        background: #fff !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }

    .compare-title, .compare-subtitle {
        color: #111 !important;
    }

    a { color: #111 !important; text-decoration: underline !important; }
}
