:root {
    --zix-bg: #10051d;
    --zix-panel: #211039;
    --zix-panel-2: #2b1550;
    --zix-line: rgba(255,255,255,.14);
    --zix-yellow: #ffe04b;
    --zix-pink: #ff2bbd;
    --zix-blue: #35c9ff;
    --zix-green: #4cff8b;
    --zix-text: #ffffff;
    --zix-muted: #b8add0;
}

body {
    background: #0c0316 !important;
    color: var(--zix-text);
}

.zix-home, .zix-home * {
    box-sizing: border-box;
}

.zix-home {
    min-height: calc(100vh - 62px);
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 38px 18px 90px;
    background:
        radial-gradient(circle at 50% -10%, rgba(126, 42, 255, .30), transparent 34%),
        radial-gradient(circle at 12% 20%, rgba(255, 35, 186, .12), transparent 27%),
        radial-gradient(circle at 88% 42%, rgba(50, 199, 255, .10), transparent 24%),
        linear-gradient(180deg, #160726 0%, #0c0316 100%);
    font-family: "Trebuchet MS", "Arial Black", "Segoe UI", sans-serif;
}

.zix-bg-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}

.zix-hero,
.zix-shell,
.zix-bottom-note {
    position: relative;
    z-index: 1;
}

.zix-hero {
    max-width: 1100px;
    margin: 0 auto 26px;
    text-align: center;
}

.zix-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 86px;
    margin-bottom: 5px;
}

.zix-logo {
    width: min(390px, 78vw);
    image-rendering: auto;
    filter: drop-shadow(0 7px 0 rgba(0,0,0,.38)) drop-shadow(0 0 22px rgba(255,0,98,.16));
}

.zix-status {
    width: max-content;
    margin: 4px auto 16px;
    padding: 7px 12px;
    border: 2px solid rgba(100,255,151,.28);
    background: #0d2519;
    color: #8cffad;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 0 #07140d;
}

.zix-status span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 50%;
    background: #56ff91;
    box-shadow: 0 0 10px #56ff91;
}

.zix-hero h1 {
    margin: 0;
    font-family: "Arial Black", "Trebuchet MS", sans-serif;
    font-size: clamp(27px, 4vw, 46px);
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 4px 0 #08020e;
}

.zix-name {
    color: var(--zix-yellow);
}

.zix-owner-badge {
    width: 43px;
    height: 43px;
    margin-left: 9px;
    vertical-align: -10px;
    object-fit: contain;
    filter: drop-shadow(0 3px 0 rgba(0,0,0,.55));
}

.zix-hero > p {
    color: var(--zix-muted);
    font-size: 17px;
    margin: 9px 0 17px;
}

.zix-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 620px;
    margin: 0 auto;
    border: 3px solid #08030d;
    background: #160a24;
    box-shadow: 0 6px 0 #050208;
}

.zix-stats > div {
    padding: 12px 10px 10px;
    border-right: 1px solid rgba(255,255,255,.12);
}

.zix-stats > div:last-child { border-right: 0; }

.zix-stats b {
    display: block;
    color: #fff;
    font-family: "Arial Black", sans-serif;
    font-size: 21px;
}

.zix-stats span {
    color: #9588ac;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.zix-shell {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.zix-section {
    margin-top: 18px;
    border: 3px solid #08020e;
    background: rgba(21, 8, 36, .93);
    box-shadow: 0 7px 0 #050108, inset 0 1px 0 rgba(255,255,255,.07);
}

.zix-section-title {
    min-height: 46px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, #34155b 0%, #271044 100%);
    border-bottom: 3px solid #08020e;
    color: #e9dcff;
    font-family: "Arial Black", sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
}

.zix-section-title i { color: var(--zix-yellow); }

.zix-grid {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.zix-grid-main { grid-template-columns: 1.25fr 1fr 1fr; }
.zix-grid-two { grid-template-columns: 1fr 1fr; }

.zix-card {
    min-height: 108px;
    width: 100%;
    padding: 15px;
    display: grid;
    grid-template-columns: 58px 1fr 28px;
    align-items: center;
    gap: 13px;
    text-align: left;
    text-decoration: none !important;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,.12);
    background: #26123f;
    box-shadow: 0 5px 0 #10071a, inset 0 1px 0 rgba(255,255,255,.07);
    border-radius: 7px;
    transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
}

