:root {
    --color-primary: #6d28d9;
    --color-primary-dark: #3b0764;
    --color-primary-darker: #250036;
    --color-accent: #22c55e;
    --color-accent-dark: #16a34a;
    --color-success: #34d399;
    --color-danger: #fb7185;

    --color-text: #e5e7eb;
    --color-text-muted: #aab2c3;
    --color-text-light: #cbd5e1;
    --color-bg: #0b1220;
    --color-bg-soft: #0f172a;
    --color-bg-muted: #0c1529;
    --color-border: rgba(148, 163, 184, 0.22);
    --color-border-soft: rgba(148, 163, 184, 0.16);

    --gradient-hero: linear-gradient(135deg, #071026 0%, #0b2a4f 38%, #6d28d9 100%);
    --gradient-deep: linear-gradient(135deg, #050712 0%, #0b1220 55%, #250036 100%);
    --gradient-dept: linear-gradient(135deg, #0b1b3a 0%, #4f46e5 55%, #6d28d9 100%);
    --gradient-security: linear-gradient(135deg, #120b2e, #071026);
    --gradient-mission: linear-gradient(135deg, #06223a, #2e1065 65%, #6d28d9 100%);
    --gradient-trust: linear-gradient(135deg, #040816 0%, #0b1b3a 45%, #250036 100%);
    --gradient-cta: linear-gradient(135deg, #16a34a 0%, #22c55e 40%, #6d28d9 100%);
    --gradient-accent: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #6d28d9 100%);
    --gradient-icon: linear-gradient(135deg, #22c55e 0%, #6d28d9 70%, #38bdf8 100%);

    --glass-bg: rgba(17, 24, 39, 0.52);
    --glass-border: rgba(148, 163, 184, 0.22);
    --glass-blur: blur(12px);

    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 18px 42px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 24px 70px rgba(0, 0, 0, 0.55);

    --shadow-primary: 0 0 0 1px rgba(109, 40, 217, 0.25), 0 12px 30px rgba(109, 40, 217, 0.18), 0 0 28px rgba(109, 40, 217, 0.22);
    --shadow-accent: 0 0 0 1px rgba(34, 197, 94, 0.22), 0 12px 26px rgba(34, 197, 94, 0.16), 0 0 24px rgba(34, 197, 94, 0.28);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-pill: 34px;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;

    --transition-fast: 170ms cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-base: 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-slow: 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

:where(body) {
    color: var(--color-text);
    background: radial-gradient(1200px 700px at 15% 10%, rgba(109, 40, 217, 0.22) 0%, rgba(11, 18, 32, 0) 55%), radial-gradient(900px 600px at 85% 15%, rgba(34, 197, 94, 0.16) 0%, rgba(11, 18, 32, 0) 60%), var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    caret-color: var(--color-accent);
    accent-color: var(--color-primary);
}

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

.bg-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 45px rgba(0, 0, 0, 0.35);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: var(--gradient-icon);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0b1220;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10), 0 0 26px rgba(34, 197, 94, 0.22), 0 0 40px rgba(109, 40, 217, 0.18);
}

.header {
    background: rgba(10, 17, 32, 0.86);
    z-index: 1030;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 24px rgba(109, 40, 217, 0.10);
}

.header .navbar-brand img {
    transition: transform var(--transition-fast), filter var(--transition-fast);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.header .navbar-brand:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 18px rgba(34, 197, 94, 0.35)) drop-shadow(0 0 26px rgba(109, 40, 217, 0.25));
}

.header .nav-link {
    font-weight: 500;
    color: rgba(229, 231, 235, 0.82);
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
    text-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.header .nav-link:hover {
    color: rgba(34, 197, 94, 0.95);
    text-shadow: 0 0 18px rgba(34, 197, 94, 0.35);
}

.hero-section {
    min-height: 480px;
    background: var(--gradient-hero);
    color: #fff;
    padding-block: var(--space-2xl);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 480px at 15% 30%, rgba(34, 197, 94, 0.18) 0%, rgba(0, 0, 0, 0) 55%), radial-gradient(700px 420px at 85% 20%, rgba(109, 40, 217, 0.22) 0%, rgba(0, 0, 0, 0) 55%), rgba(0, 0, 0, 0.18);
    z-index: 0;
    pointer-events: none;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
    text-shadow: 0 16px 50px rgba(0, 0, 0, 0.45), 0 0 26px rgba(109, 40, 217, 0.18);
}

.hero-section h2 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    opacity: 0.95;
    margin-bottom: var(--space-md);

    font-weight: 500;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-section .lead {
    font-size: 1.1rem;
    max-width: 700px;
    margin-inline: auto;
    opacity: 0.98;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-block-start: var(--space-md);
}

.notice-bar {
    animation: noticeSlideIn 0.5s ease-out, pulseGlow 2.4s ease-in-out infinite;
    transform-origin: center;
}

.notice-bar a {
    transition: opacity var(--transition-fast), color var(--transition-fast), text-shadow var(--transition-fast), transform var(--transition-fast);
}

.notice-bar a:hover {
    opacity: 0.88;
    color: rgba(34, 197, 94, 0.98);
    text-shadow: 0 0 22px rgba(34, 197, 94, 0.35);
    transform: translateY(-1px);
}

@keyframes noticeSlideIn {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(34, 197, 94, 0)); }
    50% { filter: drop-shadow(0 0 22px rgba(34, 197, 94, 0.25)); }
}

.breadcrumb-nav {
    background: rgba(15, 23, 42, 0.7);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.breadcrumb-nav .breadcrumb-item a {
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
    color: rgba(229, 231, 235, 0.82);
    text-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.breadcrumb-nav .breadcrumb-item a:hover {
    color: rgba(34, 197, 94, 0.98) !important;
    text-shadow: 0 0 18px rgba(34, 197, 94, 0.28);
}

.why-us-section {
    background: radial-gradient(900px 520px at 10% 0%, rgba(109, 40, 217, 0.10) 0%, rgba(255, 255, 255, 0) 60%), var(--color-bg-soft);
}

.whyus-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), border-color var(--transition-base);
    height: 100%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.whyus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.18), 0 18px 48px rgba(0, 0, 0, 0.35), 0 0 28px rgba(34, 197, 94, 0.22);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(34, 197, 94, 0.22);
}

.about-section {
    background: var(--gradient-deep);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.about-img-wrap {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 22px 55px rgba(0, 0, 0, 0.45);
}

.about-img-wrap img {
    transition: transform var(--transition-slow), filter var(--transition-slow);
    filter: saturate(1.05) contrast(1.02);
}

.about-img-wrap:hover img {
    transform: scale(1.05);
    filter: saturate(1.15) contrast(1.04) drop-shadow(0 0 22px rgba(34, 197, 94, 0.18));
}

.about-card {
    transition: transform var(--transition-base), background var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius-md);
}

.about-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 0 0 1px rgba(109, 40, 217, 0.18), 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 26px rgba(109, 40, 217, 0.22);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.78) !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.departments-section {
    background: var(--gradient-dept);
    color: #fff;
}

.departments-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    text-shadow: 0 18px 60px rgba(0, 0, 0, 0.45), 0 0 24px rgba(109, 40, 217, 0.18);
}

.departments-subtitle {
    font-size: 1.05rem;
    max-width: 800px;
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.88);
}

