/* Pass Comparison Tool */

.pc-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Card */
.pc-card {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.pc-card-title {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.pc-card-title i {
    margin-right: 6px;
}

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

/* Field */
.pc-field { margin-bottom: 4px; }

.pc-label {
    display: block;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Slider */
.pc-slider-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pc-rr-prefix {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    white-space: nowrap;
}

.pc-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.pc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.pc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.pc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
}

.pc-slider-val {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    min-width: 42px;
    text-align: right;
}

/* Presets */
.pc-presets {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.pc-preset {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pc-preset:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

/* Select */
.pc-select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.pc-select:focus {
    border-color: #818cf8;
    outline: none;
}

.pc-select option {
    background: #1e1b4b;
    color: #fff;
}

/* Run button */
.pc-run-btn {
    display: block;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 24px;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.pc-run-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.35);
}

.pc-run-btn i {
    margin-right: 8px;
}

/* Loading */
.pc-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
}

.pc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #818cf8;
    border-radius: 50%;
    animation: pcSpin 0.8s linear infinite;
}

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

.pc-loading-text {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-top: 12px;
}

/* Summary Cards */
.pc-summary { display: none; margin-bottom: 24px; }

.pc-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.pc-summary-card {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: transform 0.2s ease;
}

.pc-summary-card:hover {
    transform: translateY(-2px);
}

.pc-summary-best {
    border: 1px solid rgba(74,222,128,0.3);
}

.pc-summary-icon {
    font-size: 20px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 8px;
}

.pc-summary-best .pc-summary-icon { color: #4ade80; }

.pc-summary-value {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.pc-summary-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pc-summary-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    margin-top: 2px;
}

/* Section Title */
.pc-section-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Spotlight Top 3 */
.pc-spotlight { display: none; margin-bottom: 28px; }

.pc-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.pc-spot-card {
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.pc-spot-card:hover {
    transform: translateY(-3px);
}

.pc-spot-card.pc-gold { border: 1px solid rgba(251,191,36,0.4); }
.pc-spot-card.pc-silver { border: 1px solid rgba(148,163,184,0.3); }
.pc-spot-card.pc-bronze { border: 1px solid rgba(180,83,9,0.3); }

.pc-spot-medal {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pc-gold .pc-spot-medal { color: #fbbf24; }
.pc-silver .pc-spot-medal { color: #94a3b8; }
.pc-bronze .pc-spot-medal { color: #d97706; }

.pc-spot-firm {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pc-spot-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255,255,255,0.1);
    padding: 2px;
}

.pc-spot-name {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}

.pc-spot-rate {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.pc-spot-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.pc-spot-meta span {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    background: rgba(255,255,255,0.06);
    padding: 2px 8px;
    border-radius: 4px;
}

.pc-spot-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.pc-spot-sim {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pc-spot-sim:hover {
    background: rgba(255,255,255,0.14);
}

.pc-spot-get {
    flex: 1;
    padding: 8px 12px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pc-spot-get:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34,197,94,0.3);
    color: #fff;
    text-decoration: none;
}

/* Results Table */
.pc-results { display: none; margin-bottom: 28px; }

.pc-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
}

.pc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pc-table thead th {
    padding: 12px 10px;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
}

.pc-row {
    transition: background 0.15s ease;
}

.pc-row:hover {
    background: rgba(255,255,255,0.04);
}

.pc-row td {
    padding: 12px 10px;
    color: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    white-space: nowrap;
}

.pc-td-rank {
    color: rgba(255,255,255,0.35);
    font-weight: 600;
    width: 30px;
}

.pc-firm-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pc-firm-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.pc-firm-logo-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.pc-firm-link {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
}

.pc-firm-link:hover {
    color: #818cf8;
    text-decoration: none;
}

.pc-firm-sub {
    color: rgba(255,255,255,0.35);
    font-size: 11px;
}

.pc-none {
    color: rgba(255,255,255,0.25);
    font-style: italic;
}

/* Pass rate bar */
.pc-pass-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.pc-pass-bar-bg {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}

.pc-pass-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.pc-pass-pct {
    font-weight: 700;
    font-size: 14px;
    min-width: 38px;
    text-align: right;
}

.pc-sim-btn {
    padding: 6px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s ease;
}

.pc-sim-btn:hover {
    background: rgba(129,140,248,0.2);
    border-color: rgba(129,140,248,0.4);
    color: #818cf8;
}

/* Detail Modal */
.pc-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pc-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}

.pc-detail-content {
    position: relative;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border-radius: 16px;
    padding: 32px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}

.pc-detail-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 8px;
    color: rgba(255,255,255,0.6);
    width: 36px;
    height: 36px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pc-detail-close:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.pc-detail-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-right: 44px;
}

.pc-detail-grid {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 20px;
}

.pc-detail-gauge {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.pc-gauge-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.pc-gauge-bg {
    fill: none;
    stroke: rgba(255,255,255,0.08);
    stroke-width: 6;
}

.pc-gauge-fill {
    fill: none;
    stroke: #4ade80;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease, stroke 0.3s ease;
}

.pc-gauge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.pc-gauge-pct {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.pc-gauge-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pc-detail-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex: 1;
}

.pc-dm {
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.pc-dm-val {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.pc-dm-label {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}

.pc-detail-chart-wrap {
    height: 240px;
    margin-bottom: 20px;
}

.pc-detail-cta {
    display: flex;
    gap: 10px;
}

.pc-cta-primary {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pc-cta-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34,197,94,0.3);
    color: #fff;
    text-decoration: none;
}

.pc-cta-secondary {
    flex: 1;
    padding: 12px 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    transition: all 0.15s ease;
}

.pc-cta-secondary:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
    text-decoration: none;
}

/* Insights */
.pc-insights { display: none; margin-bottom: 28px; }

.pc-insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pc-insight-card {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px;
}

.pc-insight-icon {
    font-size: 20px;
    margin-bottom: 8px;
}

.pc-insight-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.pc-insight-text {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Explainer */
.pc-explainer {
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 24px;
}

.pc-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pc-step {
    text-align: center;
}

.pc-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.pc-step-title {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
}

.pc-step p {
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

/* CTA section */
.pc-cta-section {
    text-align: center;
    padding: 32px 0 16px;
}

.pc-cta-text {
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    margin-bottom: 16px;
}

.pc-cta-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.pc-cta-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pc-cta-btn.pc-cta-primary {
    background: linear-gradient(135deg, #818cf8, #6366f1);
}

.pc-cta-btn.pc-cta-primary:hover {
    box-shadow: 0 6px 16px rgba(99,102,241,0.3);
}

.pc-cta-btn.pc-cta-secondary {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
}

.pc-cta-btn.pc-cta-secondary:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .pc-grid-2,
    .pc-grid-3 {
        grid-template-columns: 1fr;
    }

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

    .pc-spotlight-grid {
        grid-template-columns: 1fr;
    }

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

    .pc-insights-grid {
        grid-template-columns: 1fr;
    }

    .pc-detail-grid {
        flex-direction: column;
    }

    .pc-detail-gauge {
        width: 120px;
        height: 120px;
    }

    .pc-detail-content {
        padding: 20px;
    }

    .pc-detail-cta {
        flex-direction: column;
    }

    .pc-table {
        font-size: 12px;
    }

    .pc-table thead th {
        font-size: 10px;
    }

    .pc-th-daily,
    .pc-th-days {
        display: none;
    }

    .pc-row td:nth-child(6),
    .pc-row td:nth-child(9) {
        display: none;
    }
}

@media (max-width: 480px) {
    .pc-summary-grid {
        grid-template-columns: 1fr;
    }

    .pc-steps {
        grid-template-columns: 1fr;
    }

    .pc-spot-actions {
        flex-direction: column;
    }

    .pc-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .pc-th-target,
    .pc-th-dd {
        display: none;
    }

    .pc-row td:nth-child(4),
    .pc-row td:nth-child(5) {
        display: none;
    }
}
