
/* App Shell Base & Safe Areas */
html, body {
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
}
.m-app-body {
    padding-top: calc(52px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
}
.m-header, .m-tabbar, .m-sidemenu-header, .m-modal-header, button, a {
    -webkit-touch-callout: none;
    user-select: none;
}
input, textarea, select {
    user-select: auto;
}

/* ==========================================================================
   VettedChina Mobile Theme - Modeled directly after Medical Project
   ========================================================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8fafc;
    color: #1f2937;
    line-height: 1.6;
    padding-top: 56px;
    padding-bottom: 64px;
}
a {
    color: #059669;
    text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
}

/* Design Tokens & Theme Colors (Aligned 100% with PC WTG Design System) */
:root {
    --primary: #059669;
    --primary-light: #10b981;
    --primary-dark: #047857;
    --wtg-red: #d32f2f;
    --wtg-red-hover: #b71c1c;
    --wtg-red-light: #fef2f2;
    --wtg-navy: #1c2145;
    --wtg-navy-dark: #12152e;
    --wtg-dark: #111827;
    --slate-900: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e5e7eb;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #111827;
    --white: #ffffff;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* ==========================================================================
   1. Mobile Header (Fixed 56px Top, PC Aligned)
   ========================================================================== */
.m-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.m-header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    text-decoration: none;
    min-width: 0;
}
.m-header-logo .logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: #d32f2f;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(211, 47, 47, 0.3);
    color: #ffffff;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: -0.5px;
}
.m-header-logo .logo-text {
    font-weight: 900;
    font-size: 16px;
    letter-spacing: -0.03em;
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.m-header-logo .logo-text .t1 {
    color: #111827;
}
.m-header-logo .logo-text .t2 {
    color: #d32f2f;
}
.m-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* ==========================================================================
   Native App Bar (Subpage Mode)
   ========================================================================== */
.m-app-bar-subpage {
    display: flex;
    align-items: center;
    width: 100%;
    height: 52px;
    gap: 4px;
}
.m-app-back-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    flex-shrink: 0;
    padding: 0;
}
.m-app-back-btn:active {
    background: #f1f5f9;
    transform: scale(0.92);
}
.m-back-icon {
    width: 22px;
    height: 22px;
    color: #1e293b;
}
[dir="rtl"] .m-back-icon {
    transform: rotate(180deg);
}
.m-app-bar-title {
    flex: 1;
    font-size: 15.5px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    padding: 0 4px;
    line-height: 1.2;
}

.m-header-capsule-btn {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff !important;
    border: none;
    padding: 6px 11px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
    height: 32px;
}
.m-header-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s;
}
.m-header-btn:active {
    background: #e2e8f0;
}
.m-header-btn svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   2. Slide-Down Search Drawer
   ========================================================================== */
.m-search-drawer {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 99;
}
.m-search-form {
    display: flex;
    gap: 8px;
    width: 100%;
}
.m-search-input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13.5px;
    outline: none;
    background: #f8fafc;
}
.m-search-input:focus {
    border-color: #059669;
    background: #ffffff;
}
.m-search-submit {
    background: #059669;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0 14px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

/* ==========================================================================
   3. Side Menu Drawer & Overlay
   ========================================================================== */
.m-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.m-overlay.active {
    opacity: 1;
    visibility: visible;
}
.m-sidemenu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    z-index: 201;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}
.m-sidemenu.active {
    right: 0;
}
.m-sidemenu-header {
    padding: 24px 16px 20px;
    background: linear-gradient(135deg, #12152e 0%, #1c2145 60%, #2e3561 100%);
    color: #ffffff;
    position: relative;
}
.m-sidemenu-header h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 4px;
}
.m-sidemenu-header p {
    color: #cbd5e1;
    font-size: 12px;
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
}
.m-sidemenu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 20px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.m-sidemenu-nav {
    flex: 1;
    padding: 8px 0;
}
.m-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    color: #334155;
    font-size: 14.5px;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: background 0.15s;
}
.m-nav-item:active {
    background: #f8fafc;
}
.m-nav-item.active {
    color: #059669 !important;
    font-weight: 600;
    background: #ecfdf5 !important;
}
.m-nav-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    flex-shrink: 0;
}
.m-nav-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #059669;
}
.m-nav-badge.highlight {
    background: #ecfdf5;
    color: #059669;
}
.m-nav-section {
    padding: 12px 18px 6px;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}
