/* =========================================================================
   Survivor's Outpost — ARK Survival Ascended cluster template
   Dark, torch-lit survival aesthetic with bioluminescent cyan accents.
   ========================================================================= */

:root {
    --bg-deep:        #050810;
    --bg-base:        #0a0f14;
    --bg-elev:        #121821;
    --bg-elev-2:      #1a2230;

    --border-soft:    #1f2832;
    --border-strong:  #2a3548;

    --text-bright:    #eef3f8;
    --text-base:      #cdd6e0;
    --text-muted:     #8b97a8;
    --text-dim:       #5d6b80;

    --accent-fire:    #ff6b1f;
    --accent-fire-2:  #ff9347;
    --accent-fire-dk: #c84a0e;

    --accent-bio:     #3ee2c8;
    --accent-bio-2:   #6df0d8;
    --accent-bio-dk:  #1ba892;

    --warn:           #f5b942;
    --good:           #4ade80;
    --bad:            #ef4444;

    --ark-hero-image: url('https://cdn.cloudflare.steamstatic.com/steam/apps/2399830/library_hero.jpg');
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-base);
    background: var(--bg-base);
    line-height: 1.65;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse at top, rgba(255, 107, 31, 0.04) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 120%, rgba(62, 226, 200, 0.045) 0%, transparent 55%);
    background-attachment: fixed;
}

h1, h2, h3, h4 {
    font-family: 'Black Ops One', 'Inter', sans-serif;
    color: var(--text-bright);
    letter-spacing: 0.5px;
    line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

a { color: var(--accent-bio); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-bio-2); }

code, .mono { font-family: 'JetBrains Mono', monospace; }

.skip-link {
    position: absolute; left: -9999px;
    background: var(--accent-fire); color: #fff;
    padding: 8px 16px; z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* =========================================================================
   Navbar
   ========================================================================= */
.site-navbar {
    background: rgba(10, 15, 20, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 14px 0;
    transition: all .25s;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1030;
}
.site-navbar.scrolled {
    background: rgba(5, 8, 16, 0.92);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.brand-wordmark {
    font-family: 'Black Ops One', sans-serif;
    font-size: 1.35rem;
    color: var(--text-bright);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 1px;
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-fire), var(--accent-fire-dk));
    color: #fff;
    box-shadow: 0 0 18px rgba(255, 107, 31, 0.4);
}
.brand-amp {
    color: var(--accent-fire);
}
.brand-wordmark:hover { color: var(--accent-bio); }

.site-navbar .nav-link {
    color: var(--text-base);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    position: relative;
    transition: color .15s;
}
.site-navbar .nav-link:hover { color: var(--accent-bio); }
.site-navbar .nav-link.active {
    color: var(--accent-fire);
}
.site-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 14px; right: 14px;
    height: 2px;
    background: var(--accent-fire);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent-fire);
}

.btn-connect {
    background: linear-gradient(135deg, var(--accent-fire), var(--accent-fire-dk));
    border: none;
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 9px 20px !important;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(255, 107, 31, 0.3);
    transition: transform .15s, box-shadow .15s;
}
.btn-connect:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(255, 107, 31, 0.45);
    color: #fff !important;
}

.navbar-toggler {
    border: 1px solid var(--border-strong);
    padding: 6px 10px;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28238,243,248,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(5,8,16,0.55) 0%, rgba(5,8,16,0.85) 65%, rgba(5,8,16,1) 100%),
        var(--ark-hero-image) center/cover;
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(62, 226, 200, 0.12) 0%, transparent 35%),
        radial-gradient(circle at 80% 30%, rgba(255, 107, 31, 0.10) 0%, transparent 35%);
    z-index: 1;
    pointer-events: none;
}
.hero > .container { position: relative; z-index: 2; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-bio);
    background: rgba(62, 226, 200, 0.08);
    border: 1px solid rgba(62, 226, 200, 0.25);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}
