/* =========================================================
   Trade Sphare PWA
   Main Application Stylesheet
   Compatible with:
   - index.html
   - app.js
   ========================================================= */


/* =========================================================
   01. DESIGN TOKENS
   ========================================================= */

:root {
    /* Brand */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;

    --accent: #06b6d4;
    --accent-light: #ecfeff;

    /* Background */
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;

    /* Text */
    --text: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Borders */
    --border: #e2e8f0;
    --border-light: #eef2f7;

    /* Radius */
    --radius-xs: 8px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 999px;

    /* Shadows */
    --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.09);
    --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.12);

    /* Layout */
    --content-max-width: 760px;
    --header-height: 64px;
    --bottom-nav-height: 70px;
    --side-menu-width: 320px;

    /* Animation */
    --transition-fast: 150ms ease;
    --transition: 220ms ease;
    --transition-slow: 350ms ease;
}


/* =========================================================
   02. RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;

    min-height: 100%;

    background: var(--bg);

    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    min-height: 100vh;

    background: var(--bg);
    color: var(--text);

    font-family:
        "Tajawal",
        "Noto Sans Arabic",
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 15px;
    line-height: 1.7;

    direction: rtl;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
}

iframe {
    display: block;
    border: 0;
}

[hidden] {
    display: none !important;
}


/* =========================================================
   03. APP SHELL
   ========================================================= */

.app-shell {
    position: relative;

    width: 100%;
    min-height: 100vh;

    background: var(--bg);
}

#app {
    width: 100%;
    min-height: 100vh;
}


/* =========================================================
   04. HEADER
   ========================================================= */

.app-header {
    position: sticky;
    top: 0;

    z-index: 100;

    width: 100%;
    height: var(--header-height);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 16px;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid var(--border-light);

    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.03);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


/* =========================================================
   05. BRAND
   ========================================================= */

.brand {
    min-width: 0;

    display: inline-flex;
    align-items: center;

    gap: 10px;

    padding: 0;

    background: transparent;
    color: var(--text);

    text-align: right;
}

.brand-mark {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 11px;

    background: var(--surface);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-xs);
}

.brand-mark img {
    width: 29px;
    height: 29px;

    display: block;

    object-fit: contain;
}

.brand-text {
    min-width: 0;

    display: flex;
    flex-direction: column;

    align-items: flex-start;
}

.brand-text strong {
    color: var(--text);

    font-size: 14px;
    font-weight: 900;

    line-height: 1.2;

    white-space: nowrap;
}

.brand-text small {
    margin-top: 2px;

    color: var(--text-muted);

    font-size: 10px;

    line-height: 1.2;

    white-space: nowrap;
}


/* =========================================================
   06. MENU BUTTON
   ========================================================= */

.menu-button {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: var(--surface);
    color: var(--text-secondary);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-xs);

    font-size: 21px;
    line-height: 1;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.menu-button:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: #bfdbfe;
}

.menu-button:active {
    transform: scale(0.95);
}


/* =========================================================
   07. HOME VIEW
   ========================================================= */

#homeView {
    width: 100%;

    max-width: var(--content-max-width);

    margin: 0 auto;

    padding:
        18px
        16px
        calc(var(--bottom-nav-height) + 30px);
}


/* =========================================================
   08. HERO
   ========================================================= */

.hero {
    position: relative;

    margin-bottom: 22px;

    padding: 26px 22px;

    overflow: hidden;

    border-radius: var(--radius-xl);

    background:
        linear-gradient(
            135deg,
            #eff6ff 0%,
            #ffffff 55%,
            #ecfeff 100%
        );

    border: 1px solid #dbeafe;

    box-shadow: var(--shadow-sm);
}

.hero::before {
    content: "";

    position: absolute;

    top: -70px;
    left: -70px;

    width: 170px;
    height: 170px;

    border-radius: 50%;

    background: rgba(37, 99, 235, 0.08);

    pointer-events: none;
}

.hero::after {
    content: "";

    position: absolute;

    right: -80px;
    bottom: -80px;

    width: 190px;
    height: 190px;

    border-radius: 50%;

    background: rgba(6, 182, 212, 0.08);

    pointer-events: none;
}

