
/* Payment Plans Styling */
.subscription-status-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subscription-info h3 {
    margin: 0 0 10px 0;
    color: white;
}

.plan-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.plan-features .feature {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

.premium-badge {
    background: #ffd700;
    color: #000;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
}

/* Plans Grid */
.payment-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.payment-plan-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.payment-plan-card:hover {
    border-color: #007cba;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.payment-plan-card.featured {
    border-color: #007cba;
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
}

.plan-header {
    margin-bottom: 20px;
}

.plan-header h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.plan-price {
    font-size: 2em;
    font-weight: bold;
    color: #007cba;
    margin: 10px 0;
}

.plan-price small {
    font-size: 0.4em;
    color: #666;
    display: block;
}

.plan-description {
    margin-bottom: 25px;
    color: #666;
}

.plan-features-list {
    text-align: left;
    margin-bottom: 30px;
}

.feature-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.feature-item .dashicons {
    color: #4CAF50;
    margin-right: 10px;
}

.plan-actions {
    margin-top: auto;
}

/* Plans Table */
.plans-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.plans-table th,
.plans-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.plans-table th {
    background: #f8f9fa;
    font-weight: bold;
}

.plans-table .free-plan {
    background: #f8f9fa;
}

.plans-table .premium-plan {
    background: #007cba;
    color: white;
}

/* Payment Gateway Options */
.gateway-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.gateway-option input[type="radio"] {
    display: none;
}

.gateway-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.gateway-option label:hover {
    border-color: #007cba;
}

.gateway-option input[type="radio"]:checked + label {
    border-color: #007cba;
    background: #f0f8ff;
}

.gateway-option img {
    height: 40px;
    margin-bottom: 10px;
}

/* Current Plan Alert */
.current-plan-alert {
    background: #e3f2fd;
    border: 1px solid #007cba;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.current-plan-alert h3 {
    margin: 0 0 10px 0;
    color: #007cba;
}

/* Admin Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.plan-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    background: white;
}

.plan-card.free-plan {
    border-color: #28a745;
}

.plan-card.premium-plan {
    border-color: #007cba;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.plan-header h3 {
    margin: 0;
    color: #333;
}

.plan-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #007cba;
}

.plan-features {
    margin: 20px 0;
}

.plan-features .feature {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.feature-value.active {
    color: #28a745;
    font-weight: bold;
}

.feature-value.inactive {
    color: #dc3545;
    font-weight: bold;
}

.plan-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Payment Messages */
.payment-messages {
    margin: 15px 0;
}

.message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
}