.hero-eyebrow .pulse {
    width: 8px; height: 8px;
    background: var(--good);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--good);
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}
.hero h1 .torch {
    background: linear-gradient(135deg, var(--accent-fire-2), var(--accent-fire));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 32px rgba(255, 107, 31, 0.3);
}
.hero-sub {
    font-size: 1.2rem;
    color: var(--text-base);
    max-width: 620px;
    margin: 24px 0 32px;
    line-height: 1.65;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}
.hero-cta .btn { padding: 13px 28px; font-weight: 700; }
.hero-cta .btn-primary {
    background: linear-gradient(135deg, var(--accent-fire), var(--accent-fire-dk));
    border: none;
    box-shadow: 0 6px 22px rgba(255, 107, 31, 0.3);
}
.hero-cta .btn-primary:hover { box-shadow: 0 8px 28px rgba(255, 107, 31, 0.5); }
.hero-cta .btn-outline-light {
    border: 1.5px solid var(--accent-bio);
    color: var(--accent-bio);
    background: transparent;
}
.hero-cta .btn-outline-light:hover {
    background: var(--accent-bio);
    color: var(--bg-deep);
}

.hero-server-card {
    background: rgba(10, 15, 20, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    padding: 20px 24px;
    max-width: 560px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.hero-server-card .label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}
.hero-server-card .server-ip {
    word-break: break-all;
    max-width: 100%;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-bio);
    padding: 6px 12px;
    background: rgba(62, 226, 200, 0.08);
    border: 1px solid rgba(62, 226, 200, 0.2);
    border-radius: 6px;
    display: inline-block;
    margin-top: 4px;
    transition: background .15s;
}
.hero-server-card .server-ip:hover { background: rgba(62, 226, 200, 0.16); }
.hero-server-card .status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(74, 222, 128, 0.1);
    color: var(--good);
    border: 1px solid rgba(74, 222, 128, 0.3);
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
    white-space: nowrap;
    max-width: 100%;
    vertical-align: middle;
}
.hero-server-card .status-pill i {
    flex: 0 0 auto;
}
.hero-server-card .status-pill .status-more {
    letter-spacing: 0.04em;
}

.ark-connect-card {
    max-width: none;
}

.ark-connect-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.ark-connect-head p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.ark-connect-count {
    flex: 0 0 auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    padding-top: 2px;
}

.ark-connect-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ark-connect-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 11px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ark-connect-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.ark-connect-row:last-child {
    padding-bottom: 0;
}

.ark-connect-main {
    min-width: 0;
}

.ark-connect-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--text-bright);
    font-size: 0.9rem;
    font-weight: 800;
}

.ark-connect-title > span:nth-child(2) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ark-connect-dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    box-shadow: 0 0 12px currentColor;
}

.ark-connect-badge {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 107, 31, 0.45);
    border-radius: 999px;
    color: var(--accent-fire);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1;
    padding: 4px 7px;
    text-transform: uppercase;
}

