/* ═══════════════════════════════════════════════════════════════
   GMAIL COMMAND SYSTEM v2.0 — Premium Glassmorphism UI
   Fixed: Compose layout, confirmation modal, proper spacing
   ═══════════════════════════════════════════════════════════════ */

/* ─── COMMAND MENU (floating popup) ────────────────────────── */
.gm-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.gm-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.gm-menu {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(12px) scale(0.96);
    width: 400px;
    max-width: 92vw;
    max-height: 70vh;
    background: rgba(22, 22, 26, 0.92);
    backdrop-filter: blur(60px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gm-menu-overlay.open .gm-menu {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Menu Header */
.gm-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gm-menu-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gm-menu-logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(251, 146, 60, 0.10));
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gm-menu-logo svg {
    width: 15px;
    height: 15px;
    color: #f87171;
}

.gm-menu-title {
    font-size: 0.88rem;
    font-weight: 650;
    color: #f0f0f3;
    letter-spacing: -0.2px;
}

.gm-menu-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: rgba(161, 161, 170, 0.5);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.gm-menu-close svg {
    width: 13px;
    height: 13px;
}

.gm-menu-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e4e4e7;
}

/* Menu Body */
.gm-menu-body {
    padding: 8px 10px 12px;
    overflow-y: auto;
    max-height: 50vh;
    scrollbar-width: none;
}

.gm-menu-body::-webkit-scrollbar {
    display: none;
}

/* Menu Category */
.gm-cat {
    padding: 6px 8px 4px;
}

.gm-cat-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(161, 161, 170, 0.35);
    text-transform: uppercase;
    padding: 4px 0 6px;
}

/* Menu Item */
.gm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.gm-item:hover {
    background: rgba(129, 140, 248, 0.06);
    border-color: rgba(129, 140, 248, 0.12);
}

.gm-item:active {
    transform: scale(0.98);
}

.gm-item-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s;
}

.gm-item:hover .gm-item-icon {
    background: rgba(129, 140, 248, 0.10);
    border-color: rgba(129, 140, 248, 0.18);
    box-shadow: 0 0 12px rgba(129, 140, 248, 0.08);
}

.gm-item-icon svg {
    width: 15px;
    height: 15px;
    color: rgba(161, 161, 170, 0.5);
    transition: color 0.2s;
}

.gm-item:hover .gm-item-icon svg {
    color: #818cf8;
}

.gm-item-text {
    flex: 1;
    min-width: 0;
}

.gm-item-label {
    font-size: 0.8rem;
    font-weight: 550;
    color: #e4e4e7;
}

.gm-item-desc {
    font-size: 0.66rem;
    color: rgba(161, 161, 170, 0.4);
    margin-top: 1px;
}

.gm-item-arrow {
    color: rgba(161, 161, 170, 0.2);
    font-size: 0.7rem;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.gm-item:hover .gm-item-arrow {
    color: #818cf8;
    transform: translateX(3px);
}

/* ─── INLINE RESULTS (rendered in chat) ────────────────────── */
.gm-results {
    background: rgba(22, 22, 26, 0.6);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 18px;
    margin: 8px 0;
    max-width: 600px;
    animation: gmSlideUp 0.35s ease both;
}

@keyframes gmSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gm-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gm-results-title {
    font-size: 0.82rem;
    font-weight: 650;
    color: #f0f0f3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gm-results-title svg {
    width: 16px;
    height: 16px;
    color: #f87171;
}

.gm-results-count {
    font-size: 0.68rem;
    color: rgba(161, 161, 170, 0.4);
    font-weight: 500;
}

/* ─── EMAIL CARD ───────────────────────────────────────────── */
.gm-email {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.02);
}

.gm-email:hover {
    background: rgba(129, 140, 248, 0.04);
    border-color: rgba(129, 140, 248, 0.10);
}

.gm-email:last-child {
    margin-bottom: 0;
}

.gm-email-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.gm-email-from {
    font-size: 0.78rem;
    font-weight: 600;
    color: #e4e4e7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.gm-email-date {
    font-size: 0.62rem;
    color: rgba(161, 161, 170, 0.35);
    white-space: nowrap;
}