.message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .subscription-status-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .plan-features {
        justify-content: center;
    }
    
    .payment-plans-grid {
        grid-template-columns: 1fr;
    }
    
    .gateway-options {
        grid-template-columns: 1fr;
    }
    
    .plans-table {
        font-size: 0.9em;
    }
    
    .plans-table th,
    .plans-table td {
        padding: 10px 5px;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Styling */
.attendance-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group label.required::after {
    content: " *";
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.form-text {
    font-size: 0.875em;
    color: #6c757d;
    margin-top: 4px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    margin: 0;
}

.form-check-label {
    margin: 0;
    font-weight: normal;
}

.form-actions {
    margin-top: 25px;
    text-align: right;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: #007cba;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #1e7e34;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #bd2130;
}

.btn-outline-primary {
    background: transparent;
    color: #007cba;
    border: 1px solid #007cba;
}

.btn-outline-primary:hover {
    background: #007cba;
    color: white;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: block;
}

.modal-dialog {
    margin: 10% auto;
    max-width: 500px;
    width: 90%;
}

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h5 {
    margin: 0;
    font-size: 1.25rem;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.btn-close:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Loading States */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 0.8rem;
    height: 0.8rem;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Alert Styling */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}


/* Enhanced Subscription Status Card */
.subscription-status-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.subscription-status-card.free {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.subscription-status-card.premium {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.subscription-status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
}

.subscription-info {
    position: relative;
    z-index: 2;
    flex: 1;
}

.plan-header h3 {
    margin: 0 0 8px 0;
    color: white;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-header h3 .dashicons {
    font-size: 1.2em;
    width: auto;
    height: auto;
}

.plan-limits {
    font-size: 0.95em;
    opacity: 0.9;
    margin-bottom: 10px;
}

.upgrade-cta {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 4px solid #ffd700;
}

.upgrade-cta p {
    margin: 0;
    font-size: 0.9em;
}

.subscription-actions {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Premium Button */
.btn-premium {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    color: #000;
}

.btn-premium.btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* Premium Badge */
.premium-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.renewal-info {
    margin-top: 8px;
    opacity: 0.8;
}

/* Premium Features Banner */
.premium-features-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.banner-content h3 {
    margin: 0 0 20px 0;
    font-size: 1.8em;
    color: white;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    font-size: 1em;
}

.feature-item .dashicons {
    color: #ffd700;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
    margin: 0;
    color: #333;
}

.section-actions .btn-link {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.section-actions .btn-link:hover {
    text-decoration: underline;
}

/* Class Cards Enhancements */
.limit-warning {
    color: #ff6b6b;
    font-weight: bold;
    margin-left: 5px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

.empty-state h3 {
    margin: 0 0 15px 0;
    color: #6c757d;
}

.upgrade-suggestion {
    margin-top: 25px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.upgrade-suggestion p {
    margin: 0 0 15px 0;
    color: #495057;
    font-weight: 500;
}

/* Dashboard Widgets */
.dashboard-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.widget {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.widget h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3em;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat .number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 5px;
}

.stat .label {
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-buttons .btn {
    text-align: center;
    padding: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .subscription-status-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .dashboard-widgets {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .class-actions {
        flex-direction: column;
    }
    
    .class-actions .btn {
        margin-bottom: 5px;
    }
}

/* Class Cards Grid */
.class-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.class-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.class-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.class-info h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2em;
}

.class-code {
    background: #007cba;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.class-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 0.9em;
}

.student-count {
    color: #666;
}

.session-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.session-status.active {
    background: #d4edda;
    color: #155724;
}

.session-status.inactive {
    background: #fff3cd;
    color: #856404;
}

.class-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* User Menu Styles */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-greeting {
    cursor: pointer;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-greeting::after {
    content: '▼';
    font-size: 0.7em;
    margin-left: 5px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-menu-item {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.user-menu-item:last-child {
    border-bottom: none;
}

.user-menu-item:hover {
    background: #f8f9fa;
    color: #007cba;
}

.user-menu-item:last-child {
    color: #dc3545;
}

.user-menu-item:last-child:hover {
    background: #f8d7da;
}

/* Make sure the header actions are properly aligned */
.header-user-actions {
    display: flex;
    align-items: center;
}

.attendance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.header-user-info h2 {
    margin: 0 0 5px 0;
    color: #333;
}

.header-user-info p {
    margin: 0;
    color: #666;
}

/* ============================================
   SPECIFIC FIXES FOR PAYMENT PLANS PAGE
   ============================================ */

.payment-plans-interface .plan-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 15px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    background: #f8f9fa !important;
    padding: 15px 20px !important;
    margin: 0 !important;
}

.payment-plans-interface .plan-header h3 {
    margin: 0 !important;
    color: #333 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.payment-plans-interface .plan-price {
    font-size: 1.5em !important;
    font-weight: bold !important;
    color: #007cba !important;
    margin: 0 !important;
}

.payment-plans-interface .plan-card.free-plan .plan-price {
    color: #28a745 !important;
}

.payment-plans-interface .plan-description {
    padding: 15px 20px !important;
    margin: 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.payment-plans-interface .plan-description p {
    margin: 0 !important;
    color: #555 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.payment-plans-interface .plan-features {
    padding: 15px 20px !important;
    margin: 0 !important;
}

.payment-plans-interface .plan-features .feature {
    display: flex !important;
    justify-content: space-between !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #f5f5f5 !important;
    margin: 0 !important;
}

.payment-plans-interface .plan-actions {
    display: flex !important;
    gap: 10px !important;
    margin-top: 0 !important;
    padding: 15px 20px !important;
    border-top: 1px solid #f0f0f0 !important;
    background: #f8f9fa !important;
}

/* Ensure the grid layout works */
.payment-plans-interface .plans-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 25px !important;
    margin-top: 30px !important;
}

.payment-plans-interface .plan-card {
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    padding: 0 !important; /* Remove padding from card, apply to children instead */
    background: white !important;
    overflow: hidden !important;
}

.payment-plans-interface .plan-card.free-plan {
    border-color: #28a745 !important;
}

.payment-plans-interface .plan-card.premium-plan {
    border-color: #007cba !important;
}

/* ============================================
   PAYMENT PLANS PAGE SPECIFIC FIXES
   ============================================ */

/* Force proper display for plan cards */
.payment-plans-interface .plans-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 25px !important;
    margin-top: 20px !important;
}

.payment-plans-interface .plan-card {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    background: #fff !important;
    overflow: hidden !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 350px !important;
}

/* Header styles */
.payment-plans-interface .plan-card .plan-header {
    background: #f8f9fa !important;
    padding: 20px !important;
    margin: 0 !important;
    border-bottom: 1px solid #eee !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.payment-plans-interface .plan-card .plan-header h3 {
    margin: 0 !important;
    padding: 0 !important;
    color: #333 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    flex: 1 !important;
}

.payment-plans-interface .plan-card .plan-price {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #2271b1 !important;
    white-space: nowrap !important;
}

/* Description styles */
.payment-plans-interface .plan-card .plan-description {
    padding: 20px !important;
    margin: 0 !important;
    border-bottom: 1px solid #eee !important;
}

.payment-plans-interface .plan-card .plan-description p {
    margin: 0 !important;
    padding: 0 !important;
    color: #666 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Features styles */
.payment-plans-interface .plan-card .plan-features {
    padding: 20px !important;
    margin: 0 !important;
    flex: 1 !important;
}

.payment-plans-interface .plan-card .plan-features .feature {
    display: flex !important;
    justify-content: space-between !important;
    margin-bottom: 12px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #f5f5f5 !important;
}

.payment-plans-interface .plan-card .plan-features .feature:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.payment-plans-interface .plan-card .plan-features .feature-label {
    color: #666 !important;
    font-weight: 500 !important;
}

.payment-plans-interface .plan-card .plan-features .feature-value {
    color: #333 !important;
    font-weight: 600 !important;
}

.payment-plans-interface .plan-card .plan-features .feature-value.active {
    color: #28a745 !important;
}

.payment-plans-interface .plan-card .plan-features .feature-value.inactive {
    color: #dc3545 !important;
}

/* Actions styles */
.payment-plans-interface .plan-card .plan-actions {
    padding: 20px !important;
    margin: 0 !important;
    border-top: 1px solid #eee !important;
    background: #f8f9fa !important;
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

/* Free vs Premium styling */
.payment-plans-interface .plan-card.free-plan {
    border-top: 4px solid #28a745 !important;
}

.payment-plans-interface .plan-card.free-plan .plan-price {
    color: #28a745 !important;
}

.payment-plans-interface .plan-card.premium-plan {
    border-top: 4px solid #2271b1 !important;
}

/* Form section fixes */
.payment-plans-interface .plan-form-section {
    background: #fff !important;
    padding: 25px !important;
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    margin-bottom: 30px !important;
}

.payment-plans-interface .plan-form-section h2 {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    color: #333 !important;
    font-size: 24px !important;
    font-weight: 600 !important;
}

/* Ensure proper layout on the page */
.payment-plans-interface {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 40px !important;
    margin-top: 20px !important;
}

.payment-plans-interface > * {
    flex: 1 !important;
    min-width: 300px !important;
}

/* Make sure text is visible */
.payment-plans-interface * {
    color: inherit !important;
    background-color: transparent !important;
}