/*
 * SagaCommerce Frontend Styles
 * Glassmorphism Mobile-First Design
 *
 * CSS Variables:
 * --sc-primary:      Primary brand color (buttons, links)
 * --sc-secondary:    Secondary brand color
 * --sc-accent:        Accent color for highlights
 * --sc-bg:            Background color for overlays
 * --sc-card-bg:       Card background with transparency
 * --sc-border:         Border color
 * --sc-text:           Primary text color
 * --sc-text-secondary:  Secondary text color
 * --sc-shadow:         Box shadow for depth
 * --sc-radius:         Border radius for rounded elements
 */

:root {
    --sc-primary:        #6366f1;
    --sc-primary-dark:   #4f46e5;
    --sc-secondary:      #ef4444;
    --sc-accent:         #f59e0b;
    --sc-success:        #22c55e;
    --sc-whatsapp:       #25d36f;
    --sc-telegram:       #0088cc;
    --sc-bg:             rgba(255, 255, 255, 0.15);
    --sc-card-bg:        rgba(255, 255, 255, 0.25);
    --sc-card-bg-dark:   rgba(0, 0, 0, 0.1);
    --sc-border:         rgba(255, 255, 255, 0.18);
    --sc-text:           #1f2937;
    --sc-text-secondary:  #6b7280;
    --sc-shadow:         0 8px 32px rgba(0, 0, 0, 0.1);
    --sc-shadow-hover:   0 12px 48px rgba(0, 0, 0, 0.15);
    --sc-radius:         12px;
    --sc-radius-pill:    9999px;
    --sc-transition:     all 0.2s ease;
}

/* ===== Glassmorphism utilities ===== */
.sc-glass {
    background: var(--sc-card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--sc-border);
}

.sc-glass-dark {
    background: var(--sc-card-bg-dark);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--sc-border);
}

/* ===== Cart Widget ===== */
.sc-cart-widget {
    background: var(--sc-card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius);
    box-shadow: var(--sc-shadow);
    padding: 1.5rem;
    transition: var(--sc-transition);
}

.sc-cart-widget:hover {
    box-shadow: var(--sc-shadow-hover);
}

.sc-cart-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sc-cart-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sc-cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.sc-cart-item-name {
    flex: 1;
    font-weight: 500;
}

.sc-cart-item-total {
    font-weight: 600;
    color: var(--sc-primary);
}

.sc-cart-summary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.sc-cart-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--sc-primary);
}

.sc-cart-empty {
    text-align: center;
    color: var(--sc-text-secondary);
    padding: 2rem 0;
}

/* ===== Product Cards ===== */
.sc-product-card {
    background: var(--sc-card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius);
    padding: 1rem;
    transition: var(--sc-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sc-product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sc-shadow-hover);
}

.sc-product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.sc-product-title {
    font-size: 1rem;
    margin: 0 0 0.25rem;
}

.sc-product-title a {
    text-decoration: none;
    color: var(--sc-text);
}

.sc-product-title a:hover {
    color: var(--sc-primary);
}

.sc-product-price {
    font-weight: 600;
    margin: 0.25rem 0;
}

.sc-product-stock {
    font-size: 0.8rem;
    margin: 0.25rem 0;
}

.sc-product-actions {
    margin-top: auto;
    display: flex;
    gap: 0.25rem;
}

.sc-btn {
    background: var(--sc-primary);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--sc-transition);
}

.sc-btn:hover {
    background: var(--sc-primary-dark);
    transform: translateY(-1px);
}

.sc-whatsapp-buy {
    background: var(--sc-whatsapp);
}

.sc-whatsapp-buy:hover {
    background: #1dc25a;
}

.sc-add-to-cart {
    background: var(--sc-primary);
}

/* ===== Product Grid ===== */
.sc-product-grid {
    display: grid;
    grid-template-columns: repeat(var(--sc-columns, 3), 1fr);
    gap: 1.5rem;
}

/* ===== Single Product ===== */
.sc-single-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.sc-product-image img {
    width: 100%;
    height: auto;
    border-radius: var(--sc-radius);
}

.sc-product-details h2 {
    margin: 0 0 0.5rem;
}

/* ===== WhatsApp Checkout Button ===== */
.sc-whatsapp-checkout {
    background: var(--sc-whatsapp);
    color: #fff;
    border: none;
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--sc-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--sc-transition);
}

.sc-whatsapp-checkout:hover {
    background: #1dc25a;
    transform: translateY(-1px);
}

/* ===== AR Viewer ===== */
.sc-ar-viewer-wrapper {
    margin-top: 1rem;
}

.sc-ar-viewer {
    width: 100% !important;
    height: 300px !important;
}

/* ===== Carousel ===== */
.sc-carousel-container {
    width: 100%;
}

