* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #050816;
    --bg-soft: rgba(10, 16, 35, 0.84);
    --panel: rgba(16, 24, 48, 0.94);
    --panel-2: rgba(10, 15, 32, 0.96);
    --text: #edf4ff;
    --muted: #94a6c9;
    --line: rgba(144, 171, 255, 0.16);
    --cyan: #55e6ff;
    --mint: #7cffa6;
    --violet: #8f7bff;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.22);
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Bahnschrift", "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(143, 123, 255, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(85, 230, 255, 0.16), transparent 26%),
        radial-gradient(circle at bottom, rgba(124, 255, 166, 0.08), transparent 30%),
        linear-gradient(180deg, #050816 0%, #080d1f 48%, #050816 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.22;
    animation: gridShift 18s linear infinite;
}

::selection {
    background: rgba(85, 230, 255, 0.24);
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: transform 180ms ease, color 180ms ease, opacity 180ms ease;
}

a:hover {
    color: #fff;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.9rem 0;
    background: rgba(6, 10, 24, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.32);
}

.nav-container,
.container,
.intro,
.features,
.quick-tips,
.content-section,
.page-header,
.footer-content,
.hero-content {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-logo a:hover {
    color: var(--cyan);
    transform: translateY(-1px);
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    list-style: none;
}

.nav-menu > li > a,
.dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.92rem;
    border: 1px solid transparent;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active,
.dropdown > a:hover {
    color: var(--text);
    background: rgba(85, 230, 255, 0.08);
    border-color: rgba(85, 230, 255, 0.2);
    box-shadow: 0 0 30px rgba(85, 230, 255, 0.18);
    transform: translateY(-1px);
}

.dropdown {
    position: relative;
    padding-bottom: 0.7rem;
    margin-bottom: -0.7rem;
}

.dropdown > a {
    cursor: pointer;
}

.dropdown-content {
    position: absolute;
    top: calc(100% - 0.1rem);
    left: 0;
    min-width: 220px;
    padding: 0.45rem;
    border-radius: 18px;
    background: rgba(10, 16, 35, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.dropdown-content a {
    display: block;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    color: var(--muted);
}

.dropdown-content a:hover,
.dropdown-content a.active {
    color: var(--text);
    background: rgba(143, 123, 255, 0.14);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown.is-open .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.hero,
.page-header {
    position: relative;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero {
    padding: 6.5rem 0 5rem;
}

.hero::before,
.page-header::before {
    content: "";
    position: absolute;
    inset: 14% auto auto 50%;
    width: 44rem;
    height: 44rem;
    border-radius: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(85, 230, 255, 0.18), transparent 66%);
    filter: blur(12px);
    pointer-events: none;
    animation: floatGlow 11s ease-in-out infinite;
}

.hero-content,
.page-header > * {
    position: relative;
    z-index: 1;
}

.hero-content h1,
.page-header h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.02;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 0 22px rgba(85, 230, 255, 0.25);
}

.hero-content p,
.page-header p,
.intro p,
.content-section p,
.tip p,
.feature-card p,
.update-description {
    color: var(--muted);
}

.hero-content p {
    max-width: 42rem;
    margin: 0 auto 1.8rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    letter-spacing: 0.03em;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    color: #04101d;
    background: linear-gradient(135deg, var(--cyan), var(--mint));
    box-shadow: 0 12px 24px rgba(85, 230, 255, 0.22);
}

.btn-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(85, 230, 255, 0.24);
}

.container {
    padding: 0 0 4rem;
}

/* Story page layout: sidebar + content */
.story-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.25rem;
    align-items: start;
    margin-top: 1rem;
}

.story-sidebar {
    position: sticky;
    top: 92px;
}

.subtab-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subtab-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.02);
    color: var(--muted);
    cursor: pointer;
    border: 1px solid transparent;
}

.subtab-item:hover,
.subtab-item:focus,
.subtab-item.active {
    background: rgba(85, 230, 255, 0.08);
    color: var(--text);
    border-color: rgba(85,230,255,0.12);
    transform: translateX(2px);
}

.subtab-item span {
    font-weight: 700;
}

.story-content .story-preview {
    margin-top: 1rem;
}

.learn-article {
    max-width: 1080px;
}

.learn-article .content-section {
    text-align: center;
    padding: 1.75rem 2rem;
}

.learn-article .content-section p {
    max-width: 78ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
    font-size: 1.05rem;
}

.learn-article .content-section p + p {
    margin-top: 1rem;
}

