:root {
    --amn-navy: #1e3a8a;
    --amn-navy-dark: #172554;
    --amn-navy-light: #2748a6;
    --amn-orange: #f97316;
    --amn-orange-dark: #ea580c;
    --amn-orange-light: #fb923c;

    --amn-primary: var(--amn-navy);
    --amn-primary-dark: var(--amn-navy-dark);
    --amn-accent: var(--amn-orange);

    --amn-gradient: linear-gradient(135deg, #1e3a8a 0%, #f97316 100%);
    --amn-gradient-navy: linear-gradient(135deg, #1e3a8a 0%, #2748a6 100%);
    --amn-gradient-orange: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --amn-gradient-soft: linear-gradient(135deg, rgba(30, 58, 138, 0.08) 0%, rgba(249, 115, 22, 0.08) 100%);

    --shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 12px 40px rgba(30, 58, 138, 0.18);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-bs-theme="light"] {
    --bg-body: #f7f8fc;
    --bg-card: #ffffff;
    --bg-navbar: rgba(255, 255, 255, 0.88);
    --bg-hero: linear-gradient(180deg, #eef2ff 0%, #fff7ed 100%);
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted-soft: #94a3b8;
    --border-color: #e2e8f0;
    --icon-bg: rgba(30, 58, 138, 0.1);
}

[data-bs-theme="dark"] {
    --bg-body: #0a0e1a;
    --bg-card: #131828;
    --bg-navbar: rgba(19, 24, 40, 0.88);
    --bg-hero: linear-gradient(180deg, #131828 0%, #1a1410 100%);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted-soft: #64748b;
    --border-color: #1e293b;
    --icon-bg: rgba(30, 58, 138, 0.18);
}

* { box-sizing: border-box; }

html { font-size: 15px; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

main { flex: 1; }

/* ========== NAVBAR ========== */
.portal-navbar {
    background-color: var(--bg-navbar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-base);
    padding: 0.65rem 0;
}

.portal-navbar .navbar-brand img {
    height: 32px;
    width: auto;
    transition: var(--transition-base);
}

[data-bs-theme="light"] .logo-dark { display: none; }
[data-bs-theme="dark"] .logo-light { display: none; }

.btn-theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-theme-toggle:hover {
    transform: rotate(15deg);
    border-color: var(--amn-primary);
    color: var(--amn-primary);
}

.btn-theme-toggle .theme-icon-dark,
.btn-theme-toggle .theme-icon-light {
    position: absolute;
    transition: var(--transition-base);
    font-size: 1rem;
}

.btn-nav-hamburger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    height: 38px;
    padding: 0 0.95rem;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition-base);
    white-space: nowrap;
}

.btn-nav-hamburger i {
    font-size: 1.15rem;
    line-height: 1;
    color: var(--amn-orange);
}

.btn-nav-hamburger:hover {
    border-color: var(--amn-navy);
    background: var(--amn-navy);
    color: white;
}

.btn-nav-hamburger:hover i { color: white; }

[data-bs-theme="light"] .theme-icon-light { opacity: 0; transform: scale(0.5) rotate(180deg); }
[data-bs-theme="light"] .theme-icon-dark { opacity: 1; transform: scale(1) rotate(0); }
[data-bs-theme="dark"] .theme-icon-dark { opacity: 0; transform: scale(0.5) rotate(-180deg); }
[data-bs-theme="dark"] .theme-icon-light { opacity: 1; transform: scale(1) rotate(0); }

/* ========== HERO ========== */
.hero-section {
    position: relative;
    background: var(--bg-hero);
    padding: 3.5rem 0 3rem;
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: 0;
}

.shape-1 {
    width: 350px;
    height: 350px;
    background: rgba(30, 58, 138, 0.32);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(249, 115, 22, 0.28);
    bottom: -80px;
    right: -80px;
}

[data-bs-theme="dark"] .hero-bg-shape { opacity: 0.3; }

.badge-pill-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.95rem;
    border-radius: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--amn-primary);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

.hero-title {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
}

.text-gradient {
    color: var(--amn-navy);
}

[data-bs-theme="dark"] .text-gradient {
    color: #93c5fd;
}

.hero-subtitle {
    font-size: clamp(0.85rem, 1.6vw, 0.98rem);
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* ========== SEARCH ========== */
.search-wrapper {
    position: relative;
    max-width: 560px;
    margin: 1.75rem auto 0;
}

.hero-stats + .search-wrapper { margin-top: 1.75rem; }

.search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted-soft);
    font-size: 0.95rem;
    z-index: 2;
}

.search-input {
    height: 50px;
    padding: 0 3rem 0 2.75rem;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
}

.search-input:focus {
    border-color: var(--amn-primary);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.15);
    background-color: var(--bg-card);
    color: var(--text-primary);
    outline: none;
}

