/* ERANETMU — Stage 5 Home Rebuild */
body.page-home-rebuild {
    background: #04090d url('../images/main-wrapper-bg.jpg') center top no-repeat fixed;
    color: #e4efe8;
}
.page-home-rebuild .wrapper_web {
    max-width: 1380px;
    margin: 0 auto;
}
.page-home-rebuild .header_web {
    position: relative;
    min-height: 560px;
    background-image:
        linear-gradient(180deg, rgba(4,7,10,.1) 0%, rgba(3,9,12,.06) 55%, rgba(3,9,12,.88) 100%),
        linear-gradient(90deg, rgba(4,8,10,.72) 0%, rgba(4,8,10,.18) 36%, rgba(4,8,10,.1) 70%, rgba(4,8,10,.46) 100%),
        url('../images/fon-top.jpg');
    background-position: center top;
    background-size: cover;
    overflow: hidden;
    border-bottom: 1px solid rgba(201,160,78,.24);
}
.page-home-rebuild .header_web:after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 148px;
    background: linear-gradient(180deg, rgba(3,9,12,0) 0%, rgba(3,9,12,.92) 100%);
    pointer-events: none;
}
.page-home-rebuild .logo {
    position: absolute;
    left: 58px;
    top: 92px;
    bottom: auto;
    width: 520px;
    z-index: 3;
}
.page-home-rebuild .logo img {
    width: 432px;
    max-width: 100%;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.38));
}
.page-home-rebuild .smog,
.page-home-rebuild .sparks { opacity: .72; }
.page-home-rebuild .home5-hero-copy {
    position: absolute;
    left: 74px;
    top: 290px;
    z-index: 4;
    color: #e9d6a6;
    text-transform: uppercase;
    letter-spacing: .28em;
}
.page-home-rebuild .home5-hero-subtitle { font-size: 16px; margin-bottom: 18px; }
.page-home-rebuild .home5-hero-title {
    font-size: 44px;
    line-height: 1.05;
    letter-spacing: .14em;
    color: #f1ddb0;
    margin-bottom: 10px;
}
.page-home-rebuild .home5-hero-text {
    font-size: 13px;
    letter-spacing: .55em;
    color: rgba(235,242,239,.78);
}
.page-home-rebuild .home5-hero-aside {
    position: absolute;
    right: 74px;
    top: 102px;
    z-index: 4;
    color: rgba(239,245,243,.72);
    font-size: 16px;
    line-height: 1.95;
    letter-spacing: .34em;
    text-transform: uppercase;
    text-align: right;
}
.page-home-rebuild .home5-shell {
    max-width: 1280px;
    margin: -106px auto 0;
    padding: 0 22px 30px;
    position: relative;
    z-index: 5;
}
.page-home-rebuild .home5-main { width: 100%; }
.page-home-rebuild .home5-grid {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
}
.page-home-rebuild .home5-left,
.page-home-rebuild .home5-center,
.page-home-rebuild .home5-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.page-home-rebuild .home5-card,
.page-home-rebuild .home5-slider-card,
.page-home-rebuild .home5-download-card,
.page-home-rebuild .home5-quicklinks-card,
.page-home-rebuild .home5-server-card {
    background: linear-gradient(180deg, rgba(7,18,22,.96) 0%, rgba(4,12,16,.96) 100%);
    border: 1px solid rgba(196,158,78,.22);
    box-shadow: 0 20px 42px rgba(0,0,0,.36), inset 0 0 0 1px rgba(20,139,118,.1);
    border-radius: 8px;
}
.page-home-rebuild .home5-download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 118px;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(170,124,36,.92) 0%, rgba(72,50,16,.92) 100%);
    color: #f5e5bb;
}
.page-home-rebuild .home5-card-icon { font-size: 38px; line-height: 1; }
.page-home-rebuild .home5-download-title { font-size: 23px; font-weight: 800; letter-spacing: .06em; }
.page-home-rebuild .home5-download-sub { font-size: 14px; color: rgba(255,244,220,.78); }
.page-home-rebuild .home5-quicklinks-card {
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.page-home-rebuild .home5-quicklink-item {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #eef4f1;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(8,20,25,.92) 0%, rgba(4,13,17,.92) 100%);
    border: 1px solid rgba(196,158,78,.14);
    transition: .2s ease;
}
.page-home-rebuild .home5-quicklink-item:hover { transform: translateY(-2px); border-color: rgba(33,212,176,.38); }
.page-home-rebuild .home5-quicklink-icon {
    width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 30% 30%, #f7dfaa 0%, #b58a31 55%, #513512 100%);
    color: #0e171b; font-weight: 800; font-size: 22px;
    box-shadow: 0 0 0 2px rgba(10,20,24,.95);
}
.page-home-rebuild .home5-card { padding: 16px; }
.page-home-rebuild .home5-card-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid rgba(196,158,78,.18);
}
.page-home-rebuild .home5-card-head-spread { margin-bottom: 18px; }
.page-home-rebuild .home5-card-head h3 {
    margin: 0; font-size: 19px; letter-spacing: .05em; color: #f0d58f;
}
.page-home-rebuild .home5-card-head p,
.page-home-rebuild .home5-card-head div p { margin: 5px 0 0; font-size: 13px; color: rgba(220,234,227,.65); }
.page-home-rebuild .home5-table-wrap { min-height: 420px; }
.page-home-rebuild #top_players .tableBlock,
.page-home-rebuild #top_players .tableBlock-body,
.page-home-rebuild #top_players .tableBlock-thead { width: 100%; }
.page-home-rebuild #top_players .tableBlock-thead {
    display: grid; grid-template-columns: 48px 1fr 56px 56px;
    padding: 12px 14px;
    border-radius: 6px;
    background: rgba(12,33,36,.88);
    margin-bottom: 10px;
}
.page-home-rebuild #top_players .tableBlock-thead .tableBlock-td {
    color: #43e5ba; font-size: 13px; font-weight: 700;
}
.page-home-rebuild #top_players .tableBlock-tr {
    display: grid; grid-template-columns: 48px 1fr 56px 56px;
    align-items: center; gap: 4px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.page-home-rebuild #top_players .tableBlock-tr .tableBlock-td { font-size: 14px; }