.gm-email-subject {
    font-size: 0.76rem;
    font-weight: 500;
    color: rgba(199, 210, 254, 0.85);
    margin-bottom: 4px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gm-email-unread .gm-email-subject {
    color: #c7d2fe;
    font-weight: 650;
}

.gm-email-snippet {
    font-size: 0.7rem;
    color: rgba(161, 161, 170, 0.45);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gm-email-unread::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #818cf8;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    box-shadow: 0 0 8px rgba(129, 140, 248, 0.4);
}

.gm-email-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s, opacity 0.3s;
    opacity: 0;
    padding: 0;
}

.gm-email-body.open {
    max-height: 400px;
    opacity: 1;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 8px;
}

.gm-email-body-text {
    font-size: 0.72rem;
    color: rgba(161, 161, 170, 0.6);
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: none;
}

.gm-email-body-text::-webkit-scrollbar {
    display: none;
}

/* ─── SUMMARY PANEL ────────────────────────────────────────── */
.gm-summary {
    background: rgba(22, 22, 26, 0.6);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    margin: 8px 0;
    max-width: 520px;
    animation: gmSlideUp 0.35s ease both;
}

.gm-summary-title {
    font-size: 0.88rem;
    font-weight: 650;
    color: #f0f0f3;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.gm-summary-title svg {
    width: 18px;
    height: 18px;
    color: #f87171;
}

.gm-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.gm-stat {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.gm-stat:hover {
    background: rgba(129, 140, 248, 0.04);
    border-color: rgba(129, 140, 248, 0.10);
}

.gm-stat-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f0f0f3;
}