.search-input::placeholder { color: var(--text-muted-soft); }

.btn-clear-search {
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted-soft);
    font-size: 1.05rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-base);
}

.btn-clear-search.visible { opacity: 1; pointer-events: auto; }
.btn-clear-search:hover { color: var(--amn-primary); }

/* ========== STATS ========== */
.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.75rem 1.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    box-shadow: var(--shadow-soft);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--amn-navy);
    line-height: 1;
}

[data-bs-theme="dark"] .stat-number {
    color: #93c5fd;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 26px;
    background: var(--border-color);
}

/* ========== INFO CARDS (Disclaimer + Info) ========== */
.info-cards-section {
    margin: 0 0 1.75rem;
    position: relative;
    z-index: 5;
}

.info-card {
    display: flex;
    gap: 0.9rem;
    padding: 1.1rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--amn-primary);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    height: 100%;
    transition: var(--transition-base);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.info-card-warning {
    border-left-color: var(--amn-orange);
}

.info-card-info {
    border-left-color: var(--amn-navy);
}

.info-card-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.info-card-warning .info-card-icon {
    background: rgba(249, 115, 22, 0.13);
    color: var(--amn-orange);
    position: relative;
    animation: warningBlink 1.6s ease-in-out infinite;
}

.info-card-warning .info-card-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid var(--amn-orange);
    opacity: 0;
    animation: warningRing 1.6s ease-out infinite;
}

@keyframes warningBlink {
    0%, 100% {
        background: rgba(249, 115, 22, 0.13);
        transform: scale(1);
    }
    50% {
        background: rgba(249, 115, 22, 0.32);
        transform: scale(1.06);
    }
}

@keyframes warningRing {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

.info-card-info .info-card-icon {
    background: rgba(30, 58, 138, 0.13);
    color: var(--amn-navy);
}

.info-card-body { flex: 1; min-width: 0; }

.info-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.info-card-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

.info-card-text strong { color: var(--text-primary); font-weight: 600; }

/* ========== CATEGORY FILTER (Desktop) ========== */
.category-filter-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 2rem;
    padding: 1.1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.category-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--border-color);
    width: auto;
    min-width: 120px;
    justify-content: center;
}

.category-filter-label i { color: var(--amn-orange); }

.category-filter-scroll {
    width: 100%;
    min-width: 0;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition-base);
}

.filter-chip i { font-size: 0.85rem; opacity: 0.85; }

.filter-chip:hover {
    border-color: var(--amn-navy);
    color: var(--amn-navy);
    background: rgba(30, 58, 138, 0.05);
}

[data-bs-theme="dark"] .filter-chip:hover {
    color: #93c5fd;
    background: rgba(30, 58, 138, 0.18);
}

.filter-chip.active {
    background: var(--amn-navy);
    border-color: var(--amn-navy);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.filter-chip.active i { opacity: 1; }

.filter-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    padding: 0 0.4rem;
    height: 18px;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 100px;
    background: rgba(30, 58, 138, 0.1);
    color: var(--amn-navy);
}

[data-bs-theme="dark"] .filter-chip-count {
    background: rgba(147, 197, 253, 0.18);
    color: #93c5fd;
}

.filter-chip.active .filter-chip-count {
    background: var(--amn-orange);
    color: white;
}

/* ========== CATEGORY FILTER (Mobile / Offcanvas) ========== */
.filter-offcanvas {
    background: var(--bg-card);
    color: var(--text-primary);
    width: 320px !important;
    max-width: 88vw;
    border-left: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .filter-offcanvas { background: var(--bg-card); }

.filter-offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}

.filter-offcanvas .offcanvas-title {
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-offcanvas .offcanvas-title i { color: var(--amn-orange); }

.filter-offcanvas .btn-close {
    filter: var(--bs-btn-close-filter, none);
}

[data-bs-theme="dark"] .filter-offcanvas .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.filter-offcanvas .offcanvas-body {
    padding: 1rem;
}

.category-filter-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.filter-chip-mobile {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-base);
}

.filter-chip-mobile i {
    font-size: 1rem;
    color: var(--amn-navy);
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}

[data-bs-theme="dark"] .filter-chip-mobile i { color: #93c5fd; }

.filter-chip-mobile-label { flex: 1; }

.filter-chip-mobile-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    padding: 0 0.5rem;
    height: 22px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 100px;
    background: rgba(30, 58, 138, 0.1);
    color: var(--amn-navy);
}