.page-home-rebuild #top_players .tableBlock-tr .tableBlock-td:nth-child(1),
.page-home-rebuild #top_players .tableBlock-tr .tableBlock-td:nth-child(3),
.page-home-rebuild #top_players .tableBlock-tr .tableBlock-td:nth-child(4) { text-align: center; }
.page-home-rebuild .home5-bottom-action { margin-top: 14px; text-align: center; }
.page-home-rebuild .home5-server-chip {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 190px; padding: 11px 18px; border-radius: 7px;
    color: #d8fff2; background: linear-gradient(180deg, #0f8c72 0%, #0b5f4d 100%);
    text-decoration: none;
}
.page-home-rebuild .home5-slider-card { padding: 0; overflow: hidden; }
.page-home-rebuild .home5-swiper { height: 380px; }
.page-home-rebuild .home5-swiper .swiper-slide {
    background-size: cover; background-position: center center; position: relative;
}
.page-home-rebuild .home5-swiper .swiper-slide:after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(6,12,18,.28) 0%, rgba(6,12,18,.12) 48%, rgba(6,12,18,.34) 100%);
}
.page-home-rebuild .home5-slide-content {
    position: relative; z-index: 2; padding: 34px 34px 32px;
    display: flex; flex-direction: column; align-items: flex-start;
    max-width: 68%;
}
.page-home-rebuild .home5-slide-eyebrow { font-size: 26px; font-weight: 800; color: #fbf4ef; letter-spacing: .03em; }
.page-home-rebuild .home5-slide-title {
    font-size: 66px; line-height: .94; font-weight: 900;
    color: #ffc756; text-shadow: 0 6px 18px rgba(0,0,0,.32);
    margin: 4px 0 16px;
}
.page-home-rebuild .home5-slide-text {
    font-size: 18px; line-height: 1.45; font-weight: 700; color: #fffaf1;
    text-shadow: 0 3px 12px rgba(0,0,0,.32);
}
.page-home-rebuild .home5-slide-more {
    margin-top: 24px; padding: 12px 26px; border-radius: 8px;
    text-decoration: none; color: #edfff7; font-weight: 700;
    background: linear-gradient(180deg, #16a987 0%, #0d6f59 100%);
    box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.page-home-rebuild .home5-swiper .swiper-button-next,
.page-home-rebuild .home5-swiper .swiper-button-prev {
    width: 42px; height: 42px; border-radius: 6px; top: 50%; margin-top: -21px;
    background: rgba(0,0,0,.48); color: #f4c85d;
}
.page-home-rebuild .home5-swiper .swiper-button-next:after,
.page-home-rebuild .home5-swiper .swiper-button-prev:after { font-size: 16px; font-weight: 900; }
.page-home-rebuild .home5-swiper .swiper-pagination-bullet {
    background: rgba(255,255,255,.45); opacity: 1;
}
.page-home-rebuild .home5-swiper .swiper-pagination-bullet-active { background: #27f1bd; }
.page-home-rebuild .home5-news-card { min-height: 476px; }
.page-home-rebuild .home5-head-title-wrap { display: flex; align-items: center; gap: 14px; }
.page-home-rebuild .home5-head-icon { color: #f5c766; font-size: 22px; }
.page-home-rebuild .home5-view-all { color: #42edc0; text-decoration: none; font-weight: 700; }
.page-home-rebuild .home5-news-list { display: flex; flex-direction: column; gap: 18px; }
.page-home-rebuild .home5-news-item {
    display: grid; grid-template-columns: 124px minmax(0,1fr); gap: 16px;
    padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.page-home-rebuild .home5-news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.page-home-rebuild .home5-news-thumb {
    width: 124px; height: 124px; border-radius: 6px; overflow: hidden;
    border: 1px solid rgba(196,158,78,.22);
    display: block;
}
.page-home-rebuild .home5-news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-home-rebuild .home5-news-body { min-width: 0; }
.page-home-rebuild .home5-news-meta-row {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 10px;
}
.page-home-rebuild .home5-news-title-wrap { display: flex; gap: 10px; align-items: center; min-width: 0; }
.page-home-rebuild .home5-news-spot { font-size: 18px; line-height: 1; }
.page-home-rebuild .home5-news-title {
    color: #f0d58f; text-decoration: none; font-size: 18px; font-weight: 800;
}
.page-home-rebuild .home5-news-date { color: rgba(228,238,234,.72); font-size: 13px; white-space: nowrap; }
.page-home-rebuild .home5-news-excerpt {
    font-size: 15px; line-height: 1.72; color: #d3dfda;
}
.page-home-rebuild .home5-empty-note { padding: 16px 0 4px; color: #d2ddd8; }
.page-home-rebuild .home5-server-card { padding: 18px 18px 16px; }
.page-home-rebuild .home5-server-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.page-home-rebuild .home5-server-title { font-size: 17px; font-weight: 800; color: #eef7f2; }
.page-home-rebuild .home5-server-dot { width: 15px; height: 15px; border-radius: 50%; background: #28e8b7; box-shadow: 0 0 18px rgba(40,232,183,.7); }
.page-home-rebuild .home5-server-progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 14px; }
.page-home-rebuild .home5-server-progress span { display: block; height: 100%; background: linear-gradient(90deg, #1ce0b3 0%, #1fb06d 100%); border-radius: 999px; }
.page-home-rebuild .home5-server-online { font-size: 16px; color: #ecf6f1; }
.page-home-rebuild .home5-server-online strong { color: #35f3c1; }
.page-home-rebuild .home5-account-stats { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.page-home-rebuild .home5-account-stat {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05);
}
.page-home-rebuild .home5-account-stat span { font-size: 15px; color: #f0f6f2; }
.page-home-rebuild .home5-account-stat strong { font-size: 17px; color: #30f1bf; }
.page-home-rebuild .home5-account-links { list-style: none; margin: 0; padding: 0; }
.page-home-rebuild .home5-account-links li + li { margin-top: 6px; }
.page-home-rebuild .home5-account-links a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 14px; border-radius: 6px; text-decoration: none;
    color: #f4ddb0; background: rgba(5,13,17,.84); border: 1px solid rgba(196,158,78,.12);
}
.page-home-rebuild .home5-account-links a:after { content: '›'; color: rgba(236,247,242,.78); font-size: 18px; }
.page-home-rebuild .home5-login-form { display: flex; flex-direction: column; gap: 12px; }
.page-home-rebuild .home5-login-form input {
    width: 100%; height: 44px; border-radius: 6px; border: 1px solid rgba(196,158,78,.14);
    background: rgba(5,12,16,.84); color: #edf5f1; padding: 0 14px;
}
.page-home-rebuild .home5-primary-btn {
    height: 46px; border: 0; border-radius: 6px; cursor: pointer;
    background: linear-gradient(180deg, #19b992 0%, #0d755f 100%);
    color: #effff9; font-weight: 800; letter-spacing: .05em;
}
.page-home-rebuild .home5-login-links { text-align: center; font-size: 13px; color: rgba(223,235,229,.74); }
.page-home-rebuild .home5-login-links a { color: #43edc0; text-decoration: none; }
.page-home-rebuild .home5-events-list .tableBlock-tr,
.page-home-rebuild .home5-events-list .tableBlock-body .tableBlock-tr {
    display: flex; justify-content: space-between; align-items: center;
    padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.05);
}
.page-home-rebuild .home5-events-list .tableBlock-td { font-size: 15px; }
.page-home-rebuild .home5-events-list .tableBlock-td:last-child { color: #f3e0b5; }
.page-home-rebuild .home5-events-art {
    margin-top: 16px; height: 156px; border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(5,10,15,.08) 0%, rgba(5,10,15,.45) 100%),
        url('../images/fon-top-1.jpg') center center / cover no-repeat;
    border: 1px solid rgba(196,158,78,.16);
}
.page-home-rebuild .home5-footer {
    margin-top: 24px; padding: 22px 24px 30px; border-top: 1px solid rgba(196,158,78,.18);
}
.page-home-rebuild .home5-footer-inner {
    max-width: 1280px; margin: 0 auto; display: grid;
    grid-template-columns: 1fr 1fr 1fr; gap: 18px; align-items: center;
    color: rgba(228,238,234,.82);
}
.page-home-rebuild .home5-footer-left strong { font-size: 18px; color: #f0e3c2; margin-right: 12px; }
.page-home-rebuild .home5-footer-left span { color: rgba(221,232,226,.68); }
.page-home-rebuild .home5-footer-center { text-align: center; letter-spacing: .3em; text-transform: uppercase; color: rgba(223,236,229,.66); }
.page-home-rebuild .home5-footer-right { text-align: right; }

/* Menu polish */
.page-home-rebuild .topPanel { background: rgba(3,8,12,.92); backdrop-filter: blur(6px); }
.page-home-rebuild .topPanel-wrapper { max-width: 1380px; }
.page-home-rebuild .menu > li > a { color: #f4e2b8; }
.page-home-rebuild .menu > li > a:hover { color: #36efc0; }
.page-home-rebuild .menu-icon { color: #efc56a; }

@media (max-width: 1200px) {
    .page-home-rebuild .home5-grid { grid-template-columns: 250px minmax(0, 1fr) 290px; }
    .page-home-rebuild .home5-slide-title { font-size: 56px; }
    .page-home-rebuild .home5-slide-content { max-width: 78%; }
}
@media (max-width: 1024px) {
    .page-home-rebuild .logo { left: 34px; width: 420px; }
    .page-home-rebuild .logo img { width: 390px; }
    .page-home-rebuild .home5-hero-copy { left: 46px; top: 270px; }
    .page-home-rebuild .home5-hero-title { font-size: 36px; }
    .page-home-rebuild .home5-hero-aside { display: none; }
    .page-home-rebuild .home5-grid { grid-template-columns: 1fr; }
    .page-home-rebuild .home5-shell { margin-top: -72px; }
    .page-home-rebuild .home5-footer-inner { grid-template-columns: 1fr; text-align: center; }
    .page-home-rebuild .home5-footer-left,
    .page-home-rebuild .home5-footer-right { text-align: center; }
}
@media (max-width: 700px) {
    .page-home-rebuild .header_web { min-height: 500px; }
    .page-home-rebuild .logo { position: relative; left: auto; top: auto; width: 100%; padding: 74px 20px 0; text-align: center; }
    .page-home-rebuild .logo img { width: min(360px, 82vw); }
    .page-home-rebuild .home5-hero-copy {
        position: relative; left: auto; top: auto; padding: 18px 22px 0; text-align: center; letter-spacing: .22em;
    }
    .page-home-rebuild .home5-hero-subtitle { font-size: 14px; }
    .page-home-rebuild .home5-hero-title { font-size: 24px; }
    .page-home-rebuild .home5-hero-text { font-size: 11px; letter-spacing: .24em; }
    .page-home-rebuild .home5-shell { padding: 0 12px 22px; margin-top: -42px; }
    .page-home-rebuild .home5-news-item { grid-template-columns: 1fr; }
    .page-home-rebuild .home5-news-thumb { width: 100%; height: 180px; }
    .page-home-rebuild .home5-swiper { height: 310px; }
    .page-home-rebuild .home5-slide-content { max-width: 100%; padding: 24px 22px; }
    .page-home-rebuild .home5-slide-title { font-size: 40px; }
    .page-home-rebuild .home5-slide-text { font-size: 15px; }
}

/* ============================================================
   Stage 5B — Stabilize & Match Mockup
   ============================================================ */

/* The legacy theme gives every .swiper-container negative margins and +70px width.
   Home rebuild owns its own slider geometry. */
.page-home-rebuild .home5-slider-card {
    overflow: hidden;
}
.page-home-rebuild .home5-swiper {
    width: 100% !important;
    height: 380px;
    margin: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
}
.page-home-rebuild .home5-swiper .swiper-wrapper {
    width: 100%;
    height: 100%;
}
.page-home-rebuild .home5-swiper .swiper-slide {
    width: 100% !important;
    height: 380px;
    margin: 0 !important;
}
.page-home-rebuild .home5-swiper.swiper-container-fade .swiper-slide {
    pointer-events: none;
}
.page-home-rebuild .home5-swiper.swiper-container-fade .swiper-slide-active {
    pointer-events: auto;
}
.page-home-rebuild .home5-swiper.swiper-container-horizontal > .swiper-pagination-bullets {
    width: 100%;
    height: auto;
    bottom: 14px;
    left: 0;
    background: transparent;
}

/* Sidebar ranking uses legacy width utility classes. Restore a clean 3-column layout. */
.page-home-rebuild .home5-topplayers-card #top_players .tableBlock-thead,
.page-home-rebuild .home5-topplayers-card #top_players .tableBlock-body {
    width: 100%;
}
.page-home-rebuild .home5-topplayers-card #top_players .tableBlock-tr {
    display: flex !important;
    align-items: center;
    width: 100%;
    margin: 0 !important;
    padding: 0;
}
.page-home-rebuild .home5-topplayers-card #top_players .tableBlock-thead .tableBlock-tr {
    padding: 0;
}
.page-home-rebuild .home5-topplayers-card #top_players .tableBlock-td {
    float: none !important;
    box-sizing: border-box;
    padding: 10px 6px !important;
    min-width: 0;
}
.page-home-rebuild .home5-topplayers-card #top_players .tableBlock-td.td-25:first-child {
    width: 18% !important;
    flex: 0 0 18%;
    text-align: center;
}
.page-home-rebuild .home5-topplayers-card #top_players .tableBlock-td.td-50 {
    width: 52% !important;
    flex: 0 0 52%;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.page-home-rebuild .home5-topplayers-card #top_players .tableBlock-td.td-25:last-child {
    width: 30% !important;
    flex: 0 0 30%;
    text-align: right;
    white-space: nowrap;
}
.page-home-rebuild .home5-topplayers-card #top_players .plvl {
    display: inline;
    margin-left: 3px;
    color: #43e5ba;
    font-size: .82em;
    vertical-align: super;
}
.page-home-rebuild .home5-table-wrap {
    min-height: 0;
}

/* News: real card proportions, safe thumbnail fallback and readable excerpt. */
.page-home-rebuild .home5-news-card {
    min-height: 0;
}
.page-home-rebuild .home5-news-item {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.page-home-rebuild .home5-news-thumb {
    width: 132px;
    height: 108px;
    background: #071015;
}
.page-home-rebuild .home5-news-meta-row {
    margin-bottom: 8px;
}
.page-home-rebuild .home5-news-title-wrap {
    min-width: 0;
}
.page-home-rebuild .home5-news-title {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.page-home-rebuild .home5-news-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd8d2;
}
.page-home-rebuild .home5-news-readmore {
    display: inline-block;
    margin-top: 10px;
    color: #42edc0;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}
.page-home-rebuild .home5-news-readmore:hover {
    color: #f0d58f;
}

/* Give right-column cards slightly more presence, closer to the approved mockup. */
.page-home-rebuild .home5-right .home5-card,
.page-home-rebuild .home5-right .home5-server-card {
    border-color: rgba(196,158,78,.28);
    box-shadow: 0 18px 36px rgba(0,0,0,.34), inset 0 0 0 1px rgba(34,205,164,.08);
}
.page-home-rebuild .home5-account-card {
    padding: 18px;
}
.page-home-rebuild .home5-events-card {
    padding-bottom: 14px;
}

@media (max-width: 700px) {
    .page-home-rebuild .home5-swiper,
    .page-home-rebuild .home5-swiper .swiper-slide {
        height: 310px;
    }
    .page-home-rebuild .home5-news-item {
        grid-template-columns: 1fr;
    }
    .page-home-rebuild .home5-news-thumb {
        width: 100%;
        height: 180px;
    }
}

/* ============================================================
   Stage 5C — Fit & Polish
   Fixes only visible fit/overflow issues from the live 5B build.
   ============================================================ */

/* TOP PLAYERS: use the real sidebar EJS structure (3 columns). */
.page-home-rebuild .home5-topplayers-card #top_players .tableBlock-thead {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 0 10px !important;
    background: transparent !important;
    border: 0 !important;
}
.page-home-rebuild .home5-topplayers-card #top_players .tableBlock-body {
    display: block !important;
    width: 100% !important;
}
.page-home-rebuild .home5-topplayers-card #top_players .tableBlock-thead .tableBlock-tr,
.page-home-rebuild .home5-topplayers-card #top_players .tableBlock-body .tableBlock-tr {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) 74px !important;
    align-items: center !important;
    column-gap: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.page-home-rebuild .home5-topplayers-card #top_players .tableBlock-thead .tableBlock-tr {
    padding: 10px 10px !important;
    border-radius: 6px !important;
    background: rgba(12,33,36,.88) !important;
}
.page-home-rebuild .home5-topplayers-card #top_players .tableBlock-body .tableBlock-tr {
    padding: 10px 10px !important;
    border-bottom: 1px solid rgba(255,255,255,.05) !important;
}
.page-home-rebuild .home5-topplayers-card #top_players .tableBlock-td,
.page-home-rebuild .home5-topplayers-card #top_players .tableBlock-td.td-25,
.page-home-rebuild .home5-topplayers-card #top_players .tableBlock-td.td-50 {
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    float: none !important;
    flex: none !important;
    box-sizing: border-box !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
}
.page-home-rebuild .home5-topplayers-card #top_players .tableBlock-td:nth-child(1) {
    text-align: center !important;
}
.page-home-rebuild .home5-topplayers-card #top_players .tableBlock-td:nth-child(2) {
    text-align: left !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}
.page-home-rebuild .home5-topplayers-card #top_players .tableBlock-td:nth-child(3) {
    text-align: right !important;
    white-space: nowrap !important;
}
.page-home-rebuild .home5-topplayers-card #top_players .tableBlock-thead .tableBlock-td {
    color: #43e5ba !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: none !important;
}
.page-home-rebuild .home5-topplayers-card #top_players .plvl {
    display: inline !important;
    margin-left: 2px !important;
    vertical-align: baseline !important;
    font-size: 10px !important;
    line-height: 1 !important;
}

/* SLIDER: the source artwork already contains its own typography.
   Keep the artwork clean and retain only a single CTA. */
.page-home-rebuild .home5-slide-content {
    position: absolute !important;
    inset: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    pointer-events: none;
}
.page-home-rebuild .home5-slide-eyebrow,
.page-home-rebuild .home5-slide-title,
.page-home-rebuild .home5-slide-text {
    display: none !important;
}
.page-home-rebuild .home5-slide-more {
    position: absolute !important;
    right: 24px !important;
    bottom: 24px !important;
    z-index: 3 !important;
    margin: 0 !important;
    padding: 10px 22px !important;
    min-width: 88px !important;
    text-align: center !important;
    pointer-events: auto;
}
.page-home-rebuild .home5-swiper .swiper-slide:after {
    background: linear-gradient(90deg, rgba(6,12,18,.08) 0%, rgba(6,12,18,.02) 55%, rgba(6,12,18,.20) 100%) !important;
}

/* NEWS: constrain every text surface to the card. */
.page-home-rebuild .home5-news-item {
    overflow: hidden;
}
.page-home-rebuild .home5-news-body {
    min-width: 0 !important;
    overflow: hidden !important;
}
.page-home-rebuild .home5-news-meta-row {
    align-items: center !important;
    min-width: 0 !important;
}
.page-home-rebuild .home5-news-title-wrap {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
.page-home-rebuild .home5-news-title {
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.page-home-rebuild .home5-news-date {
    flex: 0 0 auto !important;
    font-size: 12px !important;
}
.page-home-rebuild .home5-news-excerpt {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 4 !important;
    overflow: hidden !important;
    max-height: 6.4em !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}
.page-home-rebuild .home5-news-readmore {
    margin-top: 8px !important;
}

/* Small final fit cleanup. */
.page-home-rebuild .home5-card,
.page-home-rebuild .home5-slider-card,
.page-home-rebuild .home5-download-card,
.page-home-rebuild .home5-quicklinks-card,
.page-home-rebuild .home5-server-card {
    box-sizing: border-box;
}
.page-home-rebuild .home5-left,
.page-home-rebuild .home5-center,
.page-home-rebuild .home5-right {
    min-width: 0;
}
.page-home-rebuild .home5-account-card,
.page-home-rebuild .home5-events-card,
.page-home-rebuild .home5-topplayers-card {
    overflow: hidden;
}

@media (max-width: 700px) {
    .page-home-rebuild .home5-slide-more {
        right: 16px !important;
        bottom: 16px !important;
    }
}

/* ============================================================
   Stage 5D — Clean Fit
   Live polish from screenshot: thumbnail containment, top-row
   balance and simplified Events card.
   ============================================================ */

/* Top row: Download and server status should finish at the same visual height. */
.page-home-rebuild .home5-download-card,
.page-home-rebuild .home5-server-card {
    height: 108px !important;
    min-height: 108px !important;
    box-sizing: border-box !important;
}
.page-home-rebuild .home5-server-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 16px 18px !important;
}
.page-home-rebuild .home5-server-top {
    margin-bottom: 10px !important;
}
.page-home-rebuild .home5-server-progress {
    margin-bottom: 10px !important;
}

/* News thumbnail: never leak alt text or oversized artwork outside the frame. */
.page-home-rebuild .home5-news-thumb {
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(180deg, rgba(7,17,21,.96), rgba(3,10,13,.98)) !important;
    padding: 0 !important;
}
.page-home-rebuild .home5-news-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border: 0 !important;
}
.page-home-rebuild .home5-news-thumb-logo {
    padding: 12px !important;
}
.page-home-rebuild .home5-news-thumb-logo img {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,.35));
}

/* Give the news block a cleaner frame and keep all content inside it. */
.page-home-rebuild .home5-news-list,
.page-home-rebuild .home5-news-item,
.page-home-rebuild .home5-news-body {
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.page-home-rebuild .home5-news-item {
    grid-template-columns: 118px minmax(0, 1fr) !important;
    gap: 16px !important;
}
.page-home-rebuild .home5-news-thumb {
    width: 118px !important;
    height: 104px !important;
}
.page-home-rebuild .home5-news-excerpt {
    -webkit-line-clamp: 3 !important;
    max-height: 4.8em !important;
}

/* Events: cleaner card, no decorative screenshot at the bottom. */
.page-home-rebuild .home5-events-card {
    padding-bottom: 18px !important;
}
.page-home-rebuild .home5-events-list {
    padding-bottom: 2px;
}
.page-home-rebuild .home5-events-list .tableBlock-tr,
.page-home-rebuild .home5-events-list .tableBlock-body .tableBlock-tr {
    min-height: 48px;
    padding: 12px 4px !important;
}
.page-home-rebuild .home5-events-list .tableBlock-td:first-child {
    font-weight: 600;
    color: #edf5f1;
}
.page-home-rebuild .home5-events-list .tableBlock-td:last-child {
    color: #f0d58f !important;
    font-variant-numeric: tabular-nums;
}
.page-home-rebuild .home5-events-art {
    display: none !important;
}

@media (max-width: 700px) {
    .page-home-rebuild .home5-download-card,
    .page-home-rebuild .home5-server-card {
        height: auto !important;
        min-height: 104px !important;
    }
    .page-home-rebuild .home5-news-item {
        grid-template-columns: 1fr !important;
    }
    .page-home-rebuild .home5-news-thumb {
        width: 100% !important;
        height: 180px !important;
    }
}

/* ============================================================
   Stage 5E — Hero alignment + clean divider
   - Narrow the hero/logo composition so it visually fits between
     the Download and Server cards.
   - Remove the stray horizontal divider peeking under the first row.
   ============================================================ */

/* Remove the thin gold line that was sticking out under Download/Server. */
.page-home-rebuild .header_web {
    border-bottom: 0 !important;
}

/* Slightly raise the shell so the first-row cards visually sit cleaner on the hero. */
.page-home-rebuild .home5-shell {
    margin-top: -98px !important;
}

/* Narrow and align the hero branding block. */
.page-home-rebuild .logo {
    width: 430px !important;
    left: 92px !important;
    top: 86px !important;
}

.page-home-rebuild .logo img {
    width: 400px !important;
}

.page-home-rebuild .home5-hero-copy {
    left: 92px !important;
    top: 236px !important;
    max-width: 760px !important;
}

.page-home-rebuild .home5-hero-subtitle {
    font-size: 15px !important;
    margin-bottom: 16px !important;
}

.page-home-rebuild .home5-hero-title {
    font-size: 38px !important;
    letter-spacing: .11em !important;
    max-width: 820px !important;
}

.page-home-rebuild .home5-hero-text {
    font-size: 12px !important;
    letter-spacing: .42em !important;
}

.page-home-rebuild .home5-hero-aside {
    top: 74px !important;
    right: 82px !important;
}

/* Make the first row feel more locked-in visually. */
.page-home-rebuild .home5-download-card,
.page-home-rebuild .home5-server-card,
.page-home-rebuild .home5-slider-card {
    position: relative;
    z-index: 3;
}

/* Keep desktop cards on the same visual baseline. */
.page-home-rebuild .home5-download-card,
.page-home-rebuild .home5-server-card {
    min-height: 106px !important;
}

/* News image note: each news item can use its own image through article icon.
   If no icon is available, the fallback Eranet logo is shown. */

@media (max-width: 1024px) {
    .page-home-rebuild .logo {
        width: 380px !important;
        left: 34px !important;
        top: 88px !important;
    }

    .page-home-rebuild .logo img {
        width: 350px !important;
    }

    .page-home-rebuild .home5-hero-copy {
        left: 46px !important;
        top: 246px !important;
        max-width: 620px !important;
    }

    .page-home-rebuild .home5-hero-title {
        font-size: 32px !important;
    }
}

/* ============================================================
   Stage 5G — Premium polish
   - remove the visible bright/dark horizontal band in hero
   - align top nav closer to the content grid width
   - add premium heading icons for Top Players / Events
   ============================================================ */

/* Kill the horizontal overlay band from the previous clamp attempt. */
.page-home-rebuild .header_web::before {
    content: none !important;
    display: none !important;
}

/* Keep glow more contained without a visible rectangular overlay. */
.page-home-rebuild .smog {
    bottom: -150px !important;
    width: 1020px !important;
    height: 320px !important;
    margin-left: -510px !important;
    opacity: .42 !important;
    clip-path: inset(0 90px 0 90px) !important;
}

.page-home-rebuild .sparks {
    width: 860px !important;
    opacity: .34 !important;
    clip-path: inset(0 70px 0 70px) !important;
}

.page-home-rebuild .sparks_1 {
    margin-left: -780px !important;
}

.page-home-rebuild .sparks_2 {
    margin-left: -80px !important;
}

/* Align the top menu visually with the first content row. */
.page-home-rebuild .topPanel-wrapper {
    max-width: 1140px !important;
    padding: 0 14px !important;
}

.page-home-rebuild .topPanel {
    border-bottom: 1px solid rgba(196,158,78,.16) !important;
    box-shadow: 0 10px 26px rgba(0,0,0,.18);
}

.page-home-rebuild .menu > li > a {
    padding-left: 16px !important;
    padding-right: 16px !important;
    letter-spacing: .03em;
}

/* Premium small heading icons. */
.page-home-rebuild .home5-topplayers-card .home5-card-head h3,
.page-home-rebuild .home5-events-card .home5-card-head h3 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.page-home-rebuild .home5-topplayers-card .home5-card-head h3::before,
.page-home-rebuild .home5-events-card .home5-card-head h3::before {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(161,122,41,.95) 0%, rgba(83,58,18,.95) 100%);
    color: #fff2cb;
    box-shadow: inset 0 0 0 1px rgba(255,233,186,.16), 0 8px 18px rgba(0,0,0,.18);
    font-size: 16px;
    line-height: 1;
}

.page-home-rebuild .home5-topplayers-card .home5-card-head h3::before {
    content: '🏆';
}

.page-home-rebuild .home5-events-card .home5-card-head h3::before {
    content: '📅';
}

/* Tiny premium touch for the server chip and action button. */
.page-home-rebuild .home5-primary-btn,
.page-home-rebuild .home5-slide-more,
.page-home-rebuild .home5-server-chip {
    box-shadow: 0 10px 24px rgba(6,113,91,.18), inset 0 0 0 1px rgba(221,255,245,.08);
}

@media (max-width: 1024px) {
    .page-home-rebuild .smog,
    .page-home-rebuild .sparks {
        clip-path: none !important;
    }

    .page-home-rebuild .topPanel-wrapper {
        max-width: 100% !important;
        padding: 0 10px !important;
    }
}

/* ============================================================
   Stage 5H — Reflow and premium layout pass
   ============================================================ */

/* Align nav with the content width again. */
.page-home-rebuild .topPanel-wrapper {
    max-width: 1280px !important;
    padding: 0 22px !important;
}

/* Remove the right-side slogan completely. */
.page-home-rebuild .home5-hero-aside {
    display: none !important;
}

/* Lower the hero copy so it sits closer to the cards. */
.page-home-rebuild .home5-hero-copy {
    top: 300px !important;
}

/* Tidy the hero fog/glow and suppress small left-side line artifacts. */
.page-home-rebuild .smog {
    bottom: -165px !important;
    opacity: .36 !important;
    clip-path: inset(0 120px 0 120px) !important;
}
.page-home-rebuild .sparks {
    opacity: .28 !important;
    clip-path: inset(0 90px 0 90px) !important;
}
.page-home-rebuild .header_web::before,
.page-home-rebuild .header_web::after {
    box-shadow: none !important;
}

/* New desktop reflow:
   left column = download + quick links,
   middle = slider,
   right = server + account + top players + events,
   news spans left + center beneath quick links/slider. */
.page-home-rebuild .home5-grid-reflow {
    display: grid !important;
    grid-template-columns: 260px minmax(0, 1fr) 290px !important;
    grid-template-areas:
        "download slider server"
        "quicklinks slider account"
        "news news topplayers"
        "news news events";
    gap: 16px !important;
    align-items: start !important;
}

.page-home-rebuild .home5-grid-download { grid-area: download; }
.page-home-rebuild .home5-grid-quicklinks { grid-area: quicklinks; }
.page-home-rebuild .home5-grid-slider { grid-area: slider; }
.page-home-rebuild .home5-grid-server { grid-area: server; }
.page-home-rebuild .home5-grid-account { grid-area: account; }
.page-home-rebuild .home5-grid-topplayers { grid-area: topplayers; }
.page-home-rebuild .home5-grid-events { grid-area: events; }
.page-home-rebuild .home5-grid-news { grid-area: news; }

.page-home-rebuild .home5-download-card,
.page-home-rebuild .home5-server-card {
    min-height: 96px !important;
}
.page-home-rebuild .home5-quicklinks-card {
    min-height: 218px !important;
}
.page-home-rebuild .home5-slider-card {
    align-self: stretch;
}
.page-home-rebuild .home5-swiper {
    height: 314px !important;
}

/* Wider news section across left+center. */
.page-home-rebuild .home5-news-card {
    min-height: auto !important;
}
.page-home-rebuild .home5-news-item {
    grid-template-columns: 126px minmax(0,1fr) !important;
    align-items: start;
}
.page-home-rebuild .home5-news-thumb {
    width: 126px !important;
    height: 110px !important;
}
.page-home-rebuild .home5-news-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.page-home-rebuild .home5-news-excerpt {
    -webkit-line-clamp: 4 !important;
    max-height: 6.4em !important;
    margin-bottom: 10px;
}
.page-home-rebuild .home5-news-readmore {
    color: #42edc0;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}
.page-home-rebuild .home5-news-readmore:hover {
    color: #8ff8da;
}

/* Remove boxed background around trophy/calendar. */
.page-home-rebuild .home5-topplayers-card .home5-card-head h3::before,
.page-home-rebuild .home5-events-card .home5-card-head h3::before {
    width: auto !important;
    height: auto !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: #efc56a !important;
    font-size: 18px !important;
}

/* Right-column cards spacing/weight. */
.page-home-rebuild .home5-grid-account,
.page-home-rebuild .home5-grid-topplayers,
.page-home-rebuild .home5-grid-events {
    min-width: 0;
}
.page-home-rebuild .home5-grid-topplayers .home5-table-wrap {
    min-height: 390px !important;
}

/* Mobile/tablet fallback to single-column stack. */
@media (max-width: 1024px) {
    .page-home-rebuild .home5-hero-copy {
        top: 260px !important;
    }
    .page-home-rebuild .home5-grid-reflow {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "download"
            "quicklinks"
            "slider"
            "server"
            "account"
            "topplayers"
            "events"
            "news";
    }
    .page-home-rebuild .topPanel-wrapper {
        max-width: 100% !important;
        padding: 0 10px !important;
    }
}

/* ============================================================
   Stage 5I — Unified portal frame + hero balance
   ============================================================ */

/* Push the hero branding substantially lower. */
.page-home-rebuild .logo {
    top: 154px !important;
}

.page-home-rebuild .home5-hero-copy {
    top: 366px !important;
}

/* Give the hero a little more vertical room so the lowered copy
   does not feel cramped against the content. */
.page-home-rebuild .header_web {
    min-height: 640px !important;
}

/* Content starts slightly later because hero branding is lower. */
.page-home-rebuild .home5-shell {
    margin-top: -88px !important;
}

/* One shared shell around the whole homepage content area. */
.page-home-rebuild .home5-main {
    position: relative;
    padding: 14px;
    border-radius: 15px;
    background:
        radial-gradient(circle at 50% 0%, rgba(26,95,78,.10), transparent 40%),
        linear-gradient(180deg, rgba(4,13,17,.88) 0%, rgba(3,9,12,.94) 100%);
    border: 1px solid rgba(198,160,82,.18);
    box-shadow:
        0 26px 58px rgba(0,0,0,.34),
        inset 0 1px 0 rgba(255,255,255,.025),
        inset 0 0 70px rgba(0,0,0,.20);
}

.page-home-rebuild .home5-main::before {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(43,178,143,.07);
    border-radius: 11px;
    pointer-events: none;
}

/* Cards should now feel like modules inside one shared portal frame,
   not separate floating boxes. */
.page-home-rebuild .home5-card,
.page-home-rebuild .home5-slider-card,
.page-home-rebuild .home5-download-card,
.page-home-rebuild .home5-quicklinks-card,
.page-home-rebuild .home5-server-card {
    box-shadow:
        0 8px 18px rgba(0,0,0,.18),
        inset 0 0 0 1px rgba(21,119,98,.055) !important;
    border-color: rgba(198,160,82,.17) !important;
}

/* Slightly soften the backgrounds so neighbouring modules blend. */
.page-home-rebuild .home5-card,
.page-home-rebuild .home5-slider-card,
.page-home-rebuild .home5-quicklinks-card,
.page-home-rebuild .home5-server-card {
    background-color: rgba(5,14,18,.84) !important;
}

/* Exact first-two-row alignment:
   Download + gap + Quicklinks = Slider total height. */
.page-home-rebuild .home5-download-card,
.page-home-rebuild .home5-server-card {
    height: 96px !important;
    min-height: 96px !important;
}

.page-home-rebuild .home5-quicklinks-card {
    height: 218px !important;
    min-height: 218px !important;
    box-sizing: border-box !important;
}

.page-home-rebuild .home5-slider-card,
.page-home-rebuild .home5-swiper {
    height: 330px !important;
    min-height: 330px !important;
}

/* Let the account card visually balance the left-side quick links. */
.page-home-rebuild .home5-grid-account {
    min-height: 218px;
}

/* A small shared accent at the very top of the content shell. */
.page-home-rebuild .home5-main::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 9%;
    right: 9%;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(198,160,82,0),
        rgba(198,160,82,.34) 22%,
        rgba(54,208,164,.24) 50%,
        rgba(198,160,82,.34) 78%,
        rgba(198,160,82,0));
    pointer-events: none;
}

/* Keep the news section visually connected to left + center. */
.page-home-rebuild .home5-grid-news {
    margin-top: 2px;
}

/* Remove any lingering old hero glow line on the lower-left edge. */
.page-home-rebuild .header_web {
    border-bottom: 0 !important;
}
.page-home-rebuild .header_web::after {
    background: linear-gradient(180deg, rgba(3,9,12,0) 0%, rgba(3,9,12,.78) 72%, rgba(3,9,12,.97) 100%) !important;
}

@media (max-width: 1024px) {
    .page-home-rebuild .logo {
        top: 112px !important;
    }
    .page-home-rebuild .home5-hero-copy {
        top: 312px !important;
    }
    .page-home-rebuild .header_web {
        min-height: 560px !important;
    }
    .page-home-rebuild .home5-main {
        padding: 10px;
        border-radius: 12px;
    }
    .page-home-rebuild .home5-download-card,
    .page-home-rebuild .home5-server-card,
    .page-home-rebuild .home5-quicklinks-card,
    .page-home-rebuild .home5-slider-card,
    .page-home-rebuild .home5-swiper {
        height: auto !important;
        min-height: 0 !important;
    }
    .page-home-rebuild .home5-swiper {
        height: 310px !important;
        min-height: 310px !important;
    }
}

/* ============================================================
   Stage 5K — spacing equalization + tighter news join
   ============================================================ */

/* Keep the hero clean: no left glow patch at all. */
.page-home-rebuild .smog,
.page-home-rebuild .sparks,
.page-home-rebuild .sparks_1,
.page-home-rebuild .sparks_2 {
    display: none !important;
}

/* Drop the branding lower again. */
.page-home-rebuild .logo {
    top: 246px !important;
}
.page-home-rebuild .home5-hero-copy {
    top: 534px !important;
}
.page-home-rebuild .header_web {
    min-height: 820px !important;
}
.page-home-rebuild .home5-shell {
    margin-top: -96px !important;
}

/* Use one consistent spacing rhythm everywhere. */
.page-home-rebuild .home5-main {
    padding: 12px !important;
}
.page-home-rebuild .home5-grid-reflow {
    gap: 12px !important;
}

/* Download + quicklinks must equal slider height exactly.
   Also make inner quicklinks spacing symmetrical top/bottom. */
.page-home-rebuild .home5-download-card,
.page-home-rebuild .home5-server-card {
    height: 88px !important;
    min-height: 88px !important;
}

.page-home-rebuild .home5-quicklinks-card {
    padding: 12px !important;
    gap: 10px !important;
    height: 206px !important;
    min-height: 206px !important;
    box-sizing: border-box !important;
    align-content: center !important;
}

.page-home-rebuild .home5-quicklink-item {
    min-height: 86px !important;
}

.page-home-rebuild .home5-slider-card,
.page-home-rebuild .home5-swiper {
    height: 306px !important;
    min-height: 306px !important;
}

/* Keep the slider controls/CTA visible inside the frame. */
.page-home-rebuild .home5-slider-card {
    overflow: hidden !important;
}
.page-home-rebuild .home5-slide-more {
    right: 20px !important;
    bottom: 18px !important;
    padding: 9px 18px !important;
}
.page-home-rebuild .home5-swiper .swiper-button-next,
.page-home-rebuild .home5-swiper .swiper-button-prev {
    width: 34px !important;
    height: 34px !important;
    margin-top: -17px !important;
}

/* Pull news noticeably closer to the upper blocks. */
.page-home-rebuild .home5-grid-news {
    margin-top: -8px !important;
}
.page-home-rebuild .home5-news-card {
    margin-top: 0 !important;
    padding-top: 10px !important;
}

/* Keep the same clean visual rhythm on module interiors. */
.page-home-rebuild .home5-card,
.page-home-rebuild .home5-slider-card,
.page-home-rebuild .home5-download-card,
.page-home-rebuild .home5-quicklinks-card,
.page-home-rebuild .home5-server-card {
    border-color: rgba(198,160,82,.14) !important;
    box-shadow: 0 6px 14px rgba(0,0,0,.16), inset 0 0 0 1px rgba(24,120,98,.045) !important;
}

@media (max-width: 1024px) {
    .page-home-rebuild .logo {
        top: 150px !important;
    }
    .page-home-rebuild .home5-hero-copy {
        top: 358px !important;
    }
    .page-home-rebuild .header_web {
        min-height: 620px !important;
    }
    .page-home-rebuild .home5-shell {
        margin-top: -44px !important;
    }
    .page-home-rebuild .home5-quicklinks-card,
    .page-home-rebuild .home5-slider-card,
    .page-home-rebuild .home5-swiper {
        height: auto !important;
        min-height: 0 !important;
    }
}

/* ============================================================
   Stage 5L — True alignment from live screenshot
   Natural slider ratio + lower hero/content composition
   ============================================================ */

/* Move the whole content portal clearly lower so the Crusader hands,
   embers and lower hero lighting remain part of the hero composition. */
.page-home-rebuild .header_web {
    min-height: 930px !important;
}
.page-home-rebuild .home5-shell {
    margin-top: -56px !important;
}

/* Lower both brand elements together, not independently. */
.page-home-rebuild .logo {
    top: 320px !important;
}
.page-home-rebuild .home5-hero-copy {
    top: 620px !important;
}

/* Keep the hero clean — no artificial animated glow layers. */
.page-home-rebuild .smog,
.page-home-rebuild .sparks,
.page-home-rebuild .sparks_1,
.page-home-rebuild .sparks_2 {
    display: none !important;
}

/* One consistent 12px rhythm across the whole portal. */
.page-home-rebuild .home5-main {
    padding: 12px !important;
}
.page-home-rebuild .home5-grid-reflow {
    gap: 12px !important;
}

/* Slider image is 600x380. At the live center-column width its natural
   visual height is ~400px. Use 404px so the complete artwork + CTA fit. */
.page-home-rebuild .home5-grid-slider,
.page-home-rebuild .home5-slider-card,
.page-home-rebuild .home5-swiper,
.page-home-rebuild .home5-swiper .swiper-wrapper,
.page-home-rebuild .home5-swiper .swiper-slide {
    height: 404px !important;
    min-height: 404px !important;
    max-height: 404px !important;
}
.page-home-rebuild .home5-slider-card {
    align-self: start !important;
    overflow: hidden !important;
}
.page-home-rebuild .home5-swiper .swiper-slide {
    background-size: cover !important;
    background-position: center center !important;
}

/* Left stack must end at exactly the same baseline as the slider:
   96px Download + 12px gap + 296px quicklinks = 404px. */
.page-home-rebuild .home5-download-card,
.page-home-rebuild .home5-server-card {
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
}
.page-home-rebuild .home5-quicklinks-card {
    height: 296px !important;
    min-height: 296px !important;
    max-height: 296px !important;
    padding: 12px !important;
    gap: 10px !important;
    align-content: stretch !important;
    box-sizing: border-box !important;
}
.page-home-rebuild .home5-quicklink-item {
    min-height: 0 !important;
    height: auto !important;
}

/* Make the account fill row two, so the right column has no artificial
   blank hole before Top Players. */
.page-home-rebuild .home5-grid-account {
    min-height: 296px !important;
    box-sizing: border-box !important;
}

/* Controls always stay fully inside the banner. */
.page-home-rebuild .home5-slide-more {
    right: 18px !important;
    bottom: 18px !important;
    padding: 10px 20px !important;
    z-index: 8 !important;
}
.page-home-rebuild .home5-swiper .swiper-pagination {
    bottom: 12px !important;
}
.page-home-rebuild .home5-swiper .swiper-button-next,
.page-home-rebuild .home5-swiper .swiper-button-prev {
    width: 36px !important;
    height: 36px !important;
    margin-top: -18px !important;
}

/* News starts with the same 12px rhythm directly below the completed
   Download/quicklinks + slider row. */
.page-home-rebuild .home5-grid-news {
    margin-top: 0 !important;
}
.page-home-rebuild .home5-news-card {
    margin-top: 0 !important;
    padding-top: 12px !important;
}

/* No stray edge effects around the unified frame. */
.page-home-rebuild .home5-main::before,
.page-home-rebuild .home5-main::after {
    pointer-events: none;
}

@media (max-width: 1024px) {
    .page-home-rebuild .header_web {
        min-height: 650px !important;
    }
    .page-home-rebuild .logo {
        top: 170px !important;
    }
    .page-home-rebuild .home5-hero-copy {
        top: 390px !important;
    }
    .page-home-rebuild .home5-shell {
        margin-top: -38px !important;
    }
    .page-home-rebuild .home5-grid-slider,
    .page-home-rebuild .home5-slider-card,
    .page-home-rebuild .home5-swiper,
    .page-home-rebuild .home5-swiper .swiper-wrapper,
    .page-home-rebuild .home5-swiper .swiper-slide {
        height: 340px !important;
        min-height: 340px !important;
        max-height: 340px !important;
    }
    .page-home-rebuild .home5-download-card,
    .page-home-rebuild .home5-server-card,
    .page-home-rebuild .home5-quicklinks-card,
    .page-home-rebuild .home5-grid-account {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }
}

/* ============================================================
   Stage 5M — Hero balance
   Pull content closer, lower branding, and darken the baked-in
   lower orange/red glow so the hero reads as one composition.
   ============================================================ */

/* Bring the content portal closer to the hero instead of leaving a
   large empty gap below the Crusader. */
.page-home-rebuild .header_web {
    min-height: 850px !important;
    background-image:
        linear-gradient(180deg,
            rgba(4,7,10,.04) 0%,
            rgba(4,7,10,.02) 46%,
            rgba(4,9,12,.18) 60%,
            rgba(4,9,12,.54) 76%,
            rgba(4,9,12,.94) 100%),
        linear-gradient(90deg,
            rgba(4,8,10,.66) 0%,
            rgba(4,8,10,.14) 34%,
            rgba(4,8,10,.07) 70%,
            rgba(4,8,10,.42) 100%),
        url('../images/fon-top.jpg') !important;
    background-position: center top !important;
    background-size: cover !important;
}

.page-home-rebuild .home5-shell {
    margin-top: -70px !important;
}

/* Lower branding while the content comes upward, visually closing
   the empty middle area without crowding the Crusader. */
.page-home-rebuild .logo {
    top: 365px !important;
}
.page-home-rebuild .home5-hero-copy {
    top: 650px !important;
}

/* Remove any old pseudo fade that could fight the new integrated
   background fade. */
.page-home-rebuild .header_web::before {
    content: none !important;
    display: none !important;
}
.page-home-rebuild .header_web::after {
    height: 190px !important;
    background: linear-gradient(180deg,
        rgba(4,9,12,0) 0%,
        rgba(4,9,12,.32) 46%,
        rgba(4,9,12,.92) 100%) !important;
}

/* Keep all artificial animated lighting disabled. */
.page-home-rebuild .smog,
.page-home-rebuild .sparks,
.page-home-rebuild .sparks_1,
.page-home-rebuild .sparks_2 {
    display: none !important;
}

@media (max-width: 1024px) {
    .page-home-rebuild .header_web {
        min-height: 620px !important;
    }
    .page-home-rebuild .logo {
        top: 190px !important;
    }
    .page-home-rebuild .home5-hero-copy {
        top: 402px !important;
    }
    .page-home-rebuild .home5-shell {
        margin-top: -42px !important;
    }
}

/* ============================================================
   Stage 5N — Raise logo/text, push the baked hero glow lower
   ============================================================ */

/* Move the baked background composition slightly downward so the
   orange/red hand-glow sits lower in the hero instead of cutting
   across the composition so high. */
.page-home-rebuild .header_web {
    background-position: center 34px !important;
}

/* Add a gentle dark mask over the middle band so the visible glow
   reads lower, not across the middle of the page. */
.page-home-rebuild .header_web::before {
    content: '' !important;
    display: block !important;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg,
            rgba(4,9,12,0) 0%,
            rgba(4,9,12,0) 44%,
            rgba(4,9,12,.18) 54%,
            rgba(4,9,12,.34) 62%,
            rgba(4,9,12,.12) 73%,
            rgba(4,9,12,0) 100%);
    z-index: 1;
}

