/* Pricing Page Styles */

.pricing-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e  50%, #16213e 100%);
    padding: 120px 0 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 140, 0, 0.2) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #ffc107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Auth Notice */
.auth-notice {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.3) 0%, rgba(25, 118, 210, 0.3) 100%);
    border: 1px solid rgba(25, 118, 210, 0.5);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.auth-notice-content h3 {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.auth-notice-content p {
    color: #ddd;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    gap: 20px;
}

.toggle-label {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #333;
    transition: 0.3s;
    border-radius: 30px;
    border: 2px solid #555;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    border-color: #ffc107;
}

input:checked + .toggle-slider:before {
    transform: translateX(28px);
}

/* New billing options styles */
.billing-options {
    display: flex;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.12) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 6px;
    gap: 3px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.billing-option {
    background: none;
    border: none;
    color: #b0b0b0;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    min-height: 70px;
    overflow: hidden;
}

.billing-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.billing-option:hover::before {
    opacity: 1;
}

.billing-option:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

.billing-option.active {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: #000;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    transform: translateY(-3px);
}

.billing-option.active::before {
    display: none;
}

.billing-option .savings-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.billing-option.active .savings-badge {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.savings-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 10px;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px; /* Add horizontal padding */
}

/* Ensure pricing cards don't get too wide on large screens */
@media (min-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
    }
}

.pricing-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #333;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 140, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: #ffc107;
    box-shadow: 0 20px 40px rgba(255, 193, 7, 0.2);
}

.pricing-card.featured {
    border-color: #ffc107;
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.3);
}

.pricing-card.current-plan {
    border-color: #28a745;
    box-shadow: 0 15px 30px rgba(40, 167, 69, 0.3);
}

.pricing-card > * {
    position: relative;
    z-index: 2;
}

/* Popular Badge */
.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: #000;
    padding: 8px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 3;
}

/* Tier Header */
.tier-header {
    margin-bottom: 30px;
}

.tier-name {
    margin-bottom: 15px;
    text-align: center;
}

.tier-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffc107;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 3px 6px rgba(255, 193, 7, 0.4);
}

.plan-name {
    font-size: 3.6rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
    background: linear-gradient(135deg, #fff 0%, #ffc107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 0.9;
}

.tier-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 10px;
}

.tier-price .currency {
    font-size: 1.5rem;
    color: #fff;
    margin-right: 5px;
}

.tier-price .amount {
    font-size: 3.5rem;
    color: #fff;
    font-weight: 700;
}

.tier-period {
    color: #888;
    font-size: 1rem;
    margin-bottom: 10px;
}

