/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #092345;  /* 메인 화면은 전체 파란색 */
    color: #E5E0D9;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* 메인 인터페이스용 글래스 오버레이 배경 효과 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 35% 30%, rgba(200, 220, 255, 0.12), transparent 80%),
        radial-gradient(circle at 80% 20%, rgba(255, 200, 220, 0.08), transparent 45%),
        radial-gradient(circle at 60% 70%, rgba(220, 255, 200, 0.08), transparent 50%),
        radial-gradient(ellipse at center, rgba(255,255,255,0.05), transparent 70%),
        linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    pointer-events: none;
    z-index: 0;
}

/* Container - 오버레이 위에 표시 */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

/* 메인 인터페이스 글래스 박스 - 별도 요소로 생성 */
.main-glass-overlay {
    position: fixed;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: 
        radial-gradient(ellipse at 35% 30%, rgba(200, 220, 255, 0.12), transparent 80%),
        radial-gradient(circle at 80% 20%, rgba(255, 200, 220, 0.08), transparent 45%),
        radial-gradient(circle at 60% 70%, rgba(220, 255, 200, 0.08), transparent 50%),
        radial-gradient(ellipse at center, rgba(255,255,255,0.05), transparent 70%),
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.08) 0%, 
            rgba(255, 255, 255, 0.03) 50%, 
            rgba(255, 255, 255, 0.01) 100%
        );
    -webkit-backdrop-filter: blur(16px) brightness(1.05) contrast(0.95) saturate(1.1);
    backdrop-filter: blur(16px) brightness(1.05) contrast(0.95) saturate(1.1);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 2px 2px rgba(255, 255, 255, 0.25),
        inset 0 -1px 1px rgba(0, 0, 0, 0.05);
    pointer-events: none;
    z-index: 0;
}

/* 메인 인터페이스 글래스 상단 하이라이트 */
.main-glass-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(
        to bottom, 
        rgba(255,255,255,0.12) 0%,
        rgba(255,255,255,0.05) 20%,
        transparent 60%
    );
    border-radius: 24px 24px 0 0;
    pointer-events: none;
}

/* 글래스 측면 반사 효과 */
.main-glass-overlay::after {
    content: "";
    position: absolute;
    top: 15%;
    left: -5px;
    width: 2px;
    height: 30%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    filter: blur(2px);
    pointer-events: none;
}

/* Top-right controls */
.top-right-controls {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    z-index: 1000;
}

.mode-label {
    font-size: 12px;
    color: #E5E0D9;
    opacity: 0.9;
}

.mode-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(229, 224, 217, 0.08);
    color: #E5E0D9;
    border: 1px solid rgba(229, 224, 217, 0.35);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

.mode-select:focus {
    outline: none;
    border-color: rgba(229, 224, 217, 0.65);
}

/* Hide top-level mode UI; keep mode in dropdown only */
.top-right-controls .mode-label,
.top-right-controls .mode-select {
    display: none !important;
}

/* User menu */
.user-menu-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.user-menu-button:hover { background: transparent; }
.user-avatar-img { width: 36px; height: 36px; border-radius: 50%; display: block; }

