/* ========================================================
   KINGSOFT XOYO PASSPORT THEME - PHIÊN BẢN VIỆT HÓA CHUẨN
   Theo thiết kế chính thức: https://passport.xoyo.com/signin
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Noto+Serif+SC:wght@600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

:root {
    --xoyo-red: #b52b27;
    --xoyo-red-hover: #9c221e;
    --xoyo-gold: #c5a059;
    --xoyo-gold-light: #e6cb8b;
    --xoyo-border: #e2dbcb;
    --bg-page: #f8f8f8;
    --bg-card: #ffffff;
    --text-main: #333333;
    --text-muted: #888888;
    --text-link: #3b5998;
    --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --font-serif: 'Noto Serif SC', 'Georgia', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1.5;
}

/* ================= TOP ANNOUNCEMENT BAR ================= */
.top-notice-bar {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    color: #999;
    padding: 6px 0;
}

.top-notice-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-notice-content .links a {
    color: #666;
    margin-left: 15px;
    text-decoration: none;
    transition: color 0.2s;
}

.top-notice-content .links a:hover {
    color: var(--xoyo-red);
}

/* ================= HEADER / NAVBAR ================= */
.xoyo-header {
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.xoyo-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xoyo-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.xoyo-logo-badge {
    background: var(--xoyo-red);
    color: #ffffff;
    font-weight: 900;
    font-size: 18px;
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: 1px;
    font-family: var(--font-sans);
}

.xoyo-logo-text {
    display: flex;
    flex-direction: column;
}

.xoyo-logo-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--xoyo-red);
    letter-spacing: 0.5px;
}

.xoyo-logo-sub {
    font-size: 11px;
    color: #999;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.xoyo-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.xoyo-nav a {
    color: #444444;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    padding: 6px 0;
}

.xoyo-nav a:hover, .xoyo-nav a.active {
    color: var(--xoyo-red);
}

.xoyo-nav a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--xoyo-red);
}

/* ================= MAIN CONTAINER ================= */
.xoyo-main {
    flex: 1;
    max-width: 1180px;
    width: 100%;
    margin: 35px auto;
    padding: 0 20px;
}

.xoyo-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 960px) {
    .xoyo-grid {
        grid-template-columns: 1fr;
    }
    .xoyo-illus {
        display: none;
    }
}

/* ================= LEFT ILLUSTRATION ================= */
.xoyo-illus {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.xoyo-illus-svg {
    width: 100%;
    max-width: 440px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.08));
}

/* ================= RIGHT PASSPORT CARD ================= */
.passport-card {
    background: #ffffff;
    border: 1px solid var(--xoyo-border);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 35px 32px 30px;
    position: relative;
}

/* Decorative subtle vintage inner corners like XOYO */
.passport-card::before, .passport-card::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-color: var(--xoyo-gold);
    pointer-events: none;
}
.passport-card::before {
    top: 6px;
    left: 6px;
    border-top: 1px solid;
    border-left: 1px solid;
}
.passport-card::after {
    bottom: 6px;
    right: 6px;
    border-bottom: 1px solid;
    border-right: 1px solid;
}

/* TAB SWITCHER */
.passport-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 25px;
}

.passport-tab-btn {
    flex: 1;
    text-align: center;
    padding: 10px 0 12px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.passport-tab-btn.active {
    color: var(--xoyo-red);
    font-weight: 700;
}

.passport-tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--xoyo-red);
}

.passport-tab-btn:hover {
    color: var(--xoyo-red);
}

/* INPUT GROUPS */
.xoyo-form-group {
    margin-bottom: 18px;
}

.xoyo-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #dcdcdc;
    border-radius: 3px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.xoyo-input-wrap:focus-within {
    border-color: #b52b27;
    box-shadow: 0 0 0 2px rgba(181, 43, 39, 0.1);
}

.xoyo-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    background: #f9f9f9;
    color: #999999;
    border-right: 1px solid #ececec;
    font-size: 15px;
}

.xoyo-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    padding: 11px 14px;
    font-size: 14px;
    color: #333333;
    font-family: var(--font-sans);
}

.xoyo-input-wrap input::placeholder {
    color: #bbbbbb;
}

/* CAPTCHA ROW */
.xoyo-captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.xoyo-captcha-img {
    height: 42px;
    border: 1px solid #dcdcdc;
    border-radius: 3px;
    cursor: pointer;
    vertical-align: middle;
}

