/* Subscription Portal Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

.totp-subscription-portal {
    max-width: 1200px;
    margin: 40px auto;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    padding: 20px;
}

.portal-header {
    text-align: center;
    background: #fe6401;
    color: white;
    padding: 30px;
    border-radius: 15px 15px 0 0;
    margin-bottom: 20px;
}

.portal-header h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
    color: white;
}

.portal-header p {
    margin: 0;
    opacity: 0.9;
}

.portal-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 10px 20px;
    background: #fe6401;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.logout-btn {
    background: #f44336 !important;
    color: white !important;
    margin-left: auto;
}

.logout-btn:hover {
    background: #da190b !important;
}

.portal-messages {
    margin-bottom: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.msg {
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.msg-info {
    background: #e3f2fd;
    color: #1976d2;
    border-left: 4px solid #fe6401;
}

.msg-success {
    background: #e8f5e9;
    color: #388e3c;
    border-left: 4px solid #fe6401;
}

.msg-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.portal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Login Form */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.login-form h3 {
    margin-bottom: 20px;
    color: #1f2937;
    font-size: 24px;
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
    background: white;
    color: #1f2937;
}

.login-form input::placeholder {
    color: #9ca3af;
}

.login-form input:focus {
    outline: none;
    border-color: white;
}

.login-form p {
    color: #1f2937;
}

.login-form a {
    color: white;
}

.forgot-form, .register-form {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.forgot-form h3, .register-form h3 {
    color: #1f2937;
    margin-bottom: 15px;
}

.forgot-form p, .register-form p {
    color: #1f2937;
}

.forgot-form input, .register-form input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    background: white;
    color: #1f2937;
}

.forgot-form input::placeholder, .register-form input::placeholder {
    color: #9ca3af;
}

.forgot-form input:focus, .register-form input:focus {
    outline: none;
    border-color: white;
}

.forgot-form a, .register-form a {
    color: white;
}

/* Subscriptions List */
.subscriptions-list h3 {
    margin-bottom: 20px;
    color: #1f2937;
    font-size: 24px;
}

.subscription-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
    background: white;
}

.subscription-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.subscription-card.status-active {
    border-left: 6px solid #fe6401;
}

.subscription-card.status-pending {
    border-left: 6px solid #FF9800;
}

.subscription-card.status-expired {
    border-left: 6px solid #f44336;
}

.subscription-card.status-cancelled {
    border-left: 6px solid #9E9E9E;
    opacity: 0.7;
}

.sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.sub-header h4 {
    margin: 0;
    font-size: 20px;
    color: #1f2937;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    background: #f5f5f5;
    color: #1f2937;
}

.status-active .status-badge {
    background: #fe6401;
    color: white;
}

.status-pending .status-badge {
    background: #FF9800;
    color: white;
}

.status-expired .status-badge {
    background: #f44336;
    color: white;
}

.sub-details p {
    margin: 8px 0;
    color: #374151;
}

.pending-note {
    color: #FF9800 !important;
    font-weight: 600;
}

.sub-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Plans Grid */
.plans-grid h3 {
    margin-bottom: 25px;
    color: #1f2937;
    font-size: 24px;
}

.plans-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-plans {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
}

.service-plans h4 {
    margin: 0 0 15px 0;
    color: white;
    font-size: 20px;
    text-align: center;
}