.sc-carousel .swiper-button-next,
.sc-carousel .swiper-button-prev {
    background: var(--sc-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.sc-carousel .swiper-pagination-bullet {
    background: var(--sc-primary);
    opacity: 0.5;
}

.sc-carousel .swiper-pagination-bullet-active {
    background: var(--sc-primary);
    opacity: 1;
}

/* ===== Coupon Form ===== */
.sc-coupon-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.sc-coupon-form input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem;
    border: 1px solid var(--sc-border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.3);
}

/* ===== Responsive (Mobile-First) ===== */
@media (max-width: 768px) {
    .sc-single-product {
        grid-template-columns: 1fr;
    }

    .sc-product-grid {
        grid-template-columns: 1fr;
    }

    .sc-cart-widget {
        padding: 1rem;
    }

    .sc-product-card {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .sc-product-actions {
        flex-direction: column;
    }

    .sc-btn {
        width: 100%;
    }

    .sc-carousel .swiper-button-next,
    .sc-carousel .swiper-button-prev {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* ===== Dark mode support ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --sc-text:           #f9fafb;
        --sc-text-secondary:  #9ca3af;
        --sc-card-bg:        rgba(0, 0, 0, 0.3);
        --sc-border:         rgba(255, 255, 255, 0.12);
    }
}

/* ==========================================================================
   Floating Telegram Bot Chat Widget
   ========================================================================== */

.sc-telegram-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.4;
    font-size: 14px;
    color: #1e293b;
    box-sizing: border-box;
}

.sc-telegram-widget *,
.sc-telegram-widget *::before,
.sc-telegram-widget *::after {
    box-sizing: inherit;
}

/* Floating Trigger Button */
.sc-tg-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0088cc 0%, #00a2f5 100%);
    color: #ffffff;
    border: none;
    cursor: pointer;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(0, 136, 204, 0.45);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.sc-tg-toggle:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 34px rgba(0, 136, 204, 0.6);
}

.sc-tg-toggle svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.sc-tg-toggle:hover svg {
    transform: rotate(-8deg);
}

/* Pulsing Live Badge */
.sc-tg-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ff3b30 0%, #ff6b6b 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    border: 2px solid #ffffff;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.4);
    animation: sc-pulse-badge 2s infinite;
}

@keyframes sc-pulse-badge {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 4px 12px rgba(255, 59, 48, 0.65); }
    100% { transform: scale(1); }
}

/* Chat Panel */
.sc-tg-panel {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 390px;
    max-width: calc(100vw - 32px);
    height: 560px;
    max-height: calc(100vh - 120px);
    background: #ffffff;
    border: 1px solid rgba(0, 136, 204, 0.25);
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 136, 204, 0.08);
    z-index: 999999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: sc-panel-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-tg-panel.sc-open {
    display: flex !important;
    flex-direction: column !important;
}

@keyframes sc-panel-in {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Panel Header */
.sc-tg-header {
    background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    z-index: 2;
}

.sc-tg-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sc-tg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    color: #0088cc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.sc-tg-avatar svg {
    width: 22px;
    height: 22px;
    fill: #0088cc;
}

.sc-tg-online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #ffffff;
}

.sc-tg-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    line-height: 1.2;
}

.sc-tg-status {
    font-size: 11px;
    opacity: 0.9;
    margin: 2px 0 0;
    color: #e0f2fe;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sc-tg-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sc-tg-icon-btn {
    background: rgba(255, 255, 255, 0.18);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.sc-tg-icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sc-tg-icon-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Chat Body */
.sc-tg-body {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 16px 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 136, 204, 0.4) #f1f5f9;
}

.sc-tg-body::-webkit-scrollbar {
    width: 6px;
}

.sc-tg-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.sc-tg-body::-webkit-scrollbar-thumb {
    background: rgba(0, 136, 204, 0.35);
    border-radius: 4px;
}

.sc-tg-body::-webkit-scrollbar-thumb:hover {
    background: #0088cc;
}

/* Chat Bubbles */
.sc-tg-msg-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sc-tg-msg-bot {
    align-self: flex-start;
    max-width: 88%;
    background: #ffffff;
    color: #1e293b;
    padding: 12px 14px;
    border-radius: 16px 16px 16px 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #edf2f7;
    font-size: 13.5px;
    position: relative;
    word-wrap: break-word;
}

.sc-tg-msg-user {
    align-self: flex-end;
    max-width: 82%;
    background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 3px 12px rgba(0, 136, 204, 0.25);
    font-size: 13.5px;
    word-wrap: break-word;
}

.sc-tg-msg-time {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
    text-align: right;
}

/* Interactive Chips */
.sc-tg-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.sc-tg-chip {
    background: #f1f5f9;
    color: #0284c7;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    user-select: none;
}