.ark-connect-meta {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-server-card .ark-connect-ip {
    margin-top: 0;
    padding: 5px 9px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.ark-connect-more {
    display: flex;
    justify-content: center;
    margin-top: 14px;
    padding: 9px 12px;
    border: 1px dashed rgba(62, 226, 200, 0.32);
    border-radius: 8px;
    background: rgba(62, 226, 200, 0.05);
    color: var(--accent-bio);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
}

.ark-connect-more:hover {
    background: rgba(62, 226, 200, 0.1);
    color: var(--accent-bio);
}

@media (max-width: 575.98px) {
    .ark-connect-head {
        flex-direction: column;
        gap: 8px;
    }

    .ark-connect-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hero-server-card .ark-connect-ip {
        width: 100%;
    }
}

.ark-live-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
}

.ark-live-card {
    flex: 0 1 calc((100% - 36px) / 4);
    min-width: 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ark-live-grid--count-1 .ark-live-card {
    flex-basis: min(720px, 100%);
}

.ark-live-grid--count-2 .ark-live-card {
    flex-basis: calc((100% - 12px) / 2);
}

.ark-live-grid--count-3 .ark-live-card,
.ark-live-grid--count-5 .ark-live-card,
.ark-live-grid--count-6 .ark-live-card,
.ark-live-grid--count-9 .ark-live-card {
    flex-basis: calc((100% - 24px) / 3);
}

@media (max-width: 991.98px) {
    .ark-live-grid .ark-live-card {
        flex-basis: calc((100% - 12px) / 2);
    }
}

@media (max-width: 575.98px) {
    .ark-live-grid .ark-live-card {
        flex-basis: 100%;
    }
}

.ark-rich-server-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
}

.ark-rich-server-card {
    flex: 0 1 calc((100% - 48px) / 3);
    min-width: 0;
    display: flex;
}

.ark-rich-server-card > .feature-card {
    width: 100%;
}

@media (max-width: 991.98px) {
    .ark-rich-server-card {
        flex-basis: calc((100% - 24px) / 2);
    }
}

@media (max-width: 575.98px) {
    .ark-rich-server-card {
        flex-basis: 100%;
    }
}

/* =========================================================================
   Sections
   ========================================================================= */
.section {
    padding: 80px 0;
    position: relative;
}
.section-dark { background: var(--bg-base); }
.section-elev { background: var(--bg-elev); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

.section-title {
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    margin-bottom: 14px;
    color: var(--text-bright);
}
.section-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-fire);
    margin-bottom: 12px;
    display: block;
}
.section-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 680px;
}

/* Stat strip */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-soft);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    overflow: hidden;
}
.stat-cell {
    background: var(--bg-elev);
    padding: 26px 20px;
    text-align: center;
}
.stat-num {
    font-family: 'Black Ops One', sans-serif;
    font-size: 2.6rem;
    color: var(--accent-fire);
    display: block;
    line-height: 1;
    margin-bottom: 6px;
    text-shadow: 0 0 18px rgba(255, 107, 31, 0.25);
}
.stat-lab {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}
@media (max-width: 768px) {
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* Feature cards */
.feature-card {
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 28px 26px;
    height: 100%;
    transition: transform .25s, border-color .25s, box-shadow .25s;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent-fire), transparent);
    opacity: 0; transition: opacity .25s;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-fire);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 52px; height: 52px;
    border-radius: 10px;
    background: rgba(255, 107, 31, 0.1);
    border: 1px solid rgba(255, 107, 31, 0.25);
    color: var(--accent-fire);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* Map cards */
.map-card {
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .25s, border-color .25s;
}
.map-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-bio);
}
.map-card-media {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--bg-elev-2), var(--bg-deep));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.map-card-media::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(5, 8, 16, 0.8) 100%);
}
.map-card-media i {
    font-size: 3rem;
    color: var(--accent-bio);
    opacity: 0.6;
    z-index: 1;
}
.map-card-body { padding: 20px 22px; }
.map-card-body h4 {
    font-family: 'Black Ops One', sans-serif;
    font-size: 1.15rem;
    color: var(--text-bright);
    margin-bottom: 8px;
}
.map-card-body p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.map-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(5, 8, 16, 0.8);
    border: 1px solid var(--accent-bio);
    color: var(--accent-bio);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}

/* Rules list */
.rules-list {
    list-style: none;
    padding: 0;
}
.rules-list li {
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    border-left: 3px solid var(--accent-fire);
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 10px;
    color: var(--text-base);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.rules-list li strong {
    color: var(--accent-fire);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    min-width: 38px;
    padding-top: 1px;
}

/* Mod tag list */
.mod-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    color: var(--text-base);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.88rem;
    margin: 0 6px 8px 0;
    transition: all .15s;
}
.mod-tag:hover {
    border-color: var(--accent-bio);
    color: var(--accent-bio);
}
.mod-tag i { color: var(--accent-fire); }

