/* ==========================================
   MOBILE UX/UI OPTIMIZATION
   Tối ưu hóa trải nghiệm người dùng trên mobile
   ========================================== */

/* === PREVENT HORIZONTAL OVERFLOW ON MOBILE === */
@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        max-width: 100vw;
    }
}

/* === CRITICAL FIX: Re-enable essential animations on mobile === */
/* Các phiên bản cũ tắt hết animation trên mobile, gây UX "chết" */
@media (max-width: 768px) {

    /* Override the aggressive animation kill */
    *:not(.no-animation) {
        animation-duration: unset !important;
        animation-iteration-count: unset !important;
        transition-duration: unset !important;
    }

    /* Only keep essential, lightweight transitions for touch feedback */
    .btn,
    .sidebar-link,
    .modal-overlay,
    .modal-content,
    .sidebar,
    .sidebar-overlay,
    .toast,
    .input-field input,
    .input-field select {
        transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, box-shadow 0.15s ease !important;
    }

    /* Disable heavy/unnecessary animations for performance */
    .progress-container::before,
    .btn::before,
    #analyzeBatTuBtn:disabled::after {
        animation: none !important;
    }

    /* Keep spinner animations working */
    .spinner,
    .battu-spinner,
    .battu-spinner::before,
    .battu-spinner::after {
        animation-duration: 1s !important;
        animation-iteration-count: infinite !important;
    }

    .battu-spinner {
        animation-duration: 1.5s !important;
    }

    /* Keep toast animations */
    .toast.show {
        transition: transform 0.3s ease, opacity 0.3s ease !important;
    }

    /* Keep fade in animations for content */
    .chat-message,
    .daily-chat-message {
        animation: fadeInUp 0.25s ease !important;
    }
}

@media (max-width: 480px) {

    /* Override 480px kill too */
    *:not(.no-animation) {
        animation: unset !important;
        transition: unset !important;
    }

    .btn,
    .sidebar-link,
    .modal-overlay,
    .modal-content,
    .sidebar,
    .sidebar-overlay,
    .toast,
    .input-field input,
    .input-field select {
        transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease !important;
    }

    .spinner,
    .battu-spinner,
    .battu-spinner::before,
    .battu-spinner::after {
        animation-duration: 1s !important;
        animation-iteration-count: infinite !important;
    }

    .toast.show {
        transition: transform 0.3s ease, opacity 0.3s ease !important;
    }

    .chat-message,
    .daily-chat-message {
        animation: fadeInUp 0.2s ease !important;
    }
}

/* === MOBILE HEADER OPTIMIZATION === */
@media (max-width: 768px) {
    .main-layout .header {
        padding: 12px 16px 12px 56px;
        position: sticky;
        top: 0;
        z-index: 100;
        background: linear-gradient(135deg, rgba(255, 248, 220, 0.98), rgba(254, 243, 199, 0.98));
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    /* Hide H1 title on mobile */
    .main-layout .header h1 {
        display: none;
    }

    /* User balance/login row - all on one line */
    .main-layout .header>div[style*="display:flex"] {
        flex-wrap: nowrap;
        gap: 8px !important;
        justify-content: flex-end !important;
        margin-top: 0 !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .main-layout .header>div[style*="display:flex"] .btn {
        padding: 8px 14px;
        font-size: 0.85rem;
        min-width: auto;
        min-height: 36px;
        border-radius: 20px;
        white-space: nowrap;
    }

    .main-layout .header>div[style*="display:flex"] span {
        font-size: 0.85rem;
        white-space: nowrap;
        margin-right: 4px;
    }
}

@media (max-width: 480px) {
    .main-layout .header {
        padding: 10px 12px 10px 52px;
    }

    /* H1 remains hidden on small mobile */
    .main-layout .header h1 {
        display: none;
    }

    .main-layout .header>div[style*="display:flex"] {
        gap: 6px !important;
        padding-bottom: 2px;
    }

    .main-layout .header>div[style*="display:flex"] .btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-height: 32px;
    }

    .main-layout .header>div[style*="display:flex"] span {
        font-size: 0.8rem;
    }
}

/* === MOBILE MENU TOGGLE ENHANCEMENT === */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.3rem !important;
        background: linear-gradient(135deg, #f59e0b, #d97706) !important;
        color: white !important;
        box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4) !important;
        border: none !important;
        border-radius: 12px !important;
    }
}

