/* Aevora Pricing Page Specific Stylesheet */

/* General Glass Utilities */
.pricing-section {
    position: relative;
    background-image: radial-gradient(circle at 50% 10%, rgba(0, 217, 255, 0.04) 0%, transparent 60%);
}

.border-neon-cyan {
    border-color: var(--color-neon-cyan) !important;
}
.border-neon-green {
    border-color: var(--color-neon-green) !important;
}

/* Service Selector Section */
.svc-pricing-section {
    padding: 80px 0;
    position: relative;
    background-image: radial-gradient(circle at 10% 30%, rgba(0, 255, 153, 0.03) 0%, transparent 50%);
}

.svc-tabs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.svc-tab-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    cursor: pointer;
}

.svc-tab-btn i {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.svc-tab-btn:hover {
    background: rgba(0, 217, 255, 0.03);
    border-color: rgba(0, 217, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

.svc-tab-btn:hover i {
    color: var(--color-neon-cyan);
    transform: scale(1.1);
}

.svc-tab-btn.active {
    background: rgba(2, 5, 31, 0.7);
    border-color: var(--color-neon-cyan);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.15);
}

.svc-tab-btn.active i {
    color: var(--color-neon-cyan);
    filter: drop-shadow(0 0 5px var(--color-neon-cyan));
}

/* Service Detail Cards */
.svc-plans-container {
    min-height: 380px;
    position: relative;
}

.svc-plan-panel {
    display: none;
    animation: slideFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.svc-plan-panel.active {
    display: block;
}

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

.svc-plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.svc-pricing-card {
    background: rgba(6, 11, 46, 0.35);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.svc-pricing-card:hover {
    border-color: rgba(0, 255, 153, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 255, 153, 0.05);
}

.svc-pricing-card.premium-glow:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.08);
}

.svc-card-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-neon-green);
    background: rgba(0, 255, 153, 0.06);
    border: 1px solid rgba(0, 255, 153, 0.15);
    padding: 4px 12px;
    border-radius: 50px;
}

.svc-price-wrap {
    margin: 25px 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.svc-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
}

.svc-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.svc-price-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* Custom Plan Builder */
.builder-section {
    padding: 100px 0;
    position: relative;
    background-image: radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.04) 0%, transparent 60%);
    border-top: 1.5px solid rgba(255, 255, 255, 0.05);
}

.builder-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: start;
}

.module-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    user-select: none;
}

.module-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(0, 217, 255, 0.2);
}

.module-card.selected {
    background: rgba(0, 217, 255, 0.04);
    border-color: var(--color-neon-cyan);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.1);
}

.module-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.module-card.selected .module-checkbox {
    background: var(--color-neon-cyan);
    border-color: var(--color-neon-cyan);
}

.module-checkbox i {
    color: #02051f;
    width: 12px;
    height: 12px;
    stroke-width: 4px;
    display: none;
}

.module-card.selected .module-checkbox i {
    display: block;
}

.module-icon {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.module-card.selected .module-icon {
    color: var(--color-neon-cyan);
    filter: drop-shadow(0 0 4px var(--color-neon-cyan));
}

.module-details {
    flex-grow: 1;
}

.module-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.module-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

.module-price-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-neon-green);
    background: rgba(0, 255, 153, 0.05);
    border: 1px solid rgba(0, 255, 153, 0.12);
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Builder Input Controls */
.builder-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
}

.glass-dropdown {
    background: rgba(2, 5, 31, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
}

.glass-dropdown:focus {
    border-color: var(--color-neon-cyan);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.15);
}

.glass-dropdown option {
    background: #02051f;
    color: #ffffff;
}

/* SLA Radio cards */
.sla-radio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.sla-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sla-card:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(139, 92, 246, 0.2);
}

.sla-card.selected {
    background: rgba(139, 92, 246, 0.04);
    border-color: var(--color-purple);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}

.sla-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.sla-price {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-purple);
}

/* Estimator Sticky Panel */
.sticky-estimator {
    position: sticky;
    top: 100px;
    background: rgba(6, 11, 46, 0.45);
    border: 1.5px solid rgba(0, 217, 255, 0.15);
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.05);
}

.quote-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quote-title i {
    color: var(--color-neon-cyan);
}

.breakdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom scrollbar for breakdown */
.breakdown-list::-webkit-scrollbar {
    width: 4px;
}
.breakdown-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
.breakdown-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.breakdown-item span:first-child {
    font-weight: 500;
    color: #ffffff;
}

.live-price-box {
    margin-top: 25px;
    background: rgba(0, 255, 153, 0.02);
    border: 1px solid rgba(0, 255, 153, 0.08);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.live-total-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 5px;
    display: block;
}

.live-total-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-neon-green);
    text-shadow: 0 0 15px rgba(0, 255, 153, 0.2);
}

/* Modals */
.aevora-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 5, 31, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1050;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.aevora-modal.active {
    display: flex;
    animation: fadeInModal 0.3s ease forwards;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.aevora-modal-content {
    background: rgba(6, 11, 46, 0.9);
    border: 1.5px solid var(--color-neon-cyan);
    border-radius: 18px;
    max-width: 550px;
    width: 100%;
    padding: 35px;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 217, 255, 0.15);
    transform: scale(0.95);
    animation: zoomInModal 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
}

@keyframes zoomInModal {
    from { transform: scale(0.95); }
    to { transform: scale(1); }
}

.aevora-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.aevora-modal-close:hover {
    color: #ffffff;
}

/* Responsive constraints */
@media (max-width: 991px) {
    .svc-tabs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .svc-plans-grid {
        grid-template-columns: 1fr;
    }
    .builder-grid {
        grid-template-columns: 1fr;
    }
    .sticky-estimator {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 575px) {
    .svc-tabs-grid {
        grid-template-columns: 1fr;
    }
    .sla-radio-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive hardening for pricing-specific layouts */
.svc-tabs-grid,
.svc-plans-grid,
.builder-grid,
.sla-radio-grid,
.module-card,
.svc-pricing-card,
.sticky-estimator,
.aevora-modal-content {
    max-width: 100%;
    min-width: 0;
}

.svc-tabs-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.svc-plans-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.builder-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(min(100%, 340px), 0.95fr);
}

.svc-tab-btn,
.module-card,
.sla-card {
    min-height: 44px;
}

.module-details,
.module-name,
.module-desc,
.breakdown-item span {
    min-width: 0;
    overflow-wrap: anywhere;
}

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

    .sticky-estimator {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .svc-pricing-section,
    .builder-section {
        padding: 60px 0;
    }

    .svc-pricing-card,
    .sticky-estimator,
    .aevora-modal-content {
        padding: 24px;
    }

    .svc-card-tag {
        position: static;
        display: inline-flex;
        width: fit-content;
        margin-bottom: 16px;
    }

    .svc-price-wrap {
        flex-wrap: wrap;
    }

    .module-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .module-price-tag {
        margin-left: 35px;
    }
}

@media (max-width: 480px) {
    .svc-tabs-grid,
    .svc-plans-grid,
    .sla-radio-grid {
        grid-template-columns: 1fr;
    }

    .svc-tab-btn {
        padding: 16px;
    }

    .svc-pricing-card,
    .sticky-estimator,
    .aevora-modal-content {
        padding: 20px;
    }

    .module-card {
        gap: 12px;
        padding: 16px;
    }

    .module-price-tag {
        width: fit-content;
        margin-left: 0;
    }

    .breakdown-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .live-total-price {
        font-size: clamp(1.45rem, 8vw, 2rem);
    }
}