/* Lift branding upward compared with Stage 5M. */
.page-home-rebuild .logo {
    top: 280px !important;
    z-index: 3 !important;
}
.page-home-rebuild .home5-hero-copy {
    top: 560px !important;
    z-index: 3 !important;
}

/* Keep the lower fade but start it a touch later so the hero retains depth. */
.page-home-rebuild .header_web::after {
    height: 175px !important;
    background: linear-gradient(180deg,
        rgba(4,9,12,0) 0%,
        rgba(4,9,12,.18) 52%,
        rgba(4,9,12,.90) 100%) !important;
}

@media (max-width: 1024px) {
    .page-home-rebuild .header_web {
        background-position: center 18px !important;
    }
    .page-home-rebuild .logo {
        top: 165px !important;
    }
    .page-home-rebuild .home5-hero-copy {
        top: 360px !important;
    }
}

/* ============================================================
   Stage 5Q — New hero scaled down and lowered
   User request: make the new crusader top banner smaller and lower,
   so it does not feel vertically stretched and does not bleed so much
   past the left/right side blocks.
   ============================================================ */

/* Only tune the hero artwork itself. Leave layout/content intact. */
.page-home-rebuild .header_web {
    background-size: 88% auto !important;
    background-position: center 68px !important;
    background-repeat: no-repeat !important;
}