[data-bs-theme="dark"] .filter-chip-mobile-count {
    background: rgba(147, 197, 253, 0.18);
    color: #93c5fd;
}

.filter-chip-mobile:hover {
    border-color: var(--amn-navy);
    background: rgba(30, 58, 138, 0.05);
}

.filter-chip-mobile.active {
    background: var(--amn-navy);
    border-color: var(--amn-navy);
    color: white;
}

.filter-chip-mobile.active i { color: white; }

.filter-chip-mobile.active .filter-chip-mobile-count {
    background: var(--amn-orange);
    color: white;
}

/* ========== GROUP / CATEGORY ========== */
.group-section {
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.5s ease backwards;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid var(--border-color);
}

.group-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--amn-navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.25);
    position: relative;
}

.group-icon-wrapper::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    background: var(--amn-orange);
    border-radius: 50%;
    border: 2px solid var(--bg-body);
}

.group-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.group-count {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
}

/* ========== CARD ========== */
.app-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.1rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.app-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(30, 58, 138, 0.04);
    opacity: 0;
    transition: var(--transition-base);
    z-index: 0;
}

[data-bs-theme="dark"] .app-card::before {
    background: rgba(30, 58, 138, 0.12);
}

.app-card:hover {
    border-color: var(--amn-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: inherit;
}

.app-card:hover::before { opacity: 1; }

.app-card > * { position: relative; z-index: 1; }

.app-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--icon-bg);
    color: var(--amn-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.app-card:hover .app-icon {
    background: var(--amn-navy);
    color: white;
    transform: scale(1.05);
}

.app-content { flex: 1; min-width: 0; }

.app-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    line-height: 1.35;
}

.app-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 0.55rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-url {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    padding: 0.2rem 0.55rem 0.2rem 0.5rem;
    background: rgba(30, 58, 138, 0.06);
    border: 1px solid rgba(30, 58, 138, 0.1);
    border-radius: 100px;
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--amn-navy);
    line-height: 1.4;
    transition: var(--transition-base);
}

[data-bs-theme="dark"] .app-url {
    background: rgba(147, 197, 253, 0.08);
    border-color: rgba(147, 197, 253, 0.18);
    color: #93c5fd;
}

.app-url i {
    font-size: 0.7rem;
    flex-shrink: 0;
    opacity: 0.85;
}

.app-url-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.app-card:hover .app-url {
    background: var(--amn-navy);
    border-color: var(--amn-navy);
    color: white;
}

.app-url-unavailable {
    background: rgba(249, 115, 22, 0.08);
    border-color: rgba(249, 115, 22, 0.18);
    color: var(--amn-orange);
}

[data-bs-theme="dark"] .app-url-unavailable {
    background: rgba(249, 115, 22, 0.15);
}

.app-card:hover .app-url-unavailable {
    background: var(--amn-orange);
    border-color: var(--amn-orange);
    color: white;
}

.app-arrow {
    color: var(--text-muted-soft);
    font-size: 0.95rem;
    transition: var(--transition-base);
    align-self: center;
    flex-shrink: 0;
}

.app-card:hover .app-arrow {
    color: var(--amn-primary);
    transform: translateX(4px);
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.1rem 0.45rem;
    font-size: 0.58rem;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-soon {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}
[data-bs-theme="dark"] .badge-soon {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
}

.badge-android {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}
[data-bs-theme="dark"] .badge-android {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
}

.badge-ios {
    background: rgba(100, 116, 139, 0.15);
    color: #475569;
}
[data-bs-theme="dark"] .badge-ios {
    background: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
}

.badge-web {
    background: rgba(30, 58, 138, 0.12);
    color: var(--amn-navy);
}
[data-bs-theme="dark"] .badge-web {
    background: rgba(147, 197, 253, 0.18);
    color: #93c5fd;
}

.badge-admin {
    background: rgba(249, 115, 22, 0.12);
    color: var(--amn-orange-dark);
}
[data-bs-theme="dark"] .badge-admin {
    background: rgba(249, 115, 22, 0.2);
    color: #fdba74;
}

/* ========== SUPPORT CARD ========== */
.support-card {
    margin-top: 3rem;
    padding: 2px;
    border-radius: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.support-card-inner {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.75rem 2rem;
    border-radius: 20px;
    background: var(--bg-card);
    position: relative;
}

.support-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--amn-orange);
    border-radius: 20px 20px 0 0;
}

.support-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(249, 115, 22, 0.12);
    color: var(--amn-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.support-body { flex: 1; min-width: 0; }

.support-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--amn-orange);
    background: rgba(249, 115, 22, 0.1);
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    margin-bottom: 0.5rem;
}