.xoyo-captcha-refresh {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #666;
    height: 42px;
    width: 42px;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.xoyo-captcha-refresh:hover {
    background: #ebebeb;
    color: var(--xoyo-red);
}

/* SUBMIT BUTTON (SIGNIN/SIGNUP) */
.xoyo-btn-submit {
    width: 100%;
    background: var(--xoyo-red);
    color: #ffffff;
    border: none;
    border-radius: 3px;
    height: 44px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(181, 43, 39, 0.3);
    transition: background-color 0.2s, box-shadow 0.2s;
    margin-top: 6px;
}

.xoyo-btn-submit:hover {
    background: var(--xoyo-red-hover);
    box-shadow: 0 4px 10px rgba(181, 43, 39, 0.4);
}

.xoyo-btn-submit:active {
    transform: translateY(1px);
}

/* AGREEMENT & LINKS */
.xoyo-agreement {
    font-size: 12px;
    color: #777;
    margin: 14px 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.xoyo-agreement a {
    color: var(--xoyo-red);
    text-decoration: none;
}

.xoyo-form-links {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #f2f2f2;
}

.xoyo-form-links a {
    color: #666666;
    text-decoration: none;
}

.xoyo-form-links a:hover {
    color: var(--xoyo-red);
}

/* ERROR MESSAGE */
.xoyo-error-box {
    background: #fff3f2;
    border: 1px solid #ffccc7;
    color: #cf1322;
    padding: 8px 12px;
    border-radius: 3px;
    font-size: 12.5px;
    margin-bottom: 15px;
    display: none;
    align-items: center;
    gap: 8px;
}

.xoyo-error-box:not(:empty) {
    display: flex;
}

/* ================= MEMBER CENTER (THONGTIN.PHP) ================= */
.member-wrapper {
    max-width: 1180px;
    margin: 25px auto;
    padding: 0 20px;
}

.member-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.member-header-banner {
    background: linear-gradient(135deg, #2b3240 0%, #1f242e 100%);
    color: #ffffff;
    padding: 30px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--xoyo-gold);
}

.member-user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.member-avatar {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #e6cb8b 0%, #c5a059 100%);
    color: #2b3240;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.member-meta h2 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-meta p {
    font-size: 13px;
    color: #a0aec0;
}

.member-body-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 30px;
    padding: 30px 35px;
}

@media (max-width: 900px) {
    .member-body-grid {
        grid-template-columns: 1fr;
    }
}

.member-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #2b3240;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.member-section-title i {
    color: var(--xoyo-red);
}

/* Member Info Table */
.xoyo-info-table {
    width: 100%;
    border-collapse: collapse;
}

.xoyo-info-table tr {
    border-bottom: 1px solid #f2f2f2;
}

.xoyo-info-table td {
    padding: 12px 10px;
    font-size: 13.5px;
}

.xoyo-info-table td:first-child {
    width: 35%;
    color: #777777;
    font-weight: 500;
}

.xoyo-info-table td:last-child {
    color: #333333;
    font-weight: 600;
}

/* Feature Navigation Cards */
.member-action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.member-action-item {
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 18px 15px;
    text-align: center;
    text-decoration: none;
    color: #444;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.member-action-item i {
    font-size: 24px;
    color: var(--xoyo-red);
    transition: transform 0.2s ease;
}

.member-action-item span {
    font-size: 13px;
    font-weight: 600;
}

.member-action-item:hover {
    background: #ffffff;
    border-color: var(--xoyo-red);
    box-shadow: 0 4px 12px rgba(181, 43, 39, 0.1);
    transform: translateY(-2px);
    color: var(--xoyo-red);
}

.member-action-item:hover i {
    transform: scale(1.15);
}

/* BADGES */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-online {
    background: #e6f7ef;
    color: #27ae60;
    border: 1px solid #a3e6c3;
}

.status-offline {
    background: #f5f5f5;
    color: #888888;
    border: 1px solid #e0e0e0;
}

.status-xu {
    background: #fef7e6;
    color: #d35400;
    border: 1px solid #f9d8a5;
    font-weight: 700;
}

/* ================= FOOTER ================= */
.xoyo-footer {
    background: #ffffff;
    border-top: 1px solid #eeeeee;
    padding: 30px 20px;
    text-align: center;
    color: #888888;
    font-size: 12.5px;
    line-height: 1.8;
    margin-top: auto;
}

.xoyo-footer-links {
    margin-bottom: 10px;
}

.xoyo-footer-links a {
    color: #666666;
    margin: 0 10px;
    text-decoration: none;
}

.xoyo-footer-links a:hover {
    color: var(--xoyo-red);
}

.xoyo-footer-motto {
    color: #aaaaaa;
    font-size: 11.5px;
    margin-top: 8px;
}