.plan-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.plan-card:hover {
    border-color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.plan-header {
    text-align: center;
    margin-bottom: 15px;
}

.plan-header h5 {
    margin: 0 0 10px 0;
    color: #1f2937;
    font-size: 18px;
}

.plan-price {
    font-size: 28px;
    font-weight: bold;
    color: white;
}

.plan-details {
    margin-bottom: 15px;
}

.plan-details p {
    margin: 8px 0;
    color: #6b7280;
}

.plan-description {
    font-size: 14px;
    font-style: italic;
}

.plan-actions {
    text-align: center;
}

/* Payment Instructions */
.payment-instructions h3 {
    margin-bottom: 20px;
    color: #1f2937;
    font-size: 24px;
}

.payment-box {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.payment-box h4 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 20px;
}

.bank-details {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.bank-details p {
    margin: 10px 0;
    font-size: 16px;
    color: #374151;
}

.bank-details p strong {
    color: #a55014;
}

.account-number {
    font-size: 24px;
    font-weight: bold;
    color: #040a30;
    font-family: 'Courier New', monospace;
}

.amount-to-pay {
    font-size: 20px;
    color: #a55014;
    font-weight: bold;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed #e2e8f0;
}

.payment-steps h5 {
    margin: 15px 0 10px 0;
    color: #1f2937;
}

.payment-steps ol {
    padding-left: 20px;
}

.payment-steps li {
    margin: 8px 0;
    color: #6b7280;
}

.payment-note {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.payment-note p {
    margin: 5px 0;
    color: #856404;
}

/* Buttons */
.btn-primary, .btn-subscribe, .btn-renew, .btn-cancel, .btn-copy, .done-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary, .done-btn {
    background: #fe6401;
    color: white;
    width: 100%;
}

.btn-primary:hover, .done-btn:hover {
    background: #fe6401;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 10, 48, 0.4);
}

.btn-subscribe {
    background: #fe6401;
    color: white;
    width: 100%;
}

.btn-subscribe:hover {
    background: #fe6401;
    color: white;
}

.btn-renew {
    background: #fe6401;
    color: white;
}

.btn-renew:hover {
    background: #fe6401;
    color: #1f2937;
}

.btn-cancel {
    background: #f44336;
    color: white;
}

.btn-cancel:hover {
    background: #da190b;
}

.btn-delete-pending {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-delete-pending:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-delete-pending:active {
    transform: translateY(0);
}

.pending-help {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

.resubscribe-prompt {
    margin-top: 15px;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 8px;
    text-align: center;
}

.btn-copy {
    background: #fe6401;
    color: white;
    padding: 6px 12px;
    font-size: 14px;
}

.btn-copy:hover {
    background: #fe6401;
    color: white;
}

.btn-disabled {
    background: #9E9E9E;
    color: #1f2937;
    cursor: not-allowed;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state p {
    font-size: 18px;
    color: #999;
    margin-bottom: 20px;
}

.browse-plans-btn {
    background: #fe6401;
    color: #1f2937;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.browse-plans-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .totp-subscription-portal {
        padding: 10px;
    }
    
    .portal-header {
        padding: 20px;
    }
    
    .portal-header h2 {
        font-size: 24px;
    }
    
    .plans-container {
        grid-template-columns: 1fr;
    }
    
    .sub-actions {
        flex-direction: column;
    }
}

/* Paused Status */
.subscription-card.status-paused {
    border-left: 6px solid #9E9E9E;
    opacity: 0.8;
}

.status-paused .status-badge {
    background: #f5f5f5;
    color: #757575;
}

.paused-note {
    color: #757575 !important;
    font-weight: 600;
}

.expired-note {
    color: #f44336 !important;
    font-weight: 600;
}

/* Pause Button */
.btn-pause {
    background: #9E9E9E;
    color: #1f2937;
}

.btn-pause:hover {
    background: #757575;
}

/* Days Overdue Highlight */
.expired-note strong {
    color: #d32f2f;
}

/* Receipt Upload Section */
.receipt-upload-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px dashed #fe6401;
}

.receipt-upload-section h5 {
    color: #1f2937;
    margin-bottom: 10px;
}

.receipt-upload-section input[type="file"] {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
}

.btn-secondary {
    background: #fe6401;
    color: #1f2937;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-secondary:hover {
    background: #0a1550;
}

.btn-secondary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Cancel button styling */
.btn-cancel {
    background: #ef4444;
    color: #1f2937;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* View credentials button */
.btn-view-credentials {
    background: #fe6401;
    color: #1f2937;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-view-credentials:hover {
    background: #0a1550;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 10, 48, 0.4);
}

/* Cancelled status note */
.cancelled-note {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 10px;
    border-radius: 5px;
    color: #991b1b;
    font-weight: bold;
}

.status-cancelled .status-badge {
    background: #ef4444;
}

/* Payment Form Section */
.payment-form-section {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px solid #fe6401;
}

.payment-form-section h5 {
    color: #1f2937;
    margin-bottom: 20px;
    font-size: 18px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #1f2937;
}

.form-group input[type="text"],
.form-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus {
    border-color: white;
    outline: none;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 13px;
}

.form-group input[type="file"] {
    padding: 10px;
    background: white;
    cursor: pointer;
}

/* Registration Form */
.register-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.register-form h3 {
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
}

.register-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
}

.register-form input:focus {
    border-color: white;
    outline: none;
}

.register-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.register-link a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

.forgot-link {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 13px;
}

.forgot-link a {
    color: #6b7280;
    text-decoration: none;
}

.forgot-link a:hover {
    color: white;
    text-decoration: underline;
}

/* Forgot Password Form */
.forgot-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.forgot-form h3 {
    color: #1f2937;
    margin-bottom: 10px;
    text-align: center;
}

.forgot-form p {
    text-align: center;
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 14px;
}

.forgot-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
}

.forgot-form input:focus {
    border-color: white;
    outline: none;
}

/* OTP Chatbot Button */
.btn-otp-chatbot {
    background: #fe6401;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-otp-chatbot:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 10, 48, 0.4);
}

/* Expired Subscription Buttons */
.btn-view-credentials-expired,
.btn-otp-chatbot-expired {
    background: #ef4444;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.btn-view-credentials-expired::before,
.btn-otp-chatbot-expired::before {
    content: '🔒 ';
}

.btn-view-credentials-expired:hover,
.btn-otp-chatbot-expired:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Highlight Renew Button for Expired */
.highlight-renew {
    background: #f59e0b;
    animation: pulseRenew 2s infinite;
}

.highlight-renew:hover {
    background: #d97706;
}

@keyframes pulseRenew {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Enhanced Plan Description */
.plan-description {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #fe6401;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.plan-details p {
    margin: 8px 0;
    font-size: 14px;
}

/* WhatsApp Channel Banner Styles */
.whatsapp-channel-banner {
    margin: 0 0 20px 0;
}

.whatsapp-channel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #25D366;
    color: white !important;
    padding: 16px 25px;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-channel-btn:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white !important;
}

.whatsapp-channel-banner-inline {
    margin: 15px 0 20px 0;
}

.whatsapp-channel-btn-small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: white !important;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25);
}

.whatsapp-channel-btn-small:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.35);
    color: white !important;
}