.departments-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-block-start: var(--space-lg);
}

@media (min-width: 768px) {
    .departments-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.d-item {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 45px rgba(0, 0, 0, 0.35);
}

.d-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
    text-shadow: 0 0 22px rgba(34, 197, 94, 0.25);
}

.d-num span {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.1rem;
    margin-inline-start: var(--space-xs);
}

.d-image {
    margin-bottom: var(--space-sm);
}

.d-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 22px 55px rgba(0, 0, 0, 0.45);
}

.security-section {
    background: var(--gradient-security);
    color: #fff;
}

.security-network {
    position: relative;
    max-width: 800px;
    margin: var(--space-xl) auto;
    min-height: 400px;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .security-network {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, auto);
    }

    .core-node        { grid-column: 2; grid-row: 2; }
    .node-top-left    { grid-column: 1; grid-row: 1; }
    .node-top-right   { grid-column: 3; grid-row: 1; }
    .node-bottom-left { grid-column: 1; grid-row: 3; }
    .node-bottom-right{ grid-column: 3; grid-row: 3; }
}

.core-node {
    background: var(--gradient-accent);
    border-radius: 50%;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    color: var(--color-primary-darker);
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.10), 0 0 24px rgba(34, 197, 94, 0.45), 0 0 48px rgba(109, 40, 217, 0.22);
    animation: corePulse 2.6s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% {
        filter: saturate(1.02);
        box-shadow: 0 0 0 1px rgba(255,255,255,0.10), 0 0 24px rgba(34, 197, 94, 0.42), 0 0 48px rgba(109, 40, 217, 0.20);
    }
    50% {
        filter: saturate(1.12);
        box-shadow: 0 0 0 1px rgba(255,255,255,0.14), 0 0 32px rgba(34, 197, 94, 0.60), 0 0 60px rgba(109, 40, 217, 0.28);
    }
}