/* Info grid (server.php) */
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.95rem;
}
.info-row:last-child { border-bottom: 0; }
.info-row .label {
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.info-row .value {
    color: var(--text-bright);
    font-weight: 600;
}

/* Tribe / recruitment cards */
.tribe-card {
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    transition: transform .25s, border-color .25s;
}
.tribe-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-bio);
}
.tribe-card .tribe-name {
    font-family: 'Black Ops One', sans-serif;
    color: var(--text-bright);
    font-size: 1.2rem;
    margin-bottom: 6px;
}
.tribe-card .tribe-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-bio);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
}
.tribe-meta {
    display: flex;
    gap: 18px;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.tribe-meta i { color: var(--accent-fire); margin-right: 6px; }

/* Join page */
.ark-join-panel {
    padding: 32px;
}

.ark-join-count {
    flex: 0 0 auto;
    align-self: flex-start;
    border: 1px solid rgba(62, 226, 200, 0.25);
    border-radius: 999px;
    background: rgba(62, 226, 200, 0.07);
    color: var(--accent-bio);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 5px 9px;
    text-transform: uppercase;
    white-space: nowrap;
}

.ark-join-server-list {
    display: flex;
    flex-direction: column;
    max-height: 480px;
    overflow: auto;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.12);
}

.ark-join-server-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-top: 1px solid var(--border-soft);
}

.ark-join-server-row:first-child {
    border-top: 0;
}

.ark-join-server-main {
    min-width: 0;
}

.ark-join-server-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--text-bright);
    font-weight: 800;
}

.ark-join-server-title > span:nth-child(2) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ark-join-flag {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 177, 71, 0.35);
    border-radius: 999px;
    color: #ffb147;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 7px;
    text-transform: uppercase;
}

.ark-join-search-name {
    margin-top: 5px;
    color: var(--text-bright);
    font-size: 0.82rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: normal;
}

.ark-join-meta,
.ark-join-note {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.hero-server-card .ark-join-ip {
    margin-top: 0;
    padding: 5px 9px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.ark-join-checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ark-join-checklist div {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.ark-join-checklist i {
    color: var(--accent-bio);
    margin-top: 3px;
}

.ark-join-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ark-contact-choice {
    display: flex;
    justify-content: center;
    margin: -4px 0 18px;
}

.ark-discord-contact-card {
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ark-discord-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-fire), var(--accent-bio), transparent);
}

@media (max-width: 575.98px) {
    .ark-join-panel {
        padding: 24px 20px;
    }

    .ark-join-server-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-server-card .ark-join-ip {
        width: 100%;
    }
}

/* Forms */
.form-section {
    padding-bottom: 112px;
}
.ark-form-card {
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 32px;
    height: auto;
    min-height: 0;
    overflow: visible;
    position: relative;
}
.ark-form-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent-fire), transparent);
    border-radius: 12px 12px 0 0;
}
.form-control,
.form-select {
    background: var(--bg-deep);
    border: 1px solid var(--border-strong);
    color: var(--text-bright);
    border-radius: 6px;
    padding: 11px 14px;
}
.form-control:focus,
.form-select:focus {
    background: var(--bg-deep);
    border-color: var(--accent-bio);
    box-shadow: 0 0 0 0.2rem rgba(62, 226, 200, 0.15);
    color: var(--text-bright);
}
.form-control::placeholder { color: var(--text-dim); }
.form-label {
    color: var(--text-base);
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 6px;
}

/* CTA strip */
.cta-strip {
    background: linear-gradient(135deg, rgba(255, 107, 31, 0.08), rgba(62, 226, 200, 0.06));
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-strip::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent-fire), var(--accent-bio));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.4;
    pointer-events: none;
}

