/* Enhanced Order Page Styles */
#order {
    padding: 20px 16px 100px 16px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Enhanced Plan Card Styles */
.plan-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.plan-name {
    font-size: 20px;
    font-weight: 700;
    color: #334155;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-cycle {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #d1fae5;
}

.plan-details {
    margin-bottom: 24px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.detail-value {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
}

/* Button */
.buy-button {
    width: 100%;
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: .3s;
}

.buy-button:hover {
    background: #2563eb;
}

/* Enhanced Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin: 20px 0;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.7;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-text {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 24px;
    font-weight: 500;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-completed {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Order Summary Box */
.order-summary-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.summary-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.summary-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.summary-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 20px;
    font-weight: 700;
}

/* Form Input */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 13px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    outline: none;
    transition: .3s;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 5px rgba(59,130,246,0.4);
}

/* Alerts */
.alert {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 10px;
    font-size: 15px;
}

.alert-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

/* Main page container */
.register-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 15px;
}

/* Card design */
.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    animation: fadeIn .4s ease-in-out;
}

/* Title */
.auth-title {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    color: #222;
    margin-bottom: 20px;
}

/* Footer text */
.auth-footer {
    text-align: center;
    margin-top: 15px;
}

.auth-footer a {
    color: #3b82f6;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .plan-card {
        padding: 20px;
    }
    
    .plan-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .detail-label {
        font-size: 13px;
    }
    
    .detail-value {
        font-size: 14px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-item {
        padding: 12px;
    }
    
    .summary-value {
        font-size: 18px;
    }
    
    .auth-card {
        padding: 24px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .form-input {
        padding: 12px 14px;
        font-size: 15px;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(.95); }
    to   { opacity: 1; transform: scale(1); }
}



/* Adjust page padding to accommodate bottom nav */
.page {
    padding: 20px 16px 80px 16px;
}

/* Page Styles */
.page {
    display: none;
    flex: 1;
    padding: 20px 16px 160px 16px;
    overflow-y: auto;
    scroll-behavior: smooth;
    position: relative;
    z-index: 10;
    background: #f5f7fa;
}

.page.active {
    display: block;
}

/* Home Page Specific Navigation Styles */
.home-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 15px;
    z-index: 5;
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.2);
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    border-radius: 15px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.home-nav-item.active {
    color: white;
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.home-nav-item:hover:not(.active) {
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.home-nav-icon {
    font-size: 24px;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

.home-nav-item:hover .home-nav-icon {
    transform: scale(1.2);
}

.home-nav-label {
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Animation for active indicator */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.home-nav-item.active .home-nav-icon {
    animation: pulse 2s infinite;
}

/* Adjust page padding to accommodate bottom nav */
.page {
    padding: 20px 16px 80px 16px;
}
