/* BluDNS Package System - Additional Styles */
/* Add this to your existing style.css or include as separate file */

/* Pricing Section - Force Horizontal Layout */
.pricing-section {
    overflow: visible !important;
}

.pricing-section .container {
    overflow: visible !important;
}

.pricing-section h2 {
    margin-bottom: 4rem !important;
}

.pricing-section .row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    overflow: visible !important;
    margin-top: 2rem !important;
}

.pricing-section .row > [class*="col-"] {
    display: flex !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
}

/* Desktop: Ensure columns maintain proper width */
@media (min-width: 768px) {
    .pricing-section .col-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
    
    .pricing-section .col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* Package Cards - Pricing Section */
.package-card {
    position: relative;
    width: 100%;
    display: flex;
    margin-bottom: 2rem;
    margin-top: 2.5rem;
    overflow: visible;
}

.package-card .card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: visible;
    position: relative;
}

.package-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.package-card.featured {
    border: 3px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
    transform: scale(1.02);
    z-index: 10;
}

.package-card.featured .card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.package-card.featured .card-header h3 {
    color: white;
}

.featured-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
    z-index: 100;
    white-space: nowrap;
}

.trial-badge {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    color: #78350F;
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.price-display {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
    flex: 1;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-light);
    position: relative;
    padding-left: 30px;
}

.pricing-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Registration Package Selector */
.package-selector {
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
    display: block;
}

.package-selector:hover {
    border-color: var(--primary);
    background: var(--primary-lighter);
}

.package-selector.selected {
    border-color: var(--primary);
    background: var(--primary-lighter);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.package-selector input[type="radio"] {
    margin-right: 10px;
}

.package-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    float: right;
}

.package-details {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--gray);
    clear: both;
}

.featured-package {
    position: relative;
}

.featured-package::before {
    content: '⭐ POPULAR';
    position: absolute;
    top: -10px;
    right: 10px;
    background: linear-gradient(135deg, var(--warning) 0%, #F59E0B 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Dashboard Package Info */
.package-info-card {
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--white) 100%);
    border-left: 4px solid var(--primary);
}

.progress-bar {
    background: var(--gray-light);
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    background: linear-gradient(135deg, var(--success) 0%, #34D399 100%);
    height: 100%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

.progress-fill.warning {
    background: linear-gradient(135deg, var(--warning) 0%, #FBBF24 100%);
}

.progress-fill.danger {
    background: linear-gradient(135deg, var(--danger) 0%, #F87171 100%);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

/* Create Hostname Package Info */
.package-info-box {
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--white) 100%);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.usage-bar {
    background: var(--gray-light);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.usage-fill {
    background: linear-gradient(135deg, var(--success) 0%, #34D399 100%);
    height: 100%;
    transition: width 0.3s;
}

.usage-fill.warning {
    background: linear-gradient(135deg, var(--warning) 0%, #FBBF24 100%);
}

/* How It Works Steps */
.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* Feature Icons */
.feature-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.download-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    display: block;
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
    padding: 4rem 0;
}

/* Outline Button */
.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    font-size: 1.5rem;
    margin-top: 20px;
    font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Float Helper */
.float-right {
    float: right;
}

/* Ensure equal height cards in pricing section */
.pricing-row {
    display: flex;
    align-items: stretch;
}

.pricing-row > [class*="col-"] {
    display: flex;
}

/* Section Padding */
.section-padding {
    padding: 4rem 0;
}

/* Mobile Responsive Adjustments */
@media (max-width: 767px) {
    .price-display {
        font-size: 2.5rem;
    }
    
    .feature-icon {
        font-size: 3rem;
    }
    
    .download-icon {
        font-size: 3.5rem;
    }
    
    .package-card.featured {
        transform: scale(1);
        margin-top: 20px;
    }
    
    .featured-badge {
        font-size: 0.75rem;
        padding: 4px 16px;
    }
    
    .package-price {
        float: none;
        display: block;
        margin-top: 10px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Tablet Adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .price-display {
        font-size: 3rem;
    }
}