/* ══════════════════════════════════════════════
   VOICE CHAT — PREMIUM DARK THEME
   ══════════════════════════════════════════════ */

:root {
    --bg-primary: #0D0D0F;
    --bg-secondary: #16161A;
    --bg-tertiary: #1E1E24;
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #F0F0F2;
    --text-secondary: #8A8A9A;
    --text-muted: #5A5A6A;
    --accent: #4AADAD;
    --accent-light: rgba(74, 173, 173, 0.15);
    --accent-glow: rgba(74, 173, 173, 0.30);
    --accent-bright: #6EC6C6;
    --green-accent: #34D399;
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(175deg, #0D0D0F 0%, #13131A 40%, #1A1A2E 100%);
    color: var(--text-primary);
    line-height: 1.5;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

/* ══════════════════════════════════════════════
   TOP NAVIGATION
   ══════════════════════════════════════════════ */
.top-nav {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top));
    background: rgba(13, 13, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bg-glass-border);
    z-index: 100;
}

.nav-back {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.nav-back:active {
    background: var(--bg-glass);
}

.nav-back svg {
    width: 22px;
    height: 22px;
}

.nav-title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.nav-spacer {
    width: 38px;
}

/* ══════════════════════════════════════════════
   HOME SCREEN
   ══════════════════════════════════════════════ */
.home-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: var(--bg-primary); 
    transition: opacity 0.3s ease;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-bottom: 40px;
}

/* ── Voice Orb ── */
.voice-orb-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    margin-bottom: 56px;
    -webkit-user-select: none;
    user-select: none;
}

.orb-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% - 12px));
    width: 90px;
    height: 90px;
    pointer-events: none;
}

.orb-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(74, 173, 173, 0.20);
    opacity: 0;
    animation: ringPulse 3s infinite ease-out;
}

.ring-1 {
    width: 110px;
    height: 110px;
    animation-delay: 0s;
}

.ring-2 {
    width: 140px;
    height: 140px;
    animation-delay: 1s;
}

.ring-3 {
    width: 170px;
    height: 170px;
    animation-delay: 2s;
}

@keyframes ringPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0;
    }
}

.voice-orb {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(74, 173, 173, 0.12), rgba(46, 204, 113, 0.08));
    border: 1px solid rgba(74, 173, 173, 0.15);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
        0 0 24px rgba(74, 173, 173, 0.15),
        0 0 48px rgba(74, 173, 173, 0.05);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    animation: orbBreathe 4s ease-in-out infinite;
    z-index: 2;
    overflow: hidden;
}

@keyframes orbBreathe {
    0%, 100% { transform: scale(1); box-shadow: 0 0 24px rgba(74, 173, 173, 0.15), 0 0 48px rgba(74, 173, 173, 0.05); }
    50% { transform: scale(1.05); box-shadow: 0 0 32px rgba(74, 173, 173, 0.25), 0 0 60px rgba(74, 173, 173, 0.1); }
}

.voice-orb .orb-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
}

.orb-hint {
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: color var(--transition-fast);
}

/* Orb Feedback States */
.voice-orb-container.active-hold .voice-orb {
    transform: scale(0.95);
    box-shadow: 0 0 40px var(--accent);
}

/* ── Quick Actions ── */
.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.action-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 20px;
    border: 1px solid var(--bg-glass-border);
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.action-chip:active {
    background: var(--bg-glass);
}

.chip-icon {
    font-size: 16px;
}

/* ══════════════════════════════════════════════
   VOICE MODE SCREEN (GPT-Style)
   ══════════════════════════════════════════════ */
.voice-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: #000000;
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.voice-top-bar {
    padding: 24px;
    display: flex;
    justify-content: flex-end;
    padding-top: max(24px, env(safe-area-inset-top));
}

.voice-settings-btn {
    background: none;
    border: none;
    color: white;
    opacity: 0.7;
    cursor: pointer;
}

.voice-settings-btn svg {
    width: 24px;
    height: 24px;
}

/* Animated Dots Container */
.voice-dots-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.voice-dots .dot {
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Base Idle/Silent State: simple circles */
body[data-state="idle"] .voice-dots .dot {
    transform: scale(1);
}

/* Listening State: GPT waveform bounce */
body[data-state="listening"] .voice-dots .dot {
    animation: listeningWave 1s infinite ease-in-out;
}
body[data-state="listening"] .voice-dots .dot-1 { animation-delay: 0s; }
body[data-state="listening"] .voice-dots .dot-2 { animation-delay: 0.1s; width: 20px; height: 20px; }
body[data-state="listening"] .voice-dots .dot-3 { animation-delay: 0.2s; width: 20px; height: 20px; }
body[data-state="listening"] .voice-dots .dot-4 { animation-delay: 0.3s; }

@keyframes listeningWave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
}