/* === FORM OPTIMIZATION FOR MOBILE === */
@media (max-width: 768px) {
    #setup-section h2 {
        font-size: 1.2rem;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    #setup-section>p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .input-grid {
        gap: 10px !important;
    }

    .input-field label {
        font-size: 0.85rem !important;
        margin-bottom: 4px !important;
        text-transform: none !important;
        letter-spacing: normal !important;
    }

    .input-field input,
    .input-field select {
        padding: 12px 14px !important;
        font-size: 16px !important;
        /* Prevents iOS zoom */
        border-radius: 12px !important;
        min-height: 48px !important;
        -webkit-appearance: none;
        appearance: none;
    }

    /* Custom select arrow for mobile */
    .input-field select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23d97706'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center;
        padding-right: 36px !important;
    }
}

/* === ACTION BUTTONS OPTIMIZATION === */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 0 !important;
    }

    .action-buttons .btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 20px !important;
        font-size: 0.95rem !important;
        border-radius: 14px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px;
        min-height: 52px !important;
    }

    /* Active state feedback for touch */
    .btn:active {
        transform: scale(0.97) !important;
        opacity: 0.9;
    }
}

/* === FEATURE LIST ON MOBILE === */
@media (max-width: 768px) {
    #setup-section>div[style*="border:1px solid"] {
        padding: 12px !important;
        border-radius: 12px !important;
        margin-bottom: 12px;
    }

    #setup-section>div[style*="border:1px solid"] ul {
        margin: 6px 0 0 14px !important;
        line-height: 1.5 !important;
        font-size: 0.9rem;
    }

    #setup-section>div[style*="border:1px solid"] li {
        margin-bottom: 4px;
    }
}

/* === MOBILE GUIDE SECTION === */
@media (max-width: 768px) {
    #mobile-guide {
        margin: 12px 0 !important;
        padding: 14px !important;
        border-radius: 14px !important;
        font-size: 0.9rem;
    }

    #mobile-guide h3 {
        font-size: 1.05rem !important;
        margin-bottom: 8px !important;
    }
}

/* === LASO GRID MOBILE OPTIMIZATION === */
@media (max-width: 768px) {
    #laso-container {
        transform: none !important;
        max-width: 100% !important;
        margin: 12px 0 !important;
        border-radius: 12px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #laso-grid-container {
        min-width: 340px;
    }

    .laso-controls {
        flex-wrap: wrap;
        gap: 8px !important;
        padding: 10px !important;
    }

    .laso-controls button {
        flex: 1;
        min-width: 80px;
        padding: 8px 10px !important;
        font-size: 0.75rem !important;
        border-radius: 8px !important;
    }
}

/* === RESULT CARDS MOBILE === */
@media (max-width: 768px) {
    .result-card {
        padding: 16px !important;
        border-radius: 14px !important;
        margin-bottom: 12px !important;
    }

    .result-card:hover {
        transform: none !important;
        /* Disable hover lift on mobile */
    }

    .result-title {
        font-size: 1.25rem !important;
        margin-bottom: 12px !important;
        padding-bottom: 10px !important;
    }

    .result-content {
        line-height: 1.7 !important;
        font-size: 0.95rem;
    }

    .result-content h3 {
        font-size: 1.1rem !important;
        margin-top: 16px !important;
    }
}