.node {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    text-align: center;
    color: #fff;
    transition: transform var(--transition-base), background var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), filter var(--transition-base);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 18px 45px rgba(0, 0, 0, 0.35);
}

.node:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(34, 197, 94, 0.30);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.18), 0 0 32px rgba(34, 197, 94, 0.32), 0 24px 70px rgba(0, 0, 0, 0.50);
    filter: drop-shadow(0 0 18px rgba(34, 197, 94, 0.20));
}

.node-title {
    font-weight: 600;
    color: var(--color-accent);
    margin-block: var(--space-xs);
    text-shadow: 0 0 18px rgba(34, 197, 94, 0.30);
}

@media (max-width: 767.98px) {
    .core-node { width: 120px; height: 120px; }
}

.honor-section {
    background: radial-gradient(900px 520px at 5% 0%, rgba(34, 197, 94, 0.12) 0%, rgba(255, 255, 255, 0) 60%), var(--color-bg-soft);
}

.honor-row {
    padding-block: var(--space-sm);
}

.honor-text-card {
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    border-inline-start-style: solid;
    border-inline-start-width: 4px;
    border-inline-start-color: rgba(34, 197, 94, 0.95);
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), border-color var(--transition-base);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.03);
}

.honor-text-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.20), 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 26px rgba(34, 197, 94, 0.22);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(34, 197, 94, 0.20);
}

.mission-section {
    background: var(--gradient-mission);
    padding-block: var(--space-2xl);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mission-list li {
    margin-bottom: var(--space-sm);
    color: rgba(226, 232, 240, 0.92);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.stats-section {
    background: rgba(255, 255, 255, 0.02);
}

.stats-card {
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.03);
    border-radius: var(--radius-md);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 0 1px rgba(109, 40, 217, 0.20), 0 18px 48px rgba(0, 0, 0, 0.40), 0 0 32px rgba(109, 40, 217, 0.22);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(16, 185, 129, 0.08) 52%, rgba(109, 40, 217, 0.10) 100%);
}

.stats-card h3 {
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 0 22px rgba(109, 40, 217, 0.22);
}

.news-section {
    background: var(--color-bg-soft);
}

.news-card {
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), border-color var(--transition-base);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.18), 0 20px 60px rgba(0, 0, 0, 0.50), 0 0 34px rgba(34, 197, 94, 0.22);
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(255, 255, 255, 0.07);
}

.news-img-wrap {
    height: 200px;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-md);
}

.news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow), filter var(--transition-slow);
    filter: saturate(1.04) contrast(1.02);
}

.news-card:hover .news-img-wrap img {
    transform: scale(1.08);
    filter: saturate(1.16) contrast(1.05) drop-shadow(0 0 22px rgba(34, 197, 94, 0.18));
}