/* Keep the dark fade but avoid changing the rest of the composition. */
.page-home-rebuild .header_web::after {
    height: 160px !important;
}

@media (max-width: 1280px) {
    .page-home-rebuild .header_web {
        background-size: 96% auto !important;
        background-position: center 42px !important;
    }
}

@media (max-width: 1024px) {
    .page-home-rebuild .header_web {
        background-size: cover !important;
        background-position: center top !important;
    }
}

/* ============================================================
   Stage 5R — Shorter fun-top / hero block
   User request: keep the side bleed fixed, but reduce the overall
   height/stretch of the top banner itself.
   ============================================================ */

/* Make the whole hero block shorter and visually less stretched. */
.page-home-rebuild .header_web {
    min-height: 720px !important;
    background-size: 86% auto !important;
    background-position: center 52px !important;
    background-repeat: no-repeat !important;
}

/* Bring the content portal closer so the page feels tighter. */
.page-home-rebuild .home5-shell {
    margin-top: -112px !important;
}

/* Re-seat branding inside the shorter hero. */
.page-home-rebuild .logo {
    top: 250px !important;
}
.page-home-rebuild .home5-hero-copy {
    top: 500px !important;
}

/* Shorter lower fade to match the reduced hero height. */
.page-home-rebuild .header_web::after {
    height: 145px !important;
}