.user-dropdown {
    position: absolute;
    top: 46px;
    right: 10px;
    min-width: 240px;
    background: rgba(15, 30, 52, 0.95);
    border: 1px solid rgba(229,224,217,0.25);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    padding: 8px;
    z-index: 1001; /* Higher than top-right-controls */
    backdrop-filter: blur(8px);
    display: none; /* Hidden by default */
}
.dropdown-item {
    width: 100%;
    text-align: left;
    background: transparent;
    color: #E5E0D9;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}
.dropdown-item:hover { background: rgba(229,224,217,0.08); }
.dropdown-item.danger { color: #ff6b6b; }
.dropdown-item.danger:hover { background: rgba(255,107,107,0.12); }
.dropdown-separator { height: 1px; background: rgba(229,224,217,0.15); margin: 6px 2px; }
.dropdown-group { padding: 6px 6px 10px; }
.dropdown-label { font-size: 12px; color: #bfc6cf; margin-bottom: 6px; }
.dropdown-inline { display: flex; align-items: center; gap: 6px; }

/* Container */
.container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Remove background particles */

/* Main interface */
.main-interface {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 40px;
}

/* Header */
.header {
    margin-bottom: 60px;
}

.assistant-name {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: brightness(1) blur(0px); }
    100% { filter: brightness(1.2) blur(0.5px); }
}

.status-text {
    font-size: 1.2rem;
    color: #b3b3b3;
    font-weight: 400;
    opacity: 0.8;
    animation: fadeIn 2s ease-out;
    /* Reserve space to prevent layout shift when toggling visibility */
    min-height: 28px;
    line-height: 28px;
    transition: opacity 0.2s ease;
    position: relative;
    z-index: 1;
}

.status-hidden {
    opacity: 0;
    visibility: hidden; /* keep layout space but hide visually */
}

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

/* Mode selector styles */
.mode-selector {
    margin-bottom: 30px;
}

.mode-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    margin: 0 8px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.7;
    transform: scale(0.95);
}

.mode-btn:hover {
    opacity: 0.9;
    transform: scale(1);
}

.mode-btn.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.mode-info {
    color: #b3b3b3;
    font-size: 12px;
    margin-top: 15px;
    text-align: center;
    opacity: 0.8;
}

/* Wave container */
.wave-container {
    position: relative;
    margin: 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#waveCanvas {
    width: 800px;
    aspect-ratio: 2 / 1;
    height: auto;
    border-radius: 20px;
    position: relative;
    z-index: 1001;
}

.wave-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.pulse-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(229, 224, 217, 0.4);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.pulse-ring.delay-1 {
    animation-delay: 0.5s;
    border-color: rgba(229, 224, 217, 0.5);
}

.pulse-ring.delay-2 {
    animation-delay: 1s;
    border-color: rgba(229, 224, 217, 0.6);
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

/* Controls */
.controls {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin: 60px 0;
}

.mic-button, .stop-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: rgba(43, 82, 136, 0.2);
    border: 2px solid rgba(229, 224, 217, 0.4);
    border-radius: 50px;
    color: #E5E0D9;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    min-width: 120px;
}

.mic-button:hover {
    background: rgba(229, 224, 217, 0.1);
    border-color: rgba(229, 224, 217, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(229, 224, 217, 0.2);
}

.mic-button:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(229, 224, 217, 0.3);
}

.mic-button.recording {
    background: rgba(229, 224, 217, 0.2);
    border-color: #E5E0D9;
    animation: recordingPulse 1.5s ease-in-out infinite;
}

@keyframes recordingPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(229, 224, 217, 0.3); }
    50% { box-shadow: 0 0 30px rgba(229, 224, 217, 0.6); }
}

.stop-button {
    border-color: rgba(229, 224, 217, 0.5);
}

.stop-button:hover {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.6);
    transform: translateY(-4px);
}

.mic-icon, .stop-icon {
    width: 32px;
    height: 32px;
}