/* === CHATBOT MOBILE OPTIMIZATION === */
@media (max-width: 768px) {
    #chatbot-section {
        padding: 14px !important;
        border-radius: 14px !important;
        margin-top: 16px !important;
    }

    #chatbot-section h3 {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
    }

    #chat-window {
        height: 350px !important;
        border-radius: 14px !important;
        padding: 12px !important;
        margin-bottom: 10px !important;
    }

    .chat-message {
        max-width: 92% !important;
    }

    .chat-message .bubble {
        padding: 10px 14px !important;
        border-radius: 16px !important;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .chat-message .sender {
        font-size: 0.75rem !important;
    }

    #chat-input-form {
        flex-direction: row !important;
        /* Keep inline on mobile for better UX */
        gap: 8px !important;
    }

    #chat-input {
        flex: 1;
        padding: 12px 16px !important;
        font-size: 16px !important;
        /* Prevent iOS zoom */
        border-radius: 24px !important;
        min-height: 48px;
        border: 2px solid rgba(251, 191, 36, 0.3) !important;
    }

    #chat-submit-btn {
        width: auto !important;
        min-width: 60px !important;
        padding: 12px 16px !important;
        border-radius: 24px !important;
        font-size: 0.9rem !important;
        min-height: 48px;
    }
}

/* === DAILY CHAT MOBILE === */
@media (max-width: 768px) {
    .daily-chat-container {
        height: 350px !important;
    }

    .daily-chat-messages {
        padding: 12px !important;
        border-radius: 14px !important;
    }

    .daily-chat-message {
        max-width: 92% !important;
    }

    .daily-chat-input-container {
        gap: 8px !important;
    }

    .daily-chat-input-container input {
        padding: 12px 16px !important;
        font-size: 16px !important;
        border-radius: 24px !important;
        min-height: 48px;
    }

    .daily-chat-input-container button {
        border-radius: 24px !important;
        min-width: 60px !important;
        padding: 12px 16px !important;
        min-height: 48px;
    }
}

/* === MODAL OPTIMIZATION FOR MOBILE === */
@media (max-width: 768px) {
    .modal-overlay {
        align-items: flex-end !important;
        /* Slide up from bottom like native apps */
        padding: 0 !important;
    }

    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 90vh !important;
        border-radius: 20px 20px 0 0 !important;
        padding: 20px !important;
        margin: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Modal handle bar (visual cue for swipe-to-close) */
    .modal-content::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: rgba(0, 0, 0, 0.15);
        border-radius: 2px;
        margin: 0 auto 16px auto;
    }

    .modal-close {
        top: 12px !important;
        right: 12px !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 1.3rem !important;
        background: rgba(0, 0, 0, 0.06) !important;
        border-radius: 50% !important;
        z-index: 10;
    }

    .modal-content h3 {
        font-size: 1.25rem !important;
        margin-bottom: 12px !important;
        padding-right: 40px;
        /* Space for close button */
    }

    .modal-content p {
        font-size: 0.9rem !important;
        margin-bottom: 14px !important;
    }

    /* Login/Register form in modal */
    #loginModal .modal-content,
    #donateModal .modal-content {
        max-height: 85vh !important;
    }

    /* Birth hour finder modal */
    #birthHourFinderModal .modal-content {
        max-height: 92vh !important;
    }

    #birthHourFinderModal .input-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
}

/* === SIDEBAR MOBILE ENHANCEMENT === */
@media (max-width: 768px) {
    .sidebar {
        width: 280px !important;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25) !important;
    }

    .sidebar.open {
        transform: translateX(0) !important;
    }

    .sidebar-header {
        padding: 16px !important;
        position: relative;
    }

    /* Add close button inside sidebar for mobile */
    .sidebar-header::after {
        content: '✕';
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.06);
        font-size: 1rem;
        color: #92400e;
        cursor: pointer;
        pointer-events: none;
        /* JS will handle this via overlay */
    }

    .sidebar-nav {
        padding: 8px 0 !important;
    }

    .sidebar-link {
        padding: 14px 20px !important;
        min-height: 48px !important;
        font-size: 0.95rem !important;
        border-left: 4px solid transparent !important;
        gap: 12px;
    }

    .sidebar-link .icon {
        font-size: 1.3rem !important;
        width: 28px !important;
    }

    .sidebar-link .text {
        font-size: 0.95rem !important;
        font-weight: 500;
    }

    .sidebar-link.active {
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1)) !important;
        border-left-color: #f59e0b !important;
    }

    .sidebar-link:active {
        background: rgba(251, 191, 36, 0.2) !important;
    }

    /* Free indicator badge */
    .free-indicator {
        padding: 3px 8px !important;
        font-size: 0.65rem !important;
        border-radius: 10px !important;
    }

    .sidebar-overlay {
        background: rgba(0, 0, 0, 0.5) !important;
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100% !important;
        max-width: 320px !important;
    }
}