@media (max-width: 1280px) {
    .page-home-rebuild .header_web {
        min-height: 680px !important;
        background-size: 94% auto !important;
        background-position: center 34px !important;
    }
    .page-home-rebuild .logo {
        top: 220px !important;
    }
    .page-home-rebuild .home5-hero-copy {
        top: 448px !important;
    }
    .page-home-rebuild .home5-shell {
        margin-top: -96px !important;
    }
}

@media (max-width: 1024px) {
    .page-home-rebuild .header_web {
        min-height: 560px !important;
        background-size: cover !important;
        background-position: center top !important;
    }
    .page-home-rebuild .logo {
        top: 160px !important;
    }
    .page-home-rebuild .home5-hero-copy {
        top: 332px !important;
    }
    .page-home-rebuild .home5-shell {
        margin-top: -44px !important;
    }
}

/* ============================================================
   Stage 6F — Stable portal columns
   Keep the lower right sidebar independent from dynamic content height.
   ============================================================ */
.page-home-rebuild .home5-grid-reflow {
    grid-template-areas:
        "download slider server"
        "quicklinks slider account"
        "news news sidebottom" !important;
}

.page-home-rebuild .home5-grid-sidebottom {
    grid-area: sidebottom;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-width: 0;
    align-self: start;
}

.page-home-rebuild .home5-grid-sidebottom > .home5-card {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.page-home-rebuild .home5-grid-sidebottom .home5-grid-topplayers,
.page-home-rebuild .home5-grid-sidebottom .home5-grid-events {
    grid-area: auto !important;
}

@media (max-width: 1024px) {
    .page-home-rebuild .home5-grid-reflow {
        grid-template-areas:
            "download"
            "quicklinks"
            "slider"
            "server"
            "account"
            "sidebottom"
            "news" !important;
    }
}


/* ============================================================
   Stage 6G — Compact logged-in Account card
   Keep Server + Account exactly aligned with the 404px slider:
   96px server + 12px gap + 296px account = 404px.
   ============================================================ */
@media (min-width: 1025px) {
    .page-home-rebuild .home5-account-card-logged {
        height: 296px !important;
        min-height: 296px !important;
        max-height: 296px !important;
        padding: 14px 16px !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box !important;
    }

    .page-home-rebuild .home5-account-card-logged .home5-card-head {
        flex: 0 0 auto !important;
        margin-bottom: 8px !important;
        padding-bottom: 8px !important;
    }

    .page-home-rebuild .home5-account-card-logged .home5-card-head h3 {
        font-size: 17px !important;
    }

    .page-home-rebuild .home5-account-card-logged .home5-card-head p,
    .page-home-rebuild .home5-account-card-logged .home5-card-head div p {
        margin-top: 3px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    .page-home-rebuild .home5-account-card-logged .home5-account-stats {
        flex: 0 0 auto !important;
        gap: 0 !important;
        margin: 0 0 8px !important;
    }

    .page-home-rebuild .home5-account-card-logged .home5-account-stat {
        min-height: 0 !important;
        padding: 5px 0 !important;
        line-height: 1.15 !important;
    }

    .page-home-rebuild .home5-account-card-logged .home5-account-stat span {
        font-size: 12px !important;
    }

    .page-home-rebuild .home5-account-card-logged .home5-account-stat strong {
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    .page-home-rebuild .home5-account-card-logged .home5-account-links {
        flex: 1 1 auto !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-rows: 36px !important;
        align-content: start !important;
        gap: 6px !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 4px 0 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        scrollbar-width: thin;
        scrollbar-color: rgba(38, 205, 160, .55) rgba(255,255,255,.04);
    }

    .page-home-rebuild .home5-account-card-logged .home5-account-links li,
    .page-home-rebuild .home5-account-card-logged .home5-account-links li + li {
        margin: 0 !important;
        min-width: 0 !important;
        min-height: 0 !important;
    }

    .page-home-rebuild .home5-account-card-logged .home5-account-links a {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        padding: 6px 8px !important;
        border-radius: 5px !important;
        box-sizing: border-box !important;
        font-size: 11px !important;
        line-height: 1.15 !important;
        gap: 5px !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
    }

    .page-home-rebuild .home5-account-card-logged .home5-account-links a::after {
        flex: 0 0 auto !important;
        font-size: 14px !important;
        line-height: 1 !important;
    }
}


/* Stage 6H — future-proof Account menu: fixed item height + local scroll. */
@media (min-width: 1025px) {
    .page-home-rebuild .home5-account-card-logged .home5-account-links::-webkit-scrollbar {
        width: 5px;
    }
    .page-home-rebuild .home5-account-card-logged .home5-account-links::-webkit-scrollbar-track {
        background: rgba(255,255,255,.035);
        border-radius: 10px;
    }
    .page-home-rebuild .home5-account-card-logged .home5-account-links::-webkit-scrollbar-thumb {
        background: rgba(38, 205, 160, .48);
        border-radius: 10px;
    }
    .page-home-rebuild .home5-account-card-logged .home5-account-links::-webkit-scrollbar-thumb:hover {
        background: rgba(38, 205, 160, .72);
    }
}


/* ============================================================
   Stage 6I — Independent primary column + right rail
   Left content start is locked to Download/Quicklinks + Slider only.
   Server/Account/Top Players/Events grow independently on the right.
   ============================================================ */
@media (min-width: 1025px) {
    .page-home-rebuild .home5-portal-columns {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 290px !important;
        gap: 12px !important;
        align-items: start !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .page-home-rebuild .home5-primary-column {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .page-home-rebuild .home5-primary-top {
        display: grid !important;
        grid-template-columns: 260px minmax(0, 1fr) !important;
        grid-template-rows: 96px 296px !important;
        grid-template-areas:
            "download slider"
            "quicklinks slider" !important;
        gap: 12px !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 404px !important;
    }

    .page-home-rebuild .home5-primary-top .home5-grid-download { grid-area: download !important; }
    .page-home-rebuild .home5-primary-top .home5-grid-quicklinks { grid-area: quicklinks !important; }
    .page-home-rebuild .home5-primary-top .home5-grid-slider { grid-area: slider !important; }

    .page-home-rebuild .home5-primary-column > .home5-grid-news,
    .page-eranet-internal .home5-primary-column > .eranet-dynamic-content-card {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        grid-area: auto !important;
        box-sizing: border-box !important;
    }

    .page-home-rebuild .home5-right-rail {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        align-self: start !important;
        width: 290px !important;
        min-width: 0 !important;
    }

    .page-home-rebuild .home5-server-stack {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .page-home-rebuild .home5-right-rail .home5-server-card,
    .page-home-rebuild .home5-right-rail .home5-account-card,
    .page-home-rebuild .home5-right-rail .home5-grid-sidebottom,
    .page-home-rebuild .home5-right-rail .home5-grid-sidebottom > .home5-card {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        grid-area: auto !important;
    }

    /* Server cards stay compact, but any amount of servers may stack. */
    .page-home-rebuild .home5-right-rail .home5-server-card {
        height: 96px !important;
        min-height: 96px !important;
        max-height: 96px !important;
    }

    /* Account is no longer tied to slider height. It may grow naturally. */
    .page-home-rebuild .home5-right-rail .home5-account-card,
    .page-home-rebuild .home5-right-rail .home5-account-card-logged,
    .page-home-rebuild .home5-right-rail .home5-account-card-guest {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /* Keep the compact logged-in look, but never squeeze or scroll the menu. */
    .page-home-rebuild .home5-right-rail .home5-account-card-logged {
        padding: 14px 16px !important;
        display: block !important;
    }
    .page-home-rebuild .home5-right-rail .home5-account-card-logged .home5-account-links {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-rows: 36px !important;
        gap: 6px !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        scrollbar-width: auto !important;
    }
    .page-home-rebuild .home5-right-rail .home5-account-card-logged .home5-account-links li,
    .page-home-rebuild .home5-right-rail .home5-account-card-logged .home5-account-links li + li {
        margin: 0 !important;
    }
    .page-home-rebuild .home5-right-rail .home5-account-card-logged .home5-account-links a {
        min-height: 36px !important;
        height: 36px !important;
    }
    .page-home-rebuild .home5-right-rail .home5-account-card-logged .home5-account-links::-webkit-scrollbar {
        display: none !important;
    }

    /* Right lower stack is just another natural section of the rail. */
    .page-home-rebuild .home5-right-rail .home5-grid-sidebottom {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
}

@media (max-width: 1024px) {
    .page-home-rebuild .home5-portal-columns,
    .page-home-rebuild .home5-primary-column,
    .page-home-rebuild .home5-right-rail,
    .page-home-rebuild .home5-server-stack {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .page-home-rebuild .home5-primary-top {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "download"
            "quicklinks"
            "slider" !important;
        grid-template-rows: auto !important;
        gap: 12px !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-home-rebuild .home5-right-rail .home5-account-card,
    .page-home-rebuild .home5-right-rail .home5-server-card {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }
}


/* ============================================================
   Stage 6J — Hero grand-opening timer
   Keep the countdown independent from logo/hero copy and anchor
   it in the clean middle zone of the cinematic hero.
   ============================================================ */
.page-home-rebuild .header_web .countdown-block {
    position: absolute !important;
    top: 352px !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
    width: 360px !important;
    height: auto !important;
    z-index: 24 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    pointer-events: none;
}
.page-home-rebuild .header_web #timer_div_title {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 8px !important;
    color: #f3d680 !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    letter-spacing: .02em;
    text-shadow: 0 2px 8px rgba(0,0,0,.9) !important;
}
.page-home-rebuild .header_web #timer_div_time {
    position: static !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
}
.page-home-rebuild .header_web #timer_div_time .timmer_inner_block {
    float: none !important;
    width: 54px !important;
    height: 62px !important;
    margin: 0 !important;
    border: 1px solid rgba(218,178,83,.34) !important;
    border-radius: 4px !important;
    background: linear-gradient(180deg,rgba(10,31,27,.96),rgba(3,13,12,.98)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 7px 20px rgba(0,0,0,.38), 0 0 16px rgba(34,211,145,.045) !important;
}
.page-home-rebuild .header_web #timer_div_time .timmer_inner_block .title {
    padding-top: 7px !important;
    color: #8fa69e !important;
    font-size: 8px !important;
    line-height: 1 !important;
    text-transform: uppercase;
    letter-spacing: .06em;
    text-shadow: none !important;
}
.page-home-rebuild .header_web #timer_div_time .timmer_inner_block .count {
    padding-top: 9px !important;
    color: #f4f7f5 !important;
    font-size: 19px !important;
    line-height: 1 !important;
    text-shadow: 0 2px 6px rgba(0,0,0,.85) !important;
}
@media (max-width: 1280px) {
    .page-home-rebuild .header_web .countdown-block {
        top: 318px !important;
        transform: translateX(-46%) scale(.94) !important;
    }
}
@media (max-width: 1024px) {
    .page-home-rebuild .header_web .countdown-block {
        top: 250px !important;
        transform: translateX(-50%) scale(.88) !important;
    }
}
@media (max-width: 720px) {
    .page-home-rebuild .header_web .countdown-block {
        top: 225px !important;
        width: 300px !important;
        transform: translateX(-50%) scale(.82) !important;
    }
}


/* ============================================================
   Stage 6K — Hard-isolated internal right rail
   Rendered before legacy module content and pinned explicitly to
   grid column 2, so malformed/legacy module markup cannot push it
   below the primary column.
   ============================================================ */
@media (min-width: 1025px) {
    .page-eranet-internal .home5-portal-columns.eranet-portal-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 290px !important;
        grid-template-rows: auto !important;
        gap: 12px !important;
        align-items: start !important;
    }

    .page-eranet-internal .home5-portal-columns.eranet-portal-grid > .home5-primary-column {
        grid-column: 1 !important;
        grid-row: 1 !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .page-eranet-internal .home5-portal-columns.eranet-portal-grid > .home5-right-rail {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 290px !important;
        min-width: 0 !important;
        align-self: start !important;
        position: relative !important;
        z-index: 2 !important;
    }
}

/* ============================================================
   Stage 6L — Tall crest logo position fix
   The new square/tall ERANET crest uses the same visual width as the
   previous wide logo, so it needs a higher anchor to keep its lower
   ornament clear of the hero copy. Only logo positioning is changed.
   ============================================================ */
@media (min-width: 1281px) {
    .page-home-rebuild .logo {
        top: 88px !important;
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .page-home-rebuild .logo {
        top: 72px !important;
    }
}

/* ============================================================
   Stage 6N — ERANET ornate portal actions
   Real HTML/CSS components inspired by the new emerald/gold concept.
   Links and portal geometry stay untouched; presentation only.
   ============================================================ */
.page-home-rebuild .home5-download-card {
    position: relative !important;
    isolation: isolate;
    overflow: hidden !important;
    border: 1px solid rgba(226,190,100,.62) !important;
    border-radius: 8px !important;
    background:
        radial-gradient(circle at 50% 115%, rgba(18,189,141,.18), transparent 52%),
        linear-gradient(135deg, rgba(255,222,132,.08) 0 1px, transparent 1px 100%),
        linear-gradient(180deg, rgba(11,42,37,.98) 0%, rgba(4,19,19,.99) 100%) !important;
    background-size: auto, 14px 14px, auto !important;
    box-shadow:
        inset 0 0 0 1px rgba(255,221,132,.08),
        inset 0 -18px 35px rgba(0,0,0,.26),
        0 7px 18px rgba(0,0,0,.28),
        0 0 18px rgba(24,190,145,.06) !important;
    color: #f4e5bb !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}
.page-home-rebuild .home5-download-card::before,
.page-home-rebuild .home5-download-card::after {
    content: '';
    position: absolute;
    z-index: -1;
    pointer-events: none;
}
.page-home-rebuild .home5-download-card::before {
    inset: 5px;
    border: 1px solid rgba(210,170,78,.22);
    border-radius: 5px;
    background:
        linear-gradient(135deg, rgba(234,196,99,.72) 0 8px, transparent 8px) left top/22px 22px no-repeat,
        linear-gradient(225deg, rgba(234,196,99,.72) 0 8px, transparent 8px) right top/22px 22px no-repeat,
        linear-gradient(45deg, rgba(234,196,99,.56) 0 8px, transparent 8px) left bottom/22px 22px no-repeat,
        linear-gradient(315deg, rgba(234,196,99,.56) 0 8px, transparent 8px) right bottom/22px 22px no-repeat;
}
.page-home-rebuild .home5-download-card::after {
    left: 16%;
    right: 16%;
    bottom: 8px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(41,224,173,.55), rgba(241,201,105,.72), rgba(41,224,173,.55), transparent);
    box-shadow: 0 0 9px rgba(38,216,166,.26);
}
.page-home-rebuild .home5-download-card:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(248,211,116,.86) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255,226,151,.11),
        0 10px 24px rgba(0,0,0,.34),
        0 0 24px rgba(26,206,156,.18) !important;
}
.page-home-rebuild .home5-download-icon {
    display: flex;
    width: 35px;
    height: 30px;
    align-items: center;
    justify-content: center;
    margin-top: -2px;
    color: #f1c968;
    filter: drop-shadow(0 0 7px rgba(237,190,71,.26));
}
.page-home-rebuild .home5-download-icon svg {
    width: 34px;
    height: 34px;
    overflow: visible;
}
.page-home-rebuild .home5-download-icon .home5-arrow-crest {
    fill: url(#none);
    fill: #f3d78a;
    filter: drop-shadow(0 0 6px rgba(243,201,104,.16));
}
.page-home-rebuild .home5-download-icon .home5-arrow-edge {
    fill: none;
    stroke: rgba(109,76,19,.9);
    stroke-width: 1.3;
    stroke-linejoin: round;
}
.page-home-rebuild .home5-download-icon .home5-arrow-spine {
    fill: #e8bf5a;
    stroke: rgba(109,76,19,.8);
    stroke-width: 1;
}
.page-home-rebuild .home5-download-icon .home5-arrow-gem-frame {
    fill: #0f342f;
    stroke: #e8c46d;
    stroke-width: 1.15;
}
.page-home-rebuild .home5-download-icon .home5-arrow-gem {
    fill: #1fddb0;
    stroke: rgba(182,255,233,.8);
    stroke-width: .55;
}
.page-home-rebuild .home5-download-icon .home5-arrow-halo {
    fill: none;
    stroke: #e7c56d;
    stroke-width: 1.9;
    stroke-linecap: round;
    opacity: .98;
}
.page-home-rebuild .home5-download-title {
    margin-top: -1px !important;
    color: #f5e6be !important;
    font-size: 23px !important;
    line-height: 1 !important;
    letter-spacing: .025em !important;
    text-shadow: 0 2px 7px rgba(0,0,0,.8), 0 0 10px rgba(224,177,67,.12) !important;
}
.page-home-rebuild .home5-download-sub {
    color: rgba(197,224,210,.78) !important;
    font-size: 11px !important;
    letter-spacing: .08em !important;
    text-transform: uppercase;
}
.page-home-rebuild .home5-download-ornament {
    position: absolute;
    left: 50%;
    width: 7px;
    height: 7px;
    transform: translateX(-50%) rotate(45deg);
    border: 1px solid rgba(240,199,91,.72);
    background: #0dbf91;
    box-shadow: 0 0 7px rgba(29,221,166,.38);
}
.page-home-rebuild .home5-download-ornament-top { top: 6px; }
.page-home-rebuild .home5-download-ornament-bottom { bottom: 5px; }

.page-home-rebuild .home5-quicklinks-card {
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid rgba(207,170,85,.3) !important;
    border-radius: 8px !important;
    padding: 11px !important;
    gap: 9px !important;
    background:
        radial-gradient(circle at 50% 38%, rgba(15,130,105,.12), transparent 64%),
        linear-gradient(180deg, rgba(6,25,27,.98), rgba(3,13,17,.99)) !important;
    box-shadow:
        inset 0 0 0 1px rgba(24,173,136,.065),
        0 8px 18px rgba(0,0,0,.24) !important;
}
.page-home-rebuild .home5-quicklinks-card::before {
    content: '';
    position: absolute;
    inset: 5px;
    pointer-events: none;
    border-radius: 5px;
    border: 1px solid rgba(221,180,85,.08);
}
.page-home-rebuild .home5-quicklink-item {
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    border: 1px solid rgba(211,173,85,.2) !important;
    border-radius: 7px !important;
    background:
        radial-gradient(circle at 50% 34%, rgba(18,120,102,.13), transparent 45%),
        linear-gradient(180deg, rgba(5,21,24,.94), rgba(3,14,18,.98)) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.012),
        inset 0 -16px 22px rgba(0,0,0,.13) !important;
    color: #f0e4c0 !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease !important;
}
.page-home-rebuild .home5-quicklink-item::before,
.page-home-rebuild .home5-quicklink-item::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    pointer-events: none;
    opacity: .55;
}
.page-home-rebuild .home5-quicklink-item::before {
    top: 4px;
    left: 4px;
    border-top: 1px solid rgba(230,190,91,.7);
    border-left: 1px solid rgba(230,190,91,.7);
}
.page-home-rebuild .home5-quicklink-item::after {
    right: 4px;
    bottom: 4px;
    border-right: 1px solid rgba(230,190,91,.55);
    border-bottom: 1px solid rgba(230,190,91,.55);
}
.page-home-rebuild .home5-quicklink-item:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(235,198,103,.55) !important;
    background:
        radial-gradient(circle at 50% 34%, rgba(20,184,143,.23), transparent 47%),
        linear-gradient(180deg, rgba(7,34,32,.98), rgba(3,18,20,.99)) !important;
    box-shadow:
        inset 0 0 0 1px rgba(248,215,132,.045),
        0 5px 14px rgba(0,0,0,.28),
        0 0 13px rgba(29,203,157,.09) !important;
}
.page-home-rebuild .home5-quicklink-icon {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 50px !important;
    height: 50px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(239,198,93,.72) !important;
    background:
        radial-gradient(circle at 37% 30%, rgba(48,211,164,.28), transparent 32%),
        radial-gradient(circle at 50% 62%, rgba(5,76,66,.92), rgba(3,31,32,.98) 65%) !important;
    color: #f0ca6a !important;
    box-shadow:
        inset 0 0 0 4px rgba(5,17,20,.82),
        inset 0 0 0 5px rgba(222,180,82,.22),
        0 3px 8px rgba(0,0,0,.45),
        0 0 10px rgba(27,188,146,.11) !important;
    text-shadow: none !important;
    transition: box-shadow .18s ease, color .18s ease, transform .18s ease !important;
}
.page-home-rebuild .home5-quicklink-item:hover .home5-quicklink-icon {
    color: #ffe3a0 !important;
    transform: scale(1.04);
    box-shadow:
        inset 0 0 0 4px rgba(5,17,20,.74),
        inset 0 0 0 5px rgba(242,202,106,.35),
        0 3px 9px rgba(0,0,0,.45),
        0 0 16px rgba(31,216,165,.24) !important;
}
.page-home-rebuild .home5-quicklink-svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.page-home-rebuild .home5-icon-letter {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    transform: translateY(-1px);
}
.page-home-rebuild .home5-quicklink-label {
    position: relative;
    color: #f0e4c0 !important;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 14px !important;
    line-height: 1.05;
    letter-spacing: .01em;
    text-shadow: 0 2px 5px rgba(0,0,0,.85);
}
.page-home-rebuild .home5-quicklink-label::after {
    content: '';
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: -7px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45,205,161,.32), transparent);
}

@media (max-width: 1024px) {
    .page-home-rebuild .home5-download-card {
        min-height: 104px !important;
    }
    .page-home-rebuild .home5-quicklinks-card {
        padding: 12px !important;
    }
    .page-home-rebuild .home5-quicklink-item {
        min-height: 112px !important;
    }
}

/* ============================================================
   Stage 6P — Support readability / emerald ticket skin
   Keeps ticket backend untouched; presentation only.
   ============================================================ */
.page-home-rebuild .support-page .box-style1,
.page-home-rebuild .support-page .entry,
.page-home-rebuild .support-page .form {
    color: #e5efe9;
}
.page-home-rebuild .support-page form table {
    width: 100% !important;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 8px;
}
.page-home-rebuild .support-page form table td {
    color: #e5efe9 !important;
    vertical-align: middle;
}
.page-home-rebuild .support-compose #support_form input[type="text"],
.page-home-rebuild .support-compose #support_form select,
.page-home-rebuild .support-ticket-view #support_reply_form textarea {
    background: linear-gradient(180deg, #061315 0%, #041012 100%) !important;
    color: #e8f2ed !important;
    border: 1px solid rgba(205,168,78,.26) !important;
    border-radius: 6px !important;
    outline: none !important;
    box-shadow: inset 0 0 0 1px rgba(20,171,134,.025) !important;
}
.page-home-rebuild .support-compose #support_form input[type="text"]:focus,
.page-home-rebuild .support-compose #support_form select:focus,
.page-home-rebuild .support-ticket-view #support_reply_form textarea:focus {
    border-color: rgba(31,210,161,.62) !important;
    box-shadow: 0 0 0 2px rgba(25,190,147,.09), 0 0 18px rgba(24,186,143,.07) !important;
}
.page-home-rebuild .support-compose #support_form input[type="text"] {
    width: 100% !important;
    min-height: 42px;
    padding: 0 14px !important;
    box-sizing: border-box;
}
.page-home-rebuild .support-compose #support_form select {
    min-width: 170px;
    min-height: 42px;
    padding: 0 38px 0 14px !important;
}
.page-home-rebuild .support-compose #support_form select option {
    background: #071719;
    color: #e8f2ed;
}
.page-home-rebuild .support-compose #support_form input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 5px 7px;
    color: #cfe0d9;
    background: #061315;
    border: 1px solid rgba(205,168,78,.26);
    border-radius: 6px;
}
.page-home-rebuild .support-compose #support_form input[type="file"]::file-selector-button {
    height: 32px;
    margin-right: 12px;
    padding: 0 14px;
    color: #f3e1b3;
    background: linear-gradient(180deg, #0f836b 0%, #08604f 100%);
    border: 1px solid rgba(223,188,99,.28);
    border-radius: 4px;
    cursor: pointer;
}
.page-home-rebuild .support-compose #fileList {
    color: #bcd2c9;
}
.page-home-rebuild .support-compose .cleditorMain,
.page-home-rebuild .support-ticket-view .cleditorMain {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: #061315 !important;
    border-color: rgba(205,168,78,.28) !important;
}
.page-home-rebuild .support-compose .cleditorMain iframe,
.page-home-rebuild .support-ticket-view .cleditorMain iframe {
    background: #061315 !important;
}

