/* ==========================================================================
   IWING CARE - PRODUCTION GRADE DESIGN SYSTEM & PWA SHELL
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-cyan: #00bcd4;
    --primary-cyan-hover: #00acc1;
    --primary-blue: #0284c7;
    --dark-navy: #0b172c;
    --dark-surface: #0f2140;
    --app-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --emerald-500: #10b981;
    --emerald-bg: rgba(16, 185, 129, 0.1);
    --white: #ffffff;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --shadow-soft: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-elevated: 0 20px 35px -10px rgba(0, 188, 212, 0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #060c18;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(0, 188, 212, 0.16) 0%, transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(2, 132, 199, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 0% 50%, rgba(58, 134, 255, 0.08) 0%, transparent 40%);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==========================================================================
   DESKTOP / TABLET APP CONTAINER FRAMING
   ========================================================================== */
.app-container {
    width: 100%;
    min-height: 100vh;
    background-color: var(--app-bg);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .app-container {
        width: 100%;
        max-width: 100%;
        background-color: #f8fafc;
        box-shadow: none;
        border-radius: 0;
        margin: 0;
    }
}

/* ==========================================================================
   HEADER BAR
   ========================================================================== */
html {
    scroll-padding-top: 76px;
    scroll-behavior: smooth;
}

.app-header {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(18px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
    height: 64px !important;
    padding: 0 20px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
    z-index: 99999 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04) !important;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.header-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1240px !important;
    width: 100% !important;
    height: 100% !important;
    gap: 16px !important;
}

.app-main-content {
    padding-top: 76px !important;
}

.customer-dashboard-embed .wa-sticky-top-header {
    position: sticky !important;
    top: 10px !important;
    z-index: 50 !important;
}

/* In-page navigation scroll targets cleanly clear fixed top bar */
#services-section,
#pricing-section,
#how-it-works,
#hubs-section,
.hero-card {
    scroll-margin-top: 76px;
}

/* Mobile Quick Call Pill in Fixed Top Bar */
.btn-mobile-emergency-call {
    display: none;
}

@media (max-width: 767px) {
    .app-header {
        height: 58px !important;
        padding: 0 14px !important;
    }
    .app-main-content {
        padding-top: 70px !important;
    }
    html {
        scroll-padding-top: 70px;
    }
    #services-section,
    #pricing-section,
    #how-it-works,
    #hubs-section,
    .hero-card {
        scroll-margin-top: 70px;
    }
    .btn-mobile-emergency-call {
        display: inline-flex !important;
        align-items: center;
        gap: 5px;
        background: linear-gradient(135deg, #00bcd4, #0284c7);
        color: #ffffff;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 700;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(0, 188, 212, 0.35);
        transition: transform 0.15s ease;
    }
    .btn-mobile-emergency-call:active {
        transform: scale(0.96);
    }
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
}

.brand-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.brand-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}
.brand-title span {
    color: var(--primary-cyan);
    font-weight: 700;
}

.brand-badge {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.12), rgba(2, 132, 199, 0.12));
    color: #0284c7;
    border: 1px solid rgba(0, 188, 212, 0.25);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: 6px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-beacon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse-beacon-dot {
    width: 7px;
    height: 7px;
    background-color: var(--emerald-500);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: beaconPulse 2s infinite;
}

@keyframes beaconPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-install-pwa {
    display: none;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #00bcd4, #0284c7);
    color: var(--white);
    border: none;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.3);
    transition: transform 0.2s;
}
.btn-install-pwa:active { transform: scale(0.95); }
.btn-install-pwa svg { width: 13px; height: 13px; }

/* ==========================================================================
   SCROLLABLE MAIN CONTENT
   ========================================================================== */
.app-main-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 110px;
    scroll-behavior: smooth;
}
.app-main-content::-webkit-scrollbar { display: none; }

/* ==========================================================================
   HERO CARD
   ========================================================================== */
.hero-card {
    background: linear-gradient(145deg, #ffffff 0%, #f0fdfa 100%);
    padding: 24px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 188, 212, 0.15);
    box-shadow: var(--shadow-soft);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 188, 212, 0.08);
    color: #008ba3;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-card h1 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
    letter-spacing: -0.6px;
    color: var(--text-dark);
}