/* Processing State: Glowing/Pulse */
body[data-state="processing"] .voice-dots .dot {
    animation: processingPulse 1.5s infinite ease-in-out;
}
body[data-state="processing"] .voice-dots .dot-1 { animation-delay: 0s; }
body[data-state="processing"] .voice-dots .dot-2 { animation-delay: 0.1s; }
body[data-state="processing"] .voice-dots .dot-3 { animation-delay: 0.2s; }
body[data-state="processing"] .voice-dots .dot-4 { animation-delay: 0.3s; }

@keyframes processingPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 15px rgba(255,255,255,0.6); }
}

/* Responding State: Irregular audio waveform (simulated) */
body[data-state="responding"] .voice-dots .dot {
    background-color: white;
    animation: speakingWave 0.5s infinite alternate ease-in-out;
}
body[data-state="responding"] .voice-dots .dot-1 { animation-duration: 0.4s; }
body[data-state="responding"] .voice-dots .dot-2 { animation-duration: 0.6s; width: 22px; height: 22px; }
body[data-state="responding"] .voice-dots .dot-3 { animation-duration: 0.5s; width: 24px; height: 24px; }
body[data-state="responding"] .voice-dots .dot-4 { animation-duration: 0.7s; }

@keyframes speakingWave {
    0% { transform: scaleY(0.8); }
    100% { transform: scaleY(2.2); }
}

/* Live Transcript Overlay */
.voice-transcript {
    padding: 0 32px 32px 32px;
    text-align: center;
    position: absolute;
    bottom: 120px;
    width: 100%;
}

.transcript-text {
    font-size: 22px;
    font-weight: 500;
    color: white;
    line-height: 1.4;
    min-height: 60px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.voice-status-label {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-top: 12px;
}

/* Bottom Controls */
.voice-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
}

.voice-mic-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

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

.voice-mic-btn svg { width: 24px; height: 24px; }

.voice-end-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.voice-end-btn:active {
    transform: scale(0.9);
    background: rgba(255,255,255,0.25);
}

.voice-end-btn svg { width: 24px; height: 24px; }

.voice-info-text {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* Red mic button when listening */
body[data-state="listening"] .voice-mic-btn {
    background: #FF453A;
}

/* ══════════════════════════════════════════════
   CHAT SCREEN
   ══════════════════════════════════════════════ */
.chat-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    padding-bottom: 140px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-behavior: smooth;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: slideUp 0.35s ease-out forwards;
}

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

.user-message {
    align-self: flex-end;
    align-items: flex-end;
}

.bot-message {
    align-self: flex-start;
    align-items: flex-start;
}

.message-content {
    padding: 14px 18px;
    border-radius: var(--border-radius);
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
}

.user-message .message-content {
    background: linear-gradient(135deg, var(--accent), #2FA89A);
    color: white;
    border-bottom-right-radius: 4px;
}

.bot-message .message-content {
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Enable selection visual */
.message-content::selection,
.message-content *::selection {
    background: var(--accent-light);
}

/* ── Inline Edit Button ── */
.user-message {
    position: relative;
}

.msg-edit-btn {
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 14px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-family: inherit;
    font-weight: 500;
    margin-top: 6px;
    transition: all var(--transition-fast);
    align-self: flex-end;
}

.msg-edit-btn:active {
    background: var(--accent-light);
    color: var(--accent-bright);
    transform: scale(0.95);
}

.msg-edit-btn svg {
    width: 12px;
    height: 12px;
}

/* ── Editing State ── */
.message-content.editing {
    border: 1.5px dashed var(--accent);
    border-radius: var(--border-radius-sm);
    outline: none;
    background: rgba(108, 99, 255, 0.08) !important;
    min-height: 40px;
}

/* ── Edit Toolbar ── */
.msg-edit-toolbar {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    justify-content: flex-end;
}

.edit-resend-btn,
.edit-cancel-btn {
    padding: 6px 14px;
    border-radius: 16px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.edit-resend-btn {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 10px var(--accent-glow);
}

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

.edit-cancel-btn {
    background: var(--bg-glass);
    color: var(--text-secondary);
    border: 1px solid var(--bg-glass-border);
}

.edit-cancel-btn:active {
    background: var(--bg-tertiary);
}

/* ── Typing Indicator ── */
.typing-indicator {
    align-self: flex-start;
    padding: 14px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--border-radius);
    display: flex;
    gap: 5px;
    align-items: center;
    margin: 0 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.typing-indicator .dot {
    width: 7px;
    height: 7px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
    box-shadow: 0 0 6px var(--accent-glow);
}

.typing-indicator .dot:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.4); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* ══════════════════════════════════════════════
   BOTTOM BAR
   ══════════════════════════════════════════════ */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, var(--bg-primary) 70%, transparent);
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 50;
}

