.totp-bot {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.totp-header {
    background: #fe6401;
    color: white;
    padding: 20px;
    text-align: center;
}

.totp-header h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
}

.totp-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.totp-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #f5f5f5;
}

.msg {
    margin: 10px 0;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    animation: slideIn 0.3s;
}

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

.totp-input {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #ddd;
}

.totp-input input {
    width: calc(50% - 5px);
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    margin-right: 10px;
}

.totp-input button {
    padding: 10px 24px;
    background: #fe6401;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.totp-input button:hover {
    opacity: 0.9;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.service {
    padding: 20px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.service:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    border-color: white;
}

.code-box {
    background: #fe6401;
    padding: 20px;
    border-radius: 12px;
    color: #fff;
    text-align: center;
}

.code-box h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
}

.code {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 6px;
    margin: 15px 0;
    font-family: monospace;
}

.code-box p {
    margin: 8px 0;
    font-size: 14px;
    opacity: 0.9;
}

.services-container h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.service-email {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

.code-display {
    background: rgba(255,255,255,0.2);
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
}

.code-timer {
    color: rgba(255,255,255,0.9);
    margin-top: 10px;
    font-size: 13px;
}

.credentials, .instructions {
    background: rgba(255,255,255,0.9);
    color: #333;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

.credentials p, .instructions p {
    margin: 5px 0;
    color: #333;
    opacity: 1;
}

.back-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Usage Badge */
.totp-usage {
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.usage-badge {
    animation: slideDown 0.3s;
}

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

/* Confirmation Dialog */
.confirmation-dialog {
    background: white;
    border: 3px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
}

.confirmation-dialog h3 {
    color: #f59e0b;
    margin: 0 0 15px 0;
    font-size: 18px;
}

.confirm-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.confirm-content ul li {
    margin: 8px 0;
    color: #333;
}

.confirm-content .warning {
    color: #dc2626;
    font-weight: 600;
    margin: 15px 0 5px 0;
}

.confirm-content .note {
    background: #fef3c7;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 8px 0;
    font-size: 13px;
    color: #92400e;
}

.confirm-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-confirm, .btn-cancel {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-confirm:hover {
    background: #fe6401;
}

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

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

.btn-confirm:disabled, .btn-cancel:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.progress {
    height: 100%;
    background: #fe6401;
    transition: width 0.5s linear;
}

/* Service States */
.service.locked {
    opacity: 0.6;
    border-color: #ef4444;
    cursor: not-allowed;
}

.service.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(1);
}

.service-status {
    font-size: 10px;
    color: #ef4444;
    margin-top: 5px;
    font-weight: 600;
}

.service-status.unlimited {
    color: #fe6401;
}

.service-status.no-otp {
    color: #10b981;
    background: #d1fae5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 9px;
}

.service-status.email-code {
    color: #2563eb;
    background: #dbeafe;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
}

.no-otp-badge {
    background: #10b981 !important;
}

/* Email Service Dialog */
.email-service-dialog {
    border-color: #3b82f6;
}

.email-service-dialog h3 {
    color: #1e40af;
}

.email-info-box {
    background: #eff6ff !important;
    border-left-color: #3b82f6 !important;
}

.email-info-box ol {
    margin: 10px 0 0 20px;
    padding: 0;
}

.email-info-box li {
    margin: 8px 0;
    color: #1e3a8a;
}

.btn-get-credentials {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

.btn-get-credentials:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}

/* ========================================
   EMAIL SERVICE INTERFACE - SEAMLESS
   ======================================== */

.email-service-container {
    max-width: 500px;
    margin: 0 auto;
}

.email-service-header {
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 16px;
    margin-bottom: 20px;
    color: white;
}

.email-service-header .service-icon-big {
    font-size: 48px;
    margin-bottom: 10px;
}

.email-service-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
}

.email-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Credentials Box */
.email-credentials-box {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.email-credentials-box .cred-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.cred-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
}

.cred-row label {
    font-weight: 600;
    color: #64748b;
    width: 80px;
    flex-shrink: 0;
}

.cred-value-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cred-val {
    font-family: 'SF Mono', Monaco, monospace;
    color: #1e293b;
    font-size: 14px;
    word-break: break-all;
}

.copy-btn-small {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.copy-btn-small:hover {
    background: #2563eb;
}

.copy-btn-small.copied {
    background: #10b981;
}

/* Instructions */
.email-instructions {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 15px;
    font-size: 14px;
    color: #1e40af;
}

/* Email Code Section - THE MAIN FEATURE */
.email-code-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
}

.email-code-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 10px;
}

.email-code-icon {
    font-size: 24px;
}

.email-code-desc {
    color: #78350f;
    font-size: 14px;
    margin-bottom: 20px;
}

.btn-scan-email-code {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-scan-email-code:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-scan-email-code:disabled {
    opacity: 0.8;
    cursor: wait;
}

/* Spinning animation */
.spin {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Email Code Result */
.email-code-result {
    margin-top: 20px;
    display: none;
}

.scanning-status {
    color: #92400e;
    font-size: 14px;
    padding: 15px;
    background: rgba(255,255,255,0.5);
    border-radius: 8px;
}

/* Code Found Success */
.email-code-success {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.code-found-label {
    color: #10b981;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 15px;
}

.email-code-display {
    font-size: 42px;
    font-weight: 800;
    font-family: 'SF Mono', Monaco, monospace;
    color: #1e293b;
    letter-spacing: 8px;
    padding: 15px;
    background: #f0fdf4;
    border: 3px solid #10b981;
    border-radius: 12px;
    margin-bottom: 15px;
}

.copy-code-big {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-code-big:hover {
    transform: scale(1.05);
}

.copy-code-big.copied {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.code-time {
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
}

/* Code Not Found */
.email-code-notfound {
    background: #fef2f2;
    border: 2px solid #fca5a5;
    border-radius: 12px;
    padding: 20px;
}

.notfound-label {
    color: #dc2626;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
}

.email-code-notfound p {
    color: #991b1b;
    font-size: 14px;
    margin: 0;
}

/* Back Section */
.email-back-section {
    text-align: center;
}

.email-back-section .btn-back-services {
    background: #64748b;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.email-back-section .btn-back-services:hover {
    background: #475569;
}

/* Loading message */
.loading-msg {
    text-align: center;
    padding: 40px;
    color: #64748b;
    font-size: 16px;
}

/* ========================================
   TOTP EMAIL ADDON (for services with both)
   ======================================== */

.totp-email-addon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    text-align: center;
}

.totp-email-addon .addon-header {
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 8px;
}

.totp-email-addon .addon-desc {
    font-size: 13px;
    color: #78350f;
    margin-bottom: 15px;
}

.btn-get-totp-email {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-get-totp-email:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-get-totp-email:disabled {
    opacity: 0.7;
    cursor: wait;
}

.totp-email-result {
    margin-top: 15px;
    display: none;
}

.totp-email-result .scanning-msg {
    color: #92400e;
    font-size: 14px;
}

.email-code-found {
    background: white;
    border-radius: 10px;
    padding: 15px;
}

.email-code-found .found-code {
    font-size: 32px;
    font-weight: 800;
    font-family: monospace;
    letter-spacing: 5px;
    color: #166534;
    margin-bottom: 10px;
}

.copy-found-code {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.email-not-found {
    color: #dc2626;
    font-size: 14px;
    padding: 10px;
    background: #fef2f2;
    border-radius: 8px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .email-service-header {
        padding: 20px 15px;
    }
    
    .email-service-header h2 {
        font-size: 20px;
    }
    
    .cred-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cred-row label {
        width: auto;
    }
    
    .cred-value-wrapper {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .copy-btn-small {
        width: 100%;
        text-align: center;
    }
    
    .email-code-display {
        font-size: 32px;
        letter-spacing: 5px;
    }
    
    .btn-scan-email-code {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }
}

.warning-text {
    color: #f59e0b;
    font-weight: 600;
    margin: 10px 0;
    padding: 10px;
    background: #fef3c7;
    border-radius: 8px;
}

.error-msg {
    background: #fee2e2 !important;
    border-left: 4px solid #ef4444;
}

.warning-msg {
    background: #fef3c7 !important;
    border-left: 4px solid #f59e0b;
}

.usage-info {
    background: #e0e7ff;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
}

.usage-info p {
    margin: 5px 0;
    color: #3730a3;
}

.copy-btn {
    background: white;
    color: white;
    padding: 12px 24px;
    border: 2px solid #fe6401;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* Navigation Buttons */
.totp-navigation {
    background: #f8f9fa;
    padding: 10px;
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.nav-btn {
    flex: 1;
    padding: 10px 16px;
    background: white;
    border: 2px solid #fe6401;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: #fe6401;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Wait Display */
.wait-display {
    background: #fe6401;
    padding: 20px;
    border-radius: 12px;
    color: white;
    text-align: center;
}

.wait-icon {
    font-size: 48px;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.wait-text {
    margin: 15px 0;
}

.wait-seconds {
    font-size: 32px;
    font-weight: bold;
    color: #fbbf24;
}

/* Checklist */
.checklist {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.checklist li {
    background: #f0fdf4;
    padding: 10px;
    margin: 8px 0;
    border-radius: 6px;
    border-left: 4px solid #fe6401;
}

.info-box {
    background: #eff6ff;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #3b82f6;
}

.info-box p {
    margin: 8px 0;
    color: #1e40af;
}

.cred-title, .inst-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.info-text {
    background: #f8fafc;
    padding: 10px;
    border-radius: 6px;
    color: #1f2937;
    margin: 10px 0;
}


/* Dashboard Link */
.totp-dashboard-link {
    padding: 15px 20px;
    background: #a55014;
    border-bottom: 1px solid #8a4210;
    text-align: center;
}

.dashboard-btn {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
}

.dashboard-btn:hover {
    background: #ffffff;
    text-decoration: none;
    color: #a55014 !important;
}

/* No Subscriptions State */
.no-subscriptions-state {
    text-align: center;
    padding: 40px 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

.no-sub-icon {
    margin-bottom: 20px;
}

.no-subscriptions-state h3 {
    color: #374151;
    margin: 0 0 10px 0;
    font-size: 20px;
}

.no-subscriptions-state p {
    color: #6b7280;
    margin: 5px 0;
    font-size: 14px;
}

.btn-subscribe-now {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 32px;
    background: #fe6401;
    color: #fe6401 !important;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
}

.btn-subscribe-now:hover {
    background: #e55a00;
    text-decoration: none;
    color: #fe6401 !important;
    transform: translateY(-2px);
}

/* View Login Details button in OTP code display */
.code-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.btn-view-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-view-login:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    color: white !important;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-view-login svg {
    stroke: white;
}

/* OTP In Use Message Styles */
.in-use-message {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

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

.in-use-message h3 {
    color: #92400e;
    margin: 0 0 10px 0;
    font-size: 20px;
}

.in-use-message p {
    color: #78350f;
    margin: 8px 0;
}

.in-use-note {
    background: rgba(255,255,255,0.6);
    padding: 10px 15px;
    border-radius: 8px;
    margin: 15px 0 !important;
}

.btn-retry-later {
    background: #040a30;
    color: #fe6401;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn-retry-later:hover {
    background: #0a1245;
    transform: translateY(-2px);
}

/* ========================================
   PROMINENT CODE DISPLAY - CODE FIRST!
   ======================================== */

/* Primary Code Display - Big and Prominent */
.code-primary {
    background: linear-gradient(135deg, #040a30 0%, #0a1a4a 100%) !important;
    border: 3px solid #fe6401 !important;
    border-radius: 16px !important;
    padding: 0 !important;
    overflow: hidden;
}

.code-display-main {
    text-align: center;
    padding: 30px 20px;
}

.code-service-name {
    color: #fe6401;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.code-value-huge {
    font-size: 56px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 12px;
    font-family: 'Courier New', monospace;
    background: linear-gradient(180deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(254, 100, 1, 0.3);
    margin: 20px 0;
    padding: 15px;
    border-radius: 12px;
    background-color: rgba(255,255,255,0.05);
    animation: codeGlow 2s ease-in-out infinite alternate;
}

@keyframes codeGlow {
    from { box-shadow: 0 0 20px rgba(254, 100, 1, 0.2); }
    to { box-shadow: 0 0 40px rgba(254, 100, 1, 0.4); }
}

.code-timer-big {
    color: #10b981;
    font-size: 18px;
    margin: 15px 0;
    padding: 10px 20px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 25px;
    display: inline-block;
}

.code-timer-big strong {
    font-size: 24px;
    color: #34d399;
}

.copy-btn-big {
    background: linear-gradient(135deg, #fe6401 0%, #ff8534 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(254, 100, 1, 0.4);
}

.copy-btn-big:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 25px rgba(254, 100, 1, 0.5);
}

.copy-btn-big:active {
    transform: translateY(0) scale(0.98);
}

/* Details Section - Collapsible */
.code-details-section {
    margin-top: 20px;
}

.toggle-details-btn {
    width: 100%;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-details-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.code-details-content {
    margin-top: 15px;
}

/* Credentials Box */
.credentials-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.cred-header {
    font-weight: 700;
    color: #166534;
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #86efac;
}

.credentials-box p {
    margin: 8px 0;
    color: #15803d;
}

.cred-value {
    font-family: monospace;
    background: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
}

/* Instructions Box */
.instructions-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.inst-header {
    font-weight: 700;
    color: #1e40af;
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #93c5fd;
}

.instructions-box p {
    color: #1d4ed8;
    margin: 0;
    line-height: 1.6;
}

/* Usage Box */
.usage-box {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border: 1px solid #fde047;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.usage-header {
    font-weight: 700;
    color: #854d0e;
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #fde047;
}

.usage-box p {
    margin: 8px 0;
    color: #a16207;
}

/* Code Actions in Details */
.code-details-content .code-actions {
    margin-top: 15px;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .code-value-huge {
        font-size: 36px;
        letter-spacing: 6px;
    }
    
    .copy-btn-big {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .code-display-main {
        padding: 20px 15px;
    }
}

/* ========================================
   CODE VIEW - HIDE UNNECESSARY ELEMENTS
   ======================================== */

/* Hide elements when code is displayed */
.code-view-hidden {
    display: none !important;
}

/* Messages container in code view - full height, no scroll needed */
.totp-messages.code-view-active {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 15px !important;
}

/* Back to Services Button */
.code-back-section {
    text-align: center;
    margin: 15px 0;
}

.btn-back-services {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back-services:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-2px);
}

/* Make the primary code box take priority */
.code-primary {
    margin: 0 !important;
}

/* Reduce padding on mobile for code display */
@media (max-width: 480px) {
    .totp-messages.code-view-active {
        padding: 10px !important;
    }
    
    .code-display-main {
        padding: 20px 10px !important;
    }
    
    .code-value-huge {
        font-size: 32px !important;
        letter-spacing: 4px !important;
    }
    
    .copy-btn-big {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
    
    .btn-back-services {
        width: 100%;
        padding: 15px;
    }
}

/* Service Reset Date Display */
.service-reset {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
    padding: 3px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    display: inline-block;
}

.service-status.limit-reached {
    color: #dc2626;
    background: #fef2f2;
}

.service-status.limit-reached + .service-reset {
    color: #dc2626;
    background: #fef2f2;
}

/* =====================================================
   PASSCODE SECTION STYLES (Freepik/Envato)
   ===================================================== */

.passcode-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
}

.passcode-header {
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 10px;
}

.passcode-info {
    font-size: 13px;
    color: #78350f;
    margin-bottom: 15px;
    line-height: 1.5;
}

.btn-get-passcode,
.btn-check-envato-passcode {
    width: 100%;
    padding: 14px 20px;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-get-passcode:hover,
.btn-check-envato-passcode:hover {
    background: #d97706;
    transform: translateY(-2px);
}

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

.envato-passcode-prompt {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.envato-passcode-prompt p {
    margin-bottom: 15px;
    font-weight: 600;
    color: #374151;
}

.btn-yes-passcode,
.btn-no-passcode {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.btn-yes-passcode {
    background: #10b981;
    color: white;
}

.btn-yes-passcode:hover {
    background: #059669;
}

.btn-no-passcode {
    background: #6b7280;
    color: white;
}

.btn-no-passcode:hover {
    background: #4b5563;
}

.passcode-result {
    margin-top: 15px;
}

.passcode-success {
    background: #dcfce7;
    border: 2px solid #10b981;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.passcode-code {
    font-size: 32px;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    color: #065f46;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.copy-passcode-btn {
    padding: 10px 25px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-passcode-btn:hover {
    background: #059669;
    transform: scale(1.05);
}

.passcode-time {
    font-size: 12px;
    color: #6b7280;
    margin-top: 10px;
}

.passcode-error {
    background: #fef2f2;
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: 15px;
    color: #dc2626;
}

.passcode-tip {
    font-size: 13px;
    color: #78350f !important;
    margin-top: 10px;
    padding: 10px;
    background: #fef3c7;
    border-radius: 6px;
}

/* Freepik specific colors */
.freepik-passcode {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
}

.freepik-passcode .passcode-header {
    color: #1e40af;
}

.freepik-passcode .passcode-info {
    color: #1e3a8a;
}

.freepik-passcode .btn-get-passcode {
    background: #3b82f6;
}

.freepik-passcode .btn-get-passcode:hover {
    background: #2563eb;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .passcode-section {
        padding: 15px;
    }
    
    .passcode-code {
        font-size: 26px;
        letter-spacing: 3px;
    }
    
    .btn-yes-passcode,
    .btn-no-passcode {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
}

/* ========================================
   CHATBOT-STYLE PASSCODE PROMPTS
   ======================================== */

.chatbot-prompt {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-prompt .prompt-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.chatbot-prompt .prompt-content {
    flex: 1;
}

.chatbot-prompt .prompt-question {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.chatbot-prompt .prompt-hint {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.chatbot-prompt .prompt-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chatbot-prompt .prompt-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chatbot-prompt .prompt-btn-yes {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.chatbot-prompt .prompt-btn-yes:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.chatbot-prompt .prompt-btn-no {
    background: #e2e8f0;
    color: #475569;
}

.chatbot-prompt .prompt-btn-no:hover {
    background: #cbd5e1;
}

/* Envato prompt - yellow theme */
.chatbot-prompt.envato-prompt {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border-color: #fde047;
}

.envato-prompt .prompt-question {
    color: #854d0e;
}

.envato-prompt .prompt-hint {
    color: #a16207;
}

/* Scanning Indicator */
.scanning-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #3b82f6;
    font-weight: 500;
}

.scanning-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Prompt */
.passcode-success-prompt {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

.passcode-success-prompt .prompt-question {
    color: #166534;
}

.passcode-display {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.passcode-code-big {
    font-size: 36px;
    font-weight: 800;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    color: #166534;
    letter-spacing: 6px;
    margin-bottom: 15px;
}

.copy-passcode-btn-big {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-passcode-btn-big:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.passcode-time-info {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

/* Not Found Prompt */
.passcode-notfound-prompt {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.passcode-notfound-prompt .prompt-question {
    color: #b45309;
}

.passcode-notfound-prompt .prompt-hint {
    color: #92400e;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chatbot-prompt {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .chatbot-prompt .prompt-buttons {
        justify-content: center;
    }
    
    .chatbot-prompt .prompt-btn {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
    
    .passcode-code-big {
        font-size: 28px;
        letter-spacing: 4px;
    }
}

/* ========================================
   EMAIL-ONLY SERVICE STYLES
   ======================================== */

.email-only-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    border-color: #3b82f6 !important;
}

.email-only-box .code-service-name {
    color: #1e40af;
}

.email-only-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 700;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.email-only-desc {
    color: #1e3a8a;
    font-size: 14px;
    margin: 10px 0 0 0;
}

.email-only-creds {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
}

.email-only-creds .cred-header {
    font-weight: 700;
    color: #166534;
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #86efac;
}

.email-only-creds p {
    margin: 10px 0;
    color: #15803d;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.email-only-creds .cred-value {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    background: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #166534;
    border: 1px solid #86efac;
}

.copy-inline-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.copy-inline-btn:hover {
    background: #059669;
    transform: scale(1.1);
}

/* Email confirmation prompt */
.email-confirm-prompt {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
}

.email-confirm-prompt .prompt-question {
    color: #1e40af;
}

.email-confirm-prompt .prompt-hint {
    color: #1e3a8a;
}

/* ===== V10.1 - Verification Type Prompt Styles ===== */

/* Email prompt buttons container */
.email-prompt-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 15px 0;
    flex-wrap: wrap;
}

/* "Yes, scan for code" button */
.btn-yes-scan-email,
.btn-need-passcode {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-yes-scan-email:hover,
.btn-need-passcode:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* "No code needed" button */
.btn-no-code-needed,
.btn-no-passcode {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.btn-no-code-needed:hover,
.btn-no-passcode:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

/* Addon buttons for TOTP+Email flow */
.addon-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 15px 0;
    flex-wrap: wrap;
}

/* Scanning indicator */
.totp-email-addon .scanning-indicator,
.email-code-section .scanning-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #fef3c7;
    border-radius: 8px;
    color: #92400e;
    font-weight: 500;
}

/* Email code dismissed state */
.email-code-dismissed {
    text-align: center;
    padding: 15px;
    background: #f3f4f6;
    border-radius: 8px;
}

.email-code-dismissed p {
    margin: 0 0 12px 0;
    color: #6b7280;
}

/* Code found success state */
.email-code-found,
.email-code-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px solid #10b981;
}

.code-found-label {
    font-size: 18px;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 12px;
}

.found-code,
.email-code-display {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 36px;
    font-weight: 700;
    color: #047857;
    background: white;
    padding: 15px 30px;
    border-radius: 10px;
    display: inline-block;
    margin: 10px 0;
    letter-spacing: 4px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.copy-found-code,
.copy-code-big {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.copy-found-code:hover,
.copy-code-big:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.code-time {
    margin-top: 10px;
    font-size: 13px;
    color: #065f46;
}

/* Code not found state */
.email-not-found,
.email-code-notfound {
    background: #fef3c7;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px solid #fbbf24;
}

.notfound-label {
    font-size: 16px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 10px;
}

.email-not-found p,
.email-code-notfound p {
    color: #78350f;
    margin: 8px 0;
}

.btn-retry-scan {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-retry-scan:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Spin animation */
.spin {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* TOTP Email Addon section styling */
.totp-email-addon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
    border: 2px solid #3b82f6;
}

.totp-email-addon .addon-header {
    font-size: 18px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 10px;
}

.totp-email-addon .addon-desc {
    color: #1e3a8a;
    margin-bottom: 15px;
    font-size: 14px;
}

/* ===== Device Manager Section ===== */
.device-manager-section {
    margin: 20px 0;
}

.device-manager-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.dm-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.dm-content {
    flex: 1;
}

.dm-content strong {
    font-size: 16px;
    color: #92400e;
    display: block;
    margin-bottom: 8px;
}

.dm-content p {
    color: #78350f;
    margin: 0 0 15px 0;
    font-size: 14px;
}

/* ===== Login URL Button Section ===== */
.login-url-section {
    margin: 0 0 20px 0;
    text-align: center;
}

.btn-login-url {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white !important;
    text-decoration: none !important;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-login-url:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
    color: white !important;
    text-decoration: none !important;
}

.btn-login-url:active {
    transform: translateY(0);
}

/* ===== Email Action Row (Scan Code Button) ===== */
.email-action-row {
    text-align: center;
    margin-top: 15px;
}

.btn-scan-code {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-scan-code:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-scan-code:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ===== Freepik Device Manager Dedicated Section ===== */
.freepik-device-section {
    margin: 25px 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.freepik-device-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dm-title-icon {
    font-size: 24px;
}

.dm-title-text {
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.freepik-device-content {
    padding: 20px;
}

.dm-warning-box {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.dm-warning-box p {
    color: #f1f5f9;
    margin: 0 0 10px 0;
    font-size: 14px;
}

.dm-warning-box p strong {
    color: #fbbf24;
}

.dm-steps {
    margin: 15px 0 0 0;
    padding-left: 20px;
    color: #cbd5e1;
    font-size: 13px;
}

.dm-steps li {
    margin-bottom: 8px;
}

.dm-action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-open-dm {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white !important;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
}

.btn-open-dm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    text-decoration: none;
    color: white !important;
}

.btn-get-confirmation {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-get-confirmation:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-get-confirmation:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.dm-confirmation-result {
    margin-top: 20px;
}

.dm-scanning {
    background: rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 15px 20px;
    text-align: center;
    color: #93c5fd;
    font-size: 14px;
}

.dm-link-success {
    background: linear-gradient(135deg, #065f46 0%, #064e3b 100%);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.dm-found-label {
    font-size: 18px;
    font-weight: 700;
    color: #34d399;
    margin-bottom: 12px;
}

.dm-link-info {
    color: #a7f3d0;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.btn-confirm-removal {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    display: inline-block;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.btn-confirm-removal:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
    text-decoration: none;
    color: white !important;
}

.dm-link-time {
    color: #6ee7b7;
    font-size: 12px;
    margin: 10px 0;
}

.btn-copy-link {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.btn-copy-link:hover {
    background: rgba(255,255,255,0.3);
}

.dm-not-found-msg {
    background: rgba(251, 191, 36, 0.2);
    border-radius: 10px;
    padding: 15px 20px;
    text-align: center;
}

.dm-not-found-msg p {
    margin: 0 0 8px 0;
    color: #fcd34d;
    font-size: 14px;
}

.dm-not-found-msg p:last-child {
    margin-bottom: 0;
    font-size: 13px;
    color: #fde68a;
}

/* Legacy styles kept for compatibility */
.dm-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-device-manager {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white !important;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-device-manager:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    text-decoration: none;
    color: white !important;
}

.btn-get-dm-link {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-get-dm-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.dm-result {
    margin-top: 15px;
}

.dm-link-found {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 2px solid #10b981;
}

.dm-success-label {
    font-size: 16px;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 12px;
}

.btn-dm-confirm-link {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-dm-confirm-link:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    text-decoration: none;
    color: white !important;
}

.dm-not-found {
    background: #fef3c7;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.dm-not-found p {
    margin: 0;
    color: #92400e;
    font-size: 14px;
}

/* v12.0.5 — OTP page mobile fixes */
@media (max-width: 600px) {
    .totp-bot {
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .totp-header {
        padding: 14px 16px !important;
        border-radius: 0 !important;
    }
    .totp-messages .totp-message {
        font-size: 14px !important;
        padding: 12px !important;
    }
    /* Service cards full width */
    .service-item, .service-card {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* OTP code display */
    .otp-code {
        font-size: 36px !important;
        letter-spacing: 8px !important;
    }
}

/* ============================================================
   v12.8 — MYSUBSHARE MODERN DARK THEME (OTP page redesign)
   Scoped under .totp-modern with important flags so the active
   theme's direct element selectors cannot override the design.
   No external font imports - uses brand fonts if the theme loads
   them, with safe system fallbacks (avoids render-blocking).
   ============================================================ */

.totp-modern,
.totp-modern * { box-sizing: border-box !important; }

.totp-modern {
    max-width: 460px !important;
    margin: 32px auto !important;
    background: #12121a !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 30px 80px rgba(0,0,0,.55) !important;
    font-family: 'DM Sans','Plus Jakarta Sans','Segoe UI',Arial,sans-serif !important;
    color: #f5f5f8 !important;
}

/* ---------- Header ---------- */
.totp-modern .totp-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px 20px !important;
    background: linear-gradient(180deg, rgba(124,92,252,.09), rgba(18,18,26,0)) !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    text-align: left !important;
}
.totp-modern .totp-brand-mark {
    width: 38px !important; height: 38px !important; flex: none !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg,#fe6401,#ff8a3d) !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    font-family: 'Sora','Segoe UI',Arial,sans-serif !important;
    font-weight: 800 !important; font-size: 15px !important; color: #fff !important;
    box-shadow: 0 6px 18px rgba(254,100,1,.35) !important;
}
.totp-modern .totp-head-titles { flex: 1 !important; }
.totp-modern .totp-header h3 {
    margin: 0 !important; font-family: 'Sora','Segoe UI',Arial,sans-serif !important;
    font-size: 16px !important; font-weight: 700 !important; color: #fff !important; letter-spacing: -.01em !important;
}
.totp-modern .totp-header p {
    margin: 1px 0 0 !important; font-size: 12px !important; color: #9a9aae !important; opacity: 1 !important;
}
.totp-modern .totp-live-dot {
    display: inline-flex !important; align-items: center !important; gap: 6px !important;
    font-family: ui-monospace,'Courier New',monospace !important;
    font-size: 10px !important; letter-spacing: .12em !important; color: #22c58b !important;
}
.totp-modern .totp-live-dot i {
    width: 7px !important; height: 7px !important; border-radius: 50% !important;
    background: #22c58b !important; animation: totpPulse 2s infinite !important;
}
@keyframes totpPulse {
    0% { box-shadow: 0 0 0 0 rgba(34,197,139,.5); }
    70% { box-shadow: 0 0 0 8px rgba(34,197,139,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,139,0); }
}

/* ---------- Dashboard link + nav ---------- */
.totp-modern .totp-dashboard-link { padding: 12px 20px 0 !important; background: transparent !important; text-align: left !important; }
.totp-modern .dashboard-btn {
    display: inline-block !important; color: #9a9aae !important; font-size: 12.5px !important;
    font-weight: 600 !important; text-decoration: none !important; background: transparent !important;
    padding: 0 !important; border: 0 !important;
}
.totp-modern .dashboard-btn:hover { color: #fff !important; }
.totp-modern .totp-navigation { padding: 10px 20px 0 !important; display: flex !important; gap: 8px !important; background: transparent !important; }
.totp-modern .totp-navigation:empty { padding: 0 !important; }
.totp-modern .nav-btn {
    background: #181824 !important; color: #c9c9d6 !important;
    border: 1px solid rgba(255,255,255,.12) !important; border-radius: 10px !important;
    padding: 8px 14px !important; font-size: 12.5px !important; font-weight: 600 !important;
    cursor: pointer !important; font-family: 'Sora','Segoe UI',Arial,sans-serif !important;
}
.totp-modern .nav-btn:hover { border-color: rgba(254,100,1,.55) !important; color: #fff !important; }

/* ---------- Usage badge ---------- */
.totp-modern .totp-usage { padding: 0 20px !important; background: transparent !important; }
.totp-modern .totp-usage:empty { padding: 0 !important; }
.totp-modern .usage-badge {
    margin-top: 12px !important;
    display: flex !important; justify-content: center !important; align-items: center !important; gap: 12px !important;
    background: rgba(254,100,1,.12) !important; border: 1px solid rgba(254,100,1,.35) !important;
    color: #ffb27d !important; border-radius: 12px !important;
    padding: 10px 14px !important; font-weight: 700 !important; font-size: 13px !important; text-align: center !important;
}
.totp-modern .usage-badge.usage-danger {
    background: rgba(255,77,94,.12) !important; border-color: rgba(255,77,94,.4) !important; color: #ff8f9a !important;
}
.totp-modern .usage-badge.no-otp-badge {
    background: rgba(34,197,139,.12) !important; border-color: rgba(34,197,139,.35) !important; color: #7ce4bb !important;
}
.totp-modern .usage-sep { color: rgba(255,255,255,.3) !important; }

/* ---------- Messages area ---------- */
.totp-modern .totp-messages {
    background: transparent !important; height: auto !important; min-height: 120px !important;
    max-height: none !important; overflow: visible !important; padding: 16px 20px 22px !important;
}
.totp-modern .msg {
    background: transparent !important; border: 0 !important; box-shadow: none !important;
    padding: 0 !important; margin: 12px 0 !important; color: #d6d6e2 !important; font-size: 14px !important;
    line-height: 1.6 !important;
}
.totp-modern .msg small { color: #9a9aae !important; }
.totp-modern .success-msg { color: #7ce4bb !important; font-weight: 600 !important; }
.totp-modern .error-msg {
    background: rgba(255,77,94,.1) !important; border: 1px solid rgba(255,77,94,.35) !important;
    border-radius: 12px !important; padding: 12px 14px !important; color: #ff8f9a !important;
}
.totp-modern .warning-msg { color: #ffcf87 !important; }

/* ---------- Signed-out panel (replaces login form) ---------- */
.totp-modern .totp-signin-panel {
    border-top: 1px solid rgba(255,255,255,.08) !important; background: #181824 !important;
    padding: 26px 24px 28px !important; text-align: center !important;
}
.totp-modern .signin-lock { font-size: 30px !important; margin-bottom: 8px !important; }
.totp-modern .signin-title {
    margin: 0 0 6px !important; font-family: 'Sora','Segoe UI',Arial,sans-serif !important;
    font-size: 17px !important; font-weight: 800 !important; color: #fff !important;
}
.totp-modern .signin-text { margin: 0 0 16px !important; font-size: 13px !important; color: #9a9aae !important; line-height: 1.6 !important; }
.totp-modern .signin-btn {
    display: block !important; width: 100% !important; text-align: center !important;
    background: linear-gradient(135deg,#fe6401,#ff8035) !important; color: #fff !important;
    font-family: 'Sora','Segoe UI',Arial,sans-serif !important; font-weight: 700 !important; font-size: 14.5px !important;
    padding: 14px !important; border-radius: 14px !important; text-decoration: none !important;
    box-shadow: 0 8px 22px rgba(254,100,1,.35) !important;
}
.totp-modern .signin-btn:hover { transform: translateY(-1px) !important; }
.totp-modern .signin-help { margin: 14px 0 0 !important; font-size: 12px !important; color: #9a9aae !important; }
.totp-modern .signin-help a { color: #25D366 !important; font-weight: 700 !important; text-decoration: none !important; }

/* ---------- Services list ---------- */
.totp-modern .services-container h4 {
    margin: 0 0 2px !important; font-family: 'Sora','Segoe UI',Arial,sans-serif !important;
    font-size: 17px !important; font-weight: 800 !important; color: #fff !important; letter-spacing: -.01em !important;
}
.totp-modern .info-text { color: #9a9aae !important; font-size: 12.5px !important; margin: 0 0 14px !important; }
.totp-modern .services { display: flex !important; flex-direction: column !important; gap: 10px !important; }
.totp-modern .service {
    display: grid !important; grid-template-columns: 44px 1fr auto !important; gap: 13px !important;
    align-items: center !important;
    background: #181824 !important; border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 16px !important; padding: 14px !important; cursor: pointer !important;
    transition: border .2s, transform .15s, background .2s !important;
    text-align: left !important; margin: 0 !important; width: auto !important;
}
.totp-modern .service:hover:not(.disabled) {
    border-color: rgba(254,100,1,.55) !important; transform: translateY(-1px) !important; background: #1b1b29 !important;
}
.totp-modern .service.disabled { opacity: .55 !important; cursor: not-allowed !important; }
.totp-modern .service-icon {
    width: 44px !important; height: 44px !important; border-radius: 12px !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    font-size: 20px !important;
    background: linear-gradient(135deg,rgba(124,92,252,.25),rgba(254,100,1,.18)) !important;
    border: 1px solid rgba(255,255,255,.14) !important; margin: 0 !important;
}
.totp-modern .service-name {
    font-family: 'Sora','Segoe UI',Arial,sans-serif !important; font-weight: 700 !important;
    font-size: 14.5px !important; color: #fff !important; margin: 0 !important;
}
.totp-modern .service-email { font-size: 11.5px !important; color: #9a9aae !important; margin: 3px 0 0 !important; word-break: break-all !important; }
.totp-modern .service-side { text-align: right !important; }
.totp-modern .svc-pill {
    display: inline-block !important; font-family: ui-monospace,'Courier New',monospace !important;
    font-size: 10px !important; letter-spacing: .05em !important; font-weight: 700 !important;
    padding: 4px 9px !important; border-radius: 99px !important; white-space: nowrap !important;
}
.totp-modern .pill-ok { background: rgba(34,197,139,.14) !important; color: #22c58b !important; border: 1px solid rgba(34,197,139,.3) !important; }
.totp-modern .pill-warn { background: rgba(255,176,32,.12) !important; color: #ffb020 !important; border: 1px solid rgba(255,176,32,.3) !important; }
.totp-modern .pill-limit { background: rgba(255,77,94,.12) !important; color: #ff4d5e !important; border: 1px solid rgba(255,77,94,.3) !important; }
.totp-modern .pill-email { background: rgba(124,92,252,.14) !important; color: #b3a1ff !important; border: 1px solid rgba(124,92,252,.35) !important; }
.totp-modern .svc-usage-track {
    width: 74px !important; height: 5px !important; border-radius: 99px !important;
    background: rgba(255,255,255,.09) !important; margin: 8px 0 0 auto !important; overflow: hidden !important;
}
.totp-modern .svc-usage-fill { height: 100% !important; border-radius: 99px !important; background: linear-gradient(90deg,#fe6401,#ff8a3d) !important; }
.totp-modern .svc-fill-full { background: #ff4d5e !important; }
.totp-modern .svc-reset { font-size: 10.5px !important; color: #6d6d84 !important; margin-top: 5px !important; font-family: ui-monospace,'Courier New',monospace !important; }

/* ---------- Confirmation dialog ---------- */
.totp-modern .confirmation-dialog {
    background: #181824 !important; border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 18px !important; padding: 20px !important; text-align: left !important;
}
.totp-modern .confirm-chip {
    display: inline-block !important; background: rgba(124,92,252,.16) !important;
    border: 1px solid rgba(124,92,252,.35) !important; color: #b3a1ff !important;
    border-radius: 99px !important; padding: 5px 12px !important;
    font-family: 'Sora','Segoe UI',Arial,sans-serif !important; font-weight: 700 !important; font-size: 12px !important;
    margin-bottom: 10px !important;
}
.totp-modern .confirmation-dialog h3 {
    margin: 0 0 10px !important; font-family: 'Sora','Segoe UI',Arial,sans-serif !important;
    font-size: 19px !important; font-weight: 800 !important; color: #fff !important;
}
.totp-modern .confirmation-dialog .warning { color: #ffcf87 !important; font-size: 13.5px !important; margin: 0 0 8px !important; }
.totp-modern .checklist { margin: 0 0 14px !important; padding-left: 20px !important; color: #d6d6e2 !important; font-size: 13.5px !important; line-height: 1.9 !important; }
.totp-modern .checklist strong { color: #fff !important; }
.totp-modern .info-box {
    background: rgba(254,100,1,.08) !important; border: 1px solid rgba(254,100,1,.28) !important;
    border-radius: 12px !important; padding: 12px 14px !important; margin-bottom: 16px !important;
}
.totp-modern .info-box p { margin: 3px 0 !important; color: #ffb27d !important; font-size: 12.5px !important; }
.totp-modern .confirm-buttons { display: flex !important; flex-direction: column !important; gap: 8px !important; }
.totp-modern .btn-confirm {
    width: 100% !important; border: 0 !important; border-radius: 14px !important; padding: 14px !important;
    background: linear-gradient(135deg,#fe6401,#ff8035) !important; color: #fff !important;
    font-family: 'Sora','Segoe UI',Arial,sans-serif !important; font-weight: 700 !important; font-size: 14.5px !important;
    cursor: pointer !important; box-shadow: 0 8px 22px rgba(254,100,1,.35) !important;
}
.totp-modern .btn-cancel {
    width: 100% !important; border-radius: 14px !important; padding: 13px !important;
    background: transparent !important; border: 1px solid rgba(255,255,255,.16) !important;
    color: #9a9aae !important; font-family: 'Sora','Segoe UI',Arial,sans-serif !important;
    font-weight: 600 !important; font-size: 13.5px !important; cursor: pointer !important;
}
.totp-modern .btn-cancel:hover { color: #fff !important; }

/* ---------- Code view: ring + digits ---------- */
.totp-modern .code-primary { background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
.totp-modern .code-display-main { text-align: center !important; padding: 8px 0 0 !important; background: transparent !important; }
.totp-modern .code-service-name {
    display: inline-flex !important; align-items: center !important; gap: 8px !important;
    background: #181824 !important; border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 99px !important; padding: 8px 16px !important;
    font-family: 'Sora','Segoe UI',Arial,sans-serif !important; font-weight: 700 !important;
    font-size: 13px !important; color: #fff !important; margin-bottom: 18px !important;
}
.totp-modern .code-ring-wrap { position: relative !important; width: 180px !important; height: 180px !important; margin: 0 auto 4px !important; }
.totp-modern .code-ring-wrap svg { transform: rotate(-90deg) !important; display: block !important; }
.totp-modern .code-ring-bg { fill: none !important; stroke: rgba(255,255,255,.07) !important; stroke-width: 9 !important; }
.totp-modern .code-ring-fg {
    fill: none !important; stroke: #fe6401 !important; stroke-width: 9 !important; stroke-linecap: round !important;
    filter: drop-shadow(0 0 6px rgba(254,100,1,.5)) !important; transition: stroke-dashoffset 1s linear, stroke .3s !important;
}
.totp-modern .code-ring-fg.ring-danger { stroke: #ff4d5e !important; filter: drop-shadow(0 0 6px rgba(255,77,94,.55)) !important; }
.totp-modern .code-ring-center {
    position: absolute !important; inset: 0 !important; display: flex !important; flex-direction: column !important;
    align-items: center !important; justify-content: center !important; gap: 2px !important;
}
.totp-modern .code-ring-secs {
    font-family: ui-monospace,'Courier New',monospace !important; font-weight: 800 !important;
    font-size: 40px !important; line-height: 1 !important; color: #fff !important; letter-spacing: -.02em !important;
}
.totp-modern .code-ring-secs.ring-danger { color: #ff4d5e !important; }
.totp-modern .code-ring-label {
    font-family: ui-monospace,'Courier New',monospace !important; font-size: 10px !important;
    letter-spacing: .18em !important; color: #9a9aae !important; text-transform: uppercase !important;
}
.totp-modern .code-digits { display: flex !important; justify-content: center !important; gap: 8px !important; margin: 16px 0 6px !important; }
.totp-modern .code-digit {
    width: 46px !important; height: 58px !important; border-radius: 14px !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    background: #181824 !important; border: 1px solid rgba(255,255,255,.14) !important;
    font-family: ui-monospace,'Courier New',monospace !important; font-weight: 800 !important;
    font-size: 28px !important; color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06) !important;
}
.totp-modern .code-digit-gap { margin-left: 10px !important; }
.totp-modern .code-digits.code-expired .code-digit { color: #55556a !important; border-color: rgba(255,255,255,.07) !important; }
.totp-modern .code-expired-note {
    margin: 8px 0 2px !important; font-size: 12.5px !important; color: #ff8f9a !important; font-weight: 600 !important;
}
.totp-modern .copy-btn-big {
    margin-top: 12px !important; width: 100% !important; border: 0 !important; border-radius: 14px !important;
    padding: 15px !important; cursor: pointer !important;
    background: linear-gradient(135deg,#fe6401,#ff8035) !important; color: #fff !important;
    font-family: 'Sora','Segoe UI',Arial,sans-serif !important; font-weight: 800 !important; font-size: 15px !important;
    letter-spacing: .02em !important; box-shadow: 0 8px 24px rgba(254,100,1,.4) !important;
    transition: transform .15s !important;
}
.totp-modern .copy-btn-big:hover { transform: translateY(-1px) !important; }
.totp-modern .copy-btn-big.copied { background: #22c58b !important; box-shadow: 0 8px 24px rgba(34,197,139,.35) !important; }
.totp-modern .copy-btn-big.copy-disabled { opacity: .45 !important; cursor: not-allowed !important; transform: none !important; }

/* ---------- Code view: back, details, addon ---------- */
.totp-modern .code-back-section { text-align: center !important; margin-top: 12px !important; }
.totp-modern .btn-back-services {
    background: transparent !important; border: 0 !important; color: #9a9aae !important;
    font-size: 13px !important; font-weight: 600 !important; cursor: pointer !important;
    font-family: 'DM Sans','Segoe UI',Arial,sans-serif !important;
}
.totp-modern .btn-back-services:hover { color: #fff !important; }
.totp-modern .code-details-section { margin-top: 16px !important; text-align: left !important; }
.totp-modern .toggle-details-btn {
    width: 100% !important; background: #181824 !important; border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 14px !important; padding: 13px 16px !important; color: #9a9aae !important;
    font-family: 'Sora','Segoe UI',Arial,sans-serif !important; font-weight: 600 !important; font-size: 13px !important;
    cursor: pointer !important; text-align: left !important;
}
.totp-modern .toggle-details-btn:hover { color: #fff !important; }
.totp-modern .code-details-content { margin-top: 10px !important; }
.totp-modern .credentials-box, .totp-modern .instructions-box, .totp-modern .usage-box {
    background: #181824 !important; border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 14px !important; padding: 14px 16px !important; margin-bottom: 10px !important;
}
.totp-modern .cred-header, .totp-modern .inst-header, .totp-modern .usage-header {
    font-family: ui-monospace,'Courier New',monospace !important; font-size: 10px !important;
    letter-spacing: .14em !important; text-transform: uppercase !important; color: #9a9aae !important;
    margin-bottom: 9px !important; font-weight: 700 !important;
}
.totp-modern .credentials-box p, .totp-modern .instructions-box p, .totp-modern .usage-box p {
    margin: 5px 0 !important; color: #d6d6e2 !important; font-size: 13px !important;
}
.totp-modern .cred-value { font-family: ui-monospace,'Courier New',monospace !important; font-size: 12.5px !important; color: #fff !important; word-break: break-all !important; }
.totp-modern .usage-box .warning-text { color: #ff8f9a !important; font-weight: 700 !important; }
.totp-modern .code-actions { margin-top: 4px !important; }
.totp-modern .btn-view-login {
    display: inline-flex !important; align-items: center !important; gap: 8px !important;
    color: #b3a1ff !important; font-size: 13px !important; font-weight: 700 !important; text-decoration: none !important;
}
.totp-modern .totp-email-addon {
    margin-top: 14px !important; background: rgba(124,92,252,.12) !important;
    border: 1px solid rgba(124,92,252,.32) !important; border-radius: 16px !important;
    padding: 16px !important; text-align: left !important;
}
.totp-modern .addon-header {
    font-family: 'Sora','Segoe UI',Arial,sans-serif !important; font-size: 13.5px !important;
    font-weight: 700 !important; color: #fff !important; margin-bottom: 5px !important;
}
.totp-modern .addon-desc { font-size: 12px !important; color: #c8bfff !important; line-height: 1.55 !important; margin: 0 0 12px !important; }
.totp-modern .addon-buttons { display: flex !important; gap: 8px !important; }
.totp-modern .btn-need-passcode, .totp-modern .btn-no-passcode {
    flex: 1 !important; border-radius: 12px !important; padding: 11px !important;
    font-family: 'Sora','Segoe UI',Arial,sans-serif !important; font-weight: 700 !important;
    font-size: 12.5px !important; cursor: pointer !important;
}
.totp-modern .btn-need-passcode { background: #7c5cfc !important; border: 0 !important; color: #fff !important; }
.totp-modern .btn-no-passcode { background: transparent !important; border: 1px solid rgba(124,92,252,.4) !important; color: #c8bfff !important; }

/* ---------- Shared states: in-use, no subs, waiting, email flow, device manager ---------- */
.totp-modern .in-use-message, .totp-modern .no-subscriptions-state {
    background: #181824 !important; border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 18px !important; padding: 24px 20px !important; text-align: center !important;
}
.totp-modern .in-use-message h3, .totp-modern .no-subscriptions-state h3 {
    color: #fff !important; font-family: 'Sora','Segoe UI',Arial,sans-serif !important;
    font-weight: 800 !important; font-size: 17px !important; margin: 8px 0 !important;
}
.totp-modern .in-use-message p, .totp-modern .no-subscriptions-state p { color: #9a9aae !important; font-size: 13px !important; margin: 5px 0 !important; }
.totp-modern .in-use-note strong { color: #ffb020 !important; }
.totp-modern .btn-retry-later, .totp-modern .btn-subscribe-now, .totp-modern .btn-subscribe-link {
    display: inline-block !important; margin-top: 12px !important; border: 0 !important; border-radius: 12px !important;
    padding: 12px 22px !important; background: linear-gradient(135deg,#fe6401,#ff8035) !important; color: #fff !important;
    font-family: 'Sora','Segoe UI',Arial,sans-serif !important; font-weight: 700 !important; font-size: 13.5px !important;
    cursor: pointer !important; text-decoration: none !important;
}
.totp-modern .freepik-device-section, .totp-modern .email-code-section {
    background: #181824 !important; border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 16px !important; margin-top: 14px !important; overflow: hidden !important;
}
.totp-modern .freepik-device-header {
    padding: 13px 16px !important; border-bottom: 1px solid rgba(255,255,255,.08) !important;
    font-family: 'Sora','Segoe UI',Arial,sans-serif !important; font-weight: 700 !important; color: #fff !important;
}
.totp-modern .freepik-device-content { padding: 14px 16px !important; color: #d6d6e2 !important; font-size: 13px !important; }
.totp-modern .dm-warning-box p, .totp-modern .dm-steps li { color: #d6d6e2 !important; font-size: 13px !important; }
.totp-modern .btn-open-dm, .totp-modern .btn-get-confirmation {
    display: block !important; width: 100% !important; text-align: center !important; margin-top: 8px !important;
    border: 1px solid rgba(124,92,252,.4) !important; border-radius: 12px !important; padding: 11px !important;
    background: rgba(124,92,252,.15) !important; color: #c8bfff !important;
    font-family: 'Sora','Segoe UI',Arial,sans-serif !important; font-weight: 700 !important; font-size: 13px !important;
    cursor: pointer !important; text-decoration: none !important;
}

/* ---------- Responsive + accessibility ---------- */
@media (max-width: 480px) {
    .totp-modern { margin: 16px auto !important; border-radius: 20px !important; }
    .totp-modern .code-digit { width: 40px !important; height: 52px !important; font-size: 24px !important; }
    .totp-modern .code-ring-wrap { width: 160px !important; height: 160px !important; }
    .totp-modern .code-ring-wrap svg { width: 160px !important; height: 160px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .totp-modern * { animation: none !important; transition: none !important; }
}