.matches-section {
    background: var(--color-bg-soft);
}

.match-card {
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), border-color var(--transition-base);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px rgba(109, 40, 217, 0.22), 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 30px rgba(109, 40, 217, 0.20);
    border-color: rgba(109, 40, 217, 0.65);
    background: rgba(255, 255, 255, 0.07);
}

.match-card .team {
    min-width: 0;
}

.match-card .team .small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-card .score {
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 0 22px rgba(34, 197, 94, 0.18);
}

.trust-section {
    background: var(--gradient-trust);
    color: #fff;
}

.trust-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-sm);
    height: 100%;
    transition: transform var(--transition-base), background var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.03);
}

.trust-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.20), 0 18px 55px rgba(0, 0, 0, 0.45), 0 0 32px rgba(34, 197, 94, 0.22);
    border-color: rgba(34, 197, 94, 0.28);
}

.partners-section {
    background: var(--color-bg-soft);
}

.partner-card {
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), border-color var(--transition-base);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 0 1px rgba(109, 40, 217, 0.20), 0 20px 60px rgba(0, 0, 0, 0.50), 0 0 34px rgba(109, 40, 217, 0.22);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(109, 40, 217, 0.30);
}

.testimonials-section {
    background: rgba(255, 255, 255, 0.02);
}

.testimonial-card {
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), border-block-start-color var(--transition-base);
    border-block-start: 4px solid transparent;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.testimonial-card:hover {
    border-block-start-color: rgba(34, 197, 94, 0.95);
    transform: translateY(-5px);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.20), 0 18px 55px rgba(0, 0, 0, 0.45), 0 0 32px rgba(34, 197, 94, 0.22);
}

.cta-banner-section {
    background: var(--gradient-cta);
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.cta-banner-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 520px at 20% 10%, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0) 60%), rgba(0, 0, 0, 0.22);
    z-index: 0;
}

.cta-banner-section > .container {
    position: relative;
    z-index: 1;
}

.cta-banner-section .btn-warning {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 30px rgba(34, 197, 94, 0.18), 0 0 28px rgba(34, 197, 94, 0.30);
    border-radius: 12px;
    transition: box-shadow var(--transition-base), transform var(--transition-base), filter var(--transition-base), background var(--transition-base);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 14px 45px rgba(0, 0, 0, 0.35);
}

.footer {
    font-size: 0.9rem;
    color: rgba(203, 213, 225, 0.78);
    text-shadow: 0 14px 45px rgba(0, 0, 0, 0.35);
}