/* Ticket conversation */
.page-home-rebuild .support-ticket-view .ticket {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(6,22,24,.98), rgba(4,14,17,.98)) !important;
    border: 1px solid rgba(199,161,76,.22) !important;
    border-radius: 6px;
    color: #dfece6 !important;
    box-shadow: inset 0 0 0 1px rgba(20,164,130,.025);
}
.page-home-rebuild .support-ticket-view .ticket th,
.page-home-rebuild .support-ticket-view .ticket td {
    border: 0 !important;
    color: #dfece6 !important;
    background: transparent !important;
}
.page-home-rebuild .support-ticket-view .ticket thead th {
    padding: 12px 14px !important;
    font-weight: 700;
    background: rgba(8,31,31,.9) !important;
    border-bottom: 1px solid rgba(199,161,76,.18) !important;
}
.page-home-rebuild .support-ticket-view .ticket tbody td {
    padding: 15px 16px !important;
    line-height: 1.55;
    color: #dce9e3 !important;
}
.page-home-rebuild .support-ticket-view .ticket-message tbody td,
.page-home-rebuild .support-ticket-view .ticket-message tbody td p,
.page-home-rebuild .support-ticket-view .ticket-message tbody td span,
.page-home-rebuild .support-ticket-view .ticket-message tbody td div,
.page-home-rebuild .support-ticket-view .ticket-message tbody td font {
    color: #dce9e3 !important;
    background: transparent !important;
}
.page-home-rebuild .support-ticket-view .ticket-message a,
.page-home-rebuild .support-ticket-view .ticket-meta a {
    color: #25d8aa !important;
}
.page-home-rebuild .support-ticket-view .ticket-user {
    border-left: 3px solid #1bc79a !important;
}
.page-home-rebuild .support-ticket-view .ticket-user thead th:first-child {
    color: #65e8c2 !important;
}
.page-home-rebuild .support-ticket-view .ticket-staff {
    border-left: 3px solid #d4ad55 !important;
    box-shadow: inset 0 0 28px rgba(198,153,61,.025);
}
.page-home-rebuild .support-ticket-view .ticket-staff thead th:first-child {
    color: #f0cf7a !important;
}
.page-home-rebuild .support-ticket-view .ticket-meta {
    border-left: 2px solid rgba(212,173,85,.72) !important;
}
.page-home-rebuild .support-ticket-view .ticket-meta td:first-child {
    color: #9fbab0 !important;
}
.page-home-rebuild .support-ticket-view .ticket-meta td:last-child {
    color: #dfece6 !important;
    text-align: right;
}
.page-home-rebuild .support-ticket-view #mark_resolved {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 4px;
    color: #25d8aa !important;
    background: rgba(21,164,126,.08);
    border: 1px solid rgba(37,216,170,.18);
}
.page-home-rebuild .support-ticket-view #mark_resolved:hover {
    background: rgba(21,164,126,.16);
}
.page-home-rebuild .support-ticket-view #support_reply_form {
    margin-top: 14px;
}

@media (max-width: 760px) {
    .page-home-rebuild .support-page form table,
    .page-home-rebuild .support-page form tbody,
    .page-home-rebuild .support-page form tr,
    .page-home-rebuild .support-page form td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }
    .page-home-rebuild .support-page form td:first-child {
        padding-bottom: 6px;
    }
    .page-home-rebuild .support-compose #support_form select {
        width: 100%;
    }
    .page-home-rebuild .support-ticket-view .ticket.left,
    .page-home-rebuild .support-ticket-view .ticket.right {
        float: none !important;
        width: 100% !important;
        margin: 0 0 12px !important;
    }
}

