/* ================================
   Pricing Page Specific Styles
   ================================ */

/* Pricing Hero Section */
.pricing-hero {
    padding: calc(var(--spacing-xxl) + 60px) 0 var(--spacing-xl);
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), url('images/pricing-hero-universe.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    position: relative;
}

.pricing-hero-features {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.hero-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    /* Changed from left */
    max-width: 800px;
    /* Increased width to allow better centering */
}

.hero-feature-list li {
    display: flex;
    align-items: center;
    /* Center icon with text vertically */
    justify-content: center;
    /* Center horizontally */
    gap: 0.75rem;
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    /* Slightly softer than pure white for elegance */
    line-height: 1.5;
}

.hero-feature-list li svg {
    color: var(--color-accent-blue);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    /* margin-top removed for center alignment */
}

.pricing-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.pricing-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
}

.pricing-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    padding: var(--spacing-xxl) 0;
    background: var(--color-bg-primary);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

/* Pricing Cards */
.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    position: relative;
    transition: all var(--transition-medium);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Featured Card (Premium) */
.pricing-card-featured {
    background: linear-gradient(135deg, rgba(187, 153, 84, 0.1) 0%, rgba(187, 138, 84, 0.1) 100%);
    border: 2px solid var(--color-accent-blue);
    transform: scale(1.05);
}

.pricing-card-featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-gradient-blue);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(187, 153, 84, 0.4);
}

/* Card Header */
.pricing-card-header {
    margin-bottom: var(--spacing-md);
}

.pricing-card-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pricing-card-tagline {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.4;
}

/* Card Price */
.pricing-card-price {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    display: block;
    margin-bottom: 0.25rem;
}

.price-period {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

.price-period-sm {
    color: var(--color-text-secondary);
    font-size: 0.70rem;
    font-weight: 400;
}

/* Card Features */
.pricing-card-features {
    flex: 1;
    margin-bottom: var(--spacing-lg);
}

.pricing-card-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-card-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.pricing-card-features li:last-child {
    margin-bottom: 0;
}

.pricing-card-features svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: var(--color-accent-cyan);
}

.pricing-card-featured .pricing-card-features svg {
    color: var(--color-accent-blue);
}

.pricing-card-features strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* Pricing Note */
.pricing-note {
    margin-top: var(--spacing-md);
    padding: 1rem;
    background: rgba(187, 153, 84, 0.1);
    border-left: 3px solid var(--color-accent-blue);
    border-radius: var(--radius-sm);
}

.pricing-note p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.pricing-note strong {
    color: var(--color-text-primary);
}

/* Card CTA */
.pricing-card-cta {
    margin-bottom: var(--spacing-sm);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1;
}

.modal-container {
    position: relative;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    width: 90%;
    max-width: 500px;
    z-index: 2;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.modal-close:hover {
    color: var(--color-text-primary);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-accent-blue);
    background: rgba(255, 255, 255, 0.1);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    accent-color: var(--color-accent-blue);
    width: 16px;
    height: 16px;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .checkbox-group {
        grid-template-columns: 1fr 1fr;
    }
}

.pricing-card-cta .btn {
    width: 100%;
    text-align: center;
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-accent-blue);
    transform: translateY(-2px);
}

/* Card Footer */
.pricing-card-footer {
    text-align: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-card-footer p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-style: italic;
}

.pricing-card-tagline {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .pricing-card-featured {
        transform: scale(1);
    }

    .pricing-card-featured:hover {
        transform: scale(1) translateY(-4px);
    }
}

@media (max-width: 768px) {
    .pricing-hero {
        padding: calc(var(--spacing-xl) + 60px) 0 var(--spacing-lg);
    }

    .pricing-section {
        padding: var(--spacing-md) 0;
    }

    .pricing-faq {
        padding: var(--spacing-md) 0;
    }

    .pricing-card {
        padding: var(--spacing-md);
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .pricing-card-cta .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }
}

/* Pricing Toggle */
.pricing-toggle-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: var(--radius-xl);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.toggle-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--color-text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-medium);
    font-family: var(--font-body);
}

