/* VeraCita Plan Selection - CSS Variables */
:root {
    --vp-brand-blue: #4384ff;
    --vp-brand-green: var(--vc-status-supported, #10b981);
    --vp-brand-gold: #f59e0b;
    --vp-brand-purple: #7b42ff;
    --vp-border-subtle: rgba(255, 255, 255, 0.08);
    --vp-bg-dark: #0a0a0a;
    --vp-text-primary: rgba(255, 255, 255, 0.9);
    --vp-text-secondary: rgba(255, 255, 255, 0.7);
    --vp-text-muted: rgba(255, 255, 255, 0.5);
}

/* Main Container */
.vp-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px 60px;
}

/* Page Header */
.vp-page-header {
    text-align: center;
    margin-bottom: 50px;
}

.vp-page-title {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.vp-balance-display {
    font-size: 16px;
    color: var(--vp-text-muted);
}

.vp-balance-amount {
    color: var(--vp-brand-blue);
    font-weight: 500;
    font-size: 18px;
}

/* Progress Steps */
.vp-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.vp-progress-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(to right, var(--vp-brand-blue) 25%, var(--vp-brand-purple) 100%);
    opacity: 0.3;
    z-index: 1;
}

.vp-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0.7;
}

.vp-step.vp-active,
.vp-step.vp-completed {
    opacity: 1;
}

.vp-step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--vp-brand-blue) 0%, var(--vp-brand-purple) 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-weight: 600;
    font-size: 18px;
    color: white;
    position: relative;
}

.vp-step-number::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--vp-bg-dark);
    border-radius: 50%;
    z-index: -1;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

.vp-step.vp-active .vp-step-number {
    box-shadow: 0 4px 12px rgba(67, 132, 255, 0.3);
}

.vp-step:not(.vp-active):not(.vp-completed) .vp-step-number::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.4);
    border-radius: 50%;
    top: 0;
    left: 0;
}

.vp-step-label {
    font-size: 14px;
    color: var(--vp-text-muted);
}

.vp-step.vp-completed .vp-step-label,
.vp-step.vp-active .vp-step-label {
    color: var(--vp-text-primary);
}

/* Claims Breakdown */
.vp-claims-breakdown {
    margin-bottom: 24px;
}

.vp-breakdown-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.vp-stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--vp-border-subtle);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.vp-stat-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(67, 132, 255, 0.3);
    transform: translateY(-2px);
}

.vp-context-card:hover {
    border-color: rgba(67, 132, 255, 0.3);
}

.vp-stat-number {
    font-size: 64px;
    font-weight: 200;
    color: var(--vp-brand-blue);
    margin-bottom: 12px;
    line-height: 1;
}

.vp-stat-label {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--vp-text-primary);
}

