/* Ideavezy Members Plugin Styles */

/* CSS Variables for Color Scheme */
:root {
    --primary: #C53A3A;
    --secondary: #A7833B;
    --text: white;
    --accent: #29282C;
    --background: #1A191D;
}

/* User Icon Styles */
.user-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.user-icon .user-icon-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-icon .user-icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* User Dropdown Styles */
.user-icon .user-profile-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text);
    padding: 10px 12px;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 50px;
    height: 44px;
}

.user-icon .user-profile-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
    transform: scale(1.05);
}

.user-icon .user-profile-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.user-icon .user-profile-btn:focus,
.user-icon .user-profile-btn:active {
    color: var(--text) !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: transparent !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5) !important;
}

.user-icon .user-name {
    font-weight: 500;
    font-size: 14px;
}

.user-icon .dropdown-menu {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: var(--accent, #29282C);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 8px 0;
    min-width: 180px;
    z-index: 1050;
}

.user-icon .dropdown-menu.show {
    display: block;
}

.user-icon .dropdown-item {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    color: var(--text, white);
    text-decoration: none;
}

.user-icon .dropdown-item:hover,
.user-icon .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary, #A7833B);
}

.user-icon .dropdown-divider {
    margin: 8px 0;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Login Modal Styles - Dark Theme */
#ideavezyLoginModal .modal-content {
    border-radius: 12px;
    border: none;
    background-color: var(--accent);
    color: var(--text);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

#ideavezyLoginModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    background-color: var(--accent);
}

#ideavezyLoginModal .modal-title {
    color: var(--text);
}

#ideavezyLoginModal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

#ideavezyLoginModal .btn-close:hover {
    opacity: 1;
}

#ideavezyLoginModal .modal-body {
    padding: 1.5rem;
    background-color: var(--accent);
}

#ideavezyLoginModal .form-control {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: var(--background);
    color: var(--text);
}

#ideavezyLoginModal .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#ideavezyLoginModal .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(197, 58, 58, 0.25);
    background-color: var(--background);
    color: var(--text);
}

#ideavezyLoginModal .form-label {
    color: var(--text);
    font-weight: 500;
}

#ideavezyLoginModal .form-check-label {
    color: var(--text);
}

#ideavezyLoginModal .btn-primary {
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: var(--secondary);
    border-color: var(--secondary);
}

#ideavezyLoginModal .btn-primary:hover {
    background-color: #966f33;
    border-color: #966f33;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(167, 131, 59, 0.3);
}

#ideavezyLoginModal .text-decoration-none {
    color: var(--secondary);
}

#ideavezyLoginModal .text-decoration-none:hover {
    color: var(--text);
}

#ideavezyLoginModal .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

#ideavezyLoginModal .text-muted:hover {
    color: var(--secondary) !important;
}

/* Signup Form Styles - Dark Theme */
.ideavezy-signup-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.ideavezy-signup-container .card {
    border-radius: 12px;
    border: none;
    background-color: var(--accent);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.ideavezy-signup-container .card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text);
    padding: 1.5rem;
    border-bottom: none;
}

.ideavezy-signup-container .card-body {
    padding: 2rem;
    background-color: var(--accent);
}

.ideavezy-signup-container .form-control {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: var(--background);
    color: var(--text);
}

.ideavezy-signup-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.ideavezy-signup-container .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(197, 58, 58, 0.25);
    background-color: var(--background);
    color: var(--text);
}

.ideavezy-signup-container .form-label {
    color: var(--text);
    font-weight: 500;
}

.ideavezy-signup-container .form-check-label {
    color: var(--text);
}

.ideavezy-signup-container .form-text {
    color: rgba(255, 255, 255, 0.6);
}