.quarterly-savings,
.yearly-savings {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: #000;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 5px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.quarterly-savings .savings-text,
.yearly-savings .savings-text {
    color: #000;
    font-weight: 700;
}

/* Tier Content */
.tier-description {
    color: #b0b0b0;
    font-size: 1.1rem;
    margin-bottom: 30px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tier-features {
    text-align: left;
    margin-bottom: 40px;
    flex-grow: 1;
}

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

.tier-features li {
    color: #ddd;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    font-size: 1rem;
    line-height: 1.5;
}

.tier-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ffc107;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Tier Action */
.tier-action {
    margin-top: auto;
}

.upgrade-form {
    margin: 0;
}

.upgrade-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: #000;
    border: none;
    padding: 16px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upgrade-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
}

.upgrade-btn:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.upgrade-btn.current-plan {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
}

.upgrade-btn.free-plan {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: #fff;
}

/* Current Status */
.current-status {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.3) 0%, rgba(25, 118, 210, 0.3) 100%);
    border: 1px solid rgba(25, 118, 210, 0.5);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-top: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.status-content h3 {
    color: #ffc107;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.status-content p {
    color: #ddd;
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-section {
        padding: 100px 20px 60px; /* Add horizontal padding */
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 10px; /* Add padding for better readability */
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px; /* Reduce padding on mobile */
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card {
        padding: 30px 20px;
        margin: 0 10px; /* Add side margins on mobile */
    }
    
    .tier-number {
        font-size: 1.8rem;
        letter-spacing: 1.8px;
    }
    
    .plan-name {
        font-size: 2.8rem;
    }
    
    .tier-price .amount {
        font-size: 2.5rem;
    }
    
    .tier-description {
        font-size: 1rem;
        min-height: 50px; /* Reduce min-height on mobile */
    }
    
    .tier-features li {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .upgrade-btn {
        padding: 14px 25px;
        font-size: 1rem;
    }
    
    .billing-toggle {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 40px; /* Adjust spacing */
    }
    
    .billing-options {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .billing-option {
        min-width: auto;
        width: 100%;
        min-height: 60px;
        padding: 14px 20px;
    }
    
    .auth-notice,
    .current-status {
        margin: 0 10px 40px; /* Add side margins */
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .pricing-section {
        padding: 80px 15px 40px; /* Tighter padding for very small screens */
    }
    
    .section-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 5px;
    }
    
    .section-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    
    .pricing-grid {
        padding: 0 5px; /* Minimal padding on very small screens */
    }
    
    .pricing-card {
        padding: 25px 15px;
        margin: 0; /* Remove side margins, rely on grid padding */
    }
    
    .tier-number {
        font-size: 1.5rem;
        letter-spacing: 1.5px;
    }
    
    .plan-name {
        font-size: 2.4rem;
    }
    
    .tier-price .amount {
        font-size: 2rem;
    }
    
    .tier-price .currency {
        font-size: 1.2rem;
    }
    
    .tier-description {
        font-size: 0.95rem;
        min-height: 40px;
        margin-bottom: 20px;
    }
    
    .tier-features {
        margin-bottom: 30px;
    }
    
    .tier-features li {
        font-size: 0.9rem;
        margin-bottom: 8px;
        padding-left: 25px;
    }
    
    .upgrade-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .popular-badge {
        font-size: 0.8rem;
        padding: 6px 20px;
    }
    
    .billing-toggle {
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .billing-options {
        max-width: 250px;
        padding: 4px;
    }
    
    .billing-option {
        min-height: 55px;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .billing-option .savings-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    .toggle-label {
        font-size: 1rem;
    }
    
    .savings-badge {
        font-size: 0.75rem;
        padding: 3px 10px;
        margin-left: 5px;
    }
    
    .auth-notice,
    .current-status {
        margin: 0 5px 30px;
        padding: 25px 15px;
    }
    
    .auth-notice-content h3,
    .status-content h3 {
        font-size: 1.3rem;
    }
    
    .auth-notice-content p,
    .status-content p {
        font-size: 1rem;
    }
}

/* Override profile modal size and positioning for pricing page */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 10000 !important;
    overflow: auto !important;
}

/* Only show modal when explicitly displayed */
.modal-overlay[style*="display: none"] {
    display: none !important;
}

.modal-overlay[style*="display: flex"] {
    display: flex !important;
}

.plan-change-modal {
    max-width: 1200px !important;
    width: 95% !important;
    max-height: 95vh !important;
    position: relative !important;
    margin: 20px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.plan-change-modal .modal-header {
    flex-shrink: 0 !important;
}

.plan-change-modal .modal-body {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
    max-height: none !important;
    padding: 25px !important;
}

.plan-change-modal .modal-footer {
    flex-shrink: 0 !important;
}

/* Ensure plan comparison fits horizontally */
.plan-change-modal .plan-comparison {
    min-width: 600px !important;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    gap: 20px !important;
    align-items: center !important;
}

.plan-change-modal .current-plan-info,
.plan-change-modal .new-plan-info {
    min-width: 200px !important;
}

/* Better responsive sizing */
@media (max-width: 1024px) {
    .plan-change-modal {
        max-width: 98% !important;
        width: 98% !important;
        margin: 10px !important;
    }
}

@media (max-width: 768px) {
    .plan-change-modal {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .plan-change-modal .plan-comparison {
        min-width: auto !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto !important;
        text-align: center !important;
    }
    
    .plan-change-modal .arrow-separator {
        transform: rotate(90deg) !important;
    }
}

/* Toast Notification System - copied from profile.css */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    pointer-events: none;
}

.toast {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 10px;
    min-width: 320px;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
    backdrop-filter: blur(10px);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #28a745;
}

.toast.error {
    border-left: 4px solid #dc3545;
}

.toast.warning {
    border-left: 4px solid #ffc107;
}

.toast.info {
    border-left: 4px solid #17a2b8;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast.success .toast-icon {
    color: #28a745;
}

.toast.error .toast-icon {
    color: #dc3545;
}

.toast.warning .toast-icon {
    color: #ffc107;
}

.toast.info .toast-icon {
    color: #17a2b8;
}

.toast-message {
    flex: 1;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 15px;
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toast-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 0 12px 12px;
    transform-origin: left;
    transition: transform linear;
}

.toast.success .toast-progress {
    background: #28a745;
}

.toast.error .toast-progress {
    background: #dc3545;
}

.toast.warning .toast-progress {
    background: #ffc107;
}

.toast.info .toast-progress {
    background: #17a2b8;
}

/* Mobile responsive toast notifications */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}