.vp-stat-desc {
    font-size: 12px;
    color: var(--vp-text-muted);
    line-height: 1.4;
    max-width: 140px;
    margin: 0 auto;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.vp-context-card .vp-stat-number {
    color: var(--vp-brand-blue);
}

.vp-context-desc {
    color: var(--vp-text-muted);
    font-weight: 400;
    font-size: 11px;
}

/* Plans Grid */
.vp-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.vp-plan-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Plan-specific borders */
.vp-plan-card.vp-standard {
    border: 1px solid rgba(67, 132, 255, 0.3);
}

.vp-plan-card.vp-balanced {
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.vp-plan-card.vp-premium {
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Hover effects */
.vp-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.vp-plan-card.vp-standard:hover {
    border-color: rgba(67, 132, 255, 0.5);
}

.vp-plan-card.vp-balanced:hover {
    border-color: rgba(16, 185, 129, 0.5);
}

.vp-plan-card.vp-premium:hover {
    border-color: rgba(245, 158, 11, 0.5);
}

/* Selected state */
.vp-plan-card.vp-selected::before {
    content: '✓';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--vp-brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.vp-plan-card.vp-balanced.vp-selected::before {
    background: var(--vp-brand-green);
}

.vp-plan-card.vp-premium.vp-selected::before {
    background: var(--vp-brand-gold);
}

/* Plan Header */
.vp-plan-header {
    margin-bottom: 20px;
    text-align: center;
}

.vp-plan-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vp-plan-card.vp-standard .vp-plan-name {
    color: var(--vp-brand-blue);
}

.vp-plan-card.vp-balanced .vp-plan-name {
    color: var(--vp-brand-green);
}

.vp-plan-card.vp-premium .vp-plan-name {
    color: var(--vp-brand-gold);
}

.vp-plan-tagline {
    font-size: 15px;
    color: var(--vp-text-secondary);
}

/* Credit Box */
.vp-credit-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--vp-border-subtle);
    border-radius: 16px;
    padding: 10px 16px;
    margin: 12px 0 20px;
    position: relative;
    overflow: hidden;
}

.vp-plan-card.vp-standard:hover .vp-credit-box {
    border-color: rgba(67, 132, 255, 0.3);
    background: rgba(67, 132, 255, 0.05);
}

.vp-plan-card.vp-balanced:hover .vp-credit-box {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.vp-plan-card.vp-premium:hover .vp-credit-box {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.05);
}

.vp-credit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px;
    position: relative;
}

.vp-credit-row:last-child {
    border-top: 1px dashed var(--vp-border-subtle);
}

.vp-credit-row span:first-child {
    color: var(--vp-text-secondary);
    font-size: 15px;
}

.vp-credit-value {
    font-weight: 600;
    font-size: 16px;
}

.vp-plan-card.vp-standard .vp-credit-value {
    color: var(--vp-brand-blue);
}

.vp-plan-card.vp-balanced .vp-credit-value {
    color: var(--vp-brand-green);
}

.vp-plan-card.vp-premium .vp-credit-value {
    color: var(--vp-brand-gold);
}

/* Features */
.vp-feature-list {
    list-style: none;
    flex: 1;
    margin-bottom: 24px;
    padding: 0;
}

.vp-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    color: var(--vp-text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

.vp-feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 7px;
    flex: 0 0 auto;
}

.vp-plan-card.vp-standard .vp-feature-dot {
    background: var(--vp-brand-blue);
    box-shadow: 0 0 10px rgba(67, 132, 255, 0.5);
}

.vp-plan-card.vp-balanced .vp-feature-dot {
    background: var(--vp-brand-green);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.vp-plan-card.vp-premium .vp-feature-dot {
    background: var(--vp-brand-gold);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Plan Total */
.vp-plan-total {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--vp-border-subtle);
    margin-top: auto;
}

.vp-total-label {
    font-size: 12px;
    color: var(--vp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.vp-total-amount {
    font-size: 36px;
    font-weight: 200;
    margin-bottom: 12px;
}

.vp-cost-breakdown {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--vp-border-subtle);
}

.vp-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--vp-text-muted);
    padding: 4px 0;
}

.vp-breakdown-item:not(:last-child) {
    border-bottom: 1px dotted rgba(255, 255, 255, 0.1);
    margin-bottom: 4px;
    padding-bottom: 6px;
}

.vp-breakdown-item span:last-child {
    font-weight: 600;
    color: var(--vp-text-secondary);
}

.vp-plan-card.vp-standard .vp-total-amount {
    color: var(--vp-brand-blue);
}

.vp-plan-card.vp-balanced .vp-total-amount {
    color: var(--vp-brand-green);
}

.vp-plan-card.vp-premium .vp-total-amount {
    color: var(--vp-brand-gold);
}

.vp-credits-inline {
    font-size: 18px;
    font-weight: 400;
    margin-left: 4px;
}

.vp-plan-card.vp-standard .vp-credits-inline {
    color: var(--vp-brand-blue);
}

.vp-plan-card.vp-balanced .vp-credits-inline {
    color: var(--vp-brand-green);
}

.vp-plan-card.vp-premium .vp-credits-inline {
    color: var(--vp-brand-gold);
}

/* Button Container */
.vp-button-container {
    text-align: center;
    margin-top: 48px;
}

/* Start Button */
.vp-start-button {
    background: var(--vp-brand-blue);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vp-start-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.4);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vp-start-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(67, 132, 255, 0.3);
}

.vp-start-button:disabled {
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.6);
}

.vp-start-button:disabled::before {
    opacity: 1;
}

.vp-auth-notice {
    margin-top: 16px;
    font-size: 14px;
    color: var(--vp-text-muted);
}

.vp-auth-notice a {
    color: var(--vp-brand-blue);
    text-decoration: none;
}

.vp-auth-notice a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .vp-breakdown-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vp-plans-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .vp-breakdown-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .vp-stat-card {
        padding: 24px;
    }
}