.footer a {
    transition: color 180ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
    text-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.footer a:hover {
    color: var(--color-accent) !important;
    filter: saturate(1.1);
}

.footer-copyright {
    font-size: 0.85rem;
}

/* Beian */
.footer-beian {
    font-size: 0.8rem;
    line-height: 1.8;
    opacity: 0.88;
    color: rgba(234, 242, 255, 0.84);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.footer-beian a:hover {
    color: var(--color-accent) !important;
    text-decoration: underline !important;
    text-shadow: 0 0 18px rgba(124, 58, 237, 0.35);
}

.footer-beian img {
    margin-inline-end: 4px;
    transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), filter 260ms cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
    border-radius: 10px;
}

.footer-beian a:hover img {
    transform: scale(1.2);
    filter: drop-shadow(0 10px 22px rgba(124, 58, 237, 0.35));
}

.footer-beian li {
    white-space: nowrap;
}

/* Subtle glow when reduced motion is not requested */
.footer-beian a {
    transition: color 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes glowPulse {
    0% { filter: drop-shadow(0 0 0 rgba(124, 58, 237, 0.0)); }
    40% { filter: drop-shadow(0 0 18px rgba(124, 58, 237, 0.35)); }
    100% { filter: drop-shadow(0 0 0 rgba(124, 58, 237, 0.0)); }
}

.footer-beian a:hover {
    animation: glowPulse 900ms ease-out 1;
}

@media (max-width: 575.98px) {
    .footer-beian ul {
        flex-direction: column;
        gap: var(--space-xs) !important;
    }

    .footer-beian li {
        white-space: normal;
        text-align: center;
    }
}

/* ============================================
   22. Form (Login/Signup/Contact)
   ============================================ */
.form-control:focus,
.form-select:focus {
    border-color: rgba(124, 58, 237, 0.92);
    box-shadow:
        0 0 0 0.2rem rgba(124, 58, 237, 0.16),
        0 0 0 0.5rem rgba(59, 130, 246, 0.07),
        0 18px 40px rgba(0, 0, 0, 0.18);
    outline-color: rgba(124, 58, 237, 0.75);
    outline-style: solid;
    outline-width: 1px;
    outline-offset: 2px;
    border-radius: 12px;
}

.btn-primary {
    background-color: #7c3aed;
    border-color: #7c3aed;
    box-shadow:
        0 14px 34px rgba(124, 58, 237, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 28px rgba(124, 58, 237, 0.20);
    border-radius: 12px;
    transition:
        background-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #6d28d9;
    border-color: #6d28d9;
    box-shadow:
        0 18px 44px rgba(124, 58, 237, 0.34),
        0 0 0 1px rgba(255, 255, 255, 0.10) inset,
        0 0 34px rgba(124, 58, 237, 0.42);
    transform: translateY(-1px);
    filter: saturate(1.08);
    outline-style: solid;
    outline-width: 1px;
    outline-color: rgba(124, 58, 237, 0.55);
    outline-offset: 3px;
}

/* Non-primary buttons/controls in this theme */
.input-group-text {
    background-color: rgba(37, 46, 58, 0.82);
    border-color: rgba(148, 163, 184, 0.22);
    color: rgba(226, 232, 240, 0.92);
    border-radius: 12px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 12px 28px rgba(0, 0, 0, 0.12);
    transition: box-shadow 200ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ============================================
   23. Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   Grid Layout Defaults (CSS-Variant-Ready)
   CSSVariantEngine sẽ override các rules này
   ============================================================ */

/* News grid (default 3 columns) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Functional features list (default 3 columns) */
.feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* User testimonials (default 3 columns) */
.testimonial-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Partners (default 4 columns) */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: center;
}

/* Data stats (default 4 columns) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

/* FAQ list (default single column centered) */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

/* Hero content (default centered) */
.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Hero split layout (left text right image) */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.hero-split-text { }
.hero-split-img { text-align: center; }

/* CTA inner (default centered) */
.cta-inner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Authors team (default 4 columns) */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Contact channels (default 3 columns) */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Post list (default 2 columns) */
.post-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Related items (default 3 columns) */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Matches list (default 3 columns) */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Steps grid (default 4 columns) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* QR code grid (default 3 columns) */
.qr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    justify-items: center;
}

/* Honors list (default 2 columns alternate) */
.honor-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.honor-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.honor-row-reverse {
    direction: rtl;
}
.honor-row-reverse > * {
    direction: ltr;
}

/* ============================================================
   Responsive Defaults
   ============================================================ */
@media (max-width: 1024px) {
    .news-grid,
    .feature-list,
    .channels-grid,
    .testimonial-list { grid-template-columns: repeat(2, 1fr); }

    .partner-grid,
    .stats-grid,
    .authors-grid { grid-template-columns: repeat(2, 1fr); }

    .matches-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }

    .hero-split { grid-template-columns: 1fr; }
    .honor-row { grid-template-columns: 1fr; }
    .honor-row-reverse { direction: ltr; }
}

@media (max-width: 640px) {
    .news-grid,
    .feature-list,
    .testimonial-list,
    .channels-grid,
    .post-list-grid,
    .related-grid,
    .authors-grid,
    .matches-grid { grid-template-columns: 1fr; }

    .partner-grid,
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .steps-grid { grid-template-columns: 1fr; }
    .qr-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }

    .faq-list { max-width: 100%; }
}