.toggle-btn:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.toggle-btn.active {
    background: var(--color-gradient-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(187, 153, 84, 0.4);
}

.pricing-grid.hidden {
    display: none;
}

/* Badge Style */
.badge-soon {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.toggle-btn:hover .badge-soon {
    background: rgba(255, 255, 255, 0.2);
}

.toggle-btn.active .badge-soon {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Annual pricing styling */
.price-annual {
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

[data-theme='dark'] .price-annual {
    color: #94a3b8;
}

.save-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 4px;
}

[data-theme='dark'] .save-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}


/* Billing Cycle Toggle */
.billing-cycle-toggle {
    text-align: center;
}

.cycle-toggle-wrapper {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px;
    gap: 6px;
}

.cycle-btn {
    padding: 0.75rem 2rem;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.cycle-btn:hover {
    color: #fff;
}

.cycle-btn.active {
    background: #bb9954;
    color: #000;
    box-shadow: 0 2px 8px rgba(187, 153, 84, 0.3);
}

.discount-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.cycle-btn.active .discount-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #059669;
}

/* Light theme */
[data-theme='light'] .cycle-toggle-wrapper {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme='light'] .cycle-btn {
    color: #64748b;
}

[data-theme='light'] .cycle-btn:hover {
    color: #334155;
}

[data-theme='light'] .cycle-btn.active {
    color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
    .cycle-toggle-wrapper {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

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


/* One-Time Bulk Pricing Calculator */
.bulk-calculator-section {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bulk-pricing-container {
    display: flex;
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.benefits-card {
    flex: 0 0 40%;
    /* 40% width */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    /* justify-content: center; Optional, can align top */
}

.benefits-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefits-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-icon {
    color: var(--color-accent-blue);
    background: rgba(187, 153, 84, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-content strong {
    display: block;
    color: var(--color-text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.benefit-content p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.calculator-wrapper {
    flex: 0 0 60%;
    /* 60% width */
    margin: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 968px) {
    .bulk-pricing-container {
        flex-direction: column;
    }

    .benefits-card,
    .calculator-wrapper {
        flex: 1 1 auto;
        width: 100%;
    }
}

.calculator-controls {
    display: grid;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.control-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-primary);
    font-size: 1.125rem;
    font-weight: 500;
}

.control-value {
    color: var(--color-accent-blue);
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Custom Range Slider */
input[type=range] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]:focus {
    outline: none;
}

/* Slider Track */
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Slider Thumb */
input[type=range]::-webkit-slider-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--color-accent-blue);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -8px;
    /* track height / 2 - thumb height / 2 */
    box-shadow: 0 0 10px rgba(187, 153, 84, 0.5);
    transition: transform 0.2s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

input[type=range]::-moz-range-thumb {
    height: 24px;
    width: 24px;
    border: none;
    border-radius: 50%;
    background: var(--color-accent-blue);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(187, 153, 84, 0.5);
    transition: transform 0.2s ease;
}

input[type=range]::-moz-range-thumb:hover {
    transform: scale(1.1);
}

/* Range Marks/Ticks */
.range-marks {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    margin-top: 0.5rem;
}

.mark {
    color: var(--color-text-tertiary);
    font-size: 0.85rem;
    position: relative;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mark:hover {
    color: var(--color-text-secondary);
}

.mark::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.mark.active {
    color: var(--color-accent-blue);
    font-weight: 600;
}

.mark.active::before {
    background: var(--color-accent-blue);
}

/* Tooltip Styles */
.mark[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: fadeIn 0.2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Arrow for Tooltip */
.mark[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
    z-index: 10;
    opacity: 0;
    animation: fadeInArrow 0.2s forwards;
}

@keyframes fadeInArrow {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Result Display */
.calculator-result {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.estimated-price-label {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.estimated-price {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-text-primary);
    background: linear-gradient(135deg, white 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.price-breakdown {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.calculator-cta {
    margin-top: var(--spacing-md);
}

@media (max-width: 768px) {
    .estimated-price {
        font-size: 3rem;
    }

    /* Mobile Layout Optimizations for Calculator */
    .control-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .control-value {
        align-self: flex-end;
        font-size: 1.25rem;
    }

    /* Hide specific storage labels on mobile to prevent overcrowding */
    /* Showing only 5MB (1st), 100MB (4th), and 500MB (8th) */
    .slider-container .range-marks .mark:not(:nth-child(1)):not(:nth-child(4)):not(:nth-child(8)) {
        display: none;
    }
}

@media (max-width: 600px) {
    .pricing-hero {
        padding: 8rem 1rem 3rem;
    }

    .pricing-hero-title {
        font-size: 2.5rem;
    }

    .hero-feature-list li {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        font-size: 1rem;
    }

    .pricing-hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}