.hero-label {
    position: relative;

    z-index: 1;

    display: inline-flex;
    align-items: center;

    margin-bottom: 9px;

    padding: 5px 10px;

    border-radius: var(--radius-full);

    background: rgba(37, 99, 235, 0.08);

    color: var(--primary);

    font-size: 11px;
    font-weight: 800;

    line-height: 1.3;
}

.hero h1 {
    position: relative;

    z-index: 1;

    margin: 0 0 8px;

    color: var(--text);

    font-size: clamp(24px, 7vw, 34px);

    line-height: 1.25;

    font-weight: 900;

    letter-spacing: -0.4px;
}

.hero p {
    position: relative;

    z-index: 1;

    max-width: 600px;

    margin: 0;

    color: var(--text-secondary);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   09. SECTIONS
   ========================================================= */

.section {
    width: 100%;

    margin-bottom: 24px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 12px;
}

.section-heading > div {
    min-width: 0;
}

.section-heading h2 {
    margin: 0;

    color: var(--text);

    font-size: 17px;
    font-weight: 900;

    line-height: 1.4;
}

.section-heading span {
    display: block;

    margin-top: 3px;

    color: var(--text-muted);

    font-size: 11px;

    line-height: 1.4;
}

.promotion-heading {
    align-items: flex-end;
}

.promotion-heading > span {
    flex: 0 0 auto;

    margin-top: 0;

    padding: 4px 8px;

    border-radius: var(--radius-full);

    background: var(--surface-soft);

    color: var(--text-muted);

    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   10. PROMOTIONS
   ========================================================= */

.promotions {
    width: 100%;

    margin-bottom: 25px;
}

.promotion-card {
    position: relative;

    width: 100%;

    min-height: 170px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 22px;

    overflow: hidden;

    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            135deg,
            var(--primary) 0%,
            var(--primary-dark) 100%
        );

    color: #ffffff;

    box-shadow: var(--shadow-md);
}

.promotion-card::before {
    content: "";

    position: absolute;

    top: -65px;
    right: -50px;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.07);

    pointer-events: none;
}

.promotion-card::after {
    content: "";

    position: absolute;

    left: -55px;
    bottom: -70px;

    width: 190px;
    height: 190px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.09);

    pointer-events: none;
}

.promotion-icon {
    position: absolute;

    top: 18px;
    left: 18px;

    z-index: 1;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.12);

    font-size: 20px;
}

.promotion-content {
    position: relative;

    z-index: 1;

    width: 100%;
    max-width: 78%;

    min-width: 0;
}

.promotion-content h3 {
    margin: 0 0 6px;

    color: #ffffff;

    font-size: 20px;
    font-weight: 900;

    line-height: 1.35;
}

.promotion-content p {
    margin: 0;

    color: rgba(255, 255, 255, 0.9);

    font-size: 12px;

    line-height: 1.7;
}

.primary-button {
    position: relative;

    z-index: 1;

    align-self: flex-start;

    margin-top: 14px;

    min-height: 37px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 15px;

    border-radius: var(--radius-sm);

    background: #ffffff;

    color: var(--primary);

    font-size: 12px;
    font-weight: 900;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.primary-button:hover {
    background: #f8fafc;

    transform: translateY(-1px);

    box-shadow: 0 7px 17px rgba(0, 0, 0, 0.12);
}

.primary-button:active {
    transform: scale(0.97);
}


/* =========================================================
   11. PROMOTION SLIDER DOTS
   ========================================================= */

.slider-dots {
    min-height: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 10px;
}

.promotion-dot {
    width: 6px;
    height: 6px;

    flex: 0 0 auto;

    padding: 0;

    border-radius: var(--radius-full);

    background: #cbd5e1;

    transition:
        width var(--transition),
        background var(--transition),
        transform var(--transition);
}

.promotion-dot:hover {
    transform: scale(1.15);

    background: #94a3b8;
}

.promotion-dot.active {
    width: 18px;

    background: var(--primary);
}


/* =========================================================
   12. QUICK ACCESS
   ========================================================= */

.quick-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}

