@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

#gp-ai-widget-container {
    --gp-primary-hover: color-mix(in srgb, var(--gp-primary) 85%, #000);
    --gp-primary-light: color-mix(in srgb, var(--gp-primary) 8%, #fff);
    --gp-bg: rgba(255, 255, 255, 0.95);
    --gp-surface: #ffffff;
    --gp-border: rgba(15, 23, 42, 0.08);
    --gp-text-main: #0f172a;
    --gp-text-sub: #475569;
    --gp-text-mute: #94a3b8;
    
    --gp-radius-sm: 8px;
    --gp-radius-md: 14px;
    --gp-radius-lg: 20px;
    --gp-radius-xl: 28px;
    
    --gp-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --gp-shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
    --gp-shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.16);
    --gp-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    position: fixed; 
    bottom: 25px; 
    z-index: 999999; 
    font-family: var(--gp-font);
}

#gp-ai-widget-container.gp-pos-right { right: 25px; }
#gp-ai-widget-container.gp-pos-left { left: 25px; }

/* 1. Floating Launcher Button */
#gp-ai-floating-btn { 
    width: 64px; 
    height: 64px; 
    border-radius: 50%; 
    background: var(--gp-primary); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15); 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease; 
}
#gp-ai-floating-btn img { 
    width: 100%; 
    height: 100%; 
    border-radius: 50%; 
    object-fit: cover; 
}
#gp-ai-floating-btn svg {
    transition: transform 0.3s ease;
}
#gp-ai-floating-btn:hover { 
    transform: scale(1.08) rotate(5deg); 
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.22);
}

/* 2. Main Chat Window */
#gp-ai-chat-window { 
    width: 400px; 
    height: 680px; 
    max-height: 85vh; 
    background: var(--gp-bg); 
    backdrop-filter: blur(24px); 
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--gp-radius-lg); 
    box-shadow: var(--gp-shadow-lg); 
    border: 1px solid rgba(255, 255, 255, 0.6); 
    position: absolute; 
    bottom: 85px; 
    display: flex; 
    flex-direction: column; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(20px) scale(0.95); 
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    overflow: hidden; 
}
.gp-pos-right #gp-ai-chat-window { right: 0; transform-origin: bottom right; }
.gp-pos-left #gp-ai-chat-window { left: 0; transform-origin: bottom left; }

#gp-ai-chat-window.gp-is-open { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0) scale(1); 
}

/* 3. Header Styling */
.gp-header { 
    background: linear-gradient(135deg, var(--gp-primary) 0%, var(--gp-primary-hover) 100%); 
    color: #fff; 
    padding: 20px 24px; 
    display: flex; 
    align-items: center; 
    gap: 14px; 
    flex-shrink: 0; 
    z-index: 2; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.gp-header img { 
    width: 42px; 
    height: 42px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 2px solid rgba(255, 255, 255, 0.3); 
}
.gp-header-placeholder { 
    width: 42px; 
    height: 42px; 
    border-radius: 50%; 
    background: rgba(255,255,255,0.2); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3); 
}
.gp-header-info {
    flex: 1;
}
.gp-header-title {
    margin: 0; 
    font-size: 15px; 
    font-weight: 700;
    letter-spacing: -0.01em;
}
.gp-header-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    opacity: 0.9;
    margin-top: 1px;
}
.gp-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

/* Header Action Buttons */
.gp-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.gp-header-btn {
    background: rgba(255, 255, 255, 0.1); 
    border: none; 
    color: #fff; 
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.gp-header-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}
.gp-header-btn:active {
    transform: scale(0.95);
}

/* 4. Chat Messages Scroll Area */
#gp-chat-messages { 
    flex: 1 1 0; 
    min-height: 0; 
    padding: 24px; 
    overflow-y: auto !important; 
    overflow-x: hidden; 
    background: #f8fafc; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    scroll-behavior: smooth;
}