.support-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
    line-height: 1.35;
}

.text-orange { color: var(--amn-orange); }

.support-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.support-desc strong { color: var(--amn-orange); font-weight: 700; }

.support-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    background: rgba(30, 58, 138, 0.06);
    border-left: 3px solid var(--amn-navy);
    border-radius: 10px;
    margin-top: 0.5rem;
}

[data-bs-theme="dark"] .support-note {
    background: rgba(30, 58, 138, 0.18);
}

.support-note i {
    color: var(--amn-navy);
    font-size: 1.1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

[data-bs-theme="dark"] .support-note i {
    color: #93c5fd;
}

.support-note p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.support-note strong {
    color: var(--amn-navy);
    font-weight: 600;
}

[data-bs-theme="dark"] .support-note strong {
    color: #93c5fd;
}

/* ========== UPTIME CARD ========== */
.uptime-card {
    display: block;
    margin-top: 2.5rem;
    padding: 2rem 2rem;
    background: var(--amn-navy);
    border-radius: 22px;
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(30, 58, 138, 0.22);
    transition: var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.uptime-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(30, 58, 138, 0.32);
    color: white;
}

.uptime-bg-shape {
    position: absolute;
    width: 280px;
    height: 280px;
    background: rgba(249, 115, 22, 0.18);
    border-radius: 50%;
    top: -140px;
    right: -90px;
    filter: blur(40px);
}

.uptime-card::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    bottom: -100px;
    left: 10%;
}

.uptime-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.3rem;
    flex-wrap: wrap;
}

.uptime-icon {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.uptime-pulse {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.uptime-text { flex: 1; min-width: 220px; }

.uptime-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    margin-bottom: 0.6rem;
}

.uptime-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
}

.uptime-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    line-height: 1.3;
}

.uptime-desc {
    font-size: 0.85rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.55;
}

.uptime-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--amn-orange);
    color: white;
    padding: 0.7rem 1.3rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.uptime-card:hover .uptime-cta {
    background: var(--amn-orange-dark);
}

.uptime-card:hover .uptime-cta i {
    transform: translateX(4px);
}

.uptime-cta i { transition: var(--transition-base); }

/* ========== EMPTY ========== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3.2rem;
    color: var(--text-muted-soft);
    margin-bottom: 0.75rem;
    display: block;
}

.empty-state h4 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.empty-state p { font-size: 0.85rem; margin: 0; }

/* ========== TOAST ========== */
#alertToast {
    background: var(--amn-orange);
    color: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.35);
    font-size: 0.85rem;
}

/* ========== FOOTER ========== */
.portal-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.text-muted-soft { color: var(--text-muted-soft); }

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.group-section:nth-child(1) { animation-delay: 0.05s; }
.group-section:nth-child(2) { animation-delay: 0.1s; }
.group-section:nth-child(3) { animation-delay: 0.15s; }
.group-section:nth-child(4) { animation-delay: 0.2s; }
.group-section:nth-child(5) { animation-delay: 0.25s; }
.group-section:nth-child(n+6) { animation-delay: 0.3s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px) {
    .category-filter-wrapper { display: none; }
}

@media (max-width: 768px) {
    html { font-size: 14px; }
    .hero-section { padding: 2.5rem 0 2rem; }
    .hero-stats { gap: 0.85rem; padding: 0.7rem 1.1rem; }
    .stat-item { min-width: 50px; }
    .stat-number { font-size: 1.05rem; }
    .stat-label { font-size: 0.6rem; }
    .group-header { gap: 0.65rem; }
    .group-icon-wrapper { width: 38px; height: 38px; font-size: 1rem; border-radius: 10px; }
    .group-title { font-size: 1rem; }
    .app-card { padding: 1rem; }
    .app-icon { width: 38px; height: 38px; font-size: 1.05rem; }
    .search-input { height: 46px; }
    .info-cards-section { margin-bottom: 1.5rem; }
    .uptime-card { padding: 1.5rem 1.5rem; }
    .uptime-content { gap: 1rem; }
    .uptime-icon { width: 50px; height: 50px; font-size: 1.5rem; }
    .uptime-title { font-size: 1.05rem; }
    .uptime-desc { font-size: 0.78rem; }
    .uptime-cta { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .hero-stats { flex-wrap: wrap; justify-content: center; }
    .stat-divider { display: none; }
    .badge-pill-glass { font-size: 0.68rem; padding: 0.35rem 0.75rem; }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
    border: 2px solid var(--bg-body);
}
::-webkit-scrollbar-thumb:hover { background: var(--amn-primary); }