/* Footer */
.site-footer {
    background: var(--bg-deep);
    color: var(--text-muted);
    padding: 64px 0 24px;
    border-top: 1px solid var(--border-soft);
    font-size: 0.92rem;
}
.footer-brand {
    font-family: 'Black Ops One', sans-serif;
    font-size: 1.3rem;
    color: var(--text-bright);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 12px;
}
.footer-brand:hover { color: var(--accent-fire); }
.site-footer h5 {
    color: var(--text-bright);
    font-family: 'Black Ops One', sans-serif;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
}
.footer-links {
    list-style: none;
    padding: 0; margin: 0;
}
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent-bio); }
.footer-info { color: var(--text-muted); }
.footer-info code {
    color: var(--accent-bio);
    background: rgba(62, 226, 200, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
}
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 8px;
    background: var(--bg-elev);
    color: var(--text-muted);
    margin-right: 6px;
    transition: all .15s;
    border: 1px solid var(--border-soft);
}
.social-link:hover {
    background: var(--accent-fire);
    color: #fff;
    border-color: var(--accent-fire);
    transform: translateY(-2px);
}
.footer-bottom {
    border-top: 1px solid var(--border-soft);
    padding-top: 18px;
    margin-top: 36px;
    font-size: 0.82rem;
    color: var(--text-dim);
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 26px; right: 26px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--accent-fire);
    color: #fff;
    border: none;
    box-shadow: 0 6px 18px rgba(255, 107, 31, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 100;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* Responsive nav collapsed */
@media (max-width: 991px) {
    .site-navbar .navbar-collapse {
        background: var(--bg-base);
        border-radius: 10px;
        padding: 14px;
        margin-top: 14px;
        border: 1px solid var(--border-soft);
    }
    .btn-connect { margin-top: 8px; }
}

/* ARK compact subpage heroes */
.subpage-hero {
    min-height: 0 !important;
    padding: 88px 0 28px !important;
}
.subpage-hero h1 {
    font-size: clamp(2.25rem, 4.6vw, 3.6rem);
    line-height: 0.95;
    max-width: none !important;
}
.subpage-hero .hero-sub {
    max-width: 780px;
    font-size: clamp(1rem, 1.45vw, 1.22rem);
    margin-bottom: 0 !important;
}
@media (max-width: 767.98px) {
    .subpage-hero {
        min-height: auto !important;
        padding: 88px 0 30px !important;
    }
    .subpage-hero h1 {
        font-size: clamp(2.15rem, 11vw, 3.5rem);
    }
}

/* Subpage heroes must not inherit full-home-hero column heights. */
.subpage-hero .col-lg-10,
.subpage-hero .col-lg-9,
.subpage-hero .row,
.subpage-hero .container {
    min-height: 0 !important;
}
.subpage-hero .col-lg-10,
.subpage-hero .col-lg-9 {
    grid-template-columns: none !important;
    display: block !important;
}

/* ARK visual QA polish 2026-05-21 */
code.mono {
    display: inline-block;
    padding: 0.12em 0.4em;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.64) !important;
    border: 1px solid rgba(125, 252, 235, 0.22);
    color: #a7fff2 !important;
    font-weight: 700;
}
.hero-server-card .status-pill,
.status-pill {
    white-space: nowrap !important;
    width: max-content;
    max-width: 100%;
    min-width: max-content;
    gap: 8px;
}
.hero-server-card .status-pill span,
.hero-server-card .status-pill .status-more,
.status-pill span,
.status-pill .status-more {
    color: inherit !important;
}
@media (min-width: 992px) and (max-width: 1299.98px) {
    .hero:not(.subpage-hero) {
        min-height: auto !important;
        padding-top: 106px !important;
        padding-bottom: 40px !important;
    }
    .hero:not(.subpage-hero) .col-lg-10,
    .hero:not(.subpage-hero) .col-lg-9,
    .hero:not(.subpage-hero) .row,
    .hero:not(.subpage-hero) .container {
        min-height: 0 !important;
    }
}
@media (max-width: 767.98px) {
    .hero:not(.subpage-hero) {
        min-height: auto !important;
        padding: 86px 0 30px !important;
    }
    .hero:not(.subpage-hero) h1 {
        font-size: clamp(2.55rem, 13.4vw, 4.35rem) !important;
        line-height: 0.94 !important;
    }
    .hero:not(.subpage-hero) .hero-sub {
        font-size: 1rem !important;
        line-height: 1.55 !important;
        margin-top: 20px !important;
        margin-bottom: 0 !important;
    }
    .hero:not(.subpage-hero) .hero-cta {
        gap: 12px !important;
        margin-top: 28px !important;
    }
    .hero:not(.subpage-hero) .hero-server-card {
        margin-top: 22px !important;
        padding: 16px !important;
    }
    .subpage-hero {
        padding: 76px 0 26px !important;
    }
    .subpage-hero h1 {
        font-size: clamp(2rem, 10vw, 3rem) !important;
    }
}