.button-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Chat history */
.chat-history {
    position: fixed;
    bottom: 30px;
    right: 30px;
    max-width: 400px;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    transform: translateY(calc(100% - 50px));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-history.expanded {
    transform: translateY(0);
}

.chat-toggle {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-toggle button {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.chat-messages {
    max-height: 300px;
    overflow-y: auto;
    padding: 20px;
}

.message {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.user {
    background: rgba(255, 107, 107, 0.1);
    border-left: 3px solid #ff6b6b;
    margin-left: 40px;
}

.message.assistant {
    background: rgba(78, 205, 196, 0.1);
    border-left: 3px solid #4ecdc4;
    margin-right: 40px;
}

.message.error {
    background: rgba(255, 107, 107, 0.1);
    border-left: 3px solid #ff6b6b;
    color: #ffcccc;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 4px;
}

/* Connection status */
.connection-status {
    position: fixed;
    top: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: transparent;
    border-radius: 30px;
    font-size: 0.9rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffc107;
    animation: statusBlink 2s ease-in-out infinite;
}

.status-indicator.connected {
    background: #4ecdc4;
    animation: none;
}

.status-indicator.disconnected {
    background: #ff6b6b;
    animation: statusBlink 1s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.status-label {
    color: #b3b3b3;
    font-weight: 400;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-interface {
        padding: 20px;
    }
    
    .assistant-name {
        font-size: 2.5rem;
    }
    
    .header {
        margin-bottom: 40px;
    }
    
    #waveCanvas {
        width: 100%;
        aspect-ratio: 2 / 1;
        height: auto;
    }
    
    .chat-history {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        max-width: none;
        border-radius: 16px 16px 0 0;
    }
    
    .connection-status {
        position: fixed;
        top: 20px;
        left: 20px;
        right: 20px;
        justify-content: center;
    }
}

/* Loading animations */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.thinking {
    animation: thinking 1.5s ease-in-out infinite;
}

@keyframes thinking {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Custom scrollbar for chat messages */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Authentication styles - DISABLED for KARC design */
.auth-overlay-DISABLED {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 82, 136, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.auth-container-DISABLED {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(229, 224, 217, 0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    backdrop-filter: blur(20px);
}

.auth-container h2 {
    color: #E5E0D9;
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-container p {
    color: rgba(229, 224, 217, 0.8);
    margin-bottom: 32px;
    line-height: 1.5;
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    background: #ffffff;
    color: #333333;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.google-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: #f8f8f8;
}

.google-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.google-login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Simple Login Form */
.simple-login-form {
    width: 100%;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    color: rgba(229, 224, 217, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(229, 224, 217, 0.2);
    border-radius: 8px;
    color: #E5E0D9;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: rgba(229, 224, 217, 0.5);
}

.input-group input:focus {
    outline: none;
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.simple-login-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-top: 8px;
}

.simple-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ff7979, #55efc4);
}

.simple-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.simple-login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
    font-size: 0.9rem;
}

/* User info bar - 로그인 후 사용자 정보만 숨김 */
.user-info-bar .user-info {
    display: none !important;
    visibility: hidden !important;
}

.user-details {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(229, 224, 217, 0.3);
}

.user-name {
    color: #E5E0D9;
    font-size: 0.9rem;
    font-weight: 500;
}

.logout-btn {
    padding: 8px 16px;
    background: rgba(255, 107, 107, 0.2);
    color: #E5E0D9;
    border: 1px solid rgba(255, 107, 107, 0.4);
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.6);
}


/* Responsive authentication */
@media (max-width: 768px) {
    .auth-container {
        padding: 30px 20px;
    }
    
    .user-info {
        top: 10px;
        right: 10px;
        left: 10px;
        justify-content: space-between;
    }
    
    .user-name {
        display: none;
    }
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}
.modal-content {
    width: min(720px, 92vw);
    background: #0f1e34;
    border: 1px solid rgba(229,224,217,0.25);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(229,224,217,0.12); }
.modal-header h3 { margin: 0; font-weight: 600; }
.modal-close { background: transparent; color: #E5E0D9; border: none; font-size: 20px; cursor: pointer; }
.modal-body { padding: 12px 16px 16px; }

.settings-layout { display: flex; gap: 12px; }
.settings-tabs { display: flex; gap: 6px; }
.settings-tabs.vertical { flex-direction: column; min-width: 150px; }
.tab-button { width: 100%; padding: 10px 12px; text-align: left; border-radius: 8px; border: 1px solid transparent; background: rgba(229,224,217,0.06); color: #E5E0D9; cursor: pointer; font-size: 14px; }
.tab-button.active { background: rgba(229,224,217,0.12); border-color: rgba(229,224,217,0.25); }
.tab-panels { flex: 1; border: 1px solid rgba(229,224,217,0.12); border-radius: 10px; padding: 12px; background: rgba(229,224,217,0.04); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; color: #bfc6cf; }
.form-group input, .form-group select { background: rgba(229,224,217,0.08); border: 1px solid rgba(229,224,217,0.25); color: #E5E0D9; border-radius: 8px; padding: 8px 10px; }
.form-actions { margin-top: 4px; grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.form-actions .primary { background: linear-gradient(135deg, #667eea, #764ba2); border: none; color: white; padding: 8px 14px; border-radius: 8px; cursor: pointer; }

.profile-box { display: grid; gap: 8px; }
.profile-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; background: rgba(229,224,217,0.06); border: 1px solid rgba(229,224,217,0.12); border-radius: 8px; }
.profile-row .key { color: #bfc6cf; font-size: 12px; }
.profile-row .value { color: #E5E0D9; font-weight: 500; }

/* Composition overview */
.composition { display: grid; gap: 16px; }
.comp-row { display: grid; gap: 8px; }
.comp-title { font-weight: 600; opacity: 0.9; }
.comp-items { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.comp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid rgba(229,224,217,0.25); border-radius: 999px; background: rgba(229,224,217,0.06); }
.comp-chip img { width: 16px; height: 16px; display: block; }
.comp-plus { opacity: 0.7; }

/* Input visibility toggle */
.input-with-toggle { position: relative; }
.input-with-toggle input { width: 100%; padding-right: 36px; }
.eye-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: transparent; color: #E5E0D9; border: 1px solid rgba(229,224,217,0.25); border-radius: 6px; width: 28px; height: 28px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.eye-toggle img { width: 16px; height: 16px; display: block; }
.eye-toggle:hover { background: rgba(229,224,217,0.08); }

/* Provider cards */
.provider-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.provider-card { border: 1px solid rgba(229,224,217,0.2); background: rgba(229,224,217,0.04); border-radius: 12px; padding: 12px; display: grid; gap: 8px; align-content: start; }
.provider-icon { width: 28px; height: 28px; }
.provider-title { font-weight: 600; }

/* Themed inputs inside provider cards */
.provider-card .input-with-toggle input {
  background: rgba(229,224,217,0.08);
  border: 1px solid rgba(229,224,217,0.25);
  color: #E5E0D9;
  border-radius: 8px;
  padding: 8px 36px 8px 10px;
  width: 100%;
}
.provider-card .input-with-toggle input::placeholder { color: rgba(229,224,217,0.5); }
.provider-card .input-with-toggle input:focus { outline: none; border-color: rgba(229,224,217,0.5); }

/* Also theme plain inputs inside provider cards */
.provider-card .form-group label { font-size: 12px; color: #bfc6cf; }
.provider-card .form-group input {
  background: rgba(229,224,217,0.08);
  border: 1px solid rgba(229,224,217,0.25);
  color: #E5E0D9;
  border-radius: 8px;
  padding: 8px 10px;
  width: 100%;
}
.provider-card .form-group input::placeholder { color: rgba(229,224,217,0.5); }
.provider-card .form-group input:focus { outline: none; border-color: rgba(229,224,217,0.5); }

/* Mode options */
.mode-options { display: grid; gap: 10px; }
.mode-option { display: grid; grid-template-columns: 24px 1fr; align-items: start; gap: 10px; padding: 10px; border: 1px solid rgba(229,224,217,0.2); border-radius: 10px; background: rgba(229,224,217,0.04); }
.mode-option .title { font-weight: 600; margin-bottom: 2px; }
.mode-option .desc { font-size: 12px; color: #bfc6cf; }

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .settings-layout { flex-direction: column; }
  .settings-tabs.vertical { flex-direction: row; min-width: 0; }
  .tab-button { width: auto; text-align: center; }
  .provider-cards { grid-template-columns: 1fr; }
}

/* Hide status text per request */
.status-text { display: none !important; }
.status-card { border: 1px solid rgba(229,224,217,0.2); background: linear-gradient(180deg, rgba(229,224,217,0.06), rgba(229,224,217,0.03)); border-radius: 14px; padding: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.status-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.status-title { font-weight: 700; letter-spacing: 0.2px; }
.status-mode { font-size: 12px; opacity: 0.85; padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(229,224,217,0.25); background: rgba(229,224,217,0.06); }
.status-body { display: flex; gap: 10px; flex-wrap: wrap; }
.status-body.single { justify-content: center; }
.status-mode.big { font-size: 14px; padding: 6px 12px; }
.mode-card { margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(229,224,217,0.25); background: rgba(229,224,217,0.06); min-width: 180px; }
.chip img { width: 22px; height: 22px; border-radius: 6px; }
.chip-text { display: grid; gap: 2px; }
.chip-label { font-weight: 600; }
.chip-sub { font-size: 12px; color: #bfc6cf; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .status-grid { grid-template-columns: 1fr; } }