.m-sidemenu-footer {
    padding: 16px 18px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}
.m-lang-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 8px;
}
.m-lang-btn {
    padding: 7px 4px;
    text-align: center;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    text-decoration: none;
    display: block;
}
.m-lang-btn.active {
    background: #059669 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
}

/* ==========================================================================
   4. Bottom Tab Bar (5 Tabs with Center Raised Button)
   ========================================================================== */
.m-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    height: 56px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.m-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #64748b;
    font-size: 10px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color 0.15s;
}
.m-tab svg {
    width: 20px;
    height: 20px;
}
.m-tab.active {
    color: #059669;
    font-weight: 600;
}
.m-tab:active {
    background: #f8fafc;
}
.m-tab-center {
    position: relative;
    cursor: pointer;
}
.m-tab-center-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669, #10b981);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -18px;
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.35);
    color: #ffffff;
}
.m-tab-center-btn svg {
    width: 22px;
    height: 22px;
    color: #ffffff;
}

/* ==========================================================================
   5. Floating Action Button (WhatsApp Pulse)
   ========================================================================== */
#mWaFloat {
    position: fixed;
    bottom: 72px;
    right: 14px;
    z-index: 99;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s;
}
#mWaFloat:active {
    transform: scale(0.95);
}
#mWaFloat .pulse {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.35);
    animation: chatPulse 2s infinite;
}
@keyframes chatPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ==========================================================================
   6. Mobile Cards, Grids & Hero Components
   ========================================================================== */
.m-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #064e3b 100%);
    color: #ffffff;
    padding: 32px 16px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.m-hero h1 {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.35;
    color: #ffffff;
}
.m-hero p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 18px;
    line-height: 1.5;
    color: #cbd5e1;
}
.m-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 26px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff !important;
    border-radius: 24px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
    border: none;
    cursor: pointer;
}
.m-hero-btn svg {
    width: 17px;
    height: 17px;
}

/* Stats 4-columns bar */
.m-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #ffffff;
    margin: -16px 14px 14px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
    padding: 12px 0;
    border: 1px solid #f1f5f9;
}
.m-stat {
    text-align: center;
    padding: 4px 2px;
}
.m-stat-num {
    font-size: 16px;
    font-weight: 800;
    color: #059669;
    line-height: 1.2;
}
.m-stat-label {
    font-size: 10px;
    color: #64748b;
    margin-top: 2px;
    font-weight: 600;
}