/* 5. Welcome/Home Screen Layout */
#gp-welcome-screen {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: gpFadeIn 0.4s ease;
    margin-bottom: 10px;
}
.gp-welcome-brand {
    text-align: center;
    padding: 10px 0;
}
.gp-welcome-logo-container {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--gp-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--gp-shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.8);
}
.gp-welcome-logo-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.gp-welcome-logo-container .gp-welcome-avatar-placeholder {
    font-size: 32px;
}
.gp-welcome-brand h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--gp-text-main);
    letter-spacing: -0.02em;
}
.gp-welcome-brand p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--gp-text-sub);
}

/* Quick Action Cards Grid */
.gp-welcome-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.gp-action-card {
    background: var(--gp-surface);
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius-md);
    padding: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--gp-shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gp-action-card:hover {
    border-color: var(--gp-primary);
    transform: translateY(-4px);
    box-shadow: var(--gp-shadow-md);
}
.gp-action-icon {
    font-size: 20px;
    margin-bottom: 4px;
}
.gp-action-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--gp-text-main);
}
.gp-action-desc {
    font-size: 11px;
    color: var(--gp-text-mute);
    line-height: 1.3;
}

/* 6. Message Bubble Structures */
.gp-message-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: 85%;
    animation: gpSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.gp-message-row.ai {
    align-self: flex-start;
}
.gp-message-row.user {
    align-self: flex-end;
    justify-content: flex-end;
    max-width: 80%;
}
.gp-msg-avatar-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: var(--gp-shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.gp-msg-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gp-msg-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.msg { 
    padding: 12px 18px; 
    border-radius: var(--gp-radius-md); 
    font-size: 13.5px; 
    line-height: 1.5; 
    word-wrap: break-word; 
    position: relative;
    box-sizing: border-box;
}
.msg.ai { 
    background: var(--gp-surface); 
    color: var(--gp-text-main); 
    border-bottom-left-radius: 4px; 
    box-shadow: var(--gp-shadow-sm); 
    border: 1px solid var(--gp-border); 
}
.msg.user { 
    background: linear-gradient(135deg, var(--gp-primary) 0%, var(--gp-primary-hover) 100%); 
    color: #fff; 
    border-bottom-right-radius: 4px; 
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

/* 7. Typing Indicator Bubble */
.gp-typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
}
.gp-typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--gp-text-mute);
    border-radius: 50%;
    display: inline-block;
    animation: gpTypingBounce 1.4s infinite ease-in-out both;
}
.gp-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.gp-typing-dots span:nth-child(2) { animation-delay: -0.16s; }

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

/* 8. Input Container Area */
.gp-input-container { 
    padding: 16px 20px; 
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--gp-border); 
    flex-shrink: 0; 
    z-index: 2; 
}
.gp-input-wrapper { 
    display: flex; 
    flex-direction: column;
    align-items: stretch;
    background: #f1f5f9; 
    border-radius: var(--gp-radius-md); 
    padding: 12px 14px 10px 14px; 
    border: 1px solid transparent; 
    transition: all 0.25s ease; 
    gap: 8px;
}
.gp-input-wrapper:focus-within { 
    border-color: var(--gp-primary); 
    background: var(--gp-surface); 
    box-shadow: 0 0 0 3px var(--gp-primary-light);
}
#gp-user-input { 
    width: 100%;
    border: none; 
    background: transparent; 
    outline: none; 
    font-size: 13.5px; 
    padding: 2px 0; 
    color: var(--gp-text-main);
    font-family: var(--gp-font);
}
#gp-user-input::placeholder {
    color: var(--gp-text-mute);
}

.gp-input-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* Button Layout inside Input Wrapper */
#gp-send-btn { 
    background: var(--gp-primary); 
    border: none; 
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    cursor: pointer; 
    color: white; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.2s ease; 
    flex-shrink: 0;
}
#gp-send-btn:hover { 
    background: var(--gp-primary-hover);
    transform: scale(1.05); 
}
#gp-send-btn:active {
    transform: scale(0.95);
}