/* Additional signup form elements */
.ideavezy-signup-container .card.bg-light {
    background-color: var(--background) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ideavezy-signup-container .card.bg-light .card-body {
    background-color: transparent;
}

.ideavezy-signup-container .card.bg-light h6 {
    color: var(--text);
}

.ideavezy-signup-container .card.bg-light .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.ideavezy-signup-container .card.bg-light span {
    color: var(--text);
}

.ideavezy-signup-container .card.bg-light .fw-bold {
    color: var(--text);
}

.ideavezy-signup-container .btn-link {
    color: var(--secondary);
    text-decoration: none;
}

.ideavezy-signup-container .btn-link:hover {
    color: var(--text);
}

.ideavezy-signup-container h4 {
    color: var(--text);
}

.ideavezy-signup-container .text-danger {
    color: #ff6b6b !important;
}

/* Subscribe Form Styles - Dark Theme */
.ideavezy-subscribe-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.ideavezy-subscribe-container .subscribe-content {
    padding: 2rem 0;
}

.ideavezy-subscribe-container .form-control {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: var(--background);
    color: var(--text);
}

.ideavezy-subscribe-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.ideavezy-subscribe-container .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(197, 58, 58, 0.25);
    background-color: var(--background);
    color: var(--text);
}

.ideavezy-subscribe-container .form-label {
    color: var(--text);
    font-weight: 500;
}

.ideavezy-subscribe-container .form-check-label {
    color: var(--text);
}

.ideavezy-subscribe-container .form-text {
    color: rgba(255, 255, 255, 0.6);
}

.ideavezy-subscribe-container h4 {
    color: var(--text);
}

.ideavezy-subscribe-container .btn-link {
    color: var(--secondary);
    text-decoration: none;
}

.ideavezy-subscribe-container .btn-link:hover {
    color: var(--text);
}

.ideavezy-subscribe-container .text-danger {
    color: #ff6b6b !important;
}

.ideavezy-subscribe-container .card.bg-light {
    background-color: var(--background) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ideavezy-subscribe-container .card.bg-light .card-body {
    background-color: transparent;
}

.ideavezy-subscribe-container .card.bg-light h6 {
    color: var(--text);
}

.ideavezy-subscribe-container .card.bg-light .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.ideavezy-subscribe-container .card.bg-light span {
    color: var(--text);
}

.ideavezy-subscribe-container .card.bg-light .fw-bold {
    color: var(--text);
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.step-indicator .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-indicator .step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.step-indicator .step-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.step-indicator .step.active .step-number {
    background-color: var(--secondary);
    color: var(--text);
    box-shadow: 0 0 0 4px rgba(167, 131, 59, 0.2);
}

.step-indicator .step.active .step-label {
    color: var(--secondary);
}

.step-indicator .step.completed .step-number {
    background-color: var(--primary);
    color: var(--text);
}

.step-indicator .step.completed .step-label {
    color: var(--primary);
}

.step-indicator .step-connector {
    flex: 1;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 20px;
    position: relative;
    top: -25px;
    z-index: 1;
}

/* Subscribe Steps */
.subscribe-step {
    display: none;
    transition: all 0.3s ease;
}

.subscribe-step.active {
    display: block !important;
}

/* Plan Option Cards for Subscribe Form */
.ideavezy-subscribe-container .plan-option-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin-bottom: 1rem;
    background-color: var(--background);
    position: relative;
    padding: 2rem;
    text-align: center;
}

.ideavezy-subscribe-container .plan-option-card:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.ideavezy-subscribe-container .plan-option-card.selected {
    border-color: var(--secondary);
    background-color: rgba(167, 131, 59, 0.1);
    box-shadow: 0 8px 25px rgba(167, 131, 59, 0.2);
}

.ideavezy-subscribe-container .plan-option-card .form-check-input {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
}

.ideavezy-subscribe-container .plan-label {
    display: block;
    cursor: pointer;
    margin: 0;
    width: 100%;
}

.ideavezy-subscribe-container .plan-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.ideavezy-subscribe-container .plan-title {
    color: var(--text);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.ideavezy-subscribe-container .price-display {
    margin: 0;
}

.ideavezy-subscribe-container .price-display .price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary);
    line-height: 1;
}

.ideavezy-subscribe-container .price-display .period {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: normal;
}

.ideavezy-subscribe-container .badge.bg-success {
    background-color: var(--primary) !important;
    color: var(--text) !important;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 10px;
}

/* Responsive Design for Subscribe Form */
@media (max-width: 768px) {
    .ideavezy-subscribe-container .subscribe-content {
        padding: 1rem 0;
    }
    
    .ideavezy-subscribe-container .plan-option-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .step-indicator {
        margin-bottom: 2rem;
        padding: 1rem 0;
    }
    
    .step-indicator .step-connector {
        margin: 0 10px;
    }
    
    .step-indicator .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .step-indicator .step-label {
        font-size: 12px;
    }
    
    .ideavezy-subscribe-container .price-display .price {
        font-size: 2.5rem;
    }
}