.gm-stat-label {
    font-size: 0.65rem;
    color: rgba(161, 161, 170, 0.45);
    font-weight: 500;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gm-stat-unread .gm-stat-num {
    color: #818cf8;
}

.gm-stat-important .gm-stat-num {
    color: #f59e0b;
}

.gm-stat-sent .gm-stat-num {
    color: #22c55e;
}

.gm-stat-drafts .gm-stat-num {
    color: #a78bfa;
}

.gm-summary-section {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.gm-summary-section-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: rgba(161, 161, 170, 0.35);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.gm-sender-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.75rem;
}

.gm-sender-name {
    color: rgba(228, 228, 231, 0.75);
    font-weight: 500;
}

.gm-sender-count {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(129, 140, 248, 0.7);
    background: rgba(129, 140, 248, 0.08);
    padding: 2px 8px;
    border-radius: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   COMPOSE MODAL — FIXED LAYOUT (centered, proper width)
   ═══════════════════════════════════════════════════════════════ */
.gm-compose-overlay {
    position: fixed;
    inset: 0;
    z-index: 260;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.gm-compose-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.gm-compose {
    width: 540px;
    max-width: 94vw;
    max-height: 90vh;
    background: rgba(22, 22, 26, 0.94);
    backdrop-filter: blur(60px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gm-compose-overlay.open .gm-compose {
    transform: translateY(0) scale(1);
}

/* Compose Header */
.gm-compose-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.gm-compose-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gm-compose-title {
    font-size: 0.95rem;
    font-weight: 650;
    color: #f0f0f3;
}

/* Compose Body — proper spacing, full-width fields */
.gm-compose-body {
    padding: 20px 24px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: none;
}

.gm-compose-body::-webkit-scrollbar {
    display: none;
}

/* Fields — full width, stacked */
.gm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.gm-field-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: rgba(161, 161, 170, 0.4);
    text-transform: uppercase;
}

/* Field Row — input + wand side by side */
.gm-field-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* Input — takes full width */
.gm-input {
    flex: 1;
    min-width: 0;
    /* crucial for flex shrink */
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    color: #e4e4e7;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.84rem;
    outline: none;
    transition: all 0.25s;
    box-sizing: border-box;
}

.gm-input::placeholder {
    color: rgba(161, 161, 170, 0.3);
}

.gm-input:focus {
    border-color: rgba(129, 140, 248, 0.3);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.07);
}

/* Textarea — full width, proper min-height */
.gm-textarea {
    flex: 1;
    min-width: 0;
    min-height: 150px;
    max-height: 300px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    color: #e4e4e7;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.84rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: all 0.25s;
    scrollbar-width: none;
    box-sizing: border-box;
}

.gm-textarea::-webkit-scrollbar {
    display: none;
}

.gm-textarea::placeholder {
    color: rgba(161, 161, 170, 0.3);
}

.gm-textarea:focus {
    border-color: rgba(129, 140, 248, 0.3);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.07);
}

/* ─── WAND BUTTON + DROPDOWN ──────────────────────────────── */
.gm-wand-wrap {
    position: relative;
    flex-shrink: 0;
}

.gm-wand {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(161, 161, 170, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.gm-wand svg {
    width: 16px;
    height: 16px;
}

.gm-wand:hover {
    background: rgba(245, 158, 11, 0.10);
    border-color: rgba(245, 158, 11, 0.25);
    color: #fbbf24;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.1);
}

/* Wand Dropdown — positioned from .gm-wand-wrap */
.gm-wand-menu {
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    z-index: 30;
    min-width: 180px;
    background: rgba(22, 22, 26, 0.96);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    padding: 6px;
    opacity: 0;
    transform: translateY(6px) scale(0.96);
    pointer-events: none;
    transition: all 0.2s ease;
}

.gm-wand-menu.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.gm-wand-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(228, 228, 231, 0.7);
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.gm-wand-option:hover {
    background: rgba(129, 140, 248, 0.08);
    color: #c7d2fe;
}

.gm-wand-option .wand-emoji {
    font-size: 0.8rem;
    width: 20px;
    text-align: center;
}

/* ─── COMPOSE FOOTER ──────────────────────────────────────── */
.gm-compose-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    gap: 10px;
}

.gm-compose-hint {
    font-size: 0.65rem;
    color: rgba(161, 161, 170, 0.3);
}

.gm-compose-hint kbd {
    padding: 2px 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 3px;
    font-size: 0.58rem;
    color: rgba(161, 161, 170, 0.45);
    font-family: inherit;
}

/* ─── SEND BUTTON ─────────────────────────────────────────── */
.gm-send-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(59, 130, 246, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

.gm-send-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.gm-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.35);
}

.gm-send-btn:hover::after {
    opacity: 1;
}

.gm-send-btn:active {
    transform: translateY(0) scale(0.97);
}

.gm-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.gm-send-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* ─── GHOST & OUTLINE BUTTONS (for confirmation modal) ────── */
.gm-btn-ghost {
    padding: 10px 18px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: rgba(161, 161, 170, 0.5);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.8rem;
    font-weight: 550;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.gm-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
    color: #e4e4e7;
}

.gm-btn-outline {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(199, 210, 254, 0.7);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.8rem;
    font-weight: 550;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.gm-btn-outline svg {
    width: 14px;
    height: 14px;
}

.gm-btn-outline:hover {
    background: rgba(129, 140, 248, 0.06);
    border-color: rgba(129, 140, 248, 0.15);
    color: #c7d2fe;
}

/* ─── CONFIRMATION MODAL PREVIEW ──────────────────────────── */
.gm-confirm-preview {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    font-size: 0.82rem;
    color: rgba(228, 228, 231, 0.8);
    line-height: 1.6;
}

.gm-confirm-body-preview {
    min-height: 80px;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    scrollbar-width: none;
}

.gm-confirm-body-preview::-webkit-scrollbar {
    display: none;
}

/* ─── SPINNER ──────────────────────────────────────────────── */
.gm-spin {
    animation: gmSpin 0.8s linear infinite;
}

@keyframes gmSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ─── LOADING STATE ────────────────────────────────────────── */
.gm-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    font-size: 0.78rem;
    color: rgba(161, 161, 170, 0.5);
}

.gm-loading-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #818cf8;
    animation: gmDots 1.4s ease-in-out infinite both;
}

.gm-loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.gm-loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes gmDots {

    0%,
    80%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    40% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ─── TOAST ────────────────────────────────────────────────── */
.gm-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.8rem;
    font-weight: 550;
    color: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
    animation: gmToastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
    backdrop-filter: blur(16px);
}

.gm-toast-success {
    background: linear-gradient(135deg, #22c55e, #10b981);
}

.gm-toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.gm-toast svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@keyframes gmToastIn {
    from {
        opacity: 0;
        transform: translateX(16px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 600px) {
    .gm-menu {
        width: 96vw;
        bottom: 70px;
        border-radius: 16px;
    }

    .gm-compose {
        width: 100vw;
        max-width: 100vw;
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
    }

    .gm-compose-header {
        padding: 16px 18px 12px;
    }

    .gm-compose-body {
        padding: 16px 18px;
        gap: 14px;
    }

    .gm-compose-footer {
        padding: 12px 18px 16px;
    }

    .gm-results {
        max-width: 100%;
    }

    .gm-stat-grid {
        grid-template-columns: 1fr;
    }

    .gm-compose-footer {
        flex-wrap: wrap;
    }

    .gm-compose-hint {
        display: none;
    }
}