/* 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);
}

/* v11.6: Anike AI assistant button — distinct AI-vibe gradient */
.nav-btn.anike-btn {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #fff;
    border-color: #7c3aed;
    position: relative;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
}
.nav-btn.anike-btn:hover {
    background: linear-gradient(135deg, #6d28d9, #db2777);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}
.nav-btn.anike-btn::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    animation: anike-pulse 2.4s infinite;
}
@keyframes anike-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* v11.6: Anike help banner on dashboard */
.anike-help-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #faf5ff 0%, #fef3f9 100%);
    border: 1px solid #e9d5ff;
    border-left: 4px solid #7c3aed;
    border-radius: 14px;
    padding: 16px 20px;
    margin: 12px 0 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.08);
}
.anike-help-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.18);
    border-color: #c4b5fd;
}
.anike-help-banner .anike-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    position: relative;
}
.anike-help-banner .anike-avatar::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #34d399;
    border-radius: 50%;
    border: 2px solid #fff;
}
.anike-help-banner .anike-banner-text {
    flex: 1;
    min-width: 0;
}
.anike-help-banner .anike-banner-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 2px;
}
.anike-help-banner .anike-banner-sub {
    font-size: 13px;
    color: #6b21a8;
    line-height: 1.4;
}
.anike-help-banner .anike-banner-sub strong {
    color: #7c3aed;
    font-weight: 700;
}
.anike-help-banner .anike-banner-cta {
    flex-shrink: 0;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.anike-help-banner .anike-banner-cta:hover {
    background: linear-gradient(135deg, #6d28d9, #db2777);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
    transform: scale(1.03);
}
@media (max-width: 640px) {
    .anike-help-banner {
        flex-wrap: wrap;
        gap: 12px;
    }
    .anike-help-banner .anike-banner-text {
        flex: 1 1 calc(100% - 64px);
    }
    .anike-help-banner .anike-banner-cta {
        flex: 1 1 100%;
        text-align: center;
        padding: 12px 20px;
    }
}

/* 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; }

/* ================================================================
   v12.0.5 — Mobile Responsiveness Improvements
   ================================================================ */

/* General portal container — full width on mobile */
@media (max-width: 600px) {
    .totp-subscription-portal {
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    .portal-header {
        padding: 16px !important;
        border-radius: 0 !important;
    }

    /* Action buttons — stack vertically on small screens */
    .subscription-actions,
    .action-buttons-wrap {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    .btn-renew, .btn-cancel, .btn-view-credentials,
    .btn-otp-chatbot, .btn-reset-otp, .btn-delete-pending,
    .btn-complete-payment, .btn-view-credentials-expired,
    .btn-otp-chatbot-expired, .highlight-renew {
        width: 100% !important;
        text-align: center !important;
        display: block !important;
        margin: 2px 0 !important;
        box-sizing: border-box !important;
    }

    /* Payment instructions — full width, no overflow */
    .payment-instructions,
    .bank-details-card,
    .payment-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px !important;
        box-sizing: border-box !important;
    }

    /* Subscription cards — no horizontal overflow */
    .subscription-card,
    .sub-card {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Portal messages — readable on small screens */
    .portal-messages .portal-message,
    .portal-message {
        font-size: 14px !important;
        padding: 12px 14px !important;
        border-radius: 8px !important;
    }

    /* Plans grid — single column on mobile */
    .plans-grid {
        grid-template-columns: 1fr !important;
    }

    /* Pending payment banner */
    .pending-banner {
        font-size: 13px !important;
        padding: 10px 12px !important;
    }

    /* Tab switcher (Bank / Wallet) */
    .payment-tabs {
        flex-direction: row !important;
        gap: 4px !important;
    }
    .payment-tab {
        flex: 1 !important;
        font-size: 13px !important;
        padding: 8px 6px !important;
        text-align: center !important;
    }
}

/* Tablet tweaks */
@media (max-width: 768px) {
    .subscription-card {
        padding: 14px !important;
    }
    .btn-renew, .btn-cancel, .highlight-renew {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   v12.1.0 — MOBILE-FIRST OVERHAUL
   Targets: subscription flow, payment instructions, coupon box, plans grid,
   subscription cards, action buttons, tabs, wallet panel, bank panel
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Base container ───────────────────────────────────────────────────────── */
.totp-subscription-portal {
    -webkit-text-size-adjust: 100%;
    box-sizing: border-box;
}
.totp-subscription-portal *, .totp-subscription-portal *::before, .totp-subscription-portal *::after {
    box-sizing: border-box;
}

/* ── Payment Instructions container ──────────────────────────────────────── */
.payment-instructions-wrap,
.payment-instructions,
.sub-payment-wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* ── Coupon box — clean, prominent ───────────────────────────────────────── */
#ks-coupon-box {
    margin: 16px 0 !important;
    padding: 16px !important;
    background: #f8fafc !important;
    border: 1.5px dashed #7C4DFF !important;
    border-radius: 12px !important;
}
#ks-coupon-box p {
    margin: 0 0 10px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1e1b4b !important;
}
#ks-coupon-box > div {
    display: flex !important;
    gap: 8px !important;
    align-items: stretch !important;
}
#ks-coupon-input {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 11px 14px !important;
    border: 1.5px solid #c4b5fd !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    color: #1e1b4b !important;
    background: #fff !important;
    text-transform: uppercase !important;
    -webkit-appearance: none;
}
#ks-coupon-input:focus {
    outline: none !important;
    border-color: #7C4DFF !important;
    box-shadow: 0 0 0 3px rgba(124,77,255,0.15) !important;
}
#ks-coupon-apply {
    padding: 11px 18px !important;
    background: #7C4DFF !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
#ks-coupon-apply:active { opacity: 0.85 !important; }
#ks-coupon-remove {
    padding: 11px 14px !important;
    background: #ef4444 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    touch-action: manipulation;
}
#ks-coupon-msg {
    font-size: 13px !important;
    line-height: 1.4 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    margin-top: 10px !important;
    display: block !important;
}