.learn-article .content-section strong {
    color: var(--text);
}

.learn-article .learn-callout {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: rgba(85, 230, 255, 0.08);
    border: 1px solid rgba(85, 230, 255, 0.16);
    color: var(--text);
    font-weight: 700;
}

/* Modal styles */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal[aria-hidden="false"] {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2,6,12,0.6);
    backdrop-filter: blur(6px);
}

.modal-content {
    position: relative;
    width: min(720px, calc(100% - 2rem));
    max-height: 80vh;
    overflow: auto;
    padding: 1.25rem 1.25rem 1.5rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(17,28,56,0.96), rgba(9,15,33,0.98));
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: var(--shadow-soft);
    z-index: 2;
}

.modal-close {
    position: absolute;
    right: 0.6rem;
    top: 0.6rem;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 1.05rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .story-layout {
        grid-template-columns: 1fr;
    }

    .story-sidebar {
        position: static;
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .subtab-list {
        flex-direction: row;
        gap: 0.6rem;
    }

    .subtab-item {
        white-space: nowrap;
        border-radius: 14px;
        padding: 0.55rem 0.8rem;
    }
}

/* When subtabs are shown as the main index grid */
.subtab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
    padding: 0;
    list-style: none;
}

.subtab-grid .subtab-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.05rem;
}

.intro,
.quick-tips {
    margin-top: 2.5rem;
}

.intro {
    text-align: center;
    padding-top: 1.5rem;
}

.intro h2,
.quick-tips h2,
.content-section h2 {
    margin-bottom: 0.8rem;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.feature-grid,
.tips-grid,
.team-roles,
.team-showcase,
.team-note-list,
.team-meta {
    display: grid;
    gap: 1rem;
}

/* Feature grid: explicit responsive columns for a 9-card layout */
.feature-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 1.5rem;
}

/* Wide layout: arrange as 4 on first row, 5 on second row for 9 cards */
@media (min-width: 1201px) {
    .feature-grid {
        grid-template-columns: repeat(5, 1fr);
        align-items: start;
        gap: 1.25rem;
    }
}

