/* Fix layout/menu/ranking/register - TL Tiếu Ngạo PHP */
* { box-sizing: border-box; }

.nav-menu { z-index: 8; }
.custom-menu {
    width: 1200px !important;
    max-width: 1200px;
    margin: 0 auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.nav-menu .logo { display: none !important; }
.nav-menu > .center > ul,
.nav-menu .main-nav-list {
    width: 100%;
    height: 82px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.nav-menu > .center > ul li,
.nav-menu .main-nav-list > li {
    float: none !important;
    height: 82px !important;
    line-height: 82px !important;
    padding: 0 9px !important;
    font-size: 15px !important;
    letter-spacing: .1px;
    transition: transform .2s ease, color .2s ease;
}
.nav-menu > .center > ul li a,
.nav-menu .main-nav-list > li a {
    display: block;
    white-space: nowrap;
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
.nav-menu > .center > ul li:hover,
.nav-menu > .center > ul li.act,
.nav-menu .main-nav-list > li:hover,
.nav-menu .main-nav-list > li.act {
    transform: translateY(-1px);
}
.nav-menu > .center > ul li:hover a,
.nav-menu > .center > ul li.act a,
.nav-menu .main-nav-list > li:hover a,
.nav-menu .main-nav-list > li.act a {
    color: #ffd489 !important;
}
.nav-menu > .center > ul li::before,
.nav-menu .main-nav-list > li::before {
    left: -3px !important;
}

.mainTOP {
    width: 1200px !important;
    margin: 15px auto 0 !important;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.mainTOP_left {
    width: 275px !important;
    flex: 0 0 275px;
    float: none !important;
}
.mainTOP_center {
    width: auto !important;
    flex: 1 1 auto;
    min-width: 0;
    float: none !important;
    margin-left: 0 !important;
}
.mainTOP_right {
    width: 280px !important;
    flex: 0 0 280px;
    float: none !important;
}
.mainTOP_center_1,
.rank-page-card,
.register-page-card,
.simple-page-card {
    overflow: hidden;
    border: 1px solid rgba(139, 69, 0, .28) !important;
    border-radius: 14px;
    background: rgba(255, 250, 240, .95);
    box-shadow: 0 12px 28px rgba(70, 35, 5, .16);
}
.mainTOP_center_2 {
    overflow: hidden;
    border: 1px solid rgba(139, 69, 0, .25) !important;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(70, 35, 5, .12);
}

.rank-heading,
.page-heading {
    padding: 16px 22px 14px;
    color: #8b4500;
    font-size: 19px;
    font-weight: 700;
    text-align: center;
    letter-spacing: .4px;
    background: linear-gradient(180deg, #fff7e8 0%, #ead3a8 100%);
    border-bottom: 1px solid rgba(139, 69, 0, .18);
}
.rank-subtitle {
    margin-top: 5px;
    color: #7d6542;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
}
.rank-tabs {
    position: relative;
    min-height: 458px;
    background: #fffdf7;
}
.rank-tabs > input,
.rank-tabs > span {
    width: 33.333333% !important;
    height: 48px !important;
    line-height: 48px !important;
    top: 0 !important;
}
.rank-tabs > span {
    color: #6b3a08;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(180deg, #fffaf0 0%, #ead5ad 100%) !important;
    border-right: 1px solid rgba(139, 69, 0, .15);
    cursor: pointer;
}
.rank-tabs > input:hover + span,
.rank-tabs > input:checked + span {
    color: #0b7a24 !important;
    background: #fff !important;
}
.rank-tabs .line {
    top: 48px !important;
    width: 33.333333% !important;
    height: 4px !important;
    background: linear-gradient(90deg, #148d2c, #73c043) !important;
    transition: left .25s ease;
}
.rank-tabs #tab-1,
.rank-tabs #tab-1 + span { left: 0 !important; }
.rank-tabs #tab-2,
.rank-tabs #tab-2 + span { left: 33.333333% !important; }
.rank-tabs #tab-3,
.rank-tabs #tab-3 + span { left: 66.666666% !important; }
.rank-tabs #tab-1:checked ~ .line { left: 0 !important; }
.rank-tabs #tab-2:checked ~ .line { left: 33.333333% !important; }
.rank-tabs #tab-3:checked ~ .line { left: 66.666666% !important; }
.rank-tab-content {
    padding: 70px 16px 18px !important;
    min-height: 390px !important;
}
.rank-table {
    width: 100%;
    margin: 0 auto;
    border-collapse: separate !important;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(139, 69, 0, .18);
}
.rank-table th,
.rank-table td {
    padding: 11px 9px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(139, 69, 0, .15) !important;
    text-align: center !important;
    vertical-align: middle !important;
    font-size: 14px !important;
    line-height: 1.35;
}
.rank-table th {
    color: #fff8e8 !important;
    background: linear-gradient(180deg, #9d5209 0%, #733806 100%) !important;
    font-weight: 700 !important;
}
.rank-table tbody tr:nth-of-type(odd) { background: #fff8ed !important; }
.rank-table tbody tr:nth-of-type(even) { background: #f4e6ca !important; }
.rank-table tbody tr:hover {
    background: #ffe1a5 !important;
    transition: background .2s ease;
}
.rank-table tbody tr:last-child td { border-bottom: 0 !important; }
.rank-table .rank-name {
    text-align: left !important;
    color: #17406d;
    font-weight: 700;
}
.rank-number {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #7b4208;
    background: #f7ddb0;
    font-weight: 700;
}
.rank-1 { color: #8b2a00; background: #ffd36d; }
.rank-2 { color: #4d4d4d; background: #e8e8e8; }
.rank-3 { color: #7a3c00; background: #f1b56a; }
.rank-empty {
    padding: 22px 12px !important;
    color: #8b4500;
    font-weight: 600;
    text-align: center !important;
}

.standalone-wrap {
    width: 1200px;
    margin: 0 auto;
    padding: 240px 0 45px;
}
.standalone-wrap.compact-top { padding-top: 190px; }
.rank-page-card,
.register-page-card,
.simple-page-card {
    max-width: 880px;
    margin: 0 auto;
}
.rank-page-card .rank-tabs { min-height: 520px; }
.rank-page-card .rank-tab-content { min-height: 452px !important; }
.simple-page-body,
.register-page-body {
    padding: 24px 30px 30px;
    color: #553417;
    font-size: 16px;
    line-height: 1.7;
    background: #fffdf7;
}
.simple-page-body a { color: #0a6ea8; font-weight: 700; }

.quick-register-form {
    display: grid;
    gap: 12px;
}
.quick-register-form label {
    display: grid;
    gap: 6px;
    color: #5a3512;
    font-size: 14px;
    font-weight: 700;
}
.quick-register-form input,
.quick-register-form select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    color: #3b2614;
    border: 1px solid rgba(139, 69, 0, .28);
    border-radius: 8px;
    background: #fff;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.quick-register-form input:focus,
.quick-register-form select:focus {
    border-color: #1f8f2e;
    box-shadow: 0 0 0 3px rgba(31, 143, 46, .12);
}
.captcha-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    align-items: center;
}
.captcha-row strong {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(139, 69, 0, .45);
    border-radius: 8px;
    color: #0b7a24;
    background: #fff7dc;
    font-size: 18px;
    letter-spacing: .8px;
}
.register-submit,
.modal-close {
    border: 0;
    cursor: pointer;
}
.register-submit {
    height: 46px;
    border-radius: 9px;
    color: #fff8e6;
    font-weight: 800;
    letter-spacing: .5px;
    background: linear-gradient(180deg, #159235 0%, #086c22 100%);
    box-shadow: 0 8px 18px rgba(8, 108, 34, .28);
}
.register-submit:hover { filter: brightness(1.06); }
.form-message {
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 14px;
    line-height: 1.45;
}
.form-message.is-success {
    color: #075d18;
    background: #e4f7df;
    border: 1px solid #a9d99e;
}
.form-message.is-error {
    color: #8a1d12;
    background: #fff0ed;
    border: 1px solid #edb3aa;
}
.register-modal {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(10, 9, 7, .68);
}
body.register-open .register-modal { display: flex; }
.register-modal-card {
    position: relative;
    width: min(430px, 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 226, 164, .42);
    background: #fffdf7;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .38);
    overflow: hidden;
}
.register-modal-card .page-heading { padding-right: 50px; }
.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #8b4500;
    background: #fff3d9;
    font-size: 20px;
    line-height: 34px;
}
.register-modal-body { padding: 20px 22px 24px; }

.btn-img { transition: transform .18s ease, filter .18s ease; }
.btn-img:hover { transform: translateY(-2px); filter: brightness(1.08); }
.shpk img { border-radius: 10px; box-shadow: 0 8px 18px rgba(70, 35, 5, .12); }

@media only screen and (max-width: 1200px) {
    .custom-menu,
    .mainTOP,
    .standalone-wrap { width: 1200px !important; }
}
.main-logo a { background: none !important; }


/* Account / donate / pet skill pages */
.account-intro {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #5a3512;
    background: #fff7dc;
    border: 1px solid rgba(139, 69, 0, .18);
}
.account-profile-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}
.account-profile-card > div {
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff8e8 0%, #f2dfbd 100%);
    border: 1px solid rgba(139, 69, 0, .18);
}
.account-profile-card .label {
    display: block;
    margin-bottom: 4px;
    color: #8b6330;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.account-profile-card strong {
    color: #17406d;
    font-size: 16px;
    word-break: break-word;
}
.account-action-grid,
.donate-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.account-action-card,
.donate-card {
    display: block;
    min-height: 112px;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(139, 69, 0, .2);
    background: #fff9ee;
    box-shadow: 0 8px 18px rgba(70, 35, 5, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.account-action-card:hover,
.donate-card:hover {
    transform: translateY(-2px);
    border-color: rgba(12, 126, 39, .35);
    box-shadow: 0 14px 28px rgba(70, 35, 5, .14);
}
.account-action-card strong,
.donate-card strong {
    display: block;
    margin-bottom: 8px;
    color: #8b4500;
    font-size: 18px;
}
.account-action-card span,
.donate-card span {
    color: #5d4324;
    font-size: 14px;
    line-height: 1.55;
}
.form-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #0a6ea8;
    font-weight: 700;
}
.form-links a {
    color: #0a6ea8;
}
.form-links.below-form {
    margin-top: 14px;
    justify-content: center;
}
.checkbox-label {
    grid-template-columns: 22px 1fr !important;
    align-items: start;
    gap: 10px !important;
    font-weight: 600 !important;
}
.checkbox-label input {
    width: 18px !important;
    height: 18px !important;
    margin-top: 2px;
    padding: 0 !important;
}
.pet-skill-note,
.contact-box,
.donate-hero {
    padding: 15px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: #fff7dc;
    border: 1px solid rgba(139, 69, 0, .18);
    color: #5a3512;
}
.pet-skill-note p,
.donate-hero p,
.contact-box p {
    margin: 8px 0 0;
}
.skill-code {
    display: block;
    margin-top: 8px;
    padding: 10px;
    border-radius: 8px;
    background: #2b2119;
    color: #ffe2a5;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-all;
    white-space: normal;
}
.contact-box h3 {
    margin: 0 0 12px;
    color: #8b4500;
    font-size: 18px;
}
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.contact-actions a {
    display: inline-flex;
    min-height: 40px;
    padding: 0 16px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff8e6 !important;
    background: linear-gradient(180deg, #159235 0%, #086c22 100%);
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(8, 108, 34, .22);
}
.contact-actions a:hover {
    filter: brightness(1.06);
}
.bank-info {
    margin-top: 14px;
    padding: 12px;
    border-radius: 10px;
    background: #fffdf7;
    border: 1px dashed rgba(139, 69, 0, .32);
}
.form-help {
    color: #765025;
    font-size: 14px;
    line-height: 1.6;
}
.account-form select {
    cursor: pointer;
}
@media only screen and (max-width: 1200px) {
    .account-profile-card,
    .account-action-grid,
    .donate-card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Clear account management frame */
.account-tool-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px;
    border-radius: 12px;
    background: #fff7dc;
    border: 1px solid rgba(139, 69, 0, .18);
}
.account-tool-nav a {
    display: inline-flex;
    min-height: 38px;
    padding: 0 15px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #7b4208;
    background: #fffdf7;
    border: 1px solid rgba(139, 69, 0, .22);
    font-weight: 800;
}
.account-tool-nav a.is-active,
.account-tool-nav a:hover {
    color: #fff8e6 !important;
    background: linear-gradient(180deg, #159235 0%, #086c22 100%);
    border-color: rgba(8, 108, 34, .35);
}
.data-panel {
    margin-top: 18px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(139, 69, 0, .18);
    background: #fffdf7;
    box-shadow: 0 8px 18px rgba(70, 35, 5, .08);
}
.data-panel h3 {
    margin: 0 0 12px;
    color: #8b4500;
    font-size: 18px;
}
.account-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(139, 69, 0, .18);
}
.account-data-table th,
.account-data-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(139, 69, 0, .14);
    text-align: center;
    vertical-align: middle;
    color: #543716;
    font-size: 13px;
}
.account-data-table th {
    color: #fff8e8;
    background: linear-gradient(180deg, #9d5209 0%, #733806 100%);
    font-weight: 800;
}
.account-data-table tbody tr:nth-of-type(odd) { background: #fff8ed; }
.account-data-table tbody tr:nth-of-type(even) { background: #f4e6ca; }
.account-data-table tbody tr:last-child td { border-bottom: 0; }
.account-data-table .text-left,
.text-left { text-align: left !important; }
.account-data-table code {
    display: inline-block;
    max-width: 180px;
    padding: 4px 6px;
    border-radius: 6px;
    background: #2b2119;
    color: #ffe2a5;
    font-size: 11px;
    line-height: 1.4;
    word-break: break-all;
}
.login-remember-row {
    margin-top: -4px !important;
}
@media only screen and (max-width: 1200px) {
    .account-data-table th,
    .account-data-table td { font-size: 12px; }
}

/* Schema/online status helpers */
.form-message code,
.pet-skill-note code {
    display: inline-block;
    padding: 2px 5px;
    border-radius: 5px;
    background: #2b2119;
    color: #ffe2a5;
    font-size: 12px;
    line-height: 1.4;
    word-break: break-all;
}
.status-bad {
    display: inline-block;
    margin-top: 4px;
    color: #b10000;
    font-weight: 800;
}
.account-tool-nav a + a {
    margin-left: 0;
}

.dashboard-tool-block {
    margin-top: 18px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(139, 69, 0, .18);
    background: #fffdf7;
    box-shadow: 0 8px 18px rgba(70, 35, 5, .08);
}
.dashboard-tool-block h3 {
    margin: 0 0 12px;
    color: #8b4500;
    font-size: 18px;
}
.status-good {
    display: inline-block;
    margin-top: 4px;
    color: #087a24;
    font-weight: 800;
}
.pet-skill-note {
    line-height: 1.65;
}