.text-cyan {
    background: linear-gradient(135deg, #00acc1, #0284c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Call Actions */
.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.call-btn-wrapper {
    position: relative;
    width: 100%;
}

.btn-primary-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(135deg, #00bcd4 0%, #0284c7 100%);
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-md);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.35);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}
.btn-primary-call:hover {
    box-shadow: 0 8px 24px rgba(0, 188, 212, 0.45);
    transform: translateY(-1px);
}
.btn-primary-call:active {
    transform: scale(0.98);
}
.btn-primary-call svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}

.btn-whatsapp-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    background: #ffffff;
    color: #15803d;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 1px solid rgba(22, 163, 74, 0.25);
    transition: all 0.2s ease;
}
.btn-whatsapp-call:hover {
    background: #f0fdf4;
    border-color: #16a34a;
}
.btn-whatsapp-call svg {
    width: 18px;
    height: 18px;
    fill: #16a34a;
}

.emergency-response-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #0369a1;
    margin-top: 12px;
}
.emergency-response-meta svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   METRICS & TRUST STRIP
   ========================================================================== */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.trust-item {
    background: var(--white);
    padding: 12px 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.trust-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(0, 188, 212, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-cyan);
}
.trust-icon-box svg {
    width: 16px;
    height: 16px;
}

.trust-title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-dark);
}

.trust-sub {
    font-size: 10px;
    color: var(--text-muted);
}

/* ==========================================================================
   INTERACTIVE RATE CALCULATOR & ACCORDION
   ========================================================================== */
.app-section {
    margin-bottom: 22px;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-left: 2px;
}

.app-section-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.section-badge-right {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-blue);
    background: #f0f9ff;
    padding: 3px 8px;
    border-radius: 12px;
}

/* Interactive Duration Selector */
.rate-calculator-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 18px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 12px;
}

.rate-pills-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 14px;
}
.rate-pills-row::-webkit-scrollbar { display: none; }

.duration-pill {
    flex: 0 0 auto;
    padding: 7px 12px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}
.duration-pill.active {
    background: var(--dark-navy);
    color: var(--white);
    border-color: var(--dark-navy);
}

.rate-display-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
    border: 1px solid #e0f2fe;
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.rate-details-col span {
    display: block;
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
}
.rate-details-col h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    margin-top: 2px;
}

.rate-price-col {
    text-align: right;
}
.rate-price-tag {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1;
}
.rate-tax-sub {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 3px;
}

.rate-features-checklist {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}
.rate-features-checklist li {
    font-size: 11.5px;
    color: #334155;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rate-features-checklist li svg {
    width: 14px;
    height: 14px;
    color: var(--emerald-500);
    flex-shrink: 0;
}

/* Accordion */
.accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accordion-item {
    background-color: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.25s ease;
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 14px 16px;
    text-align: left;
    cursor: pointer;
}

.accordion-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.accordion-icon-badge {
    width: 30px;
    height: 30px;
    background: rgba(0, 188, 212, 0.08);
    color: var(--primary-cyan);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.accordion-icon-badge svg {
    width: 16px;
    height: 16px;
}

.accordion-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-dark);
}

.accordion-arrow {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    padding: 0 16px;
}

.accordion-item.open {
    border-color: rgba(0, 188, 212, 0.3);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.06);
}
.accordion-item.open .accordion-content {
    max-height: 1000px;
    transition: max-height 0.35s ease-in-out;
    padding: 0 16px 16px 16px;
}
.accordion-item.open .accordion-arrow {
    transform: rotate(180deg);
    color: var(--primary-cyan);
}

.accordion-bullet-list {
    list-style: none;
    margin-top: 8px;
}
.accordion-bullet-list li {
    position: relative;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
    padding-left: 18px;
}
.accordion-bullet-list li::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: var(--primary-cyan);
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}

/* Rate Table Inside Accordion */
.table-container {
    margin: 8px 0 12px 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.rate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.rate-table th {
    background-color: #f8fafc;
    color: var(--text-muted);
    font-weight: 700;
    padding: 9px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.rate-table td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
}
.rate-table tr:last-child td { border-bottom: none; }
.rate-table td.price {
    font-weight: 700;
    text-align: right;
    color: var(--primary-blue);
}

.faq-block h4 {
    font-size: 13.5px;
    color: var(--text-dark);
    margin: 12px 0 4px 0;
    font-weight: 700;
}
.faq-block p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.45;
}