.wa-icon {
    font-size: 20px;
}

.wa-text {
    flex: 1;
    text-align: center;
}

.wa-arrow {
    font-size: 18px;
}

/* Enhanced Plans Grid */
.service-plans-enhanced {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 2px solid #e8e8e8;
    transition: all 0.3s;
}

.service-plans-enhanced:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: white;
}

.service-header {
    background: #fe6401;
    color: #1f2937;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-icon {
    font-size: 32px;
    background: rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-header h4 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.plans-list {
    padding: 20px;
}

/* Enhanced Plan Card */
.plan-card-enhanced {
    background: white;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.plan-card-enhanced:hover {
    border-color: white;
    box-shadow: 0 6px 20px rgba(165, 80, 20, 0.15);
    transform: translateY(-2px);
}

.plan-card-enhanced.subscribed {
    border-color: #1f2937;
    background: #f8fafc;
}

.plan-ribbon {
    position: absolute;
    top: 12px;
    right: -30px;
    background: #fe6401;
    color: #1f2937;
    padding: 5px 40px;
    font-size: 10px;
    font-weight: bold;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
}

.plan-card-enhanced.subscribed .plan-ribbon {
    background: #fe6401;
}

.plan-header-enhanced {
    padding: 20px 20px 15px;
    text-align: center;
    border-bottom: 2px dashed #e8e8e8;
}

.plan-header-enhanced h5 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #1f2937;
    font-weight: 600;
}

.plan-price-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    background: #fe6401;
    color: #1f2937;
    padding: 10px 25px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(165, 80, 20, 0.3);
}

.plan-price-tag .currency {
    font-size: 16px;
    font-weight: 600;
}

.plan-price-tag .amount {
    font-size: 28px;
    font-weight: 800;
}

.plan-features {
    padding: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.feature-item.premium {
    background: #fef3c7;
    border: 1px solid #f59e0b;
}

.feature-item .feature-icon {
    font-size: 18px;
}

.feature-item .feature-text {
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
}

/* Description Toggle */
.plan-description-enhanced {
    padding: 0 20px 15px;
}

.description-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f0f4f8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.description-toggle:hover {
    background: #e2e8f0;
}

.toggle-icon {
    font-size: 16px;
}

.toggle-text {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
}

.toggle-arrow {
    font-size: 12px;
    color: #718096;
    transition: transform 0.3s;
}

.description-content {
    padding: 15px;
    margin-top: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #fe6401;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.description-content ul, .description-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.description-content li {
    margin: 5px 0;
}

.description-content strong {
    color: #1f2937;
}

.description-content p {
    margin: 10px 0;
}

/* Enhanced Subscribe Button */
.plan-actions-enhanced {
    padding: 0 20px 20px;
}

.btn-subscribe-enhanced {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: #fe6401;
    color: #1f2937;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-subscribe-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    background: #fe6401;
}

.btn-subscribed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: #e2e8f0;
    color: #64748b;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-channel-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .whatsapp-channel-btn-small {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .wa-text {
        font-size: 12px;
    }
    
    .service-header {
        padding: 15px 20px;
    }
    
    .service-header h4 {
        font-size: 18px;
    }
    
    .plan-price-tag .amount {
        font-size: 24px;
    }
}