.input-container {
    width: 100%;
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border-radius: 28px;
    border: 1px solid var(--bg-glass-border);
    padding: 4px 6px 4px 16px;
    transition: border-color var(--transition-fast);
}

.input-container:focus-within {
    border-color: rgba(108, 99, 255, 0.3);
}

#textInput {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    padding: 10px 4px;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
}

#textInput::placeholder {
    color: var(--text-muted);
}

.voice-button-inline,
.send-button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.voice-button-inline:active,
.send-button:active {
    transform: scale(0.9);
}

.voice-button-inline.listening {
    color: var(--accent-bright);
    background: var(--accent-light);
}

.send-button {
    background: var(--accent);
    color: white;
    width: 36px;
    height: 36px;
    padding: 8px;
    box-shadow: 0 0 12px var(--accent-glow);
}

.voice-button-inline svg {
    width: 22px;
    height: 22px;
}

.send-button svg {
    width: 16px;
    height: 16px;
}

/* ══════════════════════════════════════════════
   VOICE FEEDBACK STATES
   ══════════════════════════════════════════════ */
.voice-feedback {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-smooth);
    height: 0;
    overflow: hidden;
}

.voice-feedback.active {
    opacity: 1;
    pointer-events: auto;
    height: auto;
    margin-bottom: 12px;
    padding: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.status-text {
    font-size: 11px;
    color: var(--accent-bright);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.live-transcription {
    font-size: 15px;
    text-align: center;
    color: var(--text-primary);
    min-height: 20px;
    margin-top: 8px;
    max-width: 100%;
    word-wrap: break-word;
}

/* ── Waveform Bars ── */
.wave-container {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 24px;
}

.bar {
    width: 3px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: waveBar 1.2s infinite ease-in-out;
    box-shadow: 0 0 4px var(--accent-glow);
}

.bar:nth-child(1) { animation-delay: 0s; }
.bar:nth-child(2) { animation-delay: 0.15s; }
.bar:nth-child(3) { animation-delay: 0.3s; }
.bar:nth-child(4) { animation-delay: 0.45s; }
.bar:nth-child(5) { animation-delay: 0.6s; }

@keyframes waveBar {
    0%, 100% { height: 6px; opacity: 0.4; }
    50% { height: 22px; opacity: 1; }
}

/* ── Stop Button ── */
.stop-btn {
    margin-top: 10px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-family: inherit;
    font-weight: 500;
    transition: all var(--transition-fast);
    gap: 6px;
}

.stop-btn:active {
    background: rgba(239, 68, 68, 0.25);
    transform: scale(0.95);
}

.stop-btn svg {
    width: 14px;
    height: 14px;
}

/* ══════════════════════════════════════════════
   EDIT MIC POPUP
   ══════════════════════════════════════════════ */
.edit-mic-popup {
    position: fixed;
    z-index: 100;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-radius: 24px;
    padding: 6px 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--bg-glass-border);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    transform: translateY(4px) translateX(-50%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.edit-mic-popup.listening {
    background: var(--accent);
    border-color: var(--accent-bright);
}

.popup-mic-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.popup-mic-btn svg {
    width: 15px;
    height: 15px;
}

/* ══════════════════════════════════════════════
   SETTINGS MODAL
   ══════════════════════════════════════════════ */
.settings-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-modal {
    background: var(--bg-secondary);
    padding: 28px;
    border-radius: var(--border-radius);
    border: 1px solid var(--bg-glass-border);
    max-width: 90%;
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.settings-modal h3 {
    font-size: 20px;
    font-weight: 600;
}

.settings-modal p {
    font-size: 14px;
    color: var(--text-secondary);
}

.settings-modal input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.settings-modal input:focus {
    border-color: var(--accent);
}

.settings-modal button {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
    background: var(--accent);
    color: white;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.settings-modal button:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* ══════════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════════ */
.chat-container::-webkit-scrollbar {
    width: 4px;
}

.chat-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-container::-webkit-scrollbar-thumb {
    background: var(--bg-glass-border);
    border-radius: 4px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE TWEAKS
   ══════════════════════════════════════════════ */
@media (max-width: 380px) {
    .home-title { font-size: 26px; }
    .voice-orb { width: 76px; height: 76px; }
    .voice-orb .orb-icon { width: 44px; height: 44px; }
    .action-chip { font-size: 12px; padding: 8px 14px; }
}

@media (min-width: 600px) {
    .chat-container { max-width: 600px; margin: 0 auto; width: 100%; }
    .bottom-bar { max-width: 600px; left: 50%; transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════
   SUCCESS TOAST
   ══════════════════════════════════════════════ */
.success-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-tertiary);
    border: 1px solid var(--accent-glow);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 300;
    max-width: 90%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.success-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.toast-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.toast-msg {
    line-height: 1.4;
}