.quick-link-card {
    width: 100%;
    min-width: 0;

    min-height: 70px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 12px;

    border-radius: var(--radius-md);

    background: var(--surface);

    border: 1px solid var(--border);

    color: var(--text);

    text-align: right;

    box-shadow: var(--shadow-xs);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.quick-link-card:hover {
    transform: translateY(-2px);

    background: #ffffff;

    border-color: #bfdbfe;

    box-shadow: var(--shadow-sm);
}

.quick-link-card:active {
    transform: scale(0.985);
}

.quick-link-icon {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 18px;

    line-height: 1;
}

.quick-link-content {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;
}

.quick-link-content strong {
    display: block;

    min-width: 0;

    color: var(--text);

    font-size: 13px;
    font-weight: 900;

    line-height: 1.35;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.quick-link-content small {
    display: block;

    min-width: 0;

    margin-top: 2px;

    color: var(--text-muted);

    font-size: 10px;

    line-height: 1.4;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.quick-link-arrow {
    flex: 0 0 auto;

    color: var(--text-light);

    font-size: 14px;

    line-height: 1;
}


/* =========================================================
   13. IMPORTANT LINKS
   ========================================================= */

.important-links {
    width: 100%;

    display: grid;

    grid-template-columns: 1fr;

    gap: 10px;
}

.important-link {
    position: relative;

    width: 100%;

    min-height: 62px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 11px 14px;

    border-radius: var(--radius-md);

    background: var(--surface);

    border: 1px solid var(--border);

    color: var(--text);

    text-align: right;

    box-shadow: var(--shadow-xs);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.important-link:hover {
    transform: translateY(-1px);

    background: #ffffff;

    border-color: #bae6fd;

    box-shadow: var(--shadow-sm);
}

.important-link:active {
    transform: scale(0.985);
}

.important-link-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--accent-light);

    color: #0891b2;

    font-size: 16px;

    line-height: 1;
}

.important-link-content {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;
}

.important-link-content strong {
    display: block;

    color: var(--text);

    font-size: 13px;
    font-weight: 900;

    line-height: 1.35;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.important-link-content small {
    display: block;

    margin-top: 1px;

    color: var(--text-muted);

    font-size: 10px;

    line-height: 1.4;
}

.important-link-arrow {
    flex: 0 0 auto;

    margin-right: auto;

    color: var(--text-light);

    font-size: 15px;

    line-height: 1;
}


/* =========================================================
   14. SIDE MENU OVERLAY
   ========================================================= */

.menu-overlay {
    position: fixed;

    inset: 0;

    z-index: 200;

    display: block;

    background: rgba(15, 23, 42, 0.42);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity var(--transition),
        visibility var(--transition);

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   15. SIDE MENU
   ========================================================= */

.side-menu {
    position: fixed;

    top: 0;
    right: 0;
    bottom: 0;

    z-index: 210;

    width: min(var(--side-menu-width), 88vw);

    height: 100vh;
    height: 100dvh;

    display: flex;
    flex-direction: column;

    padding-bottom:
        env(safe-area-inset-bottom);

    background: var(--surface);

    border-left: 1px solid var(--border);

    box-shadow: var(--shadow-lg);

    transform: translateX(105%);

    transition: transform var(--transition-slow);

    overflow-x: hidden;
    overflow-y: auto;

    overscroll-behavior: contain;
}

.side-menu.active {
    transform: translateX(0);
}


/* =========================================================
   16. SIDE MENU CLOSE
   ========================================================= */

.close-menu {
    position: absolute;

    top: 16px;
    left: 16px;

    z-index: 3;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--surface-soft);

    color: var(--text-secondary);

    font-size: 25px;
    line-height: 1;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.close-menu:hover {
    background: var(--primary-light);

    color: var(--primary);
}

.close-menu:active {
    transform: scale(0.94);
}


/* =========================================================
   17. SIDE MENU HEADER
   ========================================================= */

.side-menu-header {
    min-height: 92px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding:
        18px
        64px
        16px
        16px;

    border-bottom: 1px solid var(--border-light);
}

.side-menu-header > div {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.side-menu-header strong {
    color: var(--text);

    font-size: 14px;
    font-weight: 900;

    line-height: 1.3;
}

.side-menu-header small {
    margin-top: 2px;

    color: var(--text-muted);

    font-size: 10px;

    line-height: 1.3;
}

.brand-logo {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: var(--primary-light);

    color: var(--primary);

    border: 1px solid #dbeafe;

    font-size: 13px;
    font-weight: 900;
}


/* =========================================================
   18. SIDE MENU TITLE
   ========================================================= */

.side-menu > h2 {
    margin: 0;

    padding:
        18px
        16px
        9px;

    color: var(--text-muted);

    font-size: 11px;
    font-weight: 900;

    line-height: 1.4;
}


/* =========================================================
   19. SIDE MENU LINKS
   ========================================================= */

.side-menu-links {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 4px;

    padding:
        0
        12px
        18px;
}

.side-menu-item {
    width: 100%;

    min-height: 54px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 9px 10px;

    border-radius: 11px;

    background: transparent;

    color: var(--text-secondary);

    text-align: right;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.side-menu-item:hover {
    background: var(--primary-light);

    color: var(--primary);
}

.side-menu-item:active {
    transform: scale(0.985);
}

.side-menu-item-icon {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: var(--surface-soft);

    font-size: 16px;

    line-height: 1;
}

.side-menu-item:hover .side-menu-item-icon {
    background: #dbeafe;
}

.side-menu-item-text {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;
}

.side-menu-item-text strong {
    display: block;

    color: inherit;

    font-size: 13px;
    font-weight: 800;

    line-height: 1.35;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.side-menu-item-text small {
    display: block;

    margin-top: 2px;

    color: var(--text-muted);

    font-size: 9px;

    line-height: 1.35;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.side-menu-item-arrow {
    flex: 0 0 auto;

    color: var(--text-light);

    font-size: 14px;

    line-height: 1;
}


/* =========================================================
   20. IN-APP WEB VIEW
   ========================================================= */

.web-view {
    position: fixed;

    inset: 0;

    z-index: 150;

    width: 100vw;
    height: 100vh;
    height: 100dvh;

    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    flex-direction: column;

    margin: 0;
    padding: 0;

    background: #ffffff;

    overflow: hidden;
}


/* =========================================================
   21. WEB VIEW HEADER
   ========================================================= */

.web-view-header {
    position: relative;

    z-index: 2;

    width: 100%;

    min-height: 60px;

    flex: 0 0 60px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding:
        8px
        max(12px, env(safe-area-inset-right))
        8px
        max(12px, env(safe-area-inset-left));

    background: rgba(255, 255, 255, 0.97);

    border-bottom: 1px solid var(--border);

    box-shadow: var(--shadow-xs);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.web-view-back,
.web-view-home {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--surface-soft);

    color: var(--text-secondary);

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.web-view-back {
    gap: 4px;

    width: auto;

    min-width: 72px;

    padding: 0 10px;

    font-size: 12px;
    font-weight: 800;
}

.web-view-back:hover,
.web-view-home:hover {
    background: var(--primary-light);

    color: var(--primary);
}

.web-view-back:active,
.web-view-home:active {
    transform: scale(0.96);
}

.web-view-title {
    min-width: 0;

    flex: 1;

    display: flex;
    align-items: center;

    justify-content: center;

    gap: 8px;
}

.web-view-title strong {
    min-width: 0;

    overflow: hidden;

    color: var(--text);

    font-size: 13px;
    font-weight: 900;

    white-space: nowrap;

    text-overflow: ellipsis;
}

.web-view-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 9px;

    background: var(--surface-soft);

    font-size: 16px;
}

.web-view-icon img {
    width: 25px;
    height: 25px;

    object-fit: contain;
}


/* =========================================================
   22. WEB VIEW FRAME
   ========================================================= */

.web-view-frame-wrapper {
    position: relative;

    width: 100%;

    flex: 1 1 auto;

    min-width: 0;
    min-height: 0;

    background: #ffffff;

    overflow: hidden;
}

.web-view-frame-wrapper iframe {
    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    display: block;

    border: 0;

    background: #ffffff;
}


/* =========================================================
   23. WEB VIEW LOADING
   ========================================================= */

.web-view-loading {
    position: absolute;

    inset: 0;

    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 12px;

    background: var(--bg);
}

.web-view-loading p {
    margin: 0;

    color: var(--text-muted);

    font-size: 12px;
    font-weight: 600;
}

.loading-spinner {
    width: 32px;
    height: 32px;

    border: 3px solid #dbeafe;

    border-top-color: var(--primary);

    border-radius: 50%;

    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   24. BOTTOM NAVIGATION
   ========================================================= */

.bottom-navigation {
    position: fixed;

    right: 0;
    bottom: 0;
    left: 0;

    z-index: 120;

    width: 100%;

    height: var(--bottom-nav-height);

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        7px
        max(10px, env(safe-area-inset-right))
        calc(7px + env(safe-area-inset-bottom))
        max(10px, env(safe-area-inset-left));

    background: rgba(255, 255, 255, 0.97);

    border-top: 1px solid var(--border);

    box-shadow:
        0 -6px 22px rgba(15, 23, 42, 0.06);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.navigation-item {
    position: relative;

    min-width: 0;

    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 2px;

    border-radius: 11px;

    background: transparent;

    color: var(--text-muted);

    font-size: 10px;
    font-weight: 800;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.navigation-item:hover {
    background: var(--surface-soft);
}

.navigation-item:active {
    transform: scale(0.96);
}

.navigation-item.active {
    color: var(--primary);
}

.navigation-icon {
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;

    line-height: 1;
}

.navigation-item.active::before {
    content: "";

    position: absolute;

    top: 0;
    right: 50%;

    width: 24px;
    height: 3px;

    transform: translateX(50%);

    border-radius:
        0
        0
        5px
        5px;

    background: var(--primary);
}


/* =========================================================
   25. FOOTER
   ========================================================= */

.app-footer {
    width: 100%;

    max-width: var(--content-max-width);

    margin: 0 auto;

    padding:
        0
        16px
        calc(var(--bottom-nav-height) + 25px);

    text-align: center;

    color: var(--text-muted);

    font-size: 11px;
}

.app-footer strong {
    display: block;

    margin-bottom: 2px;

    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 900;
}

.app-footer span {
    display: block;

    color: var(--text-muted);

    font-size: 10px;
}


/* =========================================================
   26. ACCESSIBILITY
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);

    outline-offset: 2px;
}


/* =========================================================
   27. MENU OPEN STATE
   ========================================================= */

body.menu-open {
    overflow: hidden;
}


/* =========================================================
   28. SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .app-header {
        padding-right: 12px;
        padding-left: 12px;
    }

    #homeView {
        padding-right: 12px;
        padding-left: 12px;
    }

    .hero {
        padding: 22px 18px;
    }

    .hero h1 {
        font-size: 23px;
    }

    .quick-grid {
        gap: 8px;
    }

    .quick-link-card {
        min-height: 66px;

        padding: 10px;

        gap: 8px;
    }

    .quick-link-icon {
        width: 36px;
        height: 36px;

        flex-basis: 36px;
    }

    .quick-link-content strong {
        font-size: 12px;
    }

    .quick-link-content small {
        font-size: 9px;
    }

    .quick-link-arrow {
        display: none;
    }

    .promotion-card {
        min-height: 165px;

        padding: 19px;
    }

    .promotion-content {
        max-width: 82%;
    }

    .promotion-content h3 {
        font-size: 18px;
    }
}


/* =========================================================
   29. TABLET
   ========================================================= */

@media (min-width: 600px) {

    #homeView {
        padding-right: 22px;
        padding-left: 22px;
    }

    .quick-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 12px;
    }

    .important-links {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 12px;
    }

    .important-link {
        min-height: 86px;

        flex-direction: column;

        justify-content: center;

        text-align: center;

        padding: 14px;
    }

    .important-link-icon {
        margin: 0;
    }

    .important-link-content {
        width: 100%;

        align-items: center;
    }

    .important-link-content strong,
    .important-link-content small {
        white-space: normal;
    }

    .important-link-arrow {
        display: none;
    }
}


/* =========================================================
   30. DESKTOP
   ========================================================= */

@media (min-width: 761px) {

    body {
        background:
            linear-gradient(
                180deg,
                #e2e8f0 0%,
                #f8fafc 45%,
                #f8fafc 100%
            );
    }

    .app-shell {
        width: min(100%, 1180px);

        min-height: 100vh;

        margin: 0 auto;

        background: var(--bg);

        box-shadow:
            0 0 0 1px rgba(15, 23, 42, 0.04),
            0 20px 60px rgba(15, 23, 42, 0.08);
    }

    .app-header {
        width: 100%;

        padding-right: 24px;
        padding-left: 24px;
    }

    #app {
        min-height: 0;
    }

    #homeView {
        max-width: 980px;

        padding:
            28px
            28px
            calc(var(--bottom-nav-height) + 35px);
    }

    .hero {
        padding: 34px 32px;

        margin-bottom: 28px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 15px;
    }

    .promotions {
        margin-bottom: 30px;
    }

    .promotion-card {
        min-height: 205px;

        padding: 30px;
    }

    .promotion-icon {
        top: 25px;
        left: 25px;

        width: 48px;
        height: 48px;

        font-size: 22px;
    }

    .promotion-content {
        max-width: 72%;
    }

    .promotion-content h3 {
        font-size: 23px;
    }

    .promotion-content p {
        font-size: 13px;
    }

    .quick-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 14px;
    }

    .quick-link-card {
        min-height: 82px;

        padding: 15px;

        gap: 12px;
    }

    .quick-link-icon {
        width: 44px;
        height: 44px;

        flex-basis: 44px;

        font-size: 19px;
    }

    .quick-link-content strong {
        font-size: 14px;
    }

    .quick-link-content small {
        font-size: 11px;
    }

    .important-links {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 14px;
    }

    .important-link {
        min-height: 88px;

        flex-direction: column;

        justify-content: center;

        align-items: center;

        padding: 16px;

        text-align: center;
    }

    .important-link-icon {
        margin: 0;
    }

    .important-link-content {
        width: 100%;

        align-items: center;
    }

    .important-link-content strong,
    .important-link-content small {
        white-space: normal;
    }

    .important-link-arrow {
        display: none;
    }

    .bottom-navigation {
        background: transparent;

        border-top: 0;

        box-shadow: none;

        backdrop-filter: none;
        -webkit-backdrop-filter: none;

        padding:
            7px
            10px
            calc(7px + env(safe-area-inset-bottom))
            10px;
    }

    .bottom-navigation {
        pointer-events: none;
    }

    .bottom-navigation .navigation-item {
        pointer-events: auto;
    }

    .bottom-navigation::before {
        content: "";

        position: absolute;

        right: 50%;
        bottom: 7px;

        width: min(620px, calc(100% - 40px));
        height: calc(100% - 14px);

        transform: translateX(50%);

        border-radius: 16px;

        background: rgba(255, 255, 255, 0.97);

        border: 1px solid var(--border);

        box-shadow: var(--shadow-md);

        z-index: -1;
    }

    .bottom-navigation {
        max-width: 760px;

        margin: 0 auto;

        left: 50%;
        right: auto;

        transform: translateX(-50%);
    }

    .navigation-item {
        max-width: 150px;
    }

    .app-footer {
        max-width: 980px;

        padding:
            0
            28px
            calc(var(--bottom-nav-height) + 30px);
    }
}


/* =========================================================
   31. LARGE DESKTOP
   ========================================================= */

@media (min-width: 1100px) {

    #homeView {
        max-width: 1040px;

        padding-right: 34px;
        padding-left: 34px;
    }

    .hero {
        padding: 40px 38px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .quick-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 16px;
    }

    .important-links {
        gap: 16px;
    }

    .quick-link-card {
        min-height: 88px;

        padding: 17px;
    }
}


/* =========================================================
   32. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}