/* ========================================
   REVAMPED ADD NEW SUBSCRIPTION PAGE
   ======================================== */

.plans-page-revamped {
    padding: 0;
}

.plans-hero {
    text-align: center;
    padding: 30px 20px;
    background: #fe6401;
    border-radius: 16px;
    margin-bottom: 25px;
}

.plans-hero h2 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.plans-hero p {
    color: white;
    font-size: 15px;
    margin: 0;
    opacity: 0.95;
}

.plans-services-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-block {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.service-block-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 25px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.service-icon-wrapper {
    width: 56px;
    height: 56px;
    background: #fe6401;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.service-info h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.plans-count {
    font-size: 13px;
    color: #6b7280;
}

.service-plans-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding: 25px;
}

.plan-card-new {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.plan-card-new:hover {
    border-color: white;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(254, 100, 1, 0.15);
}

.plan-card-new.is-subscribed {
    border-color: #1f2937;
    background: #f0fdf4;
}

.subscribed-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: #fe6401;
    color: #1f2937;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 0 14px 0 14px;
    letter-spacing: 0.5px;
}

.plan-name {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.plan-price-new {
    margin-bottom: 8px;
}

.plan-price-new .currency-symbol {
    font-size: 14px;
    color: #6b7280;
    vertical-align: top;
}

.plan-price-new .price-amount {
    font-size: 36px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
}

.plan-duration {
    font-size: 14px;
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 6px 16px;
    background: rgba(254, 100, 1, 0.1);
    border-radius: 20px;
    display: inline-block;
}

.plan-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
}

.plan-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #4b5563;
    border-bottom: 1px solid #f3f4f6;
}

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

.plan-desc-toggle {
    margin-bottom: 16px;
}

.desc-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 auto;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.desc-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.desc-btn .arrow {
    font-weight: bold;
    font-size: 16px;
}

.plan-desc-content {
    display: none;
    text-align: left;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
}