/* ── Payment tabs ─────────────────────────────────────────────────────────── */
.payment-tabs {
    display: flex !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    border: 1.5px solid #e2e8f0 !important;
    margin-bottom: 16px !important;
}
.payment-tab, #tab-bank, #tab-wallet {
    flex: 1 !important;
    padding: 12px 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
    border: none !important;
    cursor: pointer !important;
    background: #f8fafc !important;
    color: #64748b !important;
    transition: background 0.2s, color 0.2s !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* ── Bank details card ────────────────────────────────────────────────────── */
.bank-details-card, .bank-info-card {
    background: #f0fdf4 !important;
    border: 1.5px solid #86efac !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin: 12px 0 !important;
}
.bank-details-card p, .bank-info-card p,
.bank-details-card .detail-row {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 6px 0 !important;
    word-break: break-all !important;
}

/* ── Amount to pay ────────────────────────────────────────────────────────── */
.amount-to-pay {
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 10px 14px !important;
    background: #eff6ff !important;
    border-radius: 8px !important;
    margin: 10px 0 !important;
    line-height: 1.5 !important;
}

/* ── File upload area ─────────────────────────────────────────────────────── */
.form-group {
    margin: 14px 0 !important;
}
.form-group label {
    display: block !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #374151 !important;
    margin-bottom: 6px !important;
}
#receipt-file {
    width: 100% !important;
    font-size: 13px !important;
    padding: 8px !important;
    border: 1.5px dashed #cbd5e1 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    cursor: pointer !important;
}
.file-requirements {
    margin-top: 8px !important;
    background: #f3f4f6 !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
}
.file-requirements small {
    font-size: 12px !important;
    line-height: 1.8 !important;
    display: block !important;
    color: #6b7280 !important;
}

/* ── Sender details inputs ────────────────────────────────────────────────── */
#sender-name, #sender-bank {
    width: 100% !important;
    padding: 11px 14px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    background: #fff !important;
    color: #1f2937 !important;
    margin-bottom: 4px !important;
    -webkit-appearance: none;
}
#sender-name:focus, #sender-bank:focus {
    outline: none !important;
    border-color: #7C4DFF !important;
    box-shadow: 0 0 0 3px rgba(124,77,255,0.12) !important;
}

/* ── Done / Submit button ─────────────────────────────────────────────────── */
.done-btn, .btn-primary.done-btn {
    width: 100% !important;
    padding: 15px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer !important;
    margin-top: 16px !important;
    letter-spacing: 0.3px !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* ── Wallet panel ─────────────────────────────────────────────────────────── */
#wallet-payment-panel {
    padding: 4px 0 !important;
}
.wallet-balance-display, .ks-wallet-balance-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 14px !important;
    background: linear-gradient(135deg, #7C4DFF15, #00D4C815) !important;
    border: 1.5px solid #7C4DFF40 !important;
    border-radius: 12px !important;
    margin: 12px 0 !important;
}
#btn-pay-wallet {
    width: 100% !important;
    padding: 15px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    border: none !important;
    background: linear-gradient(135deg, #7C4DFF, #00D4C8) !important;
    color: #fff !important;
    cursor: pointer !important;
    margin-top: 8px !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: 0.3px !important;
}
#btn-pay-wallet:active { opacity: 0.9 !important; transform: scale(0.99) !important; }
#btn-pay-wallet:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* ── Payment note ─────────────────────────────────────────────────────────── */
.payment-note {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    margin: 14px 0 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #78350f !important;
}
.payment-note p { margin: 4px 0 !important; }
.payment-note strong { color: #92400e !important; }

/* ── Bank selector pills ──────────────────────────────────────────────────── */
.bank-selector-wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 10px 0 !important;
}
.bank-pill {
    flex: 1 !important;
    min-width: 90px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    text-align: center !important;
    cursor: pointer !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #fff !important;
    touch-action: manipulation;
}