/* Elementor Compatibility for Subscribe Form */
.elementor-widget-container .ideavezy-subscribe-container {
    width: 100%;
    max-width: none;
}

/* Membership Options - Dark Theme */
.membership-option {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
    background-color: var(--background);
}

.membership-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.membership-option.selected {
    border-color: var(--primary);
    background-color: rgba(197, 58, 58, 0.1);
}

.membership-option .form-check-input {
    position: absolute;
    top: 10px;
    right: 10px;
}

.membership-option .card-body {
    padding: 1.5rem;
    background-color: transparent;
}

.membership-option .card-title {
    color: var(--text);
}

.membership-option .card-text {
    color: rgba(255, 255, 255, 0.8);
}

.membership-option .badge {
    font-size: 12px;
    padding: 6px 12px;
}

.membership-option .badge.bg-success {
    background-color: var(--secondary) !important;
}

.membership-option .badge.bg-primary {
    background-color: var(--primary) !important;
}

/* Step Navigation */
.signup-step {
    transition: all 0.3s ease;
}

.signup-step.active {
    display: block !important;
}

/* Payment Form Styles - Dark Theme */
#cardElement {
    background-color: var(--background);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

#cardElement:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(197, 58, 58, 0.25);
}

#cardErrors {
    font-size: 14px;
    margin-top: 8px;
    color: #ff6b6b;
}

/* Button Styles - Updated for Dark Theme */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--secondary) !important;
    border: none !important;
    color: var(--text);
}

.btn-primary:hover {
    background: #966f33 !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(167, 131, 59, 0.3);
    color: var(--text);
}

.btn-success {
    background: var(--secondary);
    border: none;
    color: var(--text);
}

.btn-success:hover {
    background: #966f33;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(167, 131, 59, 0.3);
    color: var(--text);
}

/* Loading States */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ideavezy-signup-container {
        padding: 10px;
    }
    
    .ideavezy-signup-container .card-body {
        padding: 1.5rem;
    }
    
    .membership-option .card-body {
        padding: 1rem;
    }
    
    .user-icon .user-name {
        display: none;
    }
}

/* Elementor Compatibility */
.elementor-widget-container .user-icon {
    display: inline-flex;
}

.elementor-widget-container .ideavezy-signup-container {
    width: 100%;
    max-width: none;
}