.zix-card-button {
    appearance: none;
    cursor: pointer;
    font: inherit;
}

.zix-card-button:hover,
.zix-card[href]:hover {
    transform: translateY(-2px);
    border-color: rgba(255,224,75,.62);
    background: #30164f;
    box-shadow: 0 7px 0 #10071a, 0 0 0 2px rgba(255,224,75,.08);
}

.zix-card-button:active,
.zix-card[href]:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #10071a;
}

.zix-card-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #08020e;
    background: linear-gradient(180deg, #7b38d8, #4b1b8a);
    box-shadow: inset 0 3px 0 rgba(255,255,255,.17), 0 3px 0 rgba(0,0,0,.36);
    color: #fff;
    font-size: 23px;
    border-radius: 8px;
}

.zix-feature .zix-card-icon {
    background: linear-gradient(180deg, #ffcb3e, #ff7b20);
    color: #1c0b00;
}

.zix-download .zix-card-icon {
    background: linear-gradient(180deg, #39bdff, #1a5ce0);
}

.zix-discord .zix-card-icon {
    background: linear-gradient(180deg, #7f8dff, #4b55c9);
}

.zix-card-copy {
    min-width: 0;
    display: block;
}

.zix-card-copy strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-family: "Arial Black", "Trebuchet MS", sans-serif;
    font-size: clamp(18px, 2.1vw, 24px);
    line-height: 1.1;
    text-shadow: 0 2px 0 rgba(0,0,0,.55);
}

.zix-card-copy small {
    display: block;
    color: #b9aecb;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 13px;
    line-height: 1.35;
}

.zix-arrow {
    color: #f5dc63;
    font-size: 18px;
    text-align: center;
}

.zix-card-disabled {
    opacity: .55;
    cursor: not-allowed;
    filter: saturate(.45);
}

.zix-account-wrap {
    padding: 14px;
}

.zix-account-wrap .zix-card {
    max-width: 650px;
}

.zix-mini-action {
    margin-top: 10px;
    padding: 9px 13px;
    border: 2px solid #08020e;
    border-radius: 5px;
    background: #1b0d2d;
    color: #d7cce8;
    box-shadow: 0 3px 0 #08030d;
    font-weight: 800;
    cursor: pointer;
}

.zix-mini-action:hover {
    color: #fff;
    background: #2b1248;
}

.zix-bottom-note {
    margin: 23px auto 0;
    text-align: center;
    color: #665a78;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

/* Make the existing BetterCvolton navbar fit the Zix look without rewriting its logic. */
#navbarepta.menubar {
    background: #120720 !important;
    border-bottom: 3px solid #08020e;
    box-shadow: 0 5px 0 rgba(0,0,0,.28);
}

#navbarepta .nav-link {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-weight: 800;
}

#navbarepta .nav-item.active > .nav-link,
#navbarepta .tooactive > .nav-link {
    color: #ffe04b !important;
}

#navbarepta .dropdown-menu {
    border: 2px solid #08020e !important;
    border-radius: 6px !important;
    background: #1c0c30 !important;
    box-shadow: 0 5px 0 rgba(0,0,0,.35) !important;
}

#navbarepta .dropdown-item:hover {
    background: #321652 !important;
}

.footer {
    background: linear-gradient(0deg, #08020e 0%, rgba(8,2,14,.05) 100%) !important;
}

@media (max-width: 860px) {
    .zix-home { padding-left: 11px; padding-right: 11px; }
    .zix-grid-main,
    .zix-grid-two { grid-template-columns: 1fr; }
    .zix-card { min-height: 96px; }
}

@media (max-width: 520px) {
    .zix-home { padding-top: 24px; }
    .zix-logo { width: min(300px, 86vw); }
    .zix-hero h1 { font-size: 27px; }
    .zix-owner-badge { width: 35px; height: 35px; vertical-align: -8px; }
    .zix-stats b { font-size: 17px; }
    .zix-stats span { font-size: 8px; }
    .zix-card { grid-template-columns: 50px 1fr 20px; gap: 10px; padding: 12px; }
    .zix-card-icon { width: 48px; height: 48px; font-size: 20px; }
    .zix-card-copy strong { font-size: 18px; }
    .zix-card-copy small { font-size: 12px; }
}
