:root {
    --bg: #0b0f19;
    --surface: #131b2e;
    --surface-2: #1c2742;
    --card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #2250fc;
    --primary-dark: #1a3fd0;
    --accent: #0ea5e9;
    --border: #e2e8f0;
    --radius: 16px;
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

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

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #f1f5f9;
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.55;
    overflow-x: hidden;
    padding-bottom: 80px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Sticky App Header */
.m-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 74px;
    background: #fefefe;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.m-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.m-logo img {
    height: 70px;
    max-width: min(260px, calc(100vw - 120px));
    width: auto;
    object-fit: contain;
    display: block;
}

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

.m-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

.m-icon-btn.call {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2250fc;
}

/* Slide-Out Drawer Menu */
.m-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 25, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.m-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.m-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(74vw, 280px);
    background: var(--bg);
    color: #fff;
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -12px 0 36px rgba(0, 0, 0, 0.45);
}

.m-drawer.open {
    transform: translateX(0);
}

.m-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fefefe;
    border-bottom: 1px solid #e2e8f0;
}

.m-drawer-head img {
    height: 44px;
    max-width: 170px;
    width: auto;
    object-fit: contain;
}

.m-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px 28px;
}

.m-menu-group {
    margin-bottom: 8px;
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.m-menu-toggle {
    width: 100%;
    background: transparent;
    border: 0;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
}

.m-menu-sub {
    display: none;
    padding: 4px 10px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.m-menu-group.open .m-menu-sub {
    display: block;
}

.m-menu-sub a {
    display: block;
    padding: 9px 10px;
    font-size: 13.5px;
    color: #cbd5e1;
    border-radius: 8px;
}

.m-menu-sub a:active, .m-menu-sub a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.m-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: var(--surface);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Hero Slider Cards */
.m-hero-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 14px 14px 6px;
    scrollbar-width: none;
}

.m-hero-slider::-webkit-scrollbar {
    display: none;
}

.m-hero-slide {
    flex: 0 0 88%;
    scroll-snap-align: center;
    height: 195px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.m-hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.1) 0%, rgba(11, 15, 25, 0.85) 100%);
}

.m-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.m-hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 9px;
    border-radius: 99px;
    background: var(--primary);
    margin-bottom: 6px;
}

.m-hero-content h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
}

/* Section & Cards */
.m-section {
    padding: 14px;
}

.m-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.m-section-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.m-section-more {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

/* Quick Category Chips / Grid */
.m-chip-scroll {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.m-chip-scroll::-webkit-scrollbar {
    display: none;
}

.m-chip {
    flex: 0 0 auto;
    padding: 9px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.m-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.m-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.m-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.m-card-img {
    height: 110px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.m-card-img img {
    max-height: 90px;
    width: auto;
    object-fit: contain;
}

.m-card-body {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.m-card-cat {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 3px;
}

.m-card-title {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

/* Service List Cards */
.m-list-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.m-list-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.m-list-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* Page Header Banner */
.m-page-hero {
    background: linear-gradient(135deg, #0b0f19 0%, #1e293b 100%);
    color: #fff;
    padding: 22px 16px;
}

.m-page-hero .m-cat-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.14);
    padding: 3px 10px;
    border-radius: 99px;
    margin-bottom: 6px;
}

.m-page-hero h1 {
    margin: 0;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
}

/* Article / Detail Content */
.m-article-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.m-article-cover {
    text-align: center;
    margin-bottom: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
}

.m-article-cover img {
    max-height: 180px;
    width: auto;
    border-radius: 8px;
}

.m-article-content {
    font-size: 15px;
    line-height: 1.65;
    color: #1e293b;
    overflow-wrap: break-word;
}

.m-article-content img,
.m-article-content iframe,
.m-article-content video,
.m-article-content table {
    max-width: 100% !important;
    height: auto !important;
}

.m-search-box {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 14px;
    outline: none;
}

.m-search-box:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 80, 252, 0.15);
}

/* Bottom Fixed Navigation Bar */
.m-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 66px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
}

.m-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    height: 100%;
    background: transparent;
    border: 0;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
}

.m-nav-item.active {
    color: var(--primary);
}

.m-nav-item svg {
    width: 20px;
    height: 20px;
}

.m-nav-support {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2250fc 0%, #0ea5e9 100%);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -20px auto 2px;
    box-shadow: 0 8px 22px rgba(34, 80, 252, 0.48);
    border: 3px solid #fff;
}

.m-nav-support-label {
    color: #2250fc;
    font-weight: 800;
    letter-spacing: -0.1px;
}

/* Mobile Support Request Modal */
.m-support-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 25, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1290;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.m-support-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.m-support-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 78px;
    max-width: 440px;
    margin: 0 auto;
    max-height: calc(100vh - 100px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.28);
    z-index: 1300;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.m-support-panel[hidden] {
    display: none !important;
}

.m-support-head {
    background: #0b0f19;
    color: #ffffff;
    padding: 14px 16px;
    border-bottom: 3px solid #2250fc;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.m-support-head h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.m-support-head span {
    display: block;
    font-size: 12px;
    color: #93c5fd;
    margin-top: 2px;
}

.m-support-close {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.m-support-body {
    padding: 16px;
    overflow-y: auto;
}

.m-support-field {
    margin-bottom: 12px;
}

.m-support-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
}

.m-support-field input[type="email"],
.m-support-field input[type="text"],
.m-support-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    outline: none;
}

.m-support-field textarea {
    min-height: 175px;
    resize: vertical;
    line-height: 1.5;
}

.m-support-field input:focus,
.m-support-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 80, 252, 0.15);
}

.m-support-attach-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.m-support-file-box {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 10px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #334155 !important;
    margin-bottom: 0 !important;
    text-align: center;
}

.m-support-file-box.is-camera {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8 !important;
}

.m-support-file-box input[type="file"] {
    display: none;
}

.m-support-file-status {
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-support-submit {
    width: 100%;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #2250fc 0%, #0ea5e9 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.m-support-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.m-support-alert {
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.45;
}

.m-support-alert.is-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.m-support-alert.is-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.m-support-step-info {
    font-size: 13px;
    line-height: 1.55;
    color: #334155;
    margin: 0 0 12px;
}

.m-support-dev-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 12.5px;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.m-support-code-input {
    text-align: center;
    font-size: 20px !important;
    font-weight: 700;
    letter-spacing: 6px;
}

.m-support-step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.m-support-link-btn {
    background: none;
    border: 0;
    padding: 4px 0;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
}

.m-support-link-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.m-support-done {
    text-align: center;
    padding: 8px 0 4px;
}

.m-support-done-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #10b981;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.m-support-done h5 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.m-support-done p {
    font-size: 13px;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 16px;
}