.btn-plan-action {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-plan-action.subscribe {
    background: #fe6401;
    color: white;
}

.btn-plan-action.subscribe:hover {
    background: #e55a00;
    transform: scale(1.02);
}

.btn-plan-action.subscribed {
    background: #fe6401;
    color: #1f2937;
    cursor: default;
}

/* Plan Description Box - HTML Support */
.plan-description-box {
    margin: 16px 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.plan-description-box .desc-header {
    background: #fe6401;
    color: white;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-description-box .desc-body {
    padding: 15px;
    background: #f9fafb;
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
}

/* HTML content styling within description */
.plan-description-box .desc-body h1,
.plan-description-box .desc-body h2,
.plan-description-box .desc-body h3,
.plan-description-box .desc-body h4 {
    color: #1f2937;
    margin: 10px 0 8px 0;
}

.plan-description-box .desc-body h3 {
    font-size: 15px;
}

.plan-description-box .desc-body h4 {
    font-size: 14px;
}

.plan-description-box .desc-body p {
    margin: 8px 0;
}

.plan-description-box .desc-body ul,
.plan-description-box .desc-body ol {
    margin: 10px 0;
    padding-left: 20px;
}

.plan-description-box .desc-body li {
    margin: 5px 0;
}

.plan-description-box .desc-body strong,
.plan-description-box .desc-body b {
    color: #1f2937;
}

.plan-description-box .desc-body a {
    color: white;
    text-decoration: underline;
}

.plan-description-box .desc-body code {
    background: #e5e7eb;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.plan-description-box .desc-body blockquote {
    border-left: 3px solid #fe6401;
    padding-left: 15px;
    margin: 10px 0;
    color: #6b7280;
    font-style: italic;
}

/* Enhanced Hero Section */
.plans-hero .hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.plans-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.plans-hero .stat {
    text-align: center;
}

.plans-hero .stat-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: white;
}

.plans-hero .stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Plan Card Enhancements */
.plan-card-new.popular {
    border-color: #fe6401;
    box-shadow: 0 8px 30px rgba(254, 100, 1, 0.2);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #fe6401;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.plan-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 15px 0;
}

.plan-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-benefits li span {
    flex: 1;
}

.btn-plan-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-plan-action svg {
    flex-shrink: 0;
}

/* Enhanced Footer Info */
.plans-footer-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 30px 20px;
    margin-top: 30px;
    background: white;
    border-radius: 16px;
    flex-wrap: wrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-align: center;
}

.info-item .info-icon {
    width: 50px;
    height: 50px;
    background: #fff3e0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 640px) {
    .plans-hero h2 {
        font-size: 22px;
    }
    
    .plans-hero .hero-stats {
        gap: 20px;
    }
    
    .plans-hero .stat-num {
        font-size: 22px;
    }
    
    .service-block-header {
        padding: 15px 20px;
    }
    
    .service-plans-row {
        padding: 15px;
        gap: 15px;
    }
    
    .plan-card-new {
        padding: 20px;
    }
    
    .plan-price-new .price-amount {
        font-size: 28px;
    }
    
    .plans-footer-info {
        gap: 20px;
        padding: 20px;
    }
    
    .info-item {
        font-size: 12px;
        min-width: 80px;
    }
    
    .info-item .info-icon {
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   REFERRAL SECTION STYLES
   ======================================== */

.referral-section {
    padding: 0;
}

.referral-hero {
    text-align: center !important;
    padding: 36px 28px !important;
    background: linear-gradient(135deg, #fe6401 0%, #d44e00 50%, #b03e00 100%) !important;
    border-radius: 18px !important;
    margin-bottom: 24px !important;
    color: #ffffff !important;
    position: relative !important;
    overflow: hidden !important;
}

.referral-hero h2 {
    color: #ffffff !important;
    font-family: 'Sora', 'Segoe UI', Arial, sans-serif !important;
    font-size: 30px !important;
    font-weight: 900 !important;
    margin: 0 0 10px 0 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    position: relative !important;
    z-index: 1 !important;
}

.referral-hero p {
    color: rgba(255, 255, 255, 0.96) !important;
    font-family: 'Sora', 'Segoe UI', Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

.referral-code-box {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.code-label {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.code-display-large {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.code-text {
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    background: #f8fafc;
    padding: 15px 25px;
    border-radius: 10px;
    flex: 1;
    text-align: center;
    letter-spacing: 2px;
}

.copy-code-btn, .copy-link-btn {
    padding: 15px 25px;
    background: #fe6401;
    color: #1f2937;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-code-btn:hover, .copy-link-btn:hover {
    background: #fe6401;
}

.referral-link-box {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.referral-link-box label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 10px;
}

.link-input-group {
    display: flex;
    gap: 10px;
}

.referral-link-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: #f9fafb;
}

.referral-stats {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.referral-stats h4 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.stat-box.highlight {
    background: #fe6401;
}

.stat-box.highlight .stat-value,
.stat-box.highlight .stat-label {
    color: #1f2937;
}

.stat-box.highlight .stat-value {
    color: white;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.referral-list {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.referral-list h4 {
    margin: 0 0 20px 0;
    color: #1f2937;
}

.referral-table {
    width: 100%;
    border-collapse: collapse;
}

.referral-table th,
.referral-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.referral-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-completed {
    background: #fe6401;
    color: white;
}

.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.referral-info {
    background: #f8fafc;
    border-radius: 16px;
    padding: 25px;
}

.referral-info h4 {
    margin: 0 0 20px 0;
    color: #1f2937;
}

.info-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-num {
    width: 36px;
    height: 36px;
    background: #fe6401;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text {
    color: #374151;
    font-size: 14px;
}

@media (max-width: 640px) {
    .code-display-large {
        flex-direction: column;
    }
    
    .code-text {
        font-size: 20px;
        width: 100%;
    }
    
    .copy-code-btn {
        width: 100%;
    }
    
    .link-input-group {
        flex-direction: column;
    }
    
    .copy-link-btn {
        width: 100%;
    }
}

/* Duplicate Subscription Warning Styles */
.duplicate-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.duplicate-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.duplicate-warning h3 {
    color: #92400e;
    margin: 0 0 15px 0;
    font-size: 22px;
}

.duplicate-warning p {
    color: #78350f;
    margin: 10px 0;
    line-height: 1.6;
}

.duplicate-help {
    font-size: 14px;
    color: #92400e;
    font-style: italic;
}

.duplicate-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.duplicate-actions .btn-primary {
    background: #040a30;
    color: #fe6401 !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.duplicate-actions .btn-primary:hover {
    background: #0a1245;
    transform: translateY(-2px);
}

.duplicate-actions .btn-secondary {
    background: #25D366;
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.duplicate-actions .btn-secondary:hover {
    background: #128C7E;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Warning message type */
.msg-warning {
    background: #fffbeb;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

/* =====================================================
   SOCIAL LOGIN STYLES
   ===================================================== */

.social-login-section {
    margin-bottom: 25px;
}

.social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.social-divider span {
    padding: 0 15px;
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.social-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.social-btn svg {
    flex-shrink: 0;
}

.google-btn:hover {
    border-color: #4285F4;
    background: #f8faff;
}

.facebook-btn {
    background: #1877F2;
    border-color: #1877F2;
    color: white;
}

.facebook-btn:hover {
    background: #166fe5;
    border-color: #166fe5;
    color: white;
}

.facebook-btn svg {
    fill: white;
}

/* Apple Sign In Button */
.apple-btn {
    background: #000;
    border-color: #000;
    color: white;
}

.apple-btn:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: white;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .social-buttons {
        gap: 10px;
    }
    
    .social-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .social-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* =====================================================
   GOOGLE SIGN-IN BUTTON WRAPPER
   ===================================================== */

.google-signin-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.google-signin-wrapper > div {
    width: 100% !important;
    max-width: 320px;
}

/* Style overrides for Google's rendered button */
.google-signin-wrapper iframe {
    width: 100% !important;
}

/* v10.8 Wallet Tab Styles */
.nav-btn.wallet-btn {
    background: linear-gradient(135deg, #040a30, #1a3a8f);
    color: white;
    border-color: #040a30;
}
.nav-btn.wallet-btn:hover {
    background: linear-gradient(135deg, #0d1a6e, #040a30);
}

/* Wallet balance widget on dashboard home */
.wallet-balance-widget {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #040a30 0%, #1a3a8f 100%);
    color: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.wallet-balance-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4,10,48,0.3);
}
.wbw-label { font-size: 13px; opacity: 0.8; flex-shrink: 0; }
.wbw-amount { font-size: 22px; font-weight: 900; flex: 1; }
.wbw-cta { font-size: 12px; opacity: 0.7; white-space: nowrap; }

/* Wallet portal section */
.wallet-portal-section h3 { color: #040a30; margin-bottom: 20px; }
.wallet-hero-inline {
    background: linear-gradient(135deg, #040a30 0%, #1a3a8f 100%);
    color: white;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 16px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
}
.whi-balance-block { flex: 1; min-width: 180px; }
.whi-label { font-size: 12px; opacity: 0.7; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.whi-amount { font-size: 40px; font-weight: 900; line-height: 1; }
.whi-sub { font-size: 12px; opacity: 0.6; margin-top: 4px; }
.whi-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.whi-stat { background: rgba(255,255,255,0.12); border-radius: 10px; padding: 10px 14px; text-align: center; }
.whi-stat-val { display: block; font-size: 16px; font-weight: 800; }
.whi-stat-lbl { display: block; font-size: 10px; opacity: 0.7; text-transform: uppercase; margin-top: 2px; }
.wallet-actions-inline { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.wallet-inline-btn {
    background: #a55014;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.wallet-inline-btn:hover { background: #7c3b0f; }
.wallet-inline-btn.secondary { background: #f1f5f9; color: #374151; border: 2px solid #e5e7eb; }
.wallet-inline-btn.secondary:hover { background: #e2e8f0; }
.wallet-inline-form {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}
.wallet-inline-form h4 { margin: 0 0 16px 0; color: #040a30; }
.wallet-bank-box {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #065f46;
}
.wallet-info-note {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 10px 14px;
    font-size: 13px;
    color: #1e40af;
    border-radius: 0 6px 6px 0;
    margin-bottom: 14px;
}
.wallet-txn-summary {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}
.w-txn-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.w-txn-row:last-child { border-bottom: none; }
.w-txn-icon-sm { font-size: 20px; flex-shrink: 0; }
.w-txn-lbl { flex: 1; font-size: 13px; font-weight: 600; color: #1e293b; line-height: 1.4; }
.portal-alert { padding: 10px 14px; border-radius: 8px; margin: 10px 0; font-size: 14px; }
.portal-alert.success { background: #d1fae5; color: #065f46; border-left: 4px solid #16a34a; }
.portal-alert.error { background: #fee2e2; color: #991b1b; border-left: 4px solid #dc2626; }

/* ============================================================
   COMPREHENSIVE REFERRAL SECTION (v10.9)
   ============================================================ */
/* Referral hero — consolidated (see also above) */
.referral-hero { text-align:center !important; background:linear-gradient(135deg,#fe6401 0%,#d44e00 50%,#b03e00 100%) !important; color:#ffffff !important; border-radius:18px !important; padding:36px 28px !important; margin-bottom:24px !important; position:relative !important; overflow:hidden !important; }
.referral-hero h2 { margin:0 0 10px 0 !important; font-size:30px !important; font-weight:900 !important; color:#ffffff !important; font-family:'Sora','Segoe UI',Arial,sans-serif !important; text-shadow:0 2px 8px rgba(0,0,0,.3) !important; position:relative !important; z-index:1 !important; }
.referral-hero p { margin:0 !important; font-size:15px !important; font-weight:600 !important; color:rgba(255,255,255,0.96) !important; font-family:'Sora','Segoe UI',Arial,sans-serif !important; position:relative !important; z-index:1 !important; }

.ref-loading { text-align:center; padding:40px; color:#94a3b8; font-size:15px; }

/* Stats Grid */
.ref-stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px; margin-bottom:20px; }
.ref-stat-card { background:white; border-radius:12px; padding:16px; text-align:center; box-shadow:0 2px 10px rgba(0,0,0,.07); border:2px solid transparent; }
.ref-stat-card.highlight { background:linear-gradient(135deg,#fe6401,#ff8c00); color:white; border:none; }
.ref-stat-icon { font-size:22px; margin-bottom:6px; }
.ref-stat-val { font-size:20px; font-weight:900; color:#040a30; line-height:1.1; }
.ref-stat-card.highlight .ref-stat-val { color:white; }
.ref-stat-lbl { font-size:11px; color:#64748b; margin-top:4px; font-weight:600; text-transform:uppercase; letter-spacing:0.5px; }
.ref-stat-card.highlight .ref-stat-lbl { color:rgba(255,255,255,0.85); }

/* Code Card */
.ref-code-card { background:white; border-radius:14px; padding:20px; box-shadow:0 2px 12px rgba(0,0,0,.08); margin-bottom:16px; display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media(max-width:580px) { .ref-code-card { grid-template-columns:1fr; } }
.ref-code-label { font-size:12px; font-weight:700; color:#040a30; text-transform:uppercase; letter-spacing:0.5px; margin-bottom:8px; }
.ref-code-display { display:flex; align-items:center; gap:10px; background:#f8faff; border:2px solid #e5e7eb; border-radius:10px; padding:10px 14px; }
.ref-code-text { font-size:20px; font-weight:900; color:#040a30; letter-spacing:2px; flex:1; }
.ref-copy-btn { background:#040a30; color:white; border:none; border-radius:8px; padding:8px 14px; font-size:12px; font-weight:600; cursor:pointer; white-space:nowrap; transition:background 0.2s; }
.ref-copy-btn:hover { background:#fe6401; }
.ref-link-display { display:flex; align-items:center; gap:8px; }
.ref-link-input { flex:1; border:2px solid #e5e7eb; border-radius:8px; padding:9px 12px; font-size:12px; color:#475569; background:#f8faff; min-width:0; }

/* Share Buttons */
.ref-share-section { background:white; border-radius:14px; padding:18px 20px; box-shadow:0 2px 12px rgba(0,0,0,.08); margin-bottom:16px; }
.ref-share-label { font-size:13px; font-weight:700; color:#040a30; margin-bottom:12px; }
.ref-share-btns { display:flex; gap:8px; flex-wrap:wrap; }
.ref-share-btn { display:inline-flex; align-items:center; gap:6px; padding:9px 16px; border-radius:10px; font-size:13px; font-weight:600; text-decoration:none !important; border:none; cursor:pointer; transition:all 0.2s; }
.ref-share-btn.whatsapp { background:#25D366; color:white !important; }
.ref-share-btn.whatsapp:hover { background:#128C7E; }
.ref-share-btn.twitter { background:#1da1f2; color:white !important; }
.ref-share-btn.twitter:hover { background:#0d8ecf; }
.ref-share-btn.facebook { background:#1877f2; color:white !important; }
.ref-share-btn.facebook:hover { background:#1060c9; }
.ref-share-btn.copy-all { background:#f1f5f9; color:#040a30; }
.ref-share-btn.copy-all:hover { background:#e2e8f0; }

/* Payout Section */
.ref-payout-section { background:white; border-radius:14px; padding:20px; box-shadow:0 2px 12px rgba(0,0,0,.08); margin-bottom:16px; }
.ref-payout-section h4 { margin:0 0 16px 0; color:#040a30; font-size:16px; }
.ref-payout-tabs { display:flex; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
.ref-payout-tab { background:#f1f5f9; border:2px solid #e5e7eb; border-radius:10px; padding:10px 18px; font-size:13px; font-weight:600; cursor:pointer; color:#64748b; transition:all 0.2s; }
.ref-payout-tab.active { background:#040a30; color:white; border-color:#040a30; }
.ref-payout-form { }
.ref-info-note { background:#e3f2fd; color:#1565c0; border-radius:8px; padding:10px 14px; font-size:13px; margin-bottom:12px; }
.ref-info-note.warning { background:#fff3e0; color:#e65100; }
.ref-input { width:100%; padding:10px 14px; border:2px solid #e5e7eb; border-radius:8px; font-size:14px; margin-bottom:10px; box-sizing:border-box; transition:border-color 0.2s; }
.ref-input:focus { outline:none; border-color:#040a30; }
.btn-payout-now { width:100%; background:linear-gradient(135deg,#fe6401,#ff8c00); color:white; border:none; border-radius:10px; padding:13px 20px; font-size:15px; font-weight:700; cursor:pointer; transition:all 0.2s; }
.btn-payout-now:hover { transform:translateY(-2px); box-shadow:0 4px 15px rgba(254,100,1,0.4); }
.btn-payout-now.secondary { background:linear-gradient(135deg,#040a30,#1a3a8f); }
.btn-payout-now.secondary:hover { box-shadow:0 4px 15px rgba(4,10,48,0.4); }
.ref-empty-payout { text-align:center; padding:20px; color:#94a3b8; font-size:14px; }

/* Pending payouts */
.ref-pending-payouts { background:white; border-radius:14px; padding:20px; box-shadow:0 2px 12px rgba(0,0,0,.08); margin-bottom:16px; }
.ref-pending-payouts h4 { margin:0 0 14px 0; color:#040a30; font-size:15px; }
.ref-payout-row { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid #f1f5f9; font-size:13px; flex-wrap:wrap; }
.ref-payout-row:last-child { border-bottom:none; }
.ref-payout-row span:first-child { flex:1; color:#475569; }

/* Referral history */
.ref-history-section { background:white; border-radius:14px; padding:20px; box-shadow:0 2px 12px rgba(0,0,0,.08); margin-bottom:16px; }
.ref-history-section h4 { margin:0 0 14px 0; color:#040a30; font-size:15px; }
.ref-table-wrap { overflow-x:auto; }
.ref-table { width:100%; border-collapse:collapse; font-size:13px; }
.ref-table th { background:#f8faff; color:#040a30; padding:10px 12px; text-align:left; font-weight:700; font-size:12px; text-transform:uppercase; border-bottom:2px solid #e5e7eb; }
.ref-table td { padding:10px 12px; border-bottom:1px solid #f1f5f9; color:#475569; }
.ref-table tr:last-child td { border-bottom:none; }
.ref-status-badge { display:inline-flex; align-items:center; gap:4px; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:700; text-transform:capitalize; }
.ref-status-badge.status-completed, .ref-status-badge.status-paid { background:#d1fae5; color:#065f46; }
.ref-status-badge.status-confirmed { background:#dbeafe; color:#1d4ed8; }
.ref-status-badge.status-pending { background:#fef3c7; color:#92400e; }
.ref-empty-text { text-align:center; padding:20px; color:#94a3b8; font-size:13px; }

/* Leaderboard */
.ref-leaderboard { background:white; border-radius:14px; padding:20px; box-shadow:0 2px 12px rgba(0,0,0,.08); margin-bottom:16px; }
.ref-leaderboard h4 { margin:0 0 14px 0; color:#040a30; font-size:15px; }
.ref-lb-list { display:flex; flex-direction:column; gap:8px; }
.ref-lb-row { display:flex; align-items:center; gap:12px; background:#f8faff; border-radius:10px; padding:10px 14px; }
.ref-lb-row.ref-lb-me { background:linear-gradient(135deg,rgba(254,100,1,0.1),rgba(255,140,0,0.1)); border:2px solid #fe6401; }
.ref-lb-rank { font-size:20px; width:28px; text-align:center; flex-shrink:0; }
.ref-lb-name { flex:1; font-weight:600; color:#040a30; font-size:14px; }
.ref-lb-refs { font-size:12px; color:#64748b; white-space:nowrap; }
.ref-lb-earn { font-weight:800; color:#fe6401; font-size:14px; white-space:nowrap; }

/* How It Works */
.ref-how-works { background:#f8faff; border-radius:14px; padding:20px; margin-bottom:16px; border:2px solid #e5e7eb; }
.ref-how-works h4 { margin:0 0 14px 0; color:#040a30; font-size:15px; }
.ref-steps { display:flex; flex-direction:column; gap:10px; }
.ref-step { display:flex; align-items:flex-start; gap:12px; font-size:13px; color:#475569; }
.ref-step-n { width:26px; height:26px; background:#040a30; color:white; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; flex-shrink:0; }
