/* ===== App Container (Mobile Frame) ===== */
.app-container {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--paper);
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .app-container {
        border-left: 1px solid var(--line);
        border-right: 1px solid var(--line);
    }
}

/* ===== App Header ===== */
.app-header {
    background: linear-gradient(135deg, #0d5c63 0%, #0a4f56 100%);
    color: #fff;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(10, 79, 86, 0.2);
}

.header-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s;
    text-decoration: none;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.header-btn svg {
    width: 22px;
    height: 22px;
}

.header-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    flex: 1;
    text-align: center;
}

/* ===== App Main ===== */
.app-main {
    padding: 16px;
}

/* ===== Search Box ===== */
.search-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(61, 114, 130, 0.06);
}

.search-icon {
    width: 20px;
    height: 20px;
    color: #9aa5a8;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    background: transparent;
    padding: 4px 0;
}

.search-input::placeholder {
    color: #9aa5a8;
}

.search-filter {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa5a8;
    flex-shrink: 0;
}

.search-filter svg {
    width: 20px;
    height: 20px;
}

/* ===== Filters Row ===== */
.filters-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-select {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-icon {
    width: 18px;
    height: 18px;
    color: var(--sea);
    flex-shrink: 0;
}

.select-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.chevron {
    width: 16px;
    height: 16px;
    color: #9aa5a8;
    flex-shrink: 0;
}

/* ===== Quick Actions (4 Cards) ===== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ink);
}

.action-icon {
    width: 100%;
    aspect-ratio: 1;
    background: var(--card-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.action-icon svg {
    width: 40%;
    height: 40%;
    color: #fff;
    stroke: #fff;
}

.action-card:hover .action-icon {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.action-label {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: var(--ink);
}

/* ===== CTA Banner ===== */
.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #0d7377 0%, #0a5c5f 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 24px rgba(13, 115, 119, 0.25);
    transition: transform 0.2s;
}

.cta-banner:hover {
    transform: translateY(-2px);
}

.cta-content {
    flex: 1;
    z-index: 2;
}

.cta-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.cta-text {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
}

.cta-visual {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.cta-arrow {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: #3BEAEF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 3;
}

.cta-arrow svg {
    width: 18px;
    height: 18px;
}

.cta-person {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== Section Block ===== */
.section-block {
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.section-link {
    font-size: 13px;
    font-weight: 600;
    color: #0d9e9e;
    text-decoration: none;
}

.section-link:hover {
    text-decoration: underline;
}

/* ===== Unions Grid ===== */
.unions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.union-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 8px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.union-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(61, 114, 130, 0.1);
}

.union-icon-wrapper {
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.union-icon-wrapper svg {
    width: 100%;
    height: 100%;
}

.union-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 4px 0;
}

.union-count {
    font-size: 11px;
    color: #66777a;
    margin: 0;
}

/* ===== Cities Scroll ===== */
.cities-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.cities-scroll::-webkit-scrollbar {
    display: none;
}

.city-chip {
    flex-shrink: 0;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: all 0.2s;
}

.city-chip.active {
    background: linear-gradient(135deg, #0d9e9e 0%, #0d7377 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(13, 158, 158, 0.3);
}

.city-chip:hover:not(.active) {
    border-color: var(--sea);
    color: var(--sea);
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: linear-gradient(135deg, #0d5c63 0%, #0a4f56 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.2s;
    position: relative;
}

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

.nav-item span {
    font-size: 11px;
    font-weight: 500;
}

.nav-item.active {
    color: #fff;
}

.nav-icon-active {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-icon-active svg {
    width: 26px;
    height: 26px;
    color: #0d5c63;
}

.nav-item.active span {
    font-weight: 700;
    color: #3BEAEF;
}

.nav-item:not(.active):hover {
    color: #fff;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 360px) {
    .quick-actions {
        gap: 8px;
    }
    .action-label {
        font-size: 11px;
    }
    .unions-grid {
        gap: 8px;
    }
    .union-name {
        font-size: 11px;
    }
}

@media (min-width: 768px) {
    .bottom-nav {
        border-radius: 24px 24px 0 0;
    }
}