* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background:
        linear-gradient(rgba(4, 12, 6, 0.78), rgba(4, 12, 6, 0.88)),
        url('../img/bg-heroes.png') center center / cover no-repeat fixed;
    color: #ffffff;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

.topbar {
    width: 100%;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    border-bottom: 2px solid #27d34d;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.topbar-inner {
    width: 95%;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-size: 30px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(39, 211, 77, 0.45);
    white-space: nowrap;
}

.logo span {
    color: #27d34d;
}

.menu {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.menu a,
.menu .welcome {
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 15px;
    transition: 0.25s ease;
}

.menu a:hover {
    background: #27d34d;
    color: #08140b;
    font-weight: bold;
}

.menu .welcome {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
}

.container {
    width: 95%;
    max-width: 1280px;
    margin: 30px auto;
}

.hero {
    background: linear-gradient(135deg, rgba(4, 18, 8, 0.88), rgba(18, 70, 28, 0.82));
    border: 1px solid rgba(39, 211, 77, 0.30);
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(39, 211, 77, 0.18), transparent 30%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 25%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(39, 211, 77, 0.14);
    border: 1px solid rgba(39, 211, 77, 0.35);
    border-radius: 999px;
    color: #9affb0;
    font-size: 14px;
    margin-bottom: 18px;
    font-weight: bold;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 16px;
    font-weight: 900;
    text-transform: uppercase;
}

.hero h1 span {
    color: #27d34d;
    text-shadow: 0 0 16px rgba(39, 211, 77, 0.35);
}

.hero p {
    font-size: 18px;
    color: #e5f9ea;
    line-height: 1.8;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #27d34d, #67ff6f);
    color: #06200d;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(39, 211, 77, 0.30);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.14);
}

.grid {
    width: 100%;
    max-width: 100%;
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.card {
    background: rgba(8, 20, 12, 0.78);
    border: 1px solid rgba(39, 211, 77, 0.22);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
    transition: 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(103, 255, 111, 0.45);
}

.card h2 {
    font-size: 26px;
    margin-bottom: 12px;
    color: #7fff8d;
}

.card p,
.card li {
    color: #eaf8ed;
    line-height: 1.8;
    font-size: 15px;
}

.page-title {
    font-size: 34px;
    color: #98ff9d;
    margin-bottom: 20px;
    font-weight: 900;
}

.form-box {
    max-width: 520px;
    margin: 40px auto;
    background: rgba(8, 20, 12, 0.84);
    border: 1px solid rgba(39, 211, 77, 0.22);
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.form-box h2 {
    margin-bottom: 20px;
    text-align: center;
    color: #98ff9d;
    font-size: 30px;
}

input,
button,
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 14px;
    border-radius: 12px;
    font-size: 15px;
}

input,
textarea,
select {
    background: rgba(255,255,255,0.95);
    color: #111;
    border: none;
    outline: none;
}

button {
    border: none;
    background: linear-gradient(135deg, #27d34d, #67ff6f);
    color: #06200d;
    font-weight: 900;
    cursor: pointer;
    transition: 0.25s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(39, 211, 77, 0.28);
}

.notice {
    background: rgba(39, 211, 77, 0.10);
    border: 1px solid rgba(39, 211, 77, 0.22);
    color: #dfffe4;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.table-wrap {
    overflow-x: auto;
    background: rgba(8, 20, 12, 0.78);
    border: 1px solid rgba(39, 211, 77, 0.20);
    border-radius: 18px;
    padding: 10px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
}

.table th,
.table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.table th {
    background: rgba(39, 211, 77, 0.12);
    color: #9effa5;
    font-size: 15px;
}

.table tr:hover td {
    background: rgba(255,255,255,0.04);
}

.section-box {
    background: rgba(8, 20, 12, 0.78);
    border: 1px solid rgba(39, 211, 77, 0.22);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.download-btn {
    display: inline-block;
    padding: 14px 24px;
    background: linear-gradient(135deg, #27d34d, #67ff6f);
    color: #06200d;
    border-radius: 12px;
    font-weight: 900;
    margin-top: 18px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(39, 211, 77, 0.28);
}

.rules-list {
    padding-left: 20px;
    margin-top: 12px;
}

.rules-list li {
    margin-bottom: 10px;
}

@media (max-width: 1100px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 0;
    }

    .menu {
        width: 100%;
        justify-content: flex-start;
    }

    .hero {
        padding: 40px 24px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 16px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 24px;
    }
}

.account-box {
    margin-top: 28px;
    background: rgba(8, 20, 12, 0.88);
    border: 1px solid rgba(39, 211, 77, 0.25);
    border-radius: 22px;
    padding: 28px;
    text-align: center;
}

.account-title {
    font-size: 28px;
    font-weight: 900;
    color: #9effa5;
    margin-bottom: 20px;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.account-item {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 18px;
}

.acc-label {
    color: #7dff87;
    font-weight: bold;
    margin-bottom: 8px;
}

.acc-value {
    font-size: 18px;
    color: #fff;
}

.acc-value.ecoin {
    color: #ffd86b;
}

.change-pass {
    color: #ff4d4d;
    font-weight: bold;
}

.change-pass:hover {
    color: #7dff87;
}

/* FIX GRID = TABLE WIDTH */
.hero,
.account-box,
.table-wrap,
.grid {
    width: 100%;
}

/* ép card đều nhau */
.card {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* đảm bảo grid không lệch */
.grid {
    width: 100%;
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.content-limit {
    width: 100%;
    max-width: 1280px;
    margin: 28px auto 0;
}

.content-limit .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}