/* Admin Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #666;
}

.stat-card .stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* Membership Type Badges */
.membership-type.member {
    background-color: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.membership-type.paid_member {
    background-color: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Status Badges */
.status.active {
    color: #28a745;
    font-weight: bold;
}

.status.expired {
    color: #dc3545;
    font-weight: bold;
}

.status.canceled {
    color: #ffc107;
    font-weight: bold;
}

/* Form Validation */
.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

.valid-feedback {
    display: block;
    color: var(--secondary);
    font-size: 14px;
    margin-top: 5px;
}

/* Account Page Styles - Dark Theme */
.account-page {
    margin: 0;
    padding: 0;
}

.account-banner {
    height: 30vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.account-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.account-banner .container {
    position: relative;
    z-index: 2;
}

.account-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.account-subtitle {
    font-size: 1.2rem;
    margin: 10px 0 0 0;
    opacity: 0.9;
}

.account-content {
    padding: 40px 0;
    background-color: var(--background);
    min-height: 70vh;
}

/* Account Tabs - Dark Theme */
.account-tabs {
    border-bottom: 2px solid var(--secondary) !important;
    margin-bottom: 30px;
}

.account-tabs .nav-item {
    flex: 1;
}

.account-tabs .nav-link {
    border: none !important;
    background: none !important;
    border-radius: 0;
    padding: 15px 25px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    width: 100%;
}

.account-tabs .nav-link:hover {
    border-color: transparent;
    background-color: var(--accent) !important;
    color: var(--secondary);
}

.account-tabs .nav-link.active {
    border-color: transparent;
    border-bottom: 2px solid var(--secondary);
    color: var(--secondary);
    background-color: var(--secondary) !important;
}

.account-tabs .nav-link i {
    width: 16px;
    height: 16px;
}

/* Account Tab Content - Dark Theme */
.account-tab-content {
    background: var(--accent);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.account-form-container h3,
.membership-container h3 {
    margin-bottom: 25px;
    color: var(--text);
    font-weight: 600;
}

.account-form .form-control {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 16px;
    transition: all 0.3s ease;
    background-color: var(--background);
    color: var(--text);
}

.account-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.account-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(197, 58, 58, 0.25);
    background-color: var(--background);
    color: var(--text);
}

.account-form .form-label {
    color: var(--text);
    font-weight: 500;
}

/* Membership Styles - Dark Theme */
.membership-info {
    display: grid;
    gap: 30px;
}

.membership-status {
    background: var(--background);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.membership-status h4 {
    margin-bottom: 15px;
    color: var(--text);
    font-weight: 600;
}

.plan-details {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.plan-name {
    background: var(--primary);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.plan-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.next-billing {
    margin: 10px 0 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.payment-method {
    background: var(--background);
    padding: 20px;
    border-radius: 12px;
}

.payment-method h4 {
    margin-bottom: 15px;
    color: var(--text);
    font-weight: 600;
}

.current-payment-method {
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-payment-method i {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.current-payment-method span {
    color: var(--text);
}

.membership-actions {
    padding: 20px 0;
}

.upgrade-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.upgrade-section h4 {
    color: var(--text);
    margin-bottom: 15px;
}

.upgrade-section p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.upgrade-section .btn {
    background: var(--text);
    color: var(--primary);
    border: none;
    font-weight: 600;
}

.upgrade-section .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    color: var(--primary);
}

/* Alert Styles - Dark Theme */
.alert {
    border-radius: 8px;
    border: none;
    margin-bottom: 20px;
}

.alert-success {
    background-color: rgba(167, 131, 59, 0.2);
    color: var(--secondary);
    border-left: 4px solid var(--secondary);
}

.alert-danger {
    background-color: rgba(197, 58, 58, 0.2);
    color: #ff6b6b;
    border-left: 4px solid var(--primary);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background-color: rgba(167, 131, 59, 0.2);
    color: var(--secondary);
    border-left: 4px solid var(--secondary);
}

/* Modal Styles - Dark Theme */
.modal-content {
    background-color: var(--accent);
    color: var(--text);
    border: none;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background-color: var(--accent);
}

.modal-body {
    background-color: var(--accent);
}

.modal-title {
    color: var(--text);
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

/* Form Validation - Dark Theme */
.form-control.is-invalid {
    border-color: var(--primary);
    background-color: var(--background);
    color: var(--text);
}

.form-control.is-valid {
    border-color: var(--secondary);
    background-color: var(--background);
    color: var(--text);
}

.invalid-feedback {
    display: block;
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 5px;
}

.valid-feedback {
    display: block;
    color: var(--secondary);
    font-size: 14px;
    margin-top: 5px;
}

/* Subscription Forms - Dark Theme */
.subscription-form-container {
    background: var(--accent);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.current-plan-info,
.no-membership-info {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--background);
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
}

.current-plan-info h4,
.no-membership-info h4 {
    color: var(--text);
    margin-bottom: 10px;
}

.current-plan-info p,
.no-membership-info p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.upgrade-form h4,
.subscription-form h4 {
    color: var(--text);
    margin-bottom: 20px;
}

.plan-highlight {
    background: var(--background);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.plan-features h5 {
    color: var(--secondary);
    margin-bottom: 15px;
}

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

.plan-features li {
    color: var(--text);
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.plan-features li:before {
    content: "✓";
    color: var(--secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Plan Cards */
.membership-options {
    margin-bottom: 30px;
}

.plan-card {
    background: var(--background);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.plan-card.premium-plan {
    border-color: var(--secondary);
    position: relative;
}

.plan-card.premium-plan:before {
    content: "RECOMMENDED";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: var(--background);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.plan-card h5 {
    color: var(--text);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.plan-card .price {
    color: var(--secondary);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.plan-card li {
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-card li:last-child {
    border-bottom: none;
}

.plan-card .btn {
    margin-top: auto;
}

/* Subscription Form Styling */
.subscription-form .form-control {
    background-color: var(--background);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text);
}

.subscription-form .form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(167, 131, 59, 0.25);
    background-color: var(--background);
    color: var(--text);
}

.subscription-form .form-label {
    color: var(--text);
}

.subscription-form .card.bg-light {
    background-color: var(--background) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.subscription-form .card.bg-light .card-body {
    background-color: transparent;
}

.subscription-form .card.bg-light h6 {
    color: var(--text);
}

.subscription-form .card.bg-light .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Plan Selection Styling */
.plan-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.plan-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-option input[type="radio"] {
    margin: 0;
}

.plan-option label {
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-option .badge {
    font-size: 12px;
    padding: 4px 8px;
}

.plan-option .text-muted {
    font-size: 11px;
    margin-top: 2px;
}

/* Plan Option Cards for Account Page */
.plan-option-card {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.plan-option-card:hover {
    border-color: var(--secondary);
}

.plan-option-card input[type="radio"] {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
}

.plan-option-card input[type="radio"]:checked + .plan-label {
    color: var(--secondary);
}

.plan-option-card:has(input:checked) {
    border-color: var(--secondary);
    background-color: rgba(167, 131, 59, 0.1);
}

.plan-label {
    cursor: pointer;
    margin: 0;
    width: 100%;
}

.plan-info h6 {
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 600;
}

.plan-info .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 5px;
}

.plan-info .price span {
    font-size: 0.9rem;
    font-weight: normal;
    opacity: 0.8;
}

.plan-info p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 14px;
}

.badge-save {
    background-color: var(--primary) !important;
    color: var(--text) !important;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-top: 5px;
    display: inline-block;
}

/* Plan Pricing for New Subscription */
.plan-pricing {
    margin: 15px 0;
}

.plan-pricing .plan-option {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.plan-pricing .plan-option:hover {
    border-color: var(--secondary);
}

.plan-pricing .plan-option input[type="radio"]:checked + label {
    color: var(--secondary);
}

.plan-pricing .plan-option:has(input:checked) {
    border-color: var(--secondary);
    background-color: rgba(167, 131, 59, 0.1);
}

.plan-pricing .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary);
}

.plan-pricing .price span {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Order Summary Updates */
.order-summary {
    background-color: var(--background) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.order-summary .card-body {
    background-color: transparent !important;
}

.order-summary h6 {
    color: var(--text) !important;
}

.order-summary .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.order-summary span,
.order-summary div,
.order-summary .d-flex span {
    color: var(--text) !important;
}

.order-summary .fw-bold {
    color: var(--text) !important;
}

.order-summary small {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Credit Card Field Styling */
#cardElementUpgrade,
#cardElementNew,
#cardElementUpdate,
#cardElement {
    background-color: var(--background) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 6px !important;
    padding: 12px !important;
    transition: border-color 0.3s ease !important;
}

#cardElementUpgrade:focus-within,
#cardElementNew:focus-within,
#cardElementUpdate:focus-within,
#cardElement:focus-within {
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 0.2rem rgba(167, 131, 59, 0.25) !important;
}

/* Credit Card Error Messages */
#cardErrorsUpgrade,
#cardErrorsNew,
#cardErrorsUpdate,
#cardErrors {
    color: #ff6b6b !important;
    font-size: 14px;
    margin-top: 8px;
}

/* Ensure all text in subscription forms is white */
.subscription-form-container,
.subscription-form-container * {
    color: var(--text) !important;
}

.subscription-form-container .text-muted,
.subscription-form-container small {
    color: rgba(255, 255, 255, 0.6) !important;
}

.subscription-form-container h4,
.subscription-form-container h5,
.subscription-form-container h6 {
    color: var(--text) !important;
}

/* Plan selection text */
.plan-selection h5,
.plan-selection span,
.plan-selection div {
    color: var(--text) !important;
}

/* Billing info text */
#upgradeBillingInfo,
#newBillingInfo {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Modal styling for dark theme */
.modal-content {
    background-color: var(--accent) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--text) !important;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    background-color: var(--accent) !important;
}

.modal-body {
    background-color: var(--accent) !important;
    color: var(--text) !important;
}

.modal-title {
    color: var(--text) !important;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    background-color: var(--accent) !important;
}

/* Update Payment Modal specific styling */
#updatePaymentModal .form-control,
#cancelMembershipModal .form-control {
    background-color: var(--background) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: var(--text) !important;
}

#updatePaymentModal .form-control:focus,
#cancelMembershipModal .form-control:focus {
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 0.2rem rgba(167, 131, 59, 0.25) !important;
    background-color: var(--background) !important;
    color: var(--text) !important;
}

#updatePaymentModal .form-label,
#cancelMembershipModal .form-label {
    color: var(--text) !important;
}

/* Admin Styles */
.stripe-mode-indicator {
    padding: 10px 15px;
    border-radius: 5px;
    margin: 15px 0;
    font-weight: bold;
}

.stripe-mode-indicator.test-mode {
    background-color: #e7f3ff;
    border: 1px solid #b3d9ff;
    color: #0066cc;
}

.stripe-mode-indicator.live-mode {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.stripe-mode-indicator .description {
    display: block;
    font-weight: normal;
    font-size: 14px;
    margin-top: 5px;
}

.ideavezy-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.ideavezy-stat-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ideavezy-stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #666;
}

.ideavezy-stat-card .stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #2271b1;
    margin: 0;
}

/* Member Thank You Page Styles */
.ideavezy-member-thankyou {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.ideavezy-member-thankyou .thankyou-content {
    background: none;
    border-radius: 12px;
    padding: 60px 40px;
    box-shadow: none;
    border: none;
}

.ideavezy-member-thankyou .thankyou-icon {
    margin-bottom: 30px;
}

.ideavezy-member-thankyou .thankyou-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.ideavezy-member-thankyou .thankyou-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.ideavezy-member-thankyou .thankyou-message .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: white;
    margin-bottom: 20px;
}

.ideavezy-member-thankyou .member-info .card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
}

.ideavezy-member-thankyou .member-info .card-body {
    padding: 25px;
    background: transparent;
}

.ideavezy-member-thankyou .member-info h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.ideavezy-member-thankyou .member-info p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.ideavezy-member-thankyou .member-info p:last-child {
    margin-bottom: 0;
}

.ideavezy-member-thankyou .thankyou-actions {
    margin-top: 50px;
}

.ideavezy-member-thankyou .thankyou-actions .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
}

.ideavezy-member-thankyou .thankyou-actions .btn i {
    color: #f4d03f;
}

.ideavezy-member-thankyou .thankyou-actions .btn-primary {
    background: var(--secondary);
    color: white;
}

.ideavezy-member-thankyou .thankyou-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(167, 131, 59, 0.4);
    background: #b8944a;
    color: white;
}

.ideavezy-member-thankyou .thankyou-actions .btn-success {
    background: var(--secondary);
    color: white;
}

.ideavezy-member-thankyou .thankyou-actions .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(167, 131, 59, 0.4);
    background: #b8944a;
    color: white;
}

.ideavezy-member-thankyou .thankyou-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.ideavezy-member-thankyou .thankyou-footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.ideavezy-member-thankyou .thankyou-footer a {
    color: var(--secondary);
    text-decoration: none;
}

.ideavezy-member-thankyou .thankyou-footer a:hover {
    color: #b8944a;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ideavezy-member-thankyou {
        padding: 20px 15px;
    }
    
    .ideavezy-member-thankyou .thankyou-content {
        padding: 40px 25px;
    }
    
    .ideavezy-member-thankyou .thankyou-title {
        font-size: 2rem;
    }
    
    .ideavezy-member-thankyou .thankyou-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .ideavezy-member-thankyou .thankyou-actions .btn:last-child {
        margin-bottom: 0;
    }
}

/* Cancelled Membership Styles */
.membership-info .plan-name.cancelled {
    color: #dc3545;
    text-decoration: line-through;
    opacity: 0.7;
}

.membership-info .plan-status.cancelled {
    background-color: #f8d7da;
    color: #721c24;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.membership-info .expiry-date {
    color: #dc3545;
    font-weight: 600;
    margin: 10px 0;
    font-size: 1rem;
}

.membership-info .cancellation-note {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.membership-info .membership-status h4 {
    color: #dc3545;
    margin-bottom: 20px;
}

.membership-info .plan-details.cancelled {
    border-left: 4px solid #dc3545;
    padding-left: 15px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
} 