/* Sections & Grids */
.m-section {
    padding: 18px 14px;
}
.m-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.m-section-title {
    font-size: 16.5px;
    font-weight: 700;
    color: #0f172a;
}
.m-section-more {
    font-size: 12.5px;
    color: #059669;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
}
.m-section-more svg {
    width: 14px;
    height: 14px;
}
.m-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Generic Card */
.m-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 14px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    display: block;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.15s;
}
.m-card:active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Service Card (Mobile Grid) */
.m-service-card-grid {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
.m-service-card-grid .card-top {
    display: flex;
    align-items: center;
    gap: 8px;
}
.m-service-card-grid .card-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.m-service-card-grid .card-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.m-service-card-grid .card-rate {
    font-size: 12px;
    font-weight: 800;
    color: #059669;
    margin-top: auto;
    padding-top: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hub / City Card (2 Columns Grid) */
.m-hub-card-grid {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: block;
    text-decoration: none;
    color: inherit;
}
.m-hub-img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}
.m-hub-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.m-hub-body {
    padding: 8px 10px;
}
.m-hub-title {
    color: #0f172a;
    font-weight: 700;
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.m-hub-badge {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 9.5px;
    font-weight: 600;
    color: #166534;
    display: inline-block;
}

/* ==========================================================================
   7. Mobile Footer (Deep Navy #1c2145 Aligned with PC)
   ========================================================================== */
.m-footer {
    background: #1c2145 !important;
    color: #cbd5e1 !important;
    padding: 24px 16px 84px !important;
    border-top: 1px solid #2e3561 !important;
}
.m-footer a {
    color: #cbd5e1 !important;
    text-decoration: none;
}
.m-footer a:hover {
    color: #34d399 !important;
}

/* ==========================================================================
   7.1 Native App Service Cards (Clean & Streamlined)
   ========================================================================== */
.m-app-banner {
    background: #1c2145;
    color: #ffffff;
    padding: 16px 16px 20px;
    border-bottom: 2px solid #d32f2f;
}
.m-app-banner-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff;
}
.m-app-banner-sub {
    font-size: 12px;
    color: #cbd5e1;
    margin-top: 4px;
}
.m-app-services-container {
    padding: 14px 12px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.m-app-service-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}
.m-app-service-card:active {
    transform: scale(0.99);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.m-app-service-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 10px;
}
.m-app-service-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.m-app-service-icon svg {
    width: 22px;
    height: 22px;
}
.m-app-service-info {
    flex: 1;
    min-width: 0;
}
.m-app-service-name {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
}
.m-app-service-tagline {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
}
.m-app-service-price-badge {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #059669;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
.m-app-service-body {
    padding: 0 14px 12px;
}
.m-app-service-features {
    list-style: none;
    margin: 0 0 12px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.m-app-service-features li {
    font-size: 12px;
    color: #374151;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.45;
}
.m-app-service-features li span.check {
    color: #059669;
    font-weight: 800;
    flex-shrink: 0;
}
.m-app-service-actions {
    display: flex;
    gap: 8px;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}
.m-app-btn-primary {
    flex: 1;
    background: #059669;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 9px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.m-app-btn-outline {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155 !important;
    border-radius: 8px;
    padding: 9px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   8. Mobile Quick Modal (Consultation / Booking)
   ========================================================================== */
.m-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(3px);
    z-index: 1000;
    align-items: flex-end;
    justify-content: center;
}
.m-modal-backdrop.open {
    display: flex;
}
.m-modal-dialog {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 16px 16px 0 0;
    padding: 20px 18px 24px;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.2);
    animation: mModalSlideUp 0.25s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}
@keyframes mModalSlideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}
.m-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.m-modal-title {
    font-size: 16.5px;
    font-weight: 700;
    color: #0f172a;
}
.m-modal-close {
    background: #f1f5f9;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   9. Universal Mobile Subpage Formatting (All Subpages -> Clean App Layout)
   ========================================================================== */

/* 1. Reset all desktop container paddings */
.wtg-container,
div[style*="padding: 3rem 1.25rem"],
div[style*="padding: 3.5rem 1.25rem"],
div[style*="padding: 4rem 1.25rem"],
div[style*="padding: 5rem 1.25rem"] {
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-top: 14px !important;
    padding-bottom: 40px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* 2. Break all multi-column desktop grids into single column */
div[style*="grid-template-columns"],
.md-grid-cols-1,
.md-grid-cols-2,
.wtg-destinations-grid,
.wtg-magazine-grid,
.wtg-services-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 3. Ensure all children of grids take 100% width */
div[style*="grid-template-columns"] > div,
div[style*="grid-template-columns"] > a,
.md-grid-cols-1 > div,
.md-grid-cols-2 > div {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 4. Transform desktop sticky sidebars into clean native cards */
div[style*="position: sticky"] {
    position: static !important;
    width: 100% !important;
    margin-top: 14px !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
}

/* 5. Typography scaling for mobile screens */
h1, h1[style*="font-size"], .wtg-section-title {
    font-size: 20px !important;
    line-height: 1.35 !important;
    margin-top: 6px !important;
    margin-bottom: 10px !important;
    word-break: break-word !important;
}
h2, h2[style*="font-size"] {
    font-size: 17px !important;
    line-height: 1.35 !important;
    margin: 12px 0 8px !important;
}
h3, h3[style*="font-size"] {
    font-size: 15px !important;
    line-height: 1.4 !important;
    margin: 14px 0 8px !important;
}
h4, h4[style*="font-size"] {
    font-size: 14px !important;
    line-height: 1.4 !important;
}

/* 6. Subtitles and paragraphs */
div[style*="font-size: 1.15rem"],
div[style*="font-size: 1.25rem"] {
    font-size: 13.5px !important;
    margin-bottom: 12px !important;
    line-height: 1.5 !important;
}
div[style*="font-size: 1rem"],
div[style*="font-size: 1.05rem"],
p {
    font-size: 13.5px !important;
    line-height: 1.7 !important;
}

/* 7. Action buttons full width */
div[style*="display: flex; gap: 1rem"],
div[style*="display: flex; gap: 1.5rem"] {
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
}
.wtg-btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    padding: 11px !important;
    font-size: 13.5px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
}

/* 8. Tables and horizontal elements */
table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* 9. Cards refined */
.wtg-mag-card {
    border-radius: 12px !important;
    padding: 14px !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}


/* ==========================================================================
   Minimalist App Footer
   ========================================================================== */
.m-footer {
    background: #090d16;
    color: #94a3b8;
    padding: 20px 14px 18px;
    border-top: 1px solid #1e293b;
    margin-top: 24px;
}
.m-footer-compact-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.m-footer-desk-status {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #10b981;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 4px;
}
.m-status-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    display: inline-block;
    animation: statusPulse 2s infinite;
}
@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}
.m-footer-summary {
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 8px;
}
.m-footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 11.5px;
}
.m-footer-contact-link {
    color: #34d399;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}
.m-footer-email {
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.m-footer-copyright {
    font-size: 11px;
    color: #475569;
    text-align: center;
}


/* Bottom Sheet Handle Bar */
.m-sheet-handle {
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background: #cbd5e1;
    margin: 0 auto 12px auto;
}
.m-tab:active {
    transform: scale(0.92);
}
.m-tab-center-btn:active {
    transform: scale(0.9);
}
.m-tab-center-label {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 700;
    color: #059669;
}


/* Hide Desktop Breadcrumbs on Mobile (Replaced by App Navigation Bar) */
@media (max-width: 768px) {
    div[style*="color: var(--wtg-muted); margin-bottom: 1.5rem"],
    div[style*="color:var(--wtg-muted);margin-bottom:1.5rem"],
    div[style*="color: #64748b; margin-bottom: 1.5rem"],
    div[style*="font-size: 0.75rem; color: var(--wtg-muted)"] {
        display: none !important;
    }
}


/* ==========================================================================
   Drawer CTA & Language Switcher Grid
   ========================================================================== */
.m-drawer-cta-block {
    padding: 14px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}
.m-drawer-btn-primary {
    width: 100% !important;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 11px !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    cursor: pointer !important;
    text-align: center !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3) !important;
    display: block !important;
    box-sizing: border-box !important;
}
.m-drawer-btn-primary:active {
    transform: scale(0.98);
}
.m-drawer-btn-wa {
    width: 100% !important;
    background: #25D366 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-sizing: border-box !important;
}
.m-drawer-btn-wa:active {
    transform: scale(0.98);
}

.m-sidemenu-footer {
    padding: 16px 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}
.m-sidemenu-lang-title {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.m-lang-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-top: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.m-lang-btn {
    padding: 9px 4px !important;
    text-align: center !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #334155 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    min-height: 38px !important;
    box-sizing: border-box !important;
    transition: all 0.15s ease !important;
}
.m-lang-btn:active {
    transform: scale(0.95) !important;
    background: #f1f5f9 !important;
}
.m-lang-btn.active {
    background: #059669 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3) !important;
    font-weight: 700 !important;
}
.m-lang-check {
    font-size: 11px;
    font-weight: 800;
}
