/* ============================================
   KING MODE SPECIFIC STYLES
   ============================================ */

/* King Mode Indicator (Header) */
.king-mode-indicator {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: none;
    /* Controlled by JS */
    align-items: center;
    gap: 6px;
    animation: crownBounce 2s infinite;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.king-mode-indicator.active {
    display: flex;
}

@keyframes crownBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* King Mode Alpha Tag */
.king-mode-alpha-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #b45309;
    background: rgba(245, 158, 11, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

/* King Mode Expansion Container (Settings) */
.king-mode-expansion {
    padding: 12px 16px 16px 16px;
    background: rgba(251, 191, 36, 0.04);
    border-top: 1px dashed rgba(251, 191, 36, 0.3);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.king-mode-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-primary);
}

.king-mode-warning-icon {
    flex-shrink: 0;
    font-size: 16px;
}

.king-mode-warning-text {
    flex: 1;
}

/* King Mode Payment Setting */
.king-payment-setting {
    padding: 14px 16px !important;
    background: rgba(251, 191, 36, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.1);
}

.king-payment-setting .settings-icon {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* Dark Mode Overrides */
body.dark-mode .king-mode-expansion {
    background: rgba(251, 191, 36, 0.08);
}

body.dark-mode .king-mode-warning {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
}

body.dark-mode .king-payment-setting {
    background: rgba(251, 191, 36, 0.1);
}

/* King Mode Toggle Switch */
.king-toggle {
    position: relative;
    width: 60px;
    height: 32px;
    background: #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.king-toggle.active {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: rgba(180, 83, 9, 0.2);
}

.king-icon {
    font-size: 14px;
    z-index: 1;
    transition: all 0.3s ease;
}

.king-toggle .king-icon.on {
    opacity: 0.3;
}

.king-toggle.active .king-icon.off {
    opacity: 0.3;
}

.king-toggle.active .king-icon.on {
    opacity: 1;
}

.king-slider {
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    left: 4px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.king-toggle.active .king-slider {
    left: calc(100% - 28px);
}

/* Voice Button (Mic) */
.voice-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.voice-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.voice-btn:active {
    transform: scale(0.95);
}

.voice-btn.recording {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    animation: voicePulse 1.5s infinite;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

@keyframes voicePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}