.sc-tg-chip:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    transform: translateY(-1px);
}

.sc-tg-chip-primary {
    background: #0088cc;
    color: #ffffff;
    border-color: #0088cc;
}

.sc-tg-chip-primary:hover {
    background: #0077b5;
}

.sc-tg-chip-live {
    background: linear-gradient(135deg, #ff0050 0%, #00f2fe 100%);
    color: #ffffff;
    border: none;
    font-weight: 700;
}

.sc-tg-chip-live:hover {
    opacity: 0.9;
    transform: scale(1.03);
}

/* Product Cards Carousel / Grid in Bot */
.sc-tg-products-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.sc-tg-product-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sc-tg-product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.sc-tg-product-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    background: #f8fafc;
    flex-shrink: 0;
    border: 1px solid #f1f5f9;
}

.sc-tg-product-details {
    flex: 1;
    min-width: 0;
}

.sc-tg-product-title {
    font-weight: 700;
    font-size: 13px;
    margin: 0 0 3px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-tg-product-prices {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    margin-bottom: 6px;
}

.sc-tg-price-regular {
    color: #64748b;
}

.sc-tg-price-regular.strike {
    text-decoration: line-through;
    color: #94a3b8;
}

.sc-tg-price-sale {
    color: #dc2626;
    font-weight: 700;
    background: #fee2e2;
    padding: 1px 6px;
    border-radius: 4px;
}

.sc-tg-price-live {
    color: #059669;
    font-weight: 800;
    background: #d1fae5;
    padding: 1px 6px;
    border-radius: 4px;
}

.sc-tg-product-actions {
    display: flex;
    gap: 6px;
}

.sc-tg-btn-buy {
    background: #0088cc;
    color: #ffffff;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sc-tg-btn-buy:hover {
    background: #0077b5;
}

.sc-tg-btn-live-apply {
    background: #f1f5f9;
    color: #ff0050;
    border: 1px solid #fecdd3;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.sc-tg-btn-live-apply:hover {
    background: #ffe4e6;
}

/* TikTok Live Card */
.sc-tg-tiktok-box {
    background: linear-gradient(135deg, rgba(255, 0, 80, 0.05) 0%, rgba(0, 242, 254, 0.05) 100%);
    border: 1.5px dashed #f43f5e;
    border-radius: 12px;
    padding: 12px;
    margin-top: 8px;
}

.sc-tg-tiktok-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #e11d48;
    margin-bottom: 6px;
    font-size: 13px;
}

.sc-tg-tiktok-input-group {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.sc-tg-tiktok-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease;
    background: #ffffff;
}

.sc-tg-tiktok-input:focus {
    border-color: #f43f5e;
    box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.15);
}

.sc-tg-tiktok-btn {
    background: linear-gradient(135deg, #ff0050 0%, #000000 100%);
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s ease;
}

.sc-tg-tiktok-btn:hover {
    opacity: 0.9;
}

/* Cart / Order Summary Card in Bot */
.sc-tg-summary-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px;
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.sc-tg-summary-title {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.sc-tg-summary-items {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    font-size: 12.5px;
}

.sc-tg-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed #f1f5f9;
}

.sc-tg-summary-totals {
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.sc-tg-total-row {
    display: flex;
    justify-content: space-between;
}

.sc-tg-total-final {
    font-size: 15px;
    font-weight: 800;
    color: #059669;
    border-top: 1px solid #e2e8f0;
    padding-top: 6px;
}

.sc-tg-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    border: none;
    cursor: pointer;
    width: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sc-tg-whatsapp-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #ffffff;
}

/* Chat Footer / Input Bar */
.sc-tg-footer {
    padding: 10px 14px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.sc-tg-input {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 9px 16px;
    font-size: 13.5px;
    outline: none;
    color: #1e293b;
    transition: all 0.2s ease;
}

.sc-tg-input:focus {
    background: #ffffff;
    border-color: #0088cc;
    box-shadow: 0 0 0 2px rgba(0, 136, 204, 0.15);
}

.sc-tg-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0088cc;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.15s ease;
    flex-shrink: 0;
}

.sc-tg-send-btn:hover {
    background: #0077b5;
    transform: scale(1.06);
}

.sc-tg-send-btn svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

/* Typing Indicator Animation */
.sc-tg-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.sc-tg-typing span {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: sc-typing 1.4s infinite ease-in-out both;
}

.sc-tg-typing span:nth-child(1) { animation-delay: -0.32s; }
.sc-tg-typing span:nth-child(2) { animation-delay: -0.16s; }

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

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .sc-tg-panel {
        bottom: 0;
        right: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
    }

    .sc-tg-input {
        font-size: 16px !important; /* Prevents auto-zoom on mobile devices */
    }

    .sc-tg-toggle {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
    }
}