/* ============================================================
   Stage 6Q — Stripe / Buy WCoins ERANET skin
   Presentation only. Stripe plugin backend and package logic stay intact.
   ============================================================ */
.page-home-rebuild .stripe-page {
    width: 100%;
    min-width: 0;
}
.page-home-rebuild .stripe-page #box1,
.page-home-rebuild .stripe-page #content_center {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}
.page-home-rebuild .stripe-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.page-home-rebuild .stripe-secure-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid rgba(41,211,164,.28);
    border-radius: 4px;
    background: rgba(9,58,49,.32);
    color: #39dfae;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
}
.page-home-rebuild .stripe-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin: 4px 0 22px;
    padding: 20px 22px;
    border: 1px solid rgba(194,157,77,.2);
    border-radius: 7px;
    background:
        radial-gradient(circle at 92% 20%, rgba(21,185,141,.12), transparent 34%),
        linear-gradient(180deg, rgba(6,23,25,.96), rgba(4,15,18,.98));
}
.page-home-rebuild .stripe-intro h2 {
    margin: 0 0 5px;
    color: #f2d98e;
    font-size: 22px;
}
.page-home-rebuild .stripe-intro p {
    margin: 0;
    color: rgba(214,231,224,.7);
    line-height: 1.5;
}
.page-home-rebuild .stripe-brand-mark {
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(224,186,92,.58);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22,139,109,.34), rgba(4,18,20,.94) 70%);
    box-shadow: inset 0 0 16px rgba(28,221,166,.08), 0 0 18px rgba(0,0,0,.28);
    color: #ebc96f;
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 700;
}
.page-home-rebuild .stripe-package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}
.page-home-rebuild .stripe-package-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 20px 18px 18px;
    border: 1px solid rgba(202,165,81,.24);
    border-radius: 7px;
    background:
        radial-gradient(circle at 50% 0, rgba(27,182,141,.12), transparent 44%),
        linear-gradient(180deg, rgba(7,26,28,.98), rgba(3,14,17,.99));
    box-shadow: inset 0 0 0 1px rgba(20,147,118,.05), 0 12px 26px rgba(0,0,0,.23);
    text-align: center;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.page-home-rebuild .stripe-package-card:hover {
    transform: translateY(-2px);
    border-color: rgba(234,194,92,.52);
    box-shadow: inset 0 0 0 1px rgba(29,201,157,.08), 0 15px 30px rgba(0,0,0,.3), 0 0 18px rgba(24,185,141,.08);
}
.page-home-rebuild .stripe-package-topline {
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d3aa50, #2acb9d, #d3aa50, transparent);
    box-shadow: 0 0 8px rgba(35,202,156,.26);
}
.page-home-rebuild .stripe-package-name {
    min-height: 23px;
    color: #f1d896;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .02em;
}
.page-home-rebuild .stripe-package-reward {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: 16px 0 13px;
}
.page-home-rebuild .stripe-package-reward strong {
    color: #33e2ad;
    font-size: 31px;
    line-height: 1;
    text-shadow: 0 0 16px rgba(33,212,162,.16);
}
.page-home-rebuild .stripe-package-reward span {
    color: rgba(218,232,225,.68);
    font-size: 11px;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.page-home-rebuild .stripe-package-divider {
    height: 1px;
    margin: 0 0 13px;
    background: linear-gradient(90deg, transparent, rgba(205,166,77,.24), transparent);
}
.page-home-rebuild .stripe-package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 15px;
}
.page-home-rebuild .stripe-package-price span {
    color: #f3ead3;
    font-size: 22px;
    font-weight: 700;
}
.page-home-rebuild .stripe-package-price small {
    color: #d4b764;
    font-size: 11px;
    font-weight: 700;
}
.page-home-rebuild .stripe-buy-button,
.page-home-rebuild .stripe-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid rgba(88,239,194,.22);
    border-radius: 5px;
    background: linear-gradient(180deg, #1ab98e 0%, #08765f 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 8px 18px rgba(0,0,0,.2);
    color: #fff !important;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-decoration: none !important;
    cursor: pointer;
    transition: filter .18s ease, transform .18s ease;
}
.page-home-rebuild .stripe-buy-button {
    width: 100%;
}
.page-home-rebuild .stripe-buy-button:hover,
.page-home-rebuild .stripe-back-button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.page-home-rebuild .stripe-security-note {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 16px;
    padding: 13px 15px;
    border: 1px solid rgba(31,184,143,.17);
    border-radius: 6px;
    background: rgba(5,26,25,.62);
}
.page-home-rebuild .stripe-security-icon {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(44,217,166,.45);
    border-radius: 50%;
    color: #35dfac;
}
.page-home-rebuild .stripe-security-note strong,
.page-home-rebuild .stripe-security-note span {
    display: block;
}
.page-home-rebuild .stripe-security-note strong {
    margin-bottom: 2px;
    color: #ead291;
    font-size: 12px;
}
.page-home-rebuild .stripe-security-note span {
    color: rgba(213,229,222,.64);
    font-size: 11px;
    line-height: 1.45;
}
.page-home-rebuild .stripe-redirect-card,
.page-home-rebuild .stripe-status-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    padding: 32px;
    border: 1px solid rgba(202,165,81,.22);
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(7,26,28,.97), rgba(3,14,17,.99));
    text-align: center;
}
.page-home-rebuild .stripe-redirect-card h2,
.page-home-rebuild .stripe-status-card h2 {
    margin: 12px 0 7px;
    color: #efd58d;
}
.page-home-rebuild .stripe-redirect-card p {
    color: rgba(216,231,224,.68);
}
.page-home-rebuild .stripe-loader-ring {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(40,214,163,.15);
    border-top-color: #2ed6a4;
    border-right-color: #d7b65c;
    border-radius: 50%;
    animation: eranetStripeSpin .8s linear infinite;
}
@keyframes eranetStripeSpin { to { transform: rotate(360deg); } }
.page-home-rebuild .stripe-status-symbol {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(219,184,91,.42);
    border-radius: 50%;
    color: #e6c66e;
    font-size: 23px;
    font-weight: 700;
}
.page-home-rebuild .stripe-status-success {
    border-color: rgba(40,215,164,.48);
    color: #39dea9;
}
.page-home-rebuild .stripe-status-error {
    border-color: rgba(220,80,80,.48);
    color: #e76666;
}
.page-home-rebuild .stripe-status-card .e_note,
.page-home-rebuild .stripe-status-card .s_note {
    width: min(100%, 560px);
    margin: 10px 0 18px;
}
@media (max-width: 900px) {
    .page-home-rebuild .stripe-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .page-home-rebuild .stripe-package-grid { grid-template-columns: 1fr; }
    .page-home-rebuild .stripe-title-row { align-items: flex-start; flex-direction: column; }
    .page-home-rebuild .stripe-intro { align-items: flex-start; }
}

/* ============================================================
   Stage 6R — Donate hub / Stripe flow correction
   Original DMNCMS payment architecture preserved:
   Buy WCoins -> Donate hub -> selected payment provider.
   ============================================================ */
.page-home-rebuild .donate-page {
    width: 100%;
    min-width: 0;
}
.page-home-rebuild .donate-page #box1 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}
.page-home-rebuild .donate-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.page-home-rebuild .donate-title-row h1 {
    margin-bottom: 4px !important;
}
.page-home-rebuild .donate-title-row p {
    margin: 0;
    color: rgba(211,229,221,.62);
    font-size: 12px;
}
.page-home-rebuild .donate-secure-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border: 1px solid rgba(47,213,165,.26);
    border-radius: 4px;
    background: rgba(8,54,46,.35);
    color: #3ce0af;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
    white-space: nowrap;
}
.page-home-rebuild .donate-intro-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 6px 0 18px;
    padding: 17px 18px;
    border: 1px solid rgba(201,163,78,.2);
    border-radius: 7px;
    background:
        radial-gradient(circle at 94% 0%, rgba(20,181,139,.1), transparent 33%),
        linear-gradient(180deg, rgba(6,24,26,.97), rgba(3,15,18,.99));
}
.page-home-rebuild .donate-intro-icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(225,187,89,.55);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(19,132,105,.3), rgba(4,17,20,.94) 72%);
    color: #edc96b;
    box-shadow: inset 0 0 14px rgba(39,216,166,.07);
}
.page-home-rebuild .donate-intro-card h2 {
    margin: 0 0 4px;
    color: #f0d58d;
    font-size: 20px;
}
.page-home-rebuild .donate-intro-card p {
    margin: 0;
    color: rgba(211,229,221,.68);
    line-height: 1.5;
}
.page-home-rebuild .donate-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.page-home-rebuild .donate-method-card {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0,1fr) 24px;
    align-items: center;
    gap: 13px;
    min-width: 0;
    min-height: 86px;
    padding: 14px 16px;
    overflow: hidden;
    border: 1px solid rgba(201,164,79,.22);
    border-radius: 7px;
    background:
        radial-gradient(circle at 0 50%, rgba(16,154,120,.11), transparent 38%),
        linear-gradient(180deg, rgba(7,25,27,.98), rgba(3,14,17,.99));
    color: #e8eee9 !important;
    text-decoration: none !important;
    box-shadow: inset 0 0 0 1px rgba(33,164,132,.035), 0 8px 18px rgba(0,0,0,.16);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.page-home-rebuild .donate-method-card:hover {
    transform: translateY(-2px);
    border-color: rgba(235,194,92,.5);
    box-shadow: inset 0 0 0 1px rgba(39,204,159,.06), 0 12px 23px rgba(0,0,0,.24), 0 0 18px rgba(28,191,146,.07);
}
.page-home-rebuild .donate-method-plugin {
    background:
        radial-gradient(circle at 0 50%, rgba(19,180,138,.15), transparent 40%),
        linear-gradient(180deg, rgba(7,29,29,.98), rgba(3,15,18,.99));
}
.page-home-rebuild .donate-method-glow {
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, #d7ad56, #28c99a, transparent);
    opacity: .85;
}
.page-home-rebuild .donate-method-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(227,188,91,.55);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14,122,99,.34), rgba(3,18,19,.95) 72%);
    color: #edca70;
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    box-shadow: inset 0 0 14px rgba(31,218,166,.06);
}
.page-home-rebuild .donate-method-copy {
    min-width: 0;
}
.page-home-rebuild .donate-method-copy strong,
.page-home-rebuild .donate-method-copy small {
    display: block;
}
.page-home-rebuild .donate-method-copy strong {
    margin-bottom: 4px;
    color: #efd58b;
    font-size: 15px;
}
.page-home-rebuild .donate-method-copy small {
    overflow-wrap: anywhere;
    color: rgba(209,226,219,.58);
    font-size: 10px;
    line-height: 1.45;
}
.page-home-rebuild .donate-method-arrow {
    color: #34d8a5;
    font-size: 18px;
    text-align: right;
}
.page-home-rebuild .donate-empty-card,
.page-home-rebuild .stripe-empty-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 17px 18px;
    border: 1px solid rgba(211,172,81,.2);
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(7,24,26,.96), rgba(3,14,17,.98));
    color: rgba(213,230,223,.68);
}
.page-home-rebuild .donate-empty-card strong,
.page-home-rebuild .stripe-empty-card strong {
    color: #efd58d;
}
.page-home-rebuild .stripe-empty-card .stripe-back-button {
    margin-top: 7px;
}
.page-home-rebuild .stripe-methods-link {
    display: inline-block;
    margin-top: 3px;
    color: #34d7a5 !important;
    font-size: 10px;
    text-decoration: none !important;
}
.page-home-rebuild .stripe-methods-link:hover {
    color: #efcf79 !important;
}

@media (max-width: 720px) {
    .page-home-rebuild .donate-method-grid { grid-template-columns: 1fr; }
    .page-home-rebuild .donate-title-row { align-items: flex-start; flex-direction: column; }
}

/* ============================================================
   Stage 6S — Unified Payment Center
   PayPal and Stripe share the same package layout and spacing.
   ============================================================ */
.page-home-rebuild .payment-center-page #box1,
.page-home-rebuild .payment-provider-page #box1 {
    width: 100%;
    min-width: 0;
}

.page-home-rebuild .payment-center-title,
.page-home-rebuild .payment-provider-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 18px !important;
    padding: 0 0 12px !important;
    border-bottom: 1px solid rgba(201,164,79,.2);
}
.page-home-rebuild .payment-center-title h1,
.page-home-rebuild .payment-provider-title h1 {
    margin: 0 !important;
    color: #f0d58d !important;
    font-size: 24px !important;
    line-height: 1.15 !important;
}
.page-home-rebuild .payment-methods-link {
    display: inline-block;
    margin-top: 5px;
    color: #35d9a6 !important;
    font-size: 11px;
    text-decoration: none !important;
}
.page-home-rebuild .payment-methods-link:hover {
    color: #f0cf78 !important;
}

.page-home-rebuild .donate-method-grid-clean {
    margin-top: 2px;
}
.page-home-rebuild .donate-method-grid-clean .donate-method-card {
    min-height: 82px;
}
.page-home-rebuild .donate-method-grid-clean .donate-method-copy strong {
    margin: 0;
    font-size: 17px;
}