/* 9. Smart Suggestion Chips */
.gp-chips-container {
    width: 100%;
    margin: 4px 0 0 0;
    align-self: flex-start;
    display: block;
    box-sizing: border-box;
    animation: gpFadeIn 0.3s ease;
}
.gp-chips-wrapper {
    display: flex;
    gap: 8px;
    overflow-x: auto !important;
    padding: 6px 4px;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    width: 100%;
    box-sizing: border-box;
}
.gp-chips-wrapper::-webkit-scrollbar {
    display: none; 
}
.gp-chip {
    background: var(--gp-surface);
    color: var(--gp-text-sub);
    border: 1px solid var(--gp-border);
    border-radius: 18px;
    padding: 8px 16px;
    font-size: 12.5px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    outline: none;
    box-shadow: var(--gp-shadow-sm);
    display: inline-block;
    line-height: 1.2;
    font-family: var(--gp-font);
}
.gp-chip:hover {
    background: var(--gp-primary-light);
    color: var(--gp-primary);
    border-color: var(--gp-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
}
.gp-chip:active {
    transform: translateY(0);
}

/* 10. Privacy GDPR Screen Redesign */
#gp-gdpr-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(255, 255, 255, 0.96); 
    backdrop-filter: blur(10px);
    z-index: 10; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    padding: 36px; 
    text-align: center; 
}
#gp-gdpr-overlay h3 {
    margin-top: 0; 
    font-size: 18px; 
    font-weight: 700;
    color: var(--gp-text-main);
    letter-spacing: -0.01em;
}
#gp-gdpr-overlay p {
    font-size: 13px; 
    color: var(--gp-text-sub); 
    line-height: 1.6; 
    margin-bottom: 24px;
}

/* 11. Premium UI Wizard Forms & Cards */
.gp-ui-card { 
    background: var(--gp-surface); 
    border: 1px solid var(--gp-border); 
    border-radius: var(--gp-radius-md); 
    padding: 20px; 
    margin-top: 8px; 
    box-shadow: var(--gp-shadow-md); 
    width: 100%; 
    box-sizing: border-box;
    animation: gpFadeIn 0.3s ease;
}

/* Form headers and wizards progress steps */
.gp-wizard-header {
    margin-bottom: 16px;
    border-bottom: 1px solid var(--gp-border);
    padding-bottom: 12px;
}
.gp-wizard-title {
    margin: 0 0 6px 0 !important; 
    font-size: 14px; 
    font-weight: 700; 
    color: var(--gp-text-main);
    text-align: center;
}
.gp-wizard-steps-indicator {
    display: flex;
    justify-content: center;
    gap: 4px;
}
.gp-wizard-step-dot {
    width: 20px;
    height: 4px;
    border-radius: 2px;
    background: var(--gp-border);
    transition: all 0.3s ease;
}
.gp-wizard-step-dot.active {
    background: var(--gp-primary);
    width: 32px;
}

/* Standardized fields inside cards */
.gp-form-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}
.gp-form-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gp-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.gp-ui-card input, 
.gp-ui-card select { 
    width: 100%; 
    padding: 10px 14px; 
    margin: 0;
    border: 1px solid var(--gp-border); 
    border-radius: var(--gp-radius-sm); 
    font-size: 13px; 
    box-sizing: border-box; 
    outline: none; 
    background: #f8fafc; 
    transition: all 0.2s ease; 
    font-family: var(--gp-font);
    color: var(--gp-text-main);
}
.gp-ui-card input:focus,
.gp-ui-card select:focus { 
    border-color: var(--gp-primary); 
    background: var(--gp-surface); 
    box-shadow: 0 0 0 3px var(--gp-primary-light);
}

/* Modern Button Classes */
.gp-btn { 
    width: 100%; 
    background: var(--gp-primary); 
    color: #fff; 
    border: none; 
    padding: 12px; 
    border-radius: var(--gp-radius-sm); 
    font-weight: 600; 
    cursor: pointer; 
    margin-bottom: 8px; 
    text-align: center; 
    display: block; 
    text-decoration: none; 
    box-sizing: border-box; 
    transition: all 0.2s ease;
    font-size: 13px;
    font-family: var(--gp-font);
}
.gp-btn:hover { 
    background: var(--gp-primary-hover);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}
