/* iOS 26 Style - Masters Page */

:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --accent-gradient: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

body {
    background: #f0f2f5;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Animated Background */
.ios-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 50%, rgba(236, 72, 153, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.15), transparent 25%);
    filter: blur(40px);
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.01);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Typography */
.ios-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #111827 0%, #4b5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ios-subtitle {
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

/* Master Card Specifics */
.master-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 3/4;
}

.master-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.glass-card:hover .master-image {
    transform: scale(1.08);
}

.master-badge {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #1f2937;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Skill Tags */
.skill-tag {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.glass-card:hover .skill-tag {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

/* Action Button */
.ios-button {
    background: var(--text-primary);
    color: white;
    border-radius: 16px;
    padding: 14px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ios-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ios-button:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.ios-button:hover::after {
    opacity: 1;
}

/* Floating Elements Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

/* Shop Specific Styles */

/* Shop Hero */
.shop-hero-full {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.2);
}

.shop-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.shop-hero-full:hover .shop-hero-bg {
    transform: scale(1.05);
}

.shop-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
    backdrop-filter: blur(2px);
}

.shop-hero-content {
    position: relative;
    z-index: 10;
    padding: 2rem;
    max-width: 800px;
}

.shop-hero-title-large {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.shop-hero-subtitle-light {
    font-size: 1.25rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-hero-light {
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-hero-light:hover {
    background: white;
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Filters Sidebar */
.glass-filter {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 1.5rem;
    height: fit-content;
}

.filter-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.4rem 0.8rem;
    /* Reduced padding */
    margin-bottom: 0;
    border-radius: 20px;
    /* Pill shape */
    color: var(--text-secondary);
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.4);
    /* Slight background */
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    /* Smaller text */
    font-weight: 500;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: #ec4899;
    /* Pink background active */
    color: white;
    border-color: #ec4899;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.25);
    font-weight: 600;
}

/* Product Card */
/* Product Card Compaction */
.glass-product-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    /* Slightly tighter radius */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: transparent;
    padding: 0.5rem;
    /* Minimal padding for "in window" look */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px 20px 0 0;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill the window */
    border-radius: 16px;
    /* Rounded corners for photo */
    transition: transform 0.5s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.glass-product-card:hover .product-image-wrapper img {
    transform: scale(1.1) translateY(-5px);
    /* Floating effect */
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.2));
}

.product-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 0.875rem;
    color: #ec4899;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-price {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: auto;
    padding-top: 1rem;
}

.product-actions {
    padding: 1rem;
    padding-top: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
}

.btn-add-cart {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    /* Smaller padding */
    border-radius: 12px;
    font-size: 0.9rem;
    /* Smaller text */
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy transition */
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-add-cart:hover {
    transform: scale(1.05) translateY(-2px);
    /* Dynamic pop */
    box-shadow: 0 8px 15px rgba(236, 72, 153, 0.5);
    filter: brightness(1.1);
}

.btn-add-cart:active {
    transform: scale(0.95);
}

/* Success State for Add to Cart */
.btn-add-cart.success {
    background: #10b981;
    /* Green */
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: cart-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cart-pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.btn-add-cart:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Wildberries Style Override */
.wb-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wb-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.wb-image-container {
    position: relative;
    aspect-ratio: 3/4;
    /* Taller format consistent with apparel/beauty */
    overflow: hidden;
}

.wb-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.wb-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: #FF3D68;
    /* WB red/pink */
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.wb-info {
    padding: 8px 10px 12px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wb-price-block {
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.wb-price-current {
    font-size: 1.25rem;
    font-weight: 800;
    color: #cb11ab;
    /* WB Purple */
    line-height: 1;
}

.wb-price-old {
    font-size: 0.85rem;
    color: #868695;
    text-decoration: line-through;
}

.wb-brand {
    font-size: 0.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}

.wb-title {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.2;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wb-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #868695;
    margin-top: auto;
}

.wb-rating i {
    color: #FFC107;
}

.wb-btn-cart {
    background: #cb11ab;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px;
    font-weight: 600;
    text-align: center;
    margin-top: 8px;
    width: 100%;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.wb-btn-cart:hover {
    background: #a90e8f;
}

.wb-btn-cart.success {
    background: #10b981;
}

.btn-details {
    /* Keep existing for compatibility but hide/modify usage in JS */
    display: none;
}

/* Modal */
.glass-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.glass-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.glass-modal-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 32px;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.glass-modal-overlay.active .glass-modal-content {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

/* Home Page Specifics */

/* Hero Section */
.hero-glass-panel {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-stats-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.hero-stats-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.6);
}

/* Service Cards */
.service-glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 32px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

/* Booking Form */
.booking-glass-form {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 32px;
    padding: 3rem;
}

.glass-input {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    width: 100%;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.8);
    border-color: #ec4899;
    outline: none;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

.glass-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

/* Review Cards */
.review-glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 2rem;
    min-width: 320px;
    margin-right: 1.5rem;
}

/* Hide Scrollbar */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* --- Wildberries App Interface --- */

/* Bottom Navigation Bar */
.wb-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 24px 0;
    /* Extra padding for iPhone Home Indicator */
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.wb-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #999;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    width: 20%;
    cursor: pointer;
    position: relative;
}

.wb-nav-item.active {
    color: #cb11ab;
    font-weight: 600;
}

.wb-nav-item i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.wb-nav-badge {
    position: absolute;
    top: -2px;
    right: 25%;
    /* Centered overlap */
    background: #FF3D68;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.wb-nav-badge.visible {
    opacity: 1;
}

/* WB Full Screen Product Modal */
.wb-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    /* Sheet slide up effect */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wb-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wb-detail-container {
    background: white;
    width: 100%;
    height: 95vh;
    /* Almost full screen */
    border-radius: 20px 20px 0 0;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.wb-modal-overlay.active .wb-detail-container {
    transform: translateY(0);
}

.wb-detail-scroll {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px;
    /* Space for sticky footer */
}

/* Close Button (Top Right of Sheet) */
.wb-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    cursor: pointer;
}

/* Gallery */
.wb-gallery-container {
    width: 100%;
    aspect-ratio: 3/4;
    position: relative;
    overflow: hidden;
}

.wb-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Section in Detail */
.wb-detail-info {
    padding: 16px;
}

.wb-detail-brand {
    font-weight: 700;
    color: #cb11ab;
    margin-bottom: 4px;
}

.wb-detail-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #333;
}

.wb-detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.wb-detail-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #cb11ab;
}

.wb-detail-old-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.wb-detail-rating {
    display: flex;
    gap: 4px;
    color: #ffa500;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Sticky Footer */
.wb-sticky-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 12px 16px 32px 16px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
    align-items: center;
}

.wb-btn-primary {
    flex: 1;
    background: #cb11ab;
    color: white;
    font-weight: 600;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.wb-btn-primary:active {
    background: #a10d8a;
    transform: scale(0.98);
}

.wb-btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cb11ab;
    font-size: 1.2rem;
}

/* Hide old elements */
.floating-cart,
.glass-modal-overlay {
    display: none !important;
}

/* --- AI Chat Mobile Optimization (Telegram Mini App) --- */
@media (max-width: 768px) {
    #ai-chat-window {
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 60dvh !important;
        border-radius: 24px 24px 0 0 !important;
        transform: none !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
        z-index: 9999 !important;
        display: flex;
        flex-direction: column;
        padding-bottom: env(safe-area-inset-bottom);
        margin: 0 !important;
        box-sizing: border-box !important;
        /* Fix width overflow */
    }

    /* Ensure Input Area is always accessible & fits */
    .ai-input-area {
        padding: 12px;
        background: white;
        border-top: 1px solid #eee;
        display: flex;
        gap: 10px;
        align-items: center;
        box-sizing: border-box;
    }

    /* Input field styling adjustment for mobile */
    #ai-input {
        flex: 1;
        min-width: 0;
        /* Prevent overflow */
    }

    /* Adjust messages area */
    .ai-messages {
        flex: 1;
        overflow-y: auto;
        padding-bottom: 10px;
        box-sizing: border-box;
    }

    /* Adjust Trigger Button Position */
    #ai-widget-trigger {
        bottom: 90px !important;
        right: 20px !important;
    }
}
/* Dynamic Island Pulse Effect */
@keyframes islandPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 15px 0 rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

.island-pulse {
    animation: islandPulse 3s infinite ease-in-out;
}

/* Safe Area Utility */
.safe-area-bottom {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
}