.page-home-rebuild .payment-package-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}
.page-home-rebuild .payment-package-card {
    position: relative;
    display: grid;
    grid-template-columns: 84px minmax(150px, 1.35fr) minmax(130px, .75fr) minmax(105px, .55fr) 158px;
    align-items: center;
    gap: 16px;
    min-width: 0;
    min-height: 82px;
    padding: 14px 16px;
    overflow: hidden;
    border: 1px solid rgba(211,173,82,.28);
    border-radius: 7px;
    background:
        radial-gradient(circle at 100% 50%, rgba(26,187,143,.08), transparent 34%),
        linear-gradient(180deg, rgba(7,27,28,.98), rgba(3,14,17,.99));
    box-shadow: inset 0 0 0 1px rgba(29,175,139,.035), 0 7px 16px rgba(0,0,0,.14);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.page-home-rebuild .payment-package-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #cfaa55, #2bd2a0, #cfaa55);
    opacity: .78;
}
.page-home-rebuild .payment-package-card:hover {
    transform: translateX(2px);
    border-color: rgba(235,193,91,.46);
    box-shadow: inset 0 0 0 1px rgba(42,208,160,.05), 0 10px 22px rgba(0,0,0,.22), 0 0 16px rgba(27,190,145,.05);
}
.page-home-rebuild .payment-package-provider {
    margin: 0;
    color: rgba(53,217,166,.78);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.page-home-rebuild .payment-package-name {
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: #efd58b;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}
.page-home-rebuild .payment-package-reward {
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
    margin: 0;
}
.page-home-rebuild .payment-package-reward strong {
    color: #2de0ab;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 0 12px rgba(45,224,171,.1);
}
.page-home-rebuild .payment-package-reward span {
    color: rgba(214,229,223,.66);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.page-home-rebuild .payment-package-divider {
    display: none;
}
.page-home-rebuild .payment-package-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
    margin: 0;
}
.page-home-rebuild .payment-package-price strong {
    color: #f4e4b9;
    font-size: 18px;
    line-height: 1;
}
.page-home-rebuild .payment-package-price span {
    color: #e0b958;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.page-home-rebuild .payment-buy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 158px;
    min-height: 42px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid rgba(62,232,182,.42) !important;
    border-radius: 5px;
    background: linear-gradient(180deg, #1fc59a, #0c8b70) !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .035em;
    text-decoration: none !important;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: inset 0 1px rgba(255,255,255,.14), 0 6px 14px rgba(0,0,0,.17);
    transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.page-home-rebuild .payment-buy-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.07);
    box-shadow: inset 0 1px rgba(255,255,255,.16), 0 8px 18px rgba(0,0,0,.21), 0 0 13px rgba(34,210,160,.09);
}
.page-home-rebuild .payment-buy-button span {
    font-size: 14px;
}

@media (max-width: 980px) {
    .page-home-rebuild .payment-package-card {
        grid-template-columns: 74px minmax(140px, 1fr) minmax(120px, .7fr) 140px;
        gap: 12px;
    }
    .page-home-rebuild .payment-package-price {
        grid-column: 3;
        grid-row: 2;
    }
    .page-home-rebuild .payment-buy-button {
        grid-column: 4;
        grid-row: 1 / span 2;
        width: 140px;
    }
}
@media (max-width: 680px) {
    .page-home-rebuild .payment-package-card {
        grid-template-columns: 1fr auto;
        gap: 8px 12px;
        padding: 14px;
    }
    .page-home-rebuild .payment-package-provider {
        grid-column: 1;
        grid-row: 1;
    }
    .page-home-rebuild .payment-package-name {
        grid-column: 1 / -1;
        grid-row: 2;
        font-size: 16px;
    }
    .page-home-rebuild .payment-package-reward {
        grid-column: 1;
        grid-row: 3;
    }
    .page-home-rebuild .payment-package-price {
        grid-column: 2;
        grid-row: 3;
        justify-content: flex-end;
    }
    .page-home-rebuild .payment-buy-button {
        grid-column: 1 / -1;
        grid-row: 4;
        width: 100%;
        margin-top: 4px;
    }
}

/* Old Stripe-only presentation is no longer used on the package list. */
.page-home-rebuild .payment-provider-page .stripe-intro,
.page-home-rebuild .payment-provider-page .stripe-secure-badge,
.page-home-rebuild .payment-provider-page .stripe-security-note,
.page-home-rebuild .payment-provider-page .stripe-package-grid {
    display: none !important;
}

@media (max-width: 640px) {
    .page-home-rebuild .payment-provider-title h1,
    .page-home-rebuild .payment-center-title h1 { font-size: 21px !important; }
}


/* ============================================================
   Stage 6U — slider CTA temporary home target + centered guest login CTA
   ============================================================ */
.page-home-rebuild .home5-account-card-guest .home5-login-form .home5-primary-btn {
    width: 168px !important;
    max-width: 100% !important;
    align-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


/* ============================================================
   Stage 6AA — Dedicated portal login
   Clean authentication view for protected pages (Donate, etc.).
   ============================================================ */
.page-home-rebuild .portal-login-page #box1 {
    min-width: 0;
}
.page-home-rebuild .portal-login-title {
    margin-bottom: 0;
}
.page-home-rebuild .portal-login-card {
    width: min(100%, 640px);
    margin: 18px auto 10px;
    padding: 28px;
    box-sizing: border-box;
    border: 1px solid rgba(205, 169, 81, .28);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 0%, rgba(18, 157, 122, .10), transparent 48%),
        linear-gradient(180deg, rgba(7, 22, 24, .97), rgba(4, 14, 18, .98));
    box-shadow: inset 0 0 0 1px rgba(34, 183, 145, .04), 0 18px 42px rgba(0, 0, 0, .22);
}
.page-home-rebuild .portal-login-heading {
    text-align: center;
    margin-bottom: 22px;
}
.page-home-rebuild .portal-login-heading h2 {
    margin: 0 0 7px;
    color: #f2d88c;
    font-size: 22px;
    font-weight: 700;
}
.page-home-rebuild .portal-login-heading p {
    margin: 0;
    color: rgba(210, 230, 222, .72);
    font-size: 13px;
}
.page-home-rebuild .portal-login-form {
    display: grid;
    gap: 15px;
}
.page-home-rebuild .portal-login-field {
    display: grid;
    gap: 7px;
    color: #e7d5a5;
    font-size: 12px;
    letter-spacing: .045em;
}
.page-home-rebuild .portal-login-field input {
    width: 100% !important;
    height: 46px;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid rgba(206, 169, 78, .24) !important;
    border-radius: 5px !important;
    outline: none;
    background: rgba(2, 12, 16, .96) !important;
    color: #eef6f2 !important;
    font-size: 14px;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.page-home-rebuild .portal-login-field input::placeholder {
    color: rgba(217, 230, 224, .38);
}
.page-home-rebuild .portal-login-field input:focus {
    border-color: rgba(35, 214, 166, .70) !important;
    background: rgba(4, 20, 22, .98) !important;
    box-shadow: 0 0 0 3px rgba(25, 190, 145, .08), 0 0 18px rgba(22, 190, 144, .08);
}
.page-home-rebuild .portal-login-submit {
    display: block;
    width: min(100%, 260px);
    height: 46px;
    margin: 5px auto 0;
    border: 1px solid rgba(69, 235, 190, .42);
    border-radius: 5px;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    background: linear-gradient(180deg, #20c79b 0%, #087e68 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 20px rgba(0,0,0,.20);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.page-home-rebuild .portal-login-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 10px 24px rgba(0,0,0,.26), 0 0 18px rgba(22, 204, 155, .10);
}
.page-home-rebuild .portal-login-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    color: rgba(205, 170, 84, .58);
    font-size: 12px;
}
.page-home-rebuild .portal-login-links a {
    color: #2dd9ad !important;
    text-decoration: none;
}
.page-home-rebuild .portal-login-links a:hover {
    color: #f0d486 !important;
}
@media (max-width: 680px) {
    .page-home-rebuild .portal-login-card {
        padding: 20px 16px;
    }
    .page-home-rebuild .portal-login-submit {
        width: 100%;
    }
}


/* ============================================================
   Stage 6AC — Full Small News preview
   AdminCP Small News is shown in full on the homepage.
   Full News remains available through Read more.
   ============================================================ */
.page-home-rebuild .home5-news-excerpt {
    display: block !important;
    -webkit-box-orient: initial !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: pre-line !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    margin-bottom: 10px !important;
}
.page-home-rebuild .home5-news-item {
    overflow: visible !important;
}
.page-home-rebuild .home5-news-body {
    overflow: visible !important;
}

/* ============================================================
   Stage 6AO — Centered desktop navigation
   Desktop-only alignment; mobile drawer/hamburger remains intact.
   ============================================================ */
@media (min-width: 770px) {
    .page-home-rebuild .topPanel-wrapper {
        justify-content: center !important;
    }

    .page-home-rebuild .topMenu {
        display: flex;
        justify-content: center;
        width: auto;
    }

    .page-home-rebuild .topMenu > .menu {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
    }
}

/* ============================================================
   Stage 6AQ — Minimal mobile compact polish
   Mobile-only overrides. Desktop/tablet layout and markup untouched.
   ============================================================ */
@media (max-width: 700px) {
    /* Undo late desktop hero offsets that otherwise win in the cascade. */
    .page-home-rebuild .header_web {
        min-height: 470px !important;
    }

    .page-home-rebuild .logo {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100% !important;
        padding: 62px 16px 0 !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .page-home-rebuild .logo img {
        width: min(320px, 80vw) !important;
        max-width: 100% !important;
    }

    .page-home-rebuild .home5-hero-copy {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        padding: 10px 18px 0 !important;
        text-align: center !important;
    }

    .page-home-rebuild .home5-hero-subtitle {
        font-size: 12px !important;
    }

    .page-home-rebuild .home5-hero-title {
        font-size: 22px !important;
        line-height: 1.15 !important;
    }

    .page-home-rebuild .home5-hero-text {
        font-size: 10px !important;
    }

    .page-home-rebuild .home5-shell {
        margin-top: -24px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Keep the existing content/order, just make the first screen less bulky. */
    .page-home-rebuild .home5-primary-top,
    .page-home-rebuild .home5-primary-column,
    .page-home-rebuild .home5-right-rail,
    .page-home-rebuild .home5-server-stack {
        gap: 10px !important;
    }

    .page-home-rebuild .home5-download-card {
        min-height: 88px !important;
        height: auto !important;
    }

    .page-home-rebuild .home5-download-title {
        font-size: 20px !important;
    }

    .page-home-rebuild .home5-download-sub {
        font-size: 12px !important;
    }

    .page-home-rebuild .home5-quicklinks-card {
        padding: 8px !important;
        gap: 8px !important;
    }

    .page-home-rebuild .home5-quicklink-item {
        min-height: 88px !important;
        gap: 7px !important;
    }

    .page-home-rebuild .home5-quicklink-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 19px !important;
    }

    .page-home-rebuild .home5-quicklink-label {
        font-size: 13px !important;
    }

    .page-home-rebuild .home5-swiper,
    .page-home-rebuild .home5-swiper .swiper-slide {
        height: 250px !important;
    }

    .page-home-rebuild .home5-slide-content {
        padding: 18px 16px !important;
    }

    .page-home-rebuild .home5-slide-title {
        font-size: 30px !important;
    }

    .page-home-rebuild .home5-card {
        padding: 12px !important;
    }

    .page-home-rebuild .home5-news-thumb {
        height: 150px !important;
    }
}

/* ============================================================
   Stage 6AV — ERANET Discord card
   Right rail only. Static invite card; no external widget dependency.
   ============================================================ */
.page-home-rebuild .home5-discord-card {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(190, 151, 58, .23) !important;
    background:
        radial-gradient(circle at 78% 14%, rgba(88, 101, 242, .13), transparent 34%),
        linear-gradient(180deg, rgba(3, 18, 22, .98) 0%, rgba(2, 12, 16, .99) 100%) !important;
    box-shadow: inset 0 0 0 1px rgba(21, 91, 87, .12), 0 10px 24px rgba(0,0,0,.18);
}

.page-home-rebuild .home5-discord-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 15px 15px 12px;
    border-bottom: 1px solid rgba(194, 157, 67, .16);
}

.page-home-rebuild .home5-discord-head-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid rgba(122, 132, 255, .28);
    border-radius: 9px;
    color: #8c96ff;
    background: rgba(88, 101, 242, .10);
    box-shadow: inset 0 0 14px rgba(88, 101, 242, .08);
}

.page-home-rebuild .home5-discord-head-icon svg {
    width: 19px;
    height: 19px;
}

.page-home-rebuild .home5-discord-head h3 {
    margin: 0 0 3px !important;
    color: #f0cb72 !important;
    font-size: 16px !important;
    line-height: 1.1;
    letter-spacing: .03em;
}

.page-home-rebuild .home5-discord-head p {
    margin: 0 !important;
    color: rgba(203, 223, 218, .68) !important;
    font-size: 12px !important;
}

.page-home-rebuild .home5-discord-body {
    padding: 14px 15px 15px;
}

.page-home-rebuild .home5-discord-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid rgba(109, 121, 255, .18);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(88, 101, 242, .16), rgba(7, 26, 31, .72));
}

.page-home-rebuild .home5-discord-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
    color: #fff;
    background: #5865f2;
    box-shadow: 0 6px 18px rgba(88, 101, 242, .24);
}

.page-home-rebuild .home5-discord-brand-mark svg {
    width: 22px;
    height: 22px;
}

.page-home-rebuild .home5-discord-brand strong {
    display: block;
    color: #f4f6ff;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: .035em;
}

.page-home-rebuild .home5-discord-brand span {
    display: block;
    margin-top: 4px;
    color: rgba(218, 226, 237, .68);
    font-size: 11px;
    line-height: 1.3;
}

.page-home-rebuild .home5-discord-invite {
    margin: 12px 0 10px;
    color: rgba(225, 204, 144, .70);
    font-size: 11px;
    text-align: center;
    letter-spacing: .025em;
}

.page-home-rebuild .home5-discord-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    border: 1px solid rgba(154, 163, 255, .42);
    border-radius: 6px;
    color: #fff !important;
    background: linear-gradient(180deg, #6773f7 0%, #4c58dc 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 7px 18px rgba(43, 52, 170, .20);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-decoration: none !important;
    transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

.page-home-rebuild .home5-discord-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 9px 22px rgba(43, 52, 170, .28);
}


/* ============================================================
   Stage 6AW — Official Discord server widget
   Replaces the static Stage 6AV invite card with Discord live widget.
   ============================================================ */
.page-home-rebuild .home5-discord-widget-card {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    overflow: hidden;
    border: 1px solid rgba(190, 151, 58, .23) !important;
    background: linear-gradient(180deg, rgba(3, 18, 22, .98), rgba(2, 12, 16, .99)) !important;
    box-shadow: inset 0 0 0 1px rgba(21, 91, 87, .10), 0 10px 24px rgba(0,0,0,.16);
}

.page-home-rebuild .home5-discord-widget-frame {
    display: block;
    width: 100% !important;
    height: 500px !important;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #1e1f22;
}