/* === TABLE OPTIMIZATION FOR MOBILE === */
@media (max-width: 768px) {

    /* SEO comparison table */
    #seo-content-section table {
        font-size: 0.8rem;
    }

    #seo-content-section th,
    #seo-content-section td {
        padding: 8px 6px !important;
        font-size: 0.78rem !important;
    }

    #seo-content-section {
        padding: 14px !important;
        border-radius: 14px !important;
    }

    #seo-content-section h2 {
        font-size: 1.15rem !important;
    }

    #seo-content-section h3 {
        font-size: 1.05rem !important;
    }

    /* Feature grid on mobile */
    #seo-content-section div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* CTA buttons in SEO section */
    #seo-content-section div[style*="text-align: center"] .btn {
        display: block !important;
        margin: 8px auto !important;
        max-width: 260px;
    }
}

/* === BLOG POSTS GRID MOBILE === */
@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    #blog-posts-section h2 {
        font-size: 1.15rem !important;
        margin-bottom: 12px !important;
    }
}

/* === VIDEO SECTION MOBILE === */
@media (max-width: 768px) {
    div[style*="padding-bottom: 56.25%"] {
        border-radius: 12px;
        overflow: hidden;
    }
}

/* === FOOTER MOBILE === */
@media (max-width: 768px) {
    .footer {
        padding: 14px 16px !important;
        padding-bottom: 80px !important;
        /* Space for bottom nav */
    }

    .footer-content p {
        font-size: 0.8rem !important;
        line-height: 1.5;
    }

    .footer-content a {
        font-size: 0.8rem;
    }
}

/* === BOTTOM NAVIGATION BAR FOR MOBILE === */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        height: 60px;
        background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.98));
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(251, 191, 36, 0.3);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
        z-index: 999;
        align-items: center;
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom, 0);
        overflow: hidden;
    }

    .mobile-bottom-nav-scroll {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
        width: 100%;
        max-width: 100%;
        height: 100%;
        align-items: center;
        padding: 0 4px;
        gap: 0;
        scroll-snap-type: x proximity;
    }

    .mobile-bottom-nav-scroll::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    /* Fade indicator on the right edge */
    .mobile-bottom-nav-fade {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 36px;
        background: linear-gradient(to right, transparent, rgba(254, 243, 199, 0.95));
        pointer-events: none;
        z-index: 2;
        transition: opacity 0.3s ease;
    }

    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #92400e;
        font-size: 0.65rem;
        font-weight: 500;
        padding: 6px 4px;
        min-width: 68px;
        flex-shrink: 0;
        border-radius: 10px;
        transition: background-color 0.2s ease, color 0.2s ease;
        gap: 2px;
        scroll-snap-align: start;
    }

    .mobile-bottom-nav a .nav-icon {
        font-size: 1.3rem;
        line-height: 1;
    }

    .mobile-bottom-nav a .nav-label {
        font-size: 0.6rem;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 60px;
    }

    .mobile-bottom-nav a.active {
        color: #d97706;
        background: rgba(251, 191, 36, 0.15);
    }

    .mobile-bottom-nav a:active {
        background: rgba(251, 191, 36, 0.25);
        transform: scale(0.95);
    }

    /* Ensure main content doesn't get hidden behind bottom nav */
    .main-layout {
        padding-bottom: 68px !important;
    }
}

/* === TOAST MOBILE OPTIMIZATION === */
@media (max-width: 768px) {
    #toast-container {
        top: auto !important;
        bottom: 72px !important;
        /* Above bottom nav */
        right: 12px !important;
        left: 12px !important;
        max-width: 100%;
    }

    .toast {
        min-width: auto !important;
        max-width: 100% !important;
        font-size: 0.9rem;
        padding: 10px 16px !important;
        border-radius: 12px !important;
    }
}