/* ARK visual QA final pass 2026-05-21 */
@media (min-width: 992px) and (max-width: 1299.98px) {
    .hero:not(.subpage-hero) {
        min-height: auto !important;
        padding-top: 86px !important;
        padding-bottom: 24px !important;
    }
    .hero:not(.subpage-hero) h1 {
        font-size: clamp(3rem, 5.35vw, 5.6rem) !important;
        line-height: 0.9 !important;
        margin-bottom: 0 !important;
    }
    .hero:not(.subpage-hero) .hero-sub {
        font-size: 1rem !important;
        line-height: 1.48 !important;
        margin-top: 14px !important;
        margin-bottom: 0 !important;
    }
    .hero:not(.subpage-hero) .hero-cta {
        margin-top: 20px !important;
        gap: 12px !important;
    }
    .hero:not(.subpage-hero) .hero-server-card {
        margin-top: 14px !important;
        padding: 16px !important;
    }
    .subpage-hero {
        min-height: auto !important;
        padding: 70px 0 22px !important;
    }
    .subpage-hero h1 {
        font-size: clamp(2rem, 3.4vw, 2.95rem) !important;
        line-height: 0.95 !important;
        margin-bottom: 12px !important;
    }
    .subpage-hero .hero-sub {
        font-size: 1rem !important;
        line-height: 1.45 !important;
        margin-bottom: 0 !important;
    }
}
@media (max-width: 767.98px) {
    .hero:not(.subpage-hero) {
        min-height: auto !important;
        padding: 70px 0 20px !important;
    }
    .hero:not(.subpage-hero) .hero-eyebrow {
        margin-bottom: 10px !important;
        font-size: 0.72rem !important;
        line-height: 1.25 !important;
    }
    .hero:not(.subpage-hero) h1 {
        font-size: clamp(2.25rem, 10.8vw, 3.55rem) !important;
        line-height: 0.9 !important;
        margin-bottom: 0 !important;
    }
    .hero:not(.subpage-hero) .hero-sub {
        font-size: 0.95rem !important;
        line-height: 1.45 !important;
        margin-top: 12px !important;
        margin-bottom: 0 !important;
    }
    .hero:not(.subpage-hero) .hero-cta {
        margin-top: 16px !important;
        gap: 10px !important;
    }
    .hero:not(.subpage-hero) .hero-cta .btn,
    .hero:not(.subpage-hero) .btn {
        padding: 0.78rem 0.95rem !important;
        font-size: 0.86rem !important;
        line-height: 1.15 !important;
    }
    .hero:not(.subpage-hero) .hero-server-card {
        margin-top: 14px !important;
        padding: 12px !important;
    }
    .hero:not(.subpage-hero) .server-ip {
        font-size: 0.82rem !important;
    }
    .subpage-hero {
        padding: 68px 0 22px !important;
    }
    .subpage-hero .hero-eyebrow {
        margin-bottom: 10px !important;
    }
    .subpage-hero h1 {
        font-size: clamp(1.95rem, 9.2vw, 2.85rem) !important;
        line-height: 0.95 !important;
        margin-bottom: 12px !important;
    }
    .subpage-hero .hero-sub {
        font-size: 0.95rem !important;
        line-height: 1.45 !important;
    }
}
/* END ARK visual QA final pass 2026-05-21 */

/* ===== XELORA-FIX-PASS-A (operations box bleed) ===== */
.section[data-section-type="connection"] .feature-card { height: auto; }