.gp-btn:active {
    transform: translateY(0.5px);
}
.gp-btn-outline { 
    background: transparent; 
    border: 2px solid var(--gp-primary); 
    color: var(--gp-primary); 
}
.gp-btn-outline:hover {
    background: var(--gp-primary-light);
}

/* 12. Admissions Program Card Redesign */
.gp-program-card {
    background: var(--gp-surface);
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius-md);
    overflow: hidden;
    box-shadow: var(--gp-shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    box-sizing: border-box;
}
.gp-program-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--gp-shadow-md);
    border-color: rgba(15, 23, 42, 0.12);
}
.gp-program-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-bottom: 1px solid var(--gp-border);
}
.gp-program-body {
    padding: 16px;
}
.gp-program-badge {
    display: inline-block;
    padding: 3px 8px;
    background: var(--gp-primary-light);
    color: var(--gp-primary);
    font-size: 10.5px;
    font-weight: 600;
    border-radius: 12px;
    margin-bottom: 8px;
}
.gp-program-body h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--gp-text-main);
}
.gp-program-desc {
    font-size: 12.5px;
    color: var(--gp-text-sub);
    line-height: 1.4;
    margin: 0 0 12px 0;
}
.gp-program-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: var(--gp-radius-sm);
    margin-bottom: 14px;
}
.gp-program-detail-item {
    font-size: 12px;
    color: var(--gp-text-sub);
}

.gp-program-skeleton {
    animation: gpPulse 1.5s infinite ease-in-out;
}

/* 13. OTP Screen Container */
.gp-otp-container {
    background: rgba(245, 158, 11, 0.05);
    border: 1px dashed rgba(245, 158, 11, 0.3);
    border-radius: var(--gp-radius-md);
    padding: 16px;
    margin-bottom: 14px;
    box-sizing: border-box;
}
.gp-otp-alert-title {
    font-size: 12px; 
    color: #d97706; 
    font-weight: 700; 
    margin-bottom: 10px; 
    display: flex; 
    align-items: center; 
    gap: 5px;
}
.gp-otp-container input {
    background: var(--gp-surface) !important;
    border: 1px solid #cbd5e1 !important;
}
.gp-otp-container input:focus {
    border-color: #d97706 !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
}

/* 14. Language selector dropdown and bottom-sheet */
.gp-lang-selector-wrapper {
    position: relative;
    display: inline-block;
}
.gp-lang-trigger-btn {
    background: #e2e8f0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--gp-text-sub);
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    outline: none;
    font-family: var(--gp-font);
    box-sizing: border-box;
}
.gp-lang-trigger-btn:hover {
    background: var(--gp-primary-light);
    color: var(--gp-primary);
    border-color: var(--gp-primary);
}
.gp-lang-arrow {
    font-size: 8px;
    opacity: 0.7;
    transition: transform 0.2s ease;
    display: inline-block;
}

/* Desktop dropdown menu style */
.gp-lang-dropdown-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: var(--gp-surface);
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius-md);
    box-shadow: var(--gp-shadow-md);
    padding: 6px;
    min-width: 160px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 2px;
    animation: gpFadeIn 0.2s ease;
}
.gp-lang-dropdown-menu.gp-show {
    display: flex;
}
.gp-lang-dropdown-item {
    background: none;
    border: none;
    padding: 8px 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--gp-text-sub);
    text-align: left;
    border-radius: var(--gp-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--gp-font);
}
.gp-lang-dropdown-item:hover {
    background: #f1f5f9;
    color: var(--gp-text-main);
}
.gp-lang-dropdown-item.gp-active {
    background: var(--gp-primary-light);
    color: var(--gp-primary);
    font-weight: 600;
}