/* === HAN VIEW SECTION MOBILE === */
@media (max-width: 768px) {
    #han-view-section {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    #han-view-section .input-field {
        width: 100%;
    }

    #han-view-section .btn {
        width: 100%;
    }
}

/* === BATTU TABLE MOBILE === */
@media (max-width: 768px) {
    .battu-container {
        max-width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .battu-grid {
        min-width: 320px;
    }

    .battu-char {
        font-size: 1.5rem !important;
        padding: 10px 8px !important;
    }

    .battu-pillar-header {
        font-size: 0.75rem !important;
        padding: 6px !important;
    }

    .daivan-container {
        max-width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* === PROGRESS SECTION MOBILE === */
@media (max-width: 768px) {
    .progress-container {
        padding: 20px !important;
        border-radius: 14px !important;
    }

    .progress-text {
        font-size: 1rem !important;
    }

    .palace-progress-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .palace-progress-card {
        padding: 10px 8px !important;
        font-size: 0.8rem !important;
        border-radius: 10px !important;
    }
}

/* === SUGGESTED QUESTIONS MOBILE === */
@media (max-width: 768px) {
    #suggested-questions-section {
        padding: 16px !important;
        border-radius: 14px !important;
    }

    #suggested-questions-section h3 {
        font-size: 1.1rem !important;
    }

    .suggested-btn {
        padding: 12px 16px !important;
        font-size: 0.9rem !important;
        border-radius: 14px !important;
        text-align: center;
    }
}

/* === SAFE AREA INSETS (for notched phones) === */
@supports (padding: env(safe-area-inset-bottom)) {
    @media (max-width: 768px) {
        .mobile-bottom-nav {
            padding-bottom: env(safe-area-inset-bottom);
            height: calc(60px + env(safe-area-inset-bottom));
        }

        .main-layout {
            padding-bottom: calc(68px + env(safe-area-inset-bottom)) !important;
        }

        .footer {
            padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
        }
    }
}

/* === SMOOTH SCROLLING OPTIMIZATION === */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
    }

    /* Improve scroll performance */
    .main-layout,
    #chat-window,
    .daily-chat-messages,
    .modal-content,
    .sidebar-content {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }
}

/* === PULL-TO-REFRESH PREVENTION === */
@media (max-width: 768px) {
    body {
        overscroll-behavior-y: contain;
    }
}

/* === ACCESSIBILITY ON MOBILE === */
@media (max-width: 768px) {

    /* Ensure focus rings are visible */
    .btn:focus-visible,
    input:focus-visible,
    select:focus-visible,
    a:focus-visible {
        outline: 3px solid #f59e0b !important;
        outline-offset: 2px !important;
    }

    /* Ensure text is readable */
    p,
    li,
    span,
    div {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* === LANDSCAPE MODE OPTIMIZATION === */
@media (max-height: 500px) and (orientation: landscape) {
    .main-layout .header h1 {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .main-layout .header {
        padding: 8px 16px 8px 52px;
    }

    .mobile-bottom-nav {
        height: 48px;
    }

    .mobile-bottom-nav a .nav-label {
        display: none;
    }

    .mobile-bottom-nav a .nav-icon {
        font-size: 1.4rem;
    }

    #chat-window {
        height: 200px !important;
    }

    .daily-chat-container {
        height: 200px !important;
    }

    .modal-content {
        max-height: 100vh !important;
    }
}

/* === LOADING STATE IMPROVEMENTS === */
@media (max-width: 768px) {
    .btn:disabled {
        opacity: 0.7 !important;
        cursor: not-allowed;
    }

    /* Skeleton loading effect */
    @keyframes mobile-shimmer {
        0% {
            background-position: -200px 0;
        }

        100% {
            background-position: 200px 0;
        }
    }

    .loading-skeleton {
        background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
        background-size: 200px 100%;
        animation: mobile-shimmer 1.5s infinite;
        border-radius: 8px;
    }
}

/* === RESPONSIVE TYPOGRAPHY === */
@media (max-width: 768px) {
    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.15rem;
    }

    h3 {
        font-size: 1rem;
    }

    h4 {
        font-size: 0.95rem;
    }
}