.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;
}