/* Mobile bottom sheet modal container */
.gp-bottom-sheet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.gp-bottom-sheet-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}
.gp-bottom-sheet-content {
    background: var(--gp-surface);
    border-top-left-radius: var(--gp-radius-lg);
    border-top-right-radius: var(--gp-radius-lg);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.15);
    z-index: 2;
    transform: translateY(100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 60%;
    display: flex;
    flex-direction: column;
}
.gp-bottom-sheet-header {
    padding: 16px 20px 12px 20px;
    border-bottom: 1px solid var(--gp-border);
    position: relative;
    text-align: center;
    flex-shrink: 0;
}
.gp-bottom-sheet-drag-handle {
    width: 36px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
    margin: 0 auto 12px auto;
}
.gp-bottom-sheet-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--gp-text-main);
}
.gp-bottom-sheet-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: var(--gp-text-mute);
    cursor: pointer;
    padding: 4px;
}
.gp-bottom-sheet-close:hover {
    color: var(--gp-text-main);
}
.gp-bottom-sheet-body {
    padding: 12px 16px 24px 16px;
    overflow-y: auto;
    flex: 1;
}
.gp-lang-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gp-lang-mobile-item {
    background: none;
    border: none;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gp-text-sub);
    text-align: left;
    border-radius: var(--gp-radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--gp-font);
}
.gp-lang-mobile-item:active {
    background: #f1f5f9;
}
.gp-lang-mobile-item.gp-active {
    background: var(--gp-primary-light);
    color: var(--gp-primary);
    font-weight: 600;
}

/* 15. Mic button inside input area */
#gp-mic-btn {
    background: none;
    border: none;
    color: var(--gp-text-sub);
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
#gp-mic-btn:hover {
    color: var(--gp-primary);
    transform: scale(1.1);
}

/* 16. Voice overlay styles */
#gp-voice-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px;
    box-sizing: border-box;
    animation: gpFadeIn 0.3s ease;
}
.gp-voice-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}
.gp-voice-mic-wave-container {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.gp-voice-pulse-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gp-primary);
    opacity: 0.15;
    animation: gpPulseCircle 2s infinite ease-out;
}
.gp-voice-mic-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gp-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
    z-index: 1;
}

/* Waveform bars animation */
.gp-voice-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 48px;
    margin: 20px 0;
}
.gp-wave-bar {
    width: 5px;
    height: 8px;
    background: var(--gp-primary);
    border-radius: 4px;
    animation: gpBounceWave 1.2s infinite ease-in-out;
}
.gp-wave-bar:nth-child(2) { animation-delay: 0.15s; }
.gp-wave-bar:nth-child(3) { animation-delay: 0.3s; }
.gp-wave-bar:nth-child(4) { animation-delay: 0.45s; }
.gp-wave-bar:nth-child(5) { animation-delay: 0.3s; }
.gp-wave-bar:nth-child(6) { animation-delay: 0.15s; }
.gp-wave-bar:nth-child(7) { animation-delay: 0s; }

/* 17. Animations keyframes */
@keyframes gpFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes gpSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes gpPulseCircle {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}
@keyframes gpBounceWave {
    0%, 100% { height: 8px; }
    50% { height: 42px; }
}
@keyframes gpPulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* 18. Scrollbar Customization */
#gp-chat-messages::-webkit-scrollbar { 
    width: 5px; 
}
#gp-chat-messages::-webkit-scrollbar-thumb { 
    background: rgba(15, 23, 42, 0.12); 
    border-radius: 10px; 
}
#gp-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

/* 19. Responsive Mobile-First Fullscreen Overlay */
@media (max-width: 480px) {
    #gp-ai-widget-container {
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    #gp-ai-chat-window {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        transform: translateY(100%) !important;
    }
    #gp-ai-chat-window.gp-is-open {
        transform: translateY(0) !important;
    }
    #gp-ai-floating-btn {
        position: fixed;
        bottom: 25px;
        right: 25px;
        z-index: 99999;
    }
    #gp-ai-widget-container.gp-pos-left #gp-ai-floating-btn {
        left: 25px;
        right: auto;
    }
    .gp-header {
        padding: 16px 20px;
        border-radius: 0 !important;
    }
    .gp-input-container {
        padding: 12px 16px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        background: #fff;
    }
}