/* ── Subscription cards ───────────────────────────────────────────────────── */
.subscription-card, .sub-card {
    border-radius: 14px !important;
    overflow: hidden !important;
    margin-bottom: 14px !important;
    word-break: break-word !important;
}
.subscription-card .service-name,
.sub-card .service-name {
    font-size: 16px !important;
    line-height: 1.3 !important;
}

/* ── Action buttons row on subscription cards ─────────────────────────────── */
.subscription-actions, .action-buttons-wrap, .sub-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 12px !important;
}
.subscription-actions > *, .action-buttons-wrap > *, .sub-actions > * {
    flex: 1 1 auto !important;
    min-width: 100px !important;
    text-align: center !important;
    padding: 10px 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* ── Plans grid ───────────────────────────────────────────────────────────── */
.plans-container, .plans-grid {
    display: grid !important;
    gap: 14px !important;
}

/* ── Mobile overrides ─────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    /* Container */
    .totp-subscription-portal {
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    .portal-header {
        padding: 14px 16px !important;
        border-radius: 0 !important;
    }
    .portal-content {
        padding: 12px !important;
    }

    /* Plans single column */
    .plans-container, .plans-grid {
        grid-template-columns: 1fr !important;
    }

    /* Payment instruction layout */
    .payment-instructions,
    .payment-card,
    [class*="payment-wrap"] {
        padding: 14px !important;
        border-radius: 12px !important;
    }

    /* All action buttons full-width on very small screens */
    .btn-renew, .btn-cancel, .btn-view-credentials,
    .btn-complete-payment, .highlight-renew,
    .btn-view-credentials-expired {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    /* Coupon input and apply side by side still, but allow wrap */
    #ks-coupon-box > div {
        flex-wrap: wrap !important;
    }
    #ks-coupon-input { min-width: 60% !important; }

    /* Typography */
    .portal-header h2, .portal-header h3 { font-size: 18px !important; }
    .portal-header p { font-size: 13px !important; }

    /* Bank info — bigger tap targets for copy buttons */
    .copy-btn, [class*="copy-"] {
        padding: 8px 14px !important;
        font-size: 13px !important;
        border-radius: 7px !important;
        touch-action: manipulation;
    }
}

/* ── Tablet (481–768px) ───────────────────────────────────────────────────── */
@media (min-width: 481px) and (max-width: 768px) {
    .plans-container, .plans-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .portal-content { padding: 16px !important; }
}

/* ── Prevent horizontal scroll globally in portal ─────────────────────────── */
.totp-subscription-portal,
.portal-content,
.portal-inner {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* ── Improve tap targets for all portal buttons ───────────────────────────── */
.totp-subscription-portal button,
.totp-subscription-portal .btn,
.totp-subscription-portal [class*="btn-"] {
    min-height: 44px !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* ── Copy-to-clipboard feedback ───────────────────────────────────────────── */
.copy-btn.copied {
    background: #10b981 !important;
    color: #fff !important;
}

/* ── Scrollable bank selector on mobile ───────────────────────────────────── */
@media (max-width: 480px) {
    .bank-selector-wrap {
        flex-direction: column !important;
    }
    .bank-pill { min-width: unset !important; width: 100% !important; }
}

/* ── v12.1.1: Subscription loading overlay & spinner ─────────────────────── */
@keyframes ks-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

#ks-subscribe-overlay,
#ks-renew-overlay {
    /* JS sets inline styles; these are fallback reinforcements */
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
}

/* Inline error card */
.ks-inline-error {
    animation: ks-slide-in 0.25s ease;
}
@keyframes ks-slide-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Btn-plan-action loading state */
.btn-plan-action.subscribe:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}
.btn-plan-action.subscribe svg {
    vertical-align: middle;
    margin-right: 6px;
    display: inline-block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   v12.1.2 — PAYMENT INSTRUCTIONS REDESIGN
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Wrapper ───────────────────────────────────────────────────────────────── */
.ks-pay-wrap {
    max-width: 540px;
    margin: 0 auto;
    padding: 0 0 32px;
    font-family: 'Inter', 'Space Grotesk', system-ui, sans-serif;
}

/* ── Header ────────────────────────────────────────────────────────────────── */
.ks-pay-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0 18px;
    border-bottom: 1.5px solid #f1f5f9;
    margin-bottom: 18px;
}
.ks-back-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    touch-action: manipulation;
}
.ks-back-btn:hover { background: #e2e8f0; }
.ks-pay-title { display: flex; align-items: center; gap: 10px; }
.ks-pay-icon { font-size: 28px; }

/* ── Method tabs ────────────────────────────────────────────────────────────── */
.ks-method-tabs {
    display: flex;
    gap: 0;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}
.ks-method-tab {
    flex: 1;
    padding: 13px 8px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.3;
    transition: background 0.18s, color 0.18s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.ks-method-tab:first-child { border-right: 1.5px solid #e2e8f0; }
.ks-method-tab.active {
    background: #fff;
    color: #7C4DFF;
    box-shadow: inset 0 -3px 0 #7C4DFF;
}
.ks-method-tab.disabled { opacity: 0.55; cursor: not-allowed; }
.ks-wallet-bal {
    font-size: 11px;
    font-weight: 600;
    color: #10b981;
    background: #d1fae5;
    border-radius: 99px;
    padding: 1px 7px;
    margin-top: 2px;
}
.ks-wallet-short {
    font-size: 10px;
    font-weight: 600;
    color: #ef4444;
    background: #fee2e2;
    border-radius: 99px;
    padding: 1px 7px;
    margin-top: 2px;
}

/* ── Coupon section ─────────────────────────────────────────────────────────── */
#ks-coupon-box,
.ks-coupon-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: linear-gradient(135deg, #faf5ff 0%, #f0fdf4 100%) !important;
    border: 2px dashed #7C4DFF !important;
    border-radius: 14px !important;
    padding: 16px !important;
    margin: 0 0 20px 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
}
.ks-coupon-label {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #5b21b6 !important;
    margin: 0 0 12px 0 !important;
    display: block !important;
}
.ks-coupon-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    align-items: stretch !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.ks-coupon-input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 12px 14px !important;
    border: 2px solid #c4b5fd !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    color: #1e1b4b !important;
    background: #fff !important;
    text-transform: uppercase !important;
    -webkit-appearance: none !important;
    box-sizing: border-box !important;
    display: block !important;
}
.ks-coupon-input:focus {
    outline: none !important;
    border-color: #7C4DFF !important;
    box-shadow: 0 0 0 3px rgba(124,77,255,0.2) !important;
}
.ks-coupon-apply-btn {
    flex: 0 0 auto !important;
    padding: 12px 20px !important;
    background: #7C4DFF !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
}
.ks-coupon-apply-btn:active { opacity: 0.85 !important; }
.ks-coupon-apply-btn:disabled { opacity: 0.6 !important; cursor: not-allowed !important; }
.ks-coupon-remove-btn {
    flex: 0 0 auto !important;
    padding: 12px 14px !important;
    background: #ef4444 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    touch-action: manipulation !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
}
.ks-coupon-msg {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    margin-top: 12px !important;
    line-height: 1.5 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.ks-coupon-msg-success { background: #d1fae5 !important; color: #065f46 !important; border: 1.5px solid #6ee7b7 !important; }
.ks-coupon-msg-error   { background: #fee2e2 !important; color: #991b1b !important; border: 1.5px solid #fca5a5 !important; }
.ks-saved-badge {
    display: inline-block !important;
    background: #d1fae5 !important;
    color: #059669 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 99px !important;
    padding: 2px 8px !important;
    margin-left: 6px !important;
    vertical-align: middle !important;
}

@media (max-width: 480px) {
    #ks-coupon-box,
    .ks-coupon-section {
        padding: 14px !important;
        border-radius: 12px !important;
    }
    .ks-coupon-input {
        font-size: 14px !important;
        padding: 11px 12px !important;
        letter-spacing: 1.5px !important;
    }
    .ks-coupon-apply-btn {
        padding: 11px 16px !important;
        font-size: 13px !important;
    }
}

/* ── Panels ─────────────────────────────────────────────────────────────────── */
.ks-panel { display: block; }

/* ── Account card ────────────────────────────────────────────────────────────── */
.ks-account-card {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
}
.ks-account-card-header {
    background: #dcfce7;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ks-account-rows { padding: 4px 0; }
.ks-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    border-bottom: 1px solid #dcfce7;
    gap: 12px;
}
.ks-account-row:last-child { border-bottom: none; }
.ks-account-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    flex-shrink: 0;
    min-width: 90px;
}
.ks-account-value {
    font-size: 14px;
    font-weight: 700;
    color: #1e1b4b;
    text-align: right;
    word-break: break-all;
}
.ks-acct-num { font-size: 16px; letter-spacing: 1px; }
.ks-amount-row { background: #bbf7d0; border-radius: 0; }
.ks-amount-highlight { font-size: 18px; font-weight: 800; color: #15803d; }

/* ── Copy button ─────────────────────────────────────────────────────────────── */
.ks-copy-btn {
    background: #7C4DFF;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    touch-action: manipulation;
    flex-shrink: 0;
}
.ks-copy-btn.copied { background: #10b981; }

/* ── Bank pills ──────────────────────────────────────────────────────────────── */
.ks-bank-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 16px 4px;
}
.ks-bank-pill {
    flex: 1;
    min-width: 80px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    text-align: center;
    touch-action: manipulation;
    transition: all 0.15s;
}
.ks-bank-pill.active {
    border-color: #7C4DFF;
    background: #faf5ff;
    color: #7C4DFF;
}
.ks-routing-notice {
    margin: 8px 16px 12px;
    background: #fef3c7;
    border: 1.5px solid #fcd34d;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    color: #92400e;
    line-height: 1.6;
}

/* ── Steps ───────────────────────────────────────────────────────────────────── */
.ks-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.ks-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.ks-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #7C4DFF;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.ks-step-text { font-size: 13px; color: #475569; line-height: 1.5; padding-top: 3px; }

/* ── Payment form ────────────────────────────────────────────────────────────── */
.ks-pay-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.ks-field { display: flex; flex-direction: column; gap: 6px; }
.ks-label { font-size: 13px; font-weight: 700; color: #374151; }
.ks-required { color: #ef4444; }
.ks-input {
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    color: #1f2937;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ks-input:focus {
    outline: none;
    border-color: #7C4DFF;
    box-shadow: 0 0 0 3px rgba(124,77,255,0.12);
}
.ks-input.ks-field-error, .ks-file-drop.ks-field-error {
    border-color: #ef4444 !important;
    animation: ks-shake 0.4s ease;
}
@keyframes ks-shake {
    0%,100%{ transform:translateX(0); }
    20%{ transform:translateX(-6px); }
    40%{ transform:translateX(6px); }
    60%{ transform:translateX(-4px); }
    80%{ transform:translateX(4px); }
}

/* ── File drop zone ──────────────────────────────────────────────────────────── */
.ks-file-drop {
    position: relative;
    border: 2px dashed #c4b5fd;
    border-radius: 12px;
    background: #faf5ff;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    overflow: hidden;
}
.ks-file-drop:hover, .ks-file-drop:focus-within {
    border-color: #7C4DFF;
    background: #f5f0ff;
}
.ks-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}
.ks-file-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px;
    pointer-events: none;
}
.ks-file-hint { font-size: 13px; font-weight: 700; color: #7C4DFF; }
.ks-file-hint-sub { font-size: 11px; color: #94a3b8; }
.ks-file-preview { padding: 12px; width: 100%; box-sizing: border-box; }
.ks-file-success {
    font-size: 13px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.ks-receipt-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: block;
    margin-top: 6px;
}

/* ── Pay note ─────────────────────────────────────────────────────────────────── */
.ks-pay-note {
    font-size: 12.5px;
    color: #64748b;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ── Submit button ────────────────────────────────────────────────────────────── */
.ks-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #7C4DFF, #6440e0);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.3px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.15s, transform 0.1s;
}
.ks-submit-btn:active { opacity: 0.9; transform: scale(0.99); }
.ks-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Inline error bar ─────────────────────────────────────────────────────────── */
.ks-form-error-bar {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff1f2;
    border: 1.5px solid #fca5a5;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #9f1239;
    font-weight: 600;
    animation: ks-slide-in 0.2s ease;
}
.ks-err-icon { font-size: 18px; flex-shrink: 0; }
.ks-err-text { flex: 1; line-height: 1.5; }
.ks-err-close {
    background: none;
    border: none;
    color: #fca5a5;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
}

/* ── Wallet panel ─────────────────────────────────────────────────────────────── */
.ks-wallet-ready, .ks-wallet-insufficient {
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
}
.ks-wallet-ready { background: #eff6ff; border: 1.5px solid #93c5fd; }
.ks-wallet-insufficient { background: #fef2f2; border: 1.5px solid #fca5a5; }
.ks-wallet-balance-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}
.ks-wbal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.6);
}
.ks-wbal-row span { color: #475569; }
.ks-wbal-row strong { color: #1e1b4b; font-weight: 700; }
.ks-wbal-after { background: #d1fae5; }
.ks-wbal-after span { color: #065f46; font-weight: 600; }
.ks-wbal-after strong { color: #065f46; font-size: 16px; }
.ks-wbal-short { background: #fee2e2; }
.ks-wbal-short span, .ks-wbal-short strong { color: #dc2626; }
.ks-wallet-insuf-title { font-size: 16px; font-weight: 800; color: #dc2626; text-align: center; margin: 0 0 14px; }
.ks-wallet-insuf-detail { display: flex; flex-direction: column; gap: 6px; }
.ks-wallet-pay-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.ks-wallet-pay-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.ks-wallet-note { font-size: 12px; color: #64748b; text-align: center; margin: 0; }

/* ── Success screen ───────────────────────────────────────────────────────────── */
.ks-success-screen {
    text-align: center;
    padding: 40px 20px;
    max-width: 400px;
    margin: 0 auto;
}
.ks-success-icon { font-size: 64px; margin-bottom: 16px; }
.ks-success-title { font-size: 22px; font-weight: 800; color: #1e1b4b; margin: 0 0 10px; }
.ks-success-body { font-size: 14px; color: #475569; line-height: 1.7; margin: 0 0 24px; }
.ks-success-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    text-align: left;
}
.ks-ss-step {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: #f1f5f9;
    color: #94a3b8;
}
.ks-ss-step.done { background: #d1fae5; color: #065f46; }
.ks-ss-step.active { background: #fef3c7; color: #92400e; }

/* ── Mobile responsive ────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .ks-pay-wrap { padding: 0 0 24px; }
    .ks-pay-header { padding: 12px 0 14px; }
    .ks-method-tab { padding: 11px 6px; font-size: 12px; }
    .ks-coupon-section { padding: 12px; }
    .ks-account-label { min-width: 80px; font-size: 11px; }
    .ks-account-value { font-size: 13px; }
    .ks-acct-num { font-size: 15px; }
    .ks-amount-highlight { font-size: 16px; }
    .ks-submit-btn, .ks-wallet-pay-btn { font-size: 15px; padding: 15px; }
    .ks-bank-pill { min-width: 70px; font-size: 11px; }
    .ks-step-text { font-size: 12px; }
    .ks-success-icon { font-size: 50px; }
    .ks-success-title { font-size: 19px; }
    .ks-wbal-row { font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   v12.1.5 — SKELETON LOADERS & PAGE TRANSITIONS
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes ks-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.ks-skeleton-wrap {
    animation: ks-fade-in 0.2s ease;
    padding: 4px 0;
}

@keyframes ks-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Portal content fade-in on every view change */
.portal-content > *:first-child {
    animation: ks-fade-in 0.22s ease;
}

/* Retry button inside error states */
.ks-skeleton-wrap .ks-submit-btn,
.portal-content .ks-submit-btn {
    width: auto;
    min-width: 160px;
    display: inline-flex;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   v12.1.7 — Portal mount point loading state
   Shows a shimmer while JS initialises — prevents blank white box
   ═══════════════════════════════════════════════════════════════════════════ */
#totp-subscription-portal:empty {
    min-height: 280px;
    background: linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 50%,#f1f5f9 75%);
    background-size: 200% 100%;
    animation: ks-shimmer 1.4s infinite;
    border-radius: 16px;
    margin: 16px 0;
}

/* Once JS injects content, shimmer goes away */
#totp-subscription-portal:not(:empty) {
    background: none !important;
    animation: none !important;
    min-height: unset;
}

/* ═══════════════════════════════════════════════════════════════════════════
   v12.1.9 — MOBILE-FIRST DASHBOARD REDESIGN
   Modern, appealing, brand-consistent (#fe6401 orange). Override layer.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --ks-orange: #fe6401;
    --ks-orange-dark: #e55400;
    --ks-orange-light: #fff4ec;
    --ks-ink: #1a1523;
    --ks-muted: #6b7280;
    --ks-line: #eef0f3;
    --ks-radius: 16px;
    --ks-shadow: 0 2px 16px rgba(26,21,35,0.06);
    --ks-shadow-lg: 0 8px 30px rgba(254,100,1,0.14);
}

/* ── Container ─────────────────────────────────────────────────────────────── */
.totp-subscription-portal {
    max-width: 640px !important;
    margin: 16px auto !important;
    padding: 0 14px !important;
}

/* ── Header — compact gradient card ────────────────────────────────────────── */
.portal-header {
    background: linear-gradient(135deg, #fe6401 0%, #ff8534 100%) !important;
    border-radius: 20px !important;
    padding: 22px 20px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 6px 24px rgba(254,100,1,0.22) !important;
    position: relative;
    overflow: hidden;
}
.portal-header::after {
    content: '';
    position: absolute;
    top: -40px; right: -30px;
    width: 140px; height: 140px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
}
.portal-header h2 {
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
    position: relative; z-index: 1;
}
.portal-header p {
    font-size: 13px !important;
    position: relative; z-index: 1;
}

/* ── Navigation — horizontal scroll pill bar ───────────────────────────────── */
.portal-navigation {
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 4px 2px 8px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}
.portal-navigation::-webkit-scrollbar { display: none; }
.nav-btn {
    flex: 0 0 auto !important;
    padding: 10px 16px !important;
    background: #fff !important;
    color: var(--ks-ink) !important;
    border: 1.5px solid var(--ks-line) !important;
    border-radius: 99px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    box-shadow: var(--ks-shadow) !important;
    transition: all 0.18s ease !important;
    scroll-snap-align: start;
    min-height: 42px !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.nav-btn:hover, .nav-btn:active {
    background: var(--ks-orange-light) !important;
    border-color: var(--ks-orange) !important;
    color: var(--ks-orange-dark) !important;
    transform: none !important;
    box-shadow: var(--ks-shadow) !important;
}
.nav-btn.home-btn {
    background: var(--ks-orange) !important;
    color: #fff !important;
    border-color: var(--ks-orange) !important;
    box-shadow: 0 4px 14px rgba(254,100,1,0.3) !important;
}
.logout-btn {
    background: #fff !important;
    color: #ef4444 !important;
    border-color: #fecaca !important;
    margin-left: 0 !important;
}

/* ── Wallet balance widget — hero card ─────────────────────────────────────── */
.wallet-balance-widget {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    background: linear-gradient(135deg, #1a1523 0%, #2d2438 100%) !important;
    border-radius: var(--ks-radius) !important;
    padding: 18px 20px !important;
    margin-bottom: 16px !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(26,21,35,0.18) !important;
    border: none !important;
}
.wallet-balance-widget::before {
    content: '';
    position: absolute;
    top: -30px; right: -20px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(254,100,1,0.35), transparent 70%);
    border-radius: 50%;
}
.wbw-label {
    font-size: 12px !important;
    color: rgba(255,255,255,0.7) !important;
    font-weight: 600 !important;
    position: relative; z-index: 1;
}
.wbw-amount {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: -0.5px;
    position: relative; z-index: 1;
    line-height: 1.2;
}
.wbw-cta {
    font-size: 12px !important;
    color: var(--ks-orange) !important;
    font-weight: 700 !important;
    margin-top: 6px;
    position: relative; z-index: 1;
}

/* ── Section heading ───────────────────────────────────────────────────────── */
.subscriptions-list h3, .plans-grid h3 {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--ks-ink) !important;
    margin: 4px 0 14px !important;
    letter-spacing: -0.3px;
}

/* ── Subscription cards — clean modern ─────────────────────────────────────── */
.subscription-card {
    border: 1px solid var(--ks-line) !important;
    border-radius: var(--ks-radius) !important;
    padding: 18px !important;
    margin-bottom: 14px !important;
    background: #fff !important;
    box-shadow: var(--ks-shadow) !important;
    transition: box-shadow 0.2s ease !important;
    border-left: none !important;
    position: relative;
    overflow: hidden;
}
.subscription-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
}
.subscription-card.status-active::before  { background: var(--ks-orange); }
.subscription-card.status-pending::before { background: #f59e0b; }
.subscription-card.status-expired::before { background: #ef4444; }
.subscription-card.status-cancelled::before { background: #9ca3af; }
.subscription-card.status-paused::before  { background: #9ca3af; }
.subscription-card:hover { transform: none !important; box-shadow: var(--ks-shadow-lg) !important; }

.sub-header { margin-bottom: 12px !important; align-items: center !important; }
.sub-header h4 {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: var(--ks-ink) !important;
    letter-spacing: -0.3px;
}
.status-badge {
    padding: 4px 12px !important;
    border-radius: 99px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.status-active .status-badge  { background: var(--ks-orange-light) !important; color: var(--ks-orange-dark) !important; }
.status-pending .status-badge { background: #fef3c7 !important; color: #92400e !important; }
.status-expired .status-badge { background: #fee2e2 !important; color: #991b1b !important; }

.sub-details p {
    margin: 5px 0 !important;
    font-size: 13.5px !important;
    color: #4b5563 !important;
    line-height: 1.5;
}
.sub-details p strong { color: var(--ks-ink) !important; font-weight: 600 !important; }

/* ── Action buttons inside cards — wrap nicely, equal feel ─────────────────── */
.sub-actions {
    margin-top: 14px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}
.subscription-card button {
    flex: 1 1 auto !important;
    min-width: calc(50% - 4px) !important;
    padding: 11px 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer !important;
    min-height: 44px !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: opacity 0.15s, transform 0.1s !important;
}
.subscription-card button:active { transform: scale(0.98) !important; opacity: 0.9 !important; }

/* Button color system */
.btn-view-credentials, .btn-view-credentials-expired {
    background: var(--ks-orange) !important;
    color: #fff !important;
}
.btn-otp-chatbot, .btn-otp-chatbot-expired {
    background: #1a1523 !important;
    color: #fff !important;
}
.btn-renew, .highlight-renew {
    background: #10b981 !important;
    color: #fff !important;
}
.btn-reset-otp {
    background: #fff7ed !important;
    color: var(--ks-orange-dark) !important;
    border: 1.5px solid #fed7aa !important;
}
.btn-cancel, .btn-delete-pending {
    background: #fff !important;
    color: #ef4444 !important;
    border: 1.5px solid #fecaca !important;
}
.btn-complete-payment {
    background: var(--ks-orange) !important;
    color: #fff !important;
    flex-basis: 100% !important;
}

/* ── Primary buttons (login/register/empty state) ──────────────────────────── */
.btn-primary, .done-btn, .browse-plans-btn {
    background: var(--ks-orange) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    width: 100% !important;
    min-height: 50px !important;
    box-shadow: 0 4px 14px rgba(254,100,1,0.28) !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.btn-primary:hover, .done-btn:hover { background: var(--ks-orange-dark) !important; transform: none !important; }

/* ── Login / Register / Forgot forms ───────────────────────────────────────── */
.login-form, .register-form, .forgot-form {
    background: #fff !important;
    border-radius: var(--ks-radius) !important;
    padding: 22px !important;
    box-shadow: var(--ks-shadow) !important;
    border: 1px solid var(--ks-line) !important;
}
.login-form h3, .register-form h3, .forgot-form h3 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--ks-ink) !important;
    margin: 0 0 16px !important;
    text-align: center;
}
.login-form input, .register-form input, .forgot-form input {
    width: 100% !important;
    padding: 13px 15px !important;
    border: 1.5px solid var(--ks-line) !important;
    border-radius: 11px !important;
    font-size: 15px !important;
    margin-bottom: 12px !important;
    box-sizing: border-box !important;
    -webkit-appearance: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fcfcfd !important;
}
.login-form input:focus, .register-form input:focus, .forgot-form input:focus {
    outline: none !important;
    border-color: var(--ks-orange) !important;
    box-shadow: 0 0 0 3px rgba(254,100,1,0.12) !important;
    background: #fff !important;
}
.forgot-link, .register-link {
    text-align: center !important;
    font-size: 13px !important;
    color: var(--ks-muted) !important;
    margin: 12px 0 0 !important;
}
.forgot-link a, .register-link a {
    color: var(--ks-orange) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* ── Empty state ───────────────────────────────────────────────────────────── */
.empty-state {
    text-align: center !important;
    padding: 36px 20px !important;
    background: #fff !important;
    border-radius: var(--ks-radius) !important;
    border: 1.5px dashed var(--ks-line) !important;
}
.empty-state p {
    font-size: 15px !important;
    color: var(--ks-muted) !important;
    margin-bottom: 18px !important;
}

/* ── WhatsApp banners — slimmer ────────────────────────────────────────────── */
.whatsapp-channel-banner, .whatsapp-channel-banner-inline {
    margin-bottom: 14px !important;
}
.whatsapp-channel-btn, .whatsapp-channel-btn-small {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    background: #25D366 !important;
    color: #fff !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: 0 3px 12px rgba(37,211,102,0.25) !important;
}
.whatsapp-channel-btn .wa-text, .whatsapp-channel-btn-small .wa-text { line-height: 1.3; }
.whatsapp-channel-btn .wa-arrow, .whatsapp-channel-btn-small .wa-arrow { font-size: 18px; flex-shrink: 0; }

/* ── Anike help banner — refined ───────────────────────────────────────────── */
.anike-help-banner {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: linear-gradient(135deg, #fff4ec, #ffffff) !important;
    border: 1.5px solid #ffe0cc !important;
    border-radius: var(--ks-radius) !important;
    padding: 14px 16px !important;
    margin-bottom: 16px !important;
}
.anike-help-banner .anike-avatar {
    font-size: 26px !important;
    width: 46px !important; height: 46px !important;
    background: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(254,100,1,0.18) !important;
    flex-shrink: 0;
}
.anike-banner-title { font-size: 14px !important; font-weight: 800 !important; color: var(--ks-ink) !important; }
.anike-banner-sub { font-size: 12px !important; color: var(--ks-muted) !important; line-height: 1.4; }
.anike-banner-cta {
    background: var(--ks-orange) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 9px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    flex-shrink: 0;
    min-height: 40px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* ── Messages (welcome/info/error) ─────────────────────────────────────────── */
.portal-messages { margin-bottom: 12px !important; }
.portal-messages .msg {
    padding: 12px 16px !important;
    border-radius: 12px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}
.portal-messages .msg-success { background: #ecfdf5 !important; color: #065f46 !important; border: 1px solid #a7f3d0 !important; }
.portal-messages .msg-info    { background: #eff6ff !important; color: #1e40af !important; border: 1px solid #bfdbfe !important; }
.portal-messages .msg-error   { background: #fef2f2 !important; color: #991b1b !important; border: 1px solid #fecaca !important; }
.portal-messages .msg-warning { background: #fffbeb !important; color: #92400e !important; border: 1px solid #fde68a !important; }

/* ── Mobile-specific tightening ────────────────────────────────────────────── */
@media (max-width: 480px) {
    .totp-subscription-portal { margin: 8px auto !important; padding: 0 10px !important; }
    .portal-header { padding: 18px 16px !important; border-radius: 16px !important; }
    .portal-header h2 { font-size: 19px !important; }
    .wbw-amount { font-size: 24px !important; }
    .subscription-card { padding: 16px !important; }
    .sub-header h4 { font-size: 16px !important; }
    /* On tiny screens, full-width buttons read better */
    .subscription-card button { min-width: 100% !important; }
    .login-form, .register-form, .forgot-form { padding: 18px !important; }
}

/* ── Plans page (revamped) — mobile tightening ─────────────────────────────── */
@media (max-width: 480px) {
    .plans-page-revamped .plans-hero { padding: 24px 16px !important; border-radius: 16px !important; }
    .plans-page-revamped .plans-hero h2 { font-size: 20px !important; }
    .plans-page-revamped .plans-hero p { font-size: 13px !important; }
    .plans-services-grid { gap: 14px !important; }
    .service-block-header { padding: 14px 16px !important; }
    .service-plans-row {
        grid-template-columns: 1fr !important;
        padding: 14px !important;
        gap: 12px !important;
    }
    .plan-card-new { padding: 18px !important; border-radius: 14px !important; }
    .plan-price-new .price-amount { font-size: 26px !important; }
    .plan-name { font-size: 16px !important; }
    .plan-benefits li { font-size: 13px !important; }
}
/* Two-column plan cards on slightly larger phones for density */
@media (min-width: 481px) and (max-width: 700px) {
    .service-plans-row { grid-template-columns: 1fr 1fr !important; gap: 14px !important; padding: 16px !important; }
}