@media (max-width: 1200px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card,
.content-section,
.quick-tips,
.tip,
.team-build-card,
.update-item,
.team-preview,
.team-notes {
    position: relative;
    background: linear-gradient(180deg, rgba(17, 28, 56, 0.94), rgba(9, 15, 33, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.feature-card::before,
.content-section::before,
.team-build-card::before,
.update-item::before,
.team-preview::before,
.team-notes::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(85, 230, 255, 0.24), rgba(143, 123, 255, 0.08), transparent 72%);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.75;
}

.feature-card {
    padding: 1.5rem;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.feature-card-link {
    display: block;
    color: inherit;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow), 0 0 30px rgba(85, 230, 255, 0.16);
    border-color: rgba(85, 230, 255, 0.18);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    display: inline-grid;
    place-items: center;
    margin-bottom: 1rem;
    border-radius: 14px;
    font-size: 1.35rem;
    background: rgba(85, 230, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(85, 230, 255, 0.14);
}

.feature-card h3,
.content-section h3,
.team-build-card h4,
.update-title,
.tip h4 {
    color: var(--text);
}

.feature-card a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    font-weight: 700;
}

.feature-card-link .feature-open {
    display: inline-flex;
    margin-top: 1rem;
    align-items: center;
    gap: 0.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.feature-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

.feature-subtabs span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(85, 230, 255, 0.08);
    border: 1px solid rgba(85, 230, 255, 0.14);
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 700;
}

.feature-card a:hover {
    transform: translateX(3px);
}

.quick-tips {
    padding: 1.6rem;
}

.tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 1rem;
}

.tip,
.team-build-card {
    padding: 1.25rem;
}

.tip {
    border-left: 3px solid rgba(85, 230, 255, 0.55);
}

.content-section {
    padding: 1.5rem;
    margin-top: 1.25rem;
}

.content-section h2 {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.content-section h3 {
    margin-top: 1.25rem;
    margin-bottom: 0.45rem;
}

.content-section ul,
.content-section ol {
    margin: 0.75rem 0 0.25rem 1.2rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    color: var(--muted);
}

.info-box {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: rgba(85, 230, 255, 0.08);
    border: 1px solid rgba(85, 230, 255, 0.16);
    color: var(--text);
}

.team-roles {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-top: 1rem;
}

.team-showcase {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
    margin-top: 1rem;
}

.team-preview {
    padding: 1rem;
    overflow: hidden;
}

.team-image-placeholder {
    min-height: 260px;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    border-radius: calc(var(--radius) - 6px);
    border: 1px dashed rgba(85, 230, 255, 0.32);
    background:
        radial-gradient(circle at top left, rgba(85, 230, 255, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(13, 20, 42, 0.96), rgba(7, 11, 25, 0.98));
    color: var(--muted);
    text-align: center;
}

.team-image-placeholder strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.team-notes {
    padding: 1.25rem;
}

.team-meta {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.team-meta span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(85, 230, 255, 0.08);
    border: 1px solid rgba(85, 230, 255, 0.14);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
}

.team-note-list {
    margin-top: 1rem;
}

.team-note-list div {
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

.team-note-list strong {
    color: var(--text);
}

.team-feed {
    display: grid;
    gap: 1rem;
}

.team-feed-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.team-feed-header h2 {
    margin: 0;
}

.team-feed-header p,
.team-entry-label,
.admin-team-page {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    font-weight: 800;
}

.team-feed-list {
    display: grid;
    gap: 1rem;
}

.team-entry {
    display: grid;
    grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(17, 28, 56, 0.96), rgba(9, 15, 33, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

.team-entry-image {
    min-height: 140px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(85, 230, 255, 0.06), rgba(143, 123, 255, 0.05));
}

.team-entry-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.team-entry-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 1rem;
    text-align: center;
    color: var(--muted);
    border: 1px dashed rgba(85, 230, 255, 0.24);
    border-radius: 16px;
}

.team-entry-body {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.team-entry-header h3 {
    margin: 0.25rem 0 0;
}

.team-entry-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.team-entry-metrics div {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.team-entry-metrics span {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.star-meter {
    display: inline-flex;
    gap: 0.15rem;
    color: rgba(255, 255, 255, 0.22);
}

.star-meter .is-filled {
    color: #ffd36d;
}

.team-entry-notes {
    padding: 1rem 1.05rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--muted);
    line-height: 1.7;
}

.team-feed-empty {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(85, 230, 255, 0.18);
    color: var(--muted);
}

.admin-shell {
    display: grid;
    gap: 1.25rem;
}

.admin-card.is-hidden {
    display: none;
}

.admin-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-form {
    display: grid;
    gap: 1rem;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field span {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 800;
}

.field input,
.field select,
.field textarea,
.filter-select {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 8, 22, 0.7);
    color: var(--text);
    font: inherit;
}

.field textarea {
    resize: vertical;
}

.field-wide {
    grid-column: 1 / -1;
}

.form-status {
    min-height: 1.35rem;
    color: var(--muted);
}

.admin-teams-list {
    display: grid;
    gap: 1rem;
}

.admin-team-card {
    display: grid;
    grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(17, 28, 56, 0.96), rgba(9, 15, 33, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-team-preview {
    min-height: 170px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.admin-team-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.admin-team-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    padding: 1rem;
    text-align: center;
    color: var(--muted);
    border: 1px dashed rgba(85, 230, 255, 0.18);
    border-radius: 16px;
}

.admin-team-body {
    display: grid;
    gap: 1rem;
}

.admin-team-topline {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.admin-team-topline h3 {
    margin-top: 0.2rem;
}

.admin-team-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.admin-team-metrics div {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-team-metrics span {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-team-notes {
    padding: 1rem 1.05rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--muted);
    line-height: 1.7;
}

.filter-select {
    min-width: 260px;
}

.admin-empty {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(85, 230, 255, 0.18);
    color: var(--muted);
}

.role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(85, 230, 255, 0.18), rgba(143, 123, 255, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    font-weight: 700;
    box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.04);
}

.page-header {
    padding: 4.25rem 0 3rem;
}

.page-header p {
    max-width: 46rem;
    margin: 0 auto;
    font-size: 1.03rem;
}

.update-item {
    padding: 1.25rem 1.25rem 1.25rem 1.45rem;
    margin-top: 1rem;
}

.update-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow), 0 0 30px rgba(85, 230, 255, 0.16);
}

.update-item::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    top: 1.2rem;
    bottom: 1.2rem;
    width: 2px;
    background: linear-gradient(180deg, var(--cyan), transparent);
    opacity: 0.75;
}

.update-date {
    color: var(--mint);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.update-title {
    margin: 0.35rem 0 0.65rem;
    font-size: 1.1rem;
}

.footer {
    margin-top: 2rem;
    padding: 2rem 1rem 3rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(4, 8, 18, 0.8);
    color: var(--muted);
    animation: riseIn 800ms ease both;
}

.footer-content p {
    margin: 0.35rem 0;
}

.footer-content p:last-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.footer-content p:last-child a {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.footer-content a:hover {
    color: var(--mint);
}

.hero-content h1,
.page-header h1,
.feature-card,
.content-section,
.quick-tips,
.team-build-card,
.tip,
.update-item,
.footer {
    animation: riseIn 700ms ease both;
}

.feature-card:nth-child(2n),
.content-section:nth-child(2n),
.team-build-card:nth-child(2n),
.update-item:nth-child(2n) {
    animation-delay: 80ms;
}

.feature-card:nth-child(3n),
.content-section:nth-child(3n),
.team-build-card:nth-child(3n),
.update-item:nth-child(3n) {
    animation-delay: 140ms;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatGlow {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.85;
    }
    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 1;
    }
}

@keyframes gridShift {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 72px 72px, 72px 72px;
    }
}

@media (max-width: 900px) {
    .nav-container {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-menu {
        justify-content: center;
    }

    .hero {
        padding-top: 4.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container,
    .container,
    .intro,
    .features,
    .quick-tips,
    .content-section,
    .page-header,
    .footer-content,
    .hero-content {
        width: min(100%, calc(100% - 1.1rem));
    }

    .nav-menu > li > a,
    .dropdown > a {
        padding-inline: 0.8rem;
    }

    .hero {
        padding: 4rem 0 3.2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .feature-grid,
    .tips-grid,
    .team-roles,
    .team-showcase {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 3rem 0 2rem;
    }

    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        margin-top: 0.35rem;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown:focus-within .dropdown-content {
        display: block;
    }

    .team-entry,
    .admin-team-card {
        grid-template-columns: 1fr;
    }

    .field-grid,
    .team-entry-metrics,
    .admin-team-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-logo a {
        font-size: 0.95rem;
    }

    .nav-menu {
        gap: 0.35rem;
    }

    .nav-menu > li > a,
    .dropdown > a {
        padding: 0.65rem 0.8rem;
        font-size: 0.84rem;
    }

    .feature-card,
    .content-section,
    .quick-tips,
    .team-build-card,
    .tip,
    .update-item {
        border-radius: 18px;
    }

    .container {
        padding-bottom: 3rem;
    }

    .admin-panel-head {
        align-items: stretch;
    }

    .filter-select {
        min-width: 0;
        width: 100%;
    }

    .team-entry,
    .admin-team-card {
        padding: 0.85rem;
    }
}

/* Good Cards grid (6x8) */
.cards-grid {
    display: grid;
    grid-template-columns: 220px repeat(5, 1fr);
    grid-auto-rows: minmax(140px, auto);
    gap: 0.9rem;
    margin-top: 1rem;
}

.cards-grid .cell {
    background: linear-gradient(180deg, rgba(17,28,56,0.94), rgba(9,15,33,0.96));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-align: center;
}

.cards-grid .header-cell {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
    background: linear-gradient(180deg, rgba(85,230,255,0.04), rgba(143,123,255,0.02));
    border-color: rgba(85,230,255,0.06);
}

.cards-grid .row-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 1rem;
    font-weight: 700;
    width: 100%;
}

.cards-grid .row-label .label-main {
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.cards-grid .row-label .label-desc {
    display: block;
    margin-top: 0;
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.35;
    max-height: 4.6rem;
    overflow: hidden;
    transition: max-height 240ms ease;
    width: 100%;
    word-wrap: break-word;
    hyphens: auto;
}

.cards-grid .row-label.expanded .label-desc {
    max-height: 1000px;
}

.toggle-desc {
    margin-top: 0.45rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    color: var(--muted);
    font-size: 0.82rem;
    cursor: pointer;
}

.toggle-desc:hover {
    color: var(--text);
    border-color: rgba(85,230,255,0.12);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 2px dashed rgba(85,230,255,0.12);
    background: linear-gradient(180deg, rgba(6,10,24,0.6), rgba(10,16,35,0.6));
    color: var(--muted);
}

.image-placeholder:hover {
    border-color: rgba(85,230,255,0.28);
    box-shadow: 0 8px 30px rgba(85,230,255,0.06);
    color: var(--text);
}

@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: 160px repeat(2, 1fr);
        grid-auto-rows: 120px;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .cards-grid .row-label {
        padding-left: 0.6rem;
    }
}