/* ==========================================================================
   CORE SERVICES GRID
   ========================================================================== */
.services-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.service-card {
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -6px rgba(15, 23, 42, 0.08);
}

.service-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 188, 212, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-cyan);
    flex-shrink: 0;
}
.service-icon-box svg {
    width: 20px;
    height: 20px;
}

.service-card-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.service-card-body p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
}

/* ==========================================================================
   OPERATING HUBS
   ========================================================================== */
.tech-dark-bg {
    background: linear-gradient(145deg, #f8fafc 0%, #ecfeff 100%);
    padding: 20px 18px;
    border-radius: var(--radius-lg);
    color: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.tech-dark-bg h3 {
    font-size: 14.5px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tech-dark-bg h3 svg {
    width: 16px;
    height: 16px;
    color: #0284c7;
}

.hub-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hub-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.hub-pill svg {
    width: 12px;
    height: 12px;
    color: #0284c7;
}

.app-footer {
    padding: 24px 0 10px 0;
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
}

/* ==========================================================================
   NATIVE PROFILE & AUTH VIEW
   ========================================================================== */
.profile-view-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 16px;
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px;
}

.user-avatar-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00bcd4, #0284c7);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
}

.user-profile-meta h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}
.user-role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    background: #e0f2fe;
    color: #0369a1;
    margin-top: 4px;
}

.form-group {
    margin-bottom: 14px;
}
.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    background: #f8fafc;
}
.form-input:focus {
    border-color: var(--primary-cyan);
    background: #ffffff;
}

/* ==========================================================================
   FLOATING BOTTOM APP DOCK (Navigation)
   ========================================================================== */
.app-nav-wrapper {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 520px;
    margin: 0 auto;
    padding: 0 16px 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 999999 !important;
    pointer-events: none;
    box-sizing: border-box;
}

#app-view-panel,
.app-main-content,
#home-view-wrapper {
    padding-bottom: 95px !important;
}

.app-bottom-nav {
    pointer-events: auto;
    position: relative;
    width: 100%;
    height: 64px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(226, 232, 240, 0.85);
}

.nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    text-decoration: none;
    background: none;
    border: none;
    outline: none;
    font-family: inherit;
    cursor: pointer;
    z-index: 10;
    gap: 3px;
    transition: transform 0.15s ease;
}

.nav-svg-icon {
    width: 20px;
    height: 20px;
    color: #94a3b8;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-label {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    transition: color 0.2s ease;
}

/* Elevated Center Action Bubble */
.center-action-bubble {
    position: relative;
    top: -16px;
    flex: 0 0 54px;
    height: 54px;
    background: linear-gradient(135deg, #00bcd4 0%, #0284c7 100%);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 188, 212, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}
.center-action-bubble:active {
    transform: scale(0.92);
}
.nav-icon-center {
    width: 22px;
    height: 22px;
    color: var(--white);
    display: block;
}

/* Active State */
.nav-item.active .nav-svg-icon {
    color: var(--primary-cyan);
    transform: translateY(-1px) scale(1.1);
}
.nav-item.active .nav-label {
    color: var(--primary-cyan);
}

/* Animated Indicator Dot */
.nav-indicator-dot {
    position: absolute;
    bottom: 5px;
    width: 5px;
    height: 5px;
    background-color: var(--primary-cyan);
    border-radius: 50%;
    transform: translateX(-50%);
    transition: left 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease;
    pointer-events: none;
    opacity: 0;
}

/* PWA Toast Notification */
.pwa-toast {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--dark-navy);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 188, 212, 0.3);
}
.pwa-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* ==========================================================================
   RESPONSIVE PC / DESKTOP & MOBILE MODERNIZATION
   ========================================================================== */

/* Inner Layout Max-Width Wrapper */
.header-inner,
.app-main-content,
.site-footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
}

/* Header Enhancements (Inherited from primary fixed top bar) */

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

/* Desktop Navigation Links */
.desktop-nav-links {
    display: none;
}

@media (min-width: 860px) {
    .desktop-nav-links {
        display: none !important;
    }
    .desktop-nav-link {
        color: #334155;
        font-size: 13.5px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 6px 10px;
        border-radius: 8px;
    }
    .desktop-nav-link:hover {
        color: var(--primary-cyan);
        background: rgba(0, 188, 212, 0.06);
    }
}

/* Desktop Authentication & Action Buttons */
.desktop-auth-actions {
    display: none;
}

@media (min-width: 768px) {
    .desktop-auth-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .btn-desktop-login {
        color: #0f172a;
        background: #f1f5f9;
        border: 1px solid #cbd5e1;
        padding: 7px 14px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.2s;
    }
    .btn-desktop-login:hover {
        background: #e2e8f0;
        color: #000;
    }

    .btn-desktop-staff {
        color: #0284c7;
        background: rgba(2, 132, 199, 0.08);
        border: 1px solid rgba(2, 132, 199, 0.25);
        padding: 7px 14px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.2s;
    }
    .btn-desktop-staff:hover {
        background: rgba(2, 132, 199, 0.16);
    }

    .btn-desktop-emergency {
        background: linear-gradient(135deg, #00bcd4, #0284c7);
        color: #ffffff;
        padding: 7px 16px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 800;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        box-shadow: 0 4px 12px rgba(0, 188, 212, 0.35);
        transition: all 0.2s;
    }
    .btn-desktop-emergency:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(0, 188, 212, 0.45);
    }
}

/* 2-Column Desktop Hero Layout */
.hero-split-grid {
    display: block;
}

@media (min-width: 920px) {
    .hero-split-grid {
        display: block;
        max-width: 820px;
        margin: 0 auto 24px;
    }
    .hero-card {
        margin-bottom: 16px !important;
        padding: 36px 32px !important;
    }
    .hero-card h1 {
        font-size: 38px !important;
        line-height: 1.2 !important;
    }
    .hero-card p {
        font-size: 16px !important;
    }
    .hero-cta-group {
        flex-direction: row !important;
        gap: 14px !important;
    }
}

/* Fast Dispatch Card on Hero Right */
.hero-dispatch-card {
    background: linear-gradient(145deg, #0f1c33 0%, #081122 100%);
    border: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dispatch-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 188, 212, 0.15);
    color: var(--primary-cyan);
    border: 1px solid rgba(0, 188, 212, 0.35);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.dispatch-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.dispatch-sub {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.issue-chips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.issue-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}
.issue-chip:hover, .issue-chip.active {
    background: rgba(0, 188, 212, 0.2);
    border-color: var(--primary-cyan);
    color: #ffffff;
}

.dispatch-form-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.dispatch-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13.5px;
}
.dispatch-input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    background: rgba(255, 255, 255, 0.1);
}

.btn-dispatch-submit {
    background: linear-gradient(135deg, #00bcd4, #0284c7);
    color: #070e1b;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 188, 212, 0.35);
    transition: all 0.2s;
}
.btn-dispatch-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 188, 212, 0.45);
}

/* Core Services 4-Column Grid on Desktop */
@media (min-width: 920px) {
    .services-cards-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 18px !important;
    }
}
@media (min-width: 640px) and (max-width: 919px) {
    .services-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
}

/* Pricing Section 2-Column Split on Desktop */
@media (min-width: 920px) {
    .pricing-split-grid {
        display: grid;
        grid-template-columns: 1.05fr 0.95fr;
        gap: 28px;
        align-items: start;
    }
    .pricing-split-grid .accordion-wrapper {
        margin-top: 0 !important;
    }
}

/* How It Works 4-Step Cards */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.process-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.process-step-num {
    font-size: 12px;
    font-weight: 900;
    color: var(--primary-cyan);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.process-card h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.process-card p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Light Professional Footer */
.site-footer {
    background: #f8fafc;
    color: #475569;
    border-top: 1px solid #e2e8f0;
    padding: 36px 20px 24px 20px;
    margin-top: 28px;
}

.site-footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
}

@media (max-width: 860px) {
    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.footer-col h5 {
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-col ul li a {
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-col ul li a:hover {
    color: #0284c7;
}

.footer-bottom {
    max-width: 1240px;
    margin: 22px auto 0 auto;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #64748b;
}

/* Animated Skeleton & Spinner Loader for Tab Views */
@keyframes iwingShimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
@keyframes iwingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.iwing-tab-loader {
    max-width: 560px;
    margin: 12px auto;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.iwing-loader-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    color: #0284c7;
    font-size: 13.5px;
    font-weight: 700;
}
.iwing-loader-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(2, 132, 199, 0.2);
    border-top-color: #0284c7;
    border-radius: 50%;
    animation: iwingSpin 0.75s linear infinite;
}
.iwing-skel-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.iwing-skel-line {
    height: 12px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 800px 100%;
    animation: iwingShimmer 1.3s infinite linear;
}
.iwing-skel-line.badge { width: 92px; height: 18px; border-radius: 999px; }
.iwing-skel-line.title { width: 78%; height: 16px; }
.iwing-skel-line.short { width: 52%; }

/* Show Fixed Floating Bottom Tab Bar on Desktop / Web View too */
@media (min-width: 768px) {
    .app-nav-wrapper {
        display: block !important;
        max-width: 560px;
        padding-bottom: 18px;
    }
    .app-bottom-nav {
        box-shadow: 0 12px 36px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(203, 213, 225, 0.9);
    }
}
@media (max-width: 767px) {
    .app-nav-wrapper {
        display: block !important;
    }
    .hero-dispatch-card {
        margin-top: 14px;
    }
}


/* --- GOOGLE REVIEWS CSS --- */

    /* --- EXACT GOOGLE REVIEWS NATIVE UX (MATCHING IMAGE 1) --- */
    body { 
        background: #f8fafc; 
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
        color: #202124; 
        margin: 0; 
        padding: 0; 
    }
    
    .menu-tab-content { 
        max-width: 560px; 
        margin: 0.5rem auto; 
        padding: 1rem; 
        background: #ffffff; 
        border-radius: 0; 
        border: none; 
        box-shadow: none; 
        box-sizing: border-box; 
    }
    
    .google-rating-header { 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        background: #f8f9fa; 
        padding: 1.25rem; 
        border-radius: 16px; 
        border: 1px solid #e8eaed; 
        margin-bottom: 1.25rem; 
    }
    .rating-left { text-align: center; min-width: 90px; }
    .big-score { font-size: 2.6rem; font-weight: 800; color: #202124; line-height: 1; }
    .stars-row { color: #fbbc04; font-size: 1.1rem; margin: 0.35rem 0; letter-spacing: 1px; }
    .review-count { font-size: 0.78rem; color: #70757a; font-weight: 500; }
    .rating-right-bars { flex: 1; max-width: 220px; display: flex; flex-direction: column; gap: 4px; }
    .bar-row { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 600; color: #5f6368; }
    .star-num { width: 8px; text-align: center; }
    .bar-bg { flex: 1; height: 6px; background: #e8eaed; border-radius: 10px; overflow: hidden; }
    .bar-fill { height: 100%; background: #fbbc04; border-radius: 10px; }
    
    .review-filters-scroll { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
    .filter-pill { background: #f1f3f4; color: #3c4043; padding: 0.4rem 0.85rem; border-radius: 30px; font-size: 0.8rem; font-weight: 500; border: 1px solid #dadce0; }
    .filter-pill.selected { background: #1a73e8; color: #ffffff; border-color: #1a73e8; font-weight: 600; }
    
    /* Native Google Reviews Stream Area */
    .google-reviews-list {
        background: #ffffff;
        display: flex;
        flex-direction: column;
    }
    .g-review-item {
        padding: 18px 0;
        border-bottom: 1px solid #e8eaed;
        background: #ffffff;
    }
    .g-review-item:last-child {
        border-bottom: none;
    }

    /* Customer Header: Avatar, Name & Subtitle, 3-Dots */
    .g-header-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }
    .g-header-left {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 1;
        min-width: 0;
    }
    .g-avatar-circle {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 1.1rem;
        flex-shrink: 0;
        text-transform: uppercase;
        position: relative;
        user-select: none;
    }
    .g-avatar-star-badge {
        position: absolute;
        bottom: -2px;
        right: -2px;
        width: 14px;
        height: 14px;
        background: #ffffff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 1px 2px rgba(0,0,0,0.25);
    }
    .g-avatar-star-badge svg {
        width: 11px;
        height: 11px;
        fill: #f29900;
    }

    .g-user-meta {
        flex: 1;
        min-width: 0;
    }
    .g-user-name {
        font-size: 15px;
        font-weight: 500;
        color: #202124;
        line-height: 1.25;
        letter-spacing: 0.1px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .g-user-sub {
        font-size: 12px;
        color: #70757a;
        margin-top: 2px;
        line-height: 1.2;
    }

    .g-more-menu {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px;
        color: #5f6368;
        flex-shrink: 0;
        border: none;
        background: transparent;
    }

    /* Stars & Date */
    .g-stars-date-row {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 6px;
        margin-bottom: 8px;
    }
    .g-stars {
        color: #fbbc04;
        font-size: 14px;
        letter-spacing: 1.5px;
        line-height: 1;
    }
    .g-date {
        font-size: 13px;
        color: #70757a;
        font-weight: 400;
    }

    /* Review Text */
    .g-review-body {
        font-size: 14px;
        line-height: 20px;
        color: #3c4043;
        margin: 8px 0 12px 0;
        word-break: break-word;
    }
    .g-more-btn {
        color: #1a73e8;
        cursor: pointer;
        font-weight: 500;
        text-decoration: none;
    }

    /* Google Action Bar */
    .g-actions-bar {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-top: 8px;
        margin-bottom: 12px;
    }
    .g-action-btn {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #3c4043;
        outline: none;
    }
    .g-action-btn:hover svg {
        stroke: #202124;
        fill: #202124;
    }
    .g-reaction-pill {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 13px;
        font-weight: 500;
        color: #3c4043;
    }
    .g-react-hint {
        font-size: 13px;
        color: #70757a;
        font-weight: 400;
        cursor: pointer;
    }

    /* Owner Reply Thread (EXACT IMAGE 1 MATCH) */
    .g-owner-thread {
        margin-top: 10px;
        margin-left: 4px;
        padding-left: 14px;
        border-left: 2px solid #dadce0;
    }
    .g-owner-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 4px;
    }
    .g-owner-avatar-wrap {
        position: relative;
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }
    .g-owner-logo-box {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        background: #ffffff;
        border: 1px solid #e8eaed;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    }
    .g-owner-logo-img {
        max-width: 85%;
        max-height: 85%;
        object-fit: contain;
    }
    .g-verified-badge {
        position: absolute;
        bottom: -2px;
        right: -2px;
        width: 13px;
        height: 13px;
        background: #ffffff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    }
    .g-verified-badge svg {
        width: 11px;
        height: 11px;
    }

    .g-owner-meta {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }
    .g-owner-name {
        font-size: 14px;
        font-weight: 500;
        color: #202124;
        line-height: 1.25;
    }
    .g-owner-date {
        font-size: 12px;
        color: #70757a;
        margin-top: 1px;
    }
    .g-owner-text {
        font-size: 14px;
        line-height: 20px;
        color: #3c4043;
        margin-top: 8px;
        word-break: break-word;
    }

    /* Interactive ratings & invoice */
    .interactive-star-row { display: flex; gap: 0.5rem; direction: rtl; justify-content: center; margin: 0.5rem 0 1rem 0; }
    .star-radio { display: none; }
    .star-label { font-size: 2.5rem; color: #cbd5e1; cursor: pointer; transition: color 0.2s; }
    .star-radio:checked ~ .star-label, .star-label:hover, .star-label:hover ~ .star-label { color: #fbbc04; }
    .premium-textarea { width: 100%; height: 80px; padding: 0.75rem; border: 1px solid #cbd5e1; border-radius: 12px; font-size: 0.9rem; font-family: inherit; resize: none; box-sizing: border-box; outline: none; margin-bottom: 1rem; }
    .invoice-box-premium { background: #f8fafc; border: 1px dashed #cbd5e1; padding: 1.25rem; border-radius: 16px; margin-bottom: 1.5rem; font-size: 0.9rem; }
    .invoice-line { display: flex; justify-content: space-between; margin-bottom: 0.5rem; color: #475569; }
