/* ============================================================
   Reine Bot Dashboard — theme sakura (khớp vibe yuusocuti.xyz)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&family=M+PLUS+Rounded+1c:wght@400;500;700&display=swap');

:root {
    --sakura-pink: #ffb7c5;
    --sakura-light: #ffe4e9;
    --sakura-dark: #ff7b9d;
    --sakura-accent: #ff6b9d;
    --sakura-bg: #fff5f7;
    --sakura-white: #ffffff;
    --sakura-text: #4a4a4a;
    --sakura-text-light: #8b8b8b;
    --radius: 18px;
    --shadow: 0 8px 30px rgba(255, 123, 157, 0.12);
    --shadow-hover: 0 12px 40px rgba(255, 123, 157, 0.22);
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
    margin: 0;
    font-family: 'Quicksand', 'M PLUS Rounded 1c', sans-serif;
    color: var(--sakura-text);
    background: var(--sakura-bg);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 183, 197, 0.10) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 228, 233, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 183, 197, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
    min-height: 100vh;
}

h1, h2, h3, h4 { font-family: 'M PLUS Rounded 1c', 'Quicksand', sans-serif; color: var(--sakura-text); }
a { color: var(--sakura-accent); text-decoration: none; }

/* ---------- Topbar ---------- */
.topbar {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sakura-light);
    position: sticky; top: 0; z-index: 50;
}
.topbar .brand { font-weight: 700; font-size: 1.25rem; color: var(--sakura-accent); display: flex; align-items: center; gap: 8px; }
.topbar .spacer { flex: 1; }
.topbar .user { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.topbar .user img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--sakura-pink); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border: none; border-radius: 999px;
    font-family: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
    background: linear-gradient(135deg, var(--sakura-accent), var(--sakura-dark));
    color: #fff; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, opacity .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn.ghost { background: var(--sakura-white); color: var(--sakura-accent); border: 1.5px solid var(--sakura-pink); box-shadow: none; }
.btn.discord { background: #5865F2; }
.btn.sm { padding: 7px 14px; font-size: .85rem; }

/* ---------- Layout containers ---------- */
/* z-index:2 để nội dung luôn NẰM TRÊN cành sakura (z-index:1) -> cành không che chữ,
   giống logic yuusocuti.xyz (content z-index 2 > branch 1 < petals 9999). */
.container { max-width: 1100px; margin: 0 auto; padding: 28px 20px; position: relative; z-index: 2; }
.center-screen { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; z-index: 2; }

.card {
    background: var(--sakura-white); border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid var(--sakura-light); padding: 24px; }

/* ============================================================
   LANDING PAGE
   ============================================================ */
.lp-hero, .lp-section, .lp-footer { position: relative; z-index: 2; } /* trên cành sakura */
.lp-hero { text-align: center; max-width: 760px; margin: 0 auto; padding: 56px 20px 30px; }
.lp-logo { font-size: 4.5rem; line-height: 1; filter: drop-shadow(0 6px 16px rgba(255,107,157,.35)); animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.lp-hero h1 { font-size: 2.6rem; margin: 14px 0 10px; }
.lp-hero h1 .grad { background: linear-gradient(135deg, var(--sakura-accent), var(--sakura-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-sub { color: var(--sakura-text-light); font-size: 1.05rem; line-height: 1.65; margin: 0 0 26px; }
.lp-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lp-cta .btn { padding: 13px 26px; font-size: 1rem; }

.stat-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 34px auto 0; }
.stat-strip .ss { background: var(--sakura-white); border: 1px solid var(--sakura-light); border-radius: 16px;
    box-shadow: var(--shadow); padding: 14px 26px; min-width: 110px; }
.stat-strip .n { font-size: 1.7rem; font-weight: 800; color: var(--sakura-accent); }
.stat-strip .l { color: var(--sakura-text-light); font-size: .85rem; }

.lp-section { max-width: 1080px; margin: 0 auto; padding: 36px 20px; }
.lp-h2 { text-align: center; font-size: 1.8rem; margin: 0 0 26px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.feat-card { background: var(--sakura-white); border: 1px solid var(--sakura-light); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 22px; transition: transform .15s, box-shadow .15s; }
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feat-card .fi { font-size: 2.2rem; }
.feat-card h3 { margin: 10px 0 6px; }
.feat-card p { color: var(--sakura-text-light); font-size: .92rem; line-height: 1.55; margin: 0; }

.lp-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.lp-highlights .hl { display: flex; align-items: center; gap: 12px; background: #fffafb; border: 1.5px solid var(--sakura-light);
    border-radius: 14px; padding: 16px; }
.lp-highlights .hl i { font-size: 1.5rem; color: var(--sakura-accent); width: 32px; text-align: center; flex: none; }
.lp-highlights .hl b { display: block; }
.lp-highlights .hl span { color: var(--sakura-text-light); font-size: .85rem; }

.lp-final { text-align: center; }
.lp-footer { text-align: center; padding: 30px 20px 50px; color: var(--sakura-text-light); }
.lp-footer a { color: var(--sakura-accent); }

@media (max-width: 600px) {
    .lp-hero h1 { font-size: 2rem; }
    .lp-cta .btn { width: 100%; max-width: 320px; }
}

/* ---------- Landing hero (cũ — login đơn) ---------- */
.hero { text-align: center; max-width: 460px; }
.hero .logo { font-size: 3.2rem; }
.hero h1 { font-size: 2rem; margin: 12px 0 6px; }
.hero p { color: var(--sakura-text-light); margin: 0 0 22px; line-height: 1.6; }

/* ---------- Servers grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.server-card {
    background: var(--sakura-white); border-radius: var(--radius); border: 1px solid var(--sakura-light);
    box-shadow: var(--shadow); padding: 20px; text-align: center; transition: transform .15s, box-shadow .15s; }
.server-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.server-card .icon, .server-card .icon-fallback {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px; object-fit: cover;
    border: 3px solid var(--sakura-light); }
.server-card .icon-fallback {
    display: flex; align-items: center; justify-content: center;
    background: var(--sakura-light); color: var(--sakura-accent); font-size: 1.6rem; font-weight: 700; }
.server-card .name { font-weight: 700; margin-bottom: 14px; word-break: break-word; }
.muted { color: var(--sakura-text-light); }

/* ---------- Settings page ---------- */
.dash-layout { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
/* grid item mặc định min-width:auto -> không co được -> tràn ngang. Ép min-width:0 để co theo viewport. */
.dash-layout > * { min-width: 0; }
.dash-layout main { min-width: 0; overflow-wrap: anywhere; }
.sidebar { background: var(--sakura-white); border-radius: var(--radius); box-shadow: var(--shadow);
    border: 1px solid var(--sakura-light); padding: 14px; position: sticky; top: 84px; }
.sidebar .guild { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; border-bottom: 1px solid var(--sakura-light); margin-bottom: 10px; }
.sidebar .guild img, .sidebar .guild .gi { width: 38px; height: 38px; border-radius: 50%; }
.sidebar .guild .gi { background: var(--sakura-light); color: var(--sakura-accent); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.sidebar .guild b { font-size: .95rem; word-break: break-word; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px;
    cursor: pointer; font-weight: 600; color: var(--sakura-text); transition: background .15s, color .15s; }
.nav-item:hover { background: var(--sakura-bg); }
.nav-item.active { background: linear-gradient(135deg, var(--sakura-accent), var(--sakura-dark)); color: #fff; }
.nav-item i { width: 18px; text-align: center; }

.panel { display: none; }
.panel.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.panel h2 { margin-top: 0; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; }
.field .hint { font-weight: 400; color: var(--sakura-text-light); font-size: .85rem; margin-left: 6px; }
.input, select, textarea {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--sakura-light); border-radius: 12px;
    font-family: inherit; font-size: .95rem; color: var(--sakura-text); background: #fffafb; transition: border-color .15s; }
.input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sakura-pink); }
textarea { min-height: 90px; resize: vertical; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > .field { flex: 1; min-width: 160px; }

/* Toggle switch */
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px; background: #fffafb; border: 1.5px solid var(--sakura-light); border-radius: 14px; margin-bottom: 12px; }
.toggle .t-label b { display: block; }
.toggle .t-label span { color: var(--sakura-text-light); font-size: .85rem; }
.switch { position: relative; width: 50px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: #e6c6cf; border-radius: 999px; transition: .25s; cursor: pointer; }
.slider::before { content: ''; position: absolute; height: 22px; width: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s; }
.switch input:checked + .slider { background: linear-gradient(135deg, var(--sakura-accent), var(--sakura-dark)); }
.switch input:checked + .slider::before { transform: translateX(22px); }

.save-bar { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.tag { display: inline-block; background: var(--sakura-light); color: var(--sakura-accent); border-radius: 999px; padding: 4px 12px; margin: 0 6px 6px 0; font-size: .85rem; font-weight: 600; }
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.stat { flex: 1; min-width: 130px; background: #fffafb; border: 1.5px solid var(--sakura-light); border-radius: 14px; padding: 14px; text-align: center; }
.stat .num { font-size: 1.6rem; font-weight: 700; color: var(--sakura-accent); }
.stat .lbl { color: var(--sakura-text-light); font-size: .85rem; }
.lb-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--sakura-light); }
.lb-item .rank { width: 26px; height: 26px; border-radius: 50%; background: var(--sakura-light); color: var(--sakura-accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; flex: none; }
.lb-item .lb-av { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--sakura-light); flex: none; }
.lb-item .lb-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Sakura branch (cành hoa trang trí, port từ sakura-theme.css) ---------- */
@keyframes branch-sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2deg); }
}
.sakura-branch {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
}
.sakura-branch img {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(139, 69, 19, 0.25));
}
.sakura-branch-top-left {
    top: -30px;
    left: -30px;
    width: 500px;
    height: auto;
    transform-origin: top left;
    animation: branch-sway 6s ease-in-out infinite;
}
@media (max-width: 760px) {
    /* GIỮ cành — chỉ thu nhỏ (giống yuusocuti.xyz). Content z-index:2 đã nằm trên nên cành không che chữ. */
    .sakura-branch-top-left { width: 240px; top: -10px; left: -8px; opacity: 0.8; }
}

/* Reaction roles */
.role-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-bottom: 14px; }
.role-check { display: flex; align-items: center; gap: 8px; padding: 8px 11px; background: #fffafb;
    border: 1.5px solid var(--sakura-light); border-radius: 10px; cursor: pointer; font-size: .9rem; }
.role-check input { accent-color: var(--sakura-accent); width: 16px; height: 16px; }
.rr-panel { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fffafb;
    border: 1.5px solid var(--sakura-light); border-radius: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.rr-panel .pname { font-weight: 700; }
.rr-panel .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.rr-panel .dot.on { background: #5fcf7d; }
.rr-panel .dot.off { background: #d9b7c1; }
.rr-role-row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; align-items: center; }
.rr-role-row select { flex: 2; min-width: 130px; }
.rr-role-row .em { flex: 0 0 70px; }
.rr-role-row .lb { flex: 1.5; min-width: 110px; }
.rr-role-row .ds { flex: 2; min-width: 130px; }
.rr-role-row .del { flex: none; background: #ffe0e6; color: var(--sakura-dark); border: none; border-radius: 8px; width: 36px; height: 38px; cursor: pointer; }
/* các bước hướng dẫn tạo panel */
.rr-steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; counter-reset: rrs; }
.rr-steps li { flex: 1; min-width: 160px; background: #fffafb; border: 1.5px solid var(--sakura-light); border-radius: 12px; padding: 10px 12px 10px 38px; position: relative; font-size: .9rem; }
.rr-steps li::before { counter-increment: rrs; content: counter(rrs); position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--sakura-accent), var(--sakura-dark)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; }
/* header cột cho danh sách role (khớp tỉ lệ rr-role-row) */
.rr-roles-head { display: flex; gap: 8px; font-size: .78rem; color: var(--sakura-text-light); font-weight: 600; padding: 4px 2px; }
.rr-roles-head span:nth-child(1) { flex: 2; min-width: 130px; }
.rr-roles-head span:nth-child(2) { flex: 0 0 70px; }
.rr-roles-head span:nth-child(3) { flex: 1.5; min-width: 110px; }
.rr-roles-head span:nth-child(4) { flex: 2; min-width: 130px; }
.rr-roles-head span:nth-child(5) { flex: 0 0 38px; }
@media (max-width: 760px) { .rr-roles-head { display: none; } }

/* Banned-word rows (mỗi từ 1 mode) */
.bw-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.bw-row .bw-word { flex: 1; min-width: 0; }
.bw-row .bw-mode { flex: 0 0 180px; }
.bw-row .del { flex: none; background: #ffe0e6; color: var(--sakura-dark); border: none; border-radius: 8px; width: 38px; height: 40px; cursor: pointer; }
.bw-guide { margin: 10px 0 6px; background: #fffafb; border: 1.5px solid var(--sakura-light); border-radius: 12px; padding: 4px 14px; }
.bw-guide summary { cursor: pointer; font-weight: 600; color: var(--sakura-accent); padding: 8px 0; }
.bw-guide-body { font-size: .9rem; line-height: 1.55; }
.bw-guide-body code { background: var(--sakura-light); color: #b14a6c; padding: 1px 6px; border-radius: 6px; font-size: .88em; }
.bw-guide-body ul { margin: 6px 0; padding-left: 20px; }
.bw-guide-body li { margin: 3px 0; }
@media (max-width: 760px) { .bw-row { flex-wrap: wrap; } .bw-row .bw-word, .bw-row .bw-mode { flex: 1 1 100%; } }

.loading { text-align: center; padding: 60px 20px; color: var(--sakura-text-light); }
.loading i { font-size: 2rem; color: var(--sakura-pink); }

/* ---------- Overview ---------- */
.ov-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ov-head img, .ov-head .gi { width: 56px; height: 56px; border-radius: 16px; flex: none; }
.ov-head .gi { background: var(--sakura-light); color: var(--sakura-accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.6rem; }
.ov-head .nm { font-size: 1.3rem; font-weight: 700; }
.ov-head .sub { color: var(--sakura-text-light); font-size: .9rem; }
.dot-on { color: #57F287; } .dot-off { color: #aaa; }
.ov-section-title { font-weight: 700; margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.mod-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: .88rem; border: 1.5px solid var(--sakura-light); background: #fffafb; }
.mod-chip.on { border-color: #8fe3a8; background: #effaf1; color: #2f9e54; }
.mod-chip.off { color: var(--sakura-text-light); }

/* ---------- Welcome/Goodbye preview (nền hồng, hợp vibe web) ---------- */
.wpreview { background: linear-gradient(135deg, #fff0f5, #ffe4ec); border: 1.5px solid var(--sakura-pink);
    border-left: 4px solid var(--sakura-accent); border-radius: 14px; padding: 14px 16px;
    color: var(--sakura-text); font-size: .95rem; line-height: 1.5; box-shadow: var(--shadow); }
.wpreview .wp-msg { white-space: pre-wrap; word-break: break-word; }
.wpreview .wp-img { margin-top: 10px; max-width: 100%; max-height: 240px; border-radius: 10px; display: block; }

/* ---------- Wizard ---------- */
.wiz-overlay { position: fixed; inset: 0; background: rgba(74, 30, 45, 0.45); backdrop-filter: blur(3px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.wiz-box { width: 100%; max-width: 440px; }
.wiz-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.wiz-close { background: none; border: none; font-size: 1.8rem; line-height: 1; color: var(--sakura-text-light); cursor: pointer; }
.wiz-progress { height: 6px; background: var(--sakura-light); border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.wiz-bar { height: 100%; width: 25%; background: linear-gradient(135deg, var(--sakura-accent), var(--sakura-dark)); transition: width .3s; }
.wiz-step h3 { margin-top: 0; }
.wiz-step select { width: 100%; }
.wiz-foot { display: flex; align-items: center; gap: 8px; margin-top: 22px; }
.wiz-sum-item { padding: 6px 0; border-bottom: 1px dashed var(--sakura-light); }

@media (max-width: 760px) {
    /* Containers gọn lại */
    .container { padding: 16px 12px; }
    .card { padding: 16px; }

    /* Topbar: tránh tràn, cắt tên user/brand dài, nút Đăng xuất luôn hiện đủ */
    .topbar { padding: 10px 12px; gap: 8px; flex-wrap: nowrap; }
    .topbar .brand { font-size: 1rem; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex-shrink: 1; }
    .topbar .user { max-width: 32vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .topbar .user img { width: 28px; height: 28px; flex: none; }
    .topbar .btn { flex: none; }

    /* Settings: 1 cột. Bỏ thanh tab (cuộn ngang) -> dùng ACCORDION.
       Vẫn giữ sidebar (guild + nút Đổi server) ở trên. */
    .dash-layout { grid-template-columns: 1fr; gap: 12px; }
    .sidebar { position: static; top: auto; padding: 10px; }
    .nav { display: none; } /* thay tab bằng accordion */

    /* Accordion: hiện tất cả panel, mỗi panel là 1 thẻ bấm để xổ */
    .panel { display: block !important; margin-bottom: 12px; }
    .panel > h2 {
        cursor: pointer; margin: 0; font-size: 1.1rem;
        display: flex; align-items: center; justify-content: space-between; gap: 10px;
    }
    .panel > h2::after { content: '\f078'; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: .8rem; color: var(--sakura-accent); transition: transform .25s; }
    .panel.open > h2::after { transform: rotate(180deg); }
    /* Thu gọn: chỉ chừa tiêu đề h2; mở (.open) thì hiện hết */
    .panel:not(.open) > *:not(h2) { display: none; }
    .panel:not(.open) { padding-bottom: 16px; }

    /* Mỗi field 1 dòng cho dễ đọc/chạm */
    .row { gap: 12px; }
    .row > .field { flex: 1 1 100%; min-width: 0; }

    /* Nút Lưu full-width dễ bấm */
    .save-bar { justify-content: stretch; }
    .save-bar .btn { flex: 1; }

    /* Editor reaction-role: mỗi ô full-width thay vì wrap lộn xộn */
    .rr-role-row { gap: 6px; }
    .rr-role-row select, .rr-role-row .em, .rr-role-row .lb, .rr-role-row .ds { flex: 1 1 100%; min-width: 0; }
    .rr-role-row .del { width: 100%; height: 36px; }
    .rr-panel { gap: 8px; }
    .rr-panel .btn { flex: 1; }

    .role-checks { grid-template-columns: 1fr 1fr; }
    .stat { min-width: 100px; }
    .hero h1 { font-size: 1.6rem; }
    .grid { grid-template-columns: 1fr; }
}

/* Màn rất hẹp */
@media (max-width: 380px) {
    .topbar .user { display: none; } /* chỉ giữ nút đăng xuất + brand */
    .role-checks { grid-template-columns: 1fr; }
}

/* ---------- Schedules + Access Control + Admin (v17) ---------- */
.sched-item, .ban-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--sakura-light); }
.sched-item .sched-time { font-weight: 700; color: var(--sakura-accent); background: var(--sakura-light); border-radius: 8px; padding: 2px 8px; font-size: .85rem; flex: none; }
.sched-item .sched-ch { font-weight: 600; color: var(--sakura-dark); flex: none; }
.sched-item .sched-text { color: #777; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.ban-item .lb-av { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--sakura-light); flex: none; }
.ban-item .lb-name { font-weight: 600; }
.ban-item .ban-reason { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }
.ban-badge { font-size: .72rem; font-weight: 700; color: var(--sakura-accent); background: var(--sakura-light); border-radius: 6px; padding: 1px 6px; }
@media (max-width: 760px) {
    .sched-item .sched-text, .ban-item .ban-reason { display: none; }
}

/* ============ LANDING v18 — anime pink pastel glow ============ */
body[data-page="landing"]{
    background:
        radial-gradient(60% 50% at 15% 0%, #ffe9f3 0%, rgba(255,233,243,0) 60%),
        radial-gradient(55% 45% at 85% 5%, #efe6ff 0%, rgba(239,230,255,0) 60%),
        radial-gradient(50% 40% at 50% 30%, #fff0e6 0%, rgba(255,240,230,0) 55%),
        var(--sakura-bg);
}
.lp-hero{ overflow:visible; }
/* Blobs mờ trôi nhẹ phía sau hero */
.lp-blob{ position:absolute; border-radius:50%; filter:blur(60px); opacity:.55; z-index:0; pointer-events:none; }
.lp-blob1{ width:300px;height:300px; background:linear-gradient(135deg,#ffb7d5,#ffd8a8); top:-40px; left:-60px; animation:blob 14s ease-in-out infinite; }
.lp-blob2{ width:260px;height:260px; background:linear-gradient(135deg,#d8c4ff,#ffc2e2); top:20px; right:-50px; animation:blob 18s ease-in-out infinite reverse; }
@keyframes blob{ 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(20px,30px) scale(1.08)} }
.lp-spark{ position:absolute; z-index:1; color:#ff9ec4; font-size:1.4rem; opacity:.7; pointer-events:none; animation:floaty 5s ease-in-out infinite; }
.lp-spark.s1{ top:30px; left:14%; } .lp-spark.s2{ top:80px; right:18%; font-size:2rem; color:#c9a8ff; }
.lp-spark.s3{ bottom:30px; left:22%; color:#ffb3d1; } .lp-spark.s4{ top:120px; left:60%; font-size:2.2rem; color:#ffcaa8; }

/* Badge Early Access */
.lp-badge{ display:inline-flex; align-items:center; gap:6px; position:relative; z-index:2;
    background:linear-gradient(135deg,#fff,#ffeef5); border:1.5px solid #ffd0e1;
    color:var(--sakura-dark); font-weight:600; font-size:.85rem; padding:7px 16px; border-radius:999px;
    box-shadow:0 4px 16px rgba(255,123,157,.18); margin-bottom:18px; animation:badgePulse 3s ease-in-out infinite; }
@keyframes badgePulse{ 0%,100%{box-shadow:0 4px 16px rgba(255,123,157,.18)} 50%{box-shadow:0 6px 24px rgba(255,123,157,.34)} }

.lp-hero h1{ position:relative; z-index:2; }
.lp-hero h1 .grad{ background:linear-gradient(135deg,#ff6b9d 0%,#c779ff 50%,#ff9d6b 100%); -webkit-background-clip:text; background-clip:text; color:transparent; }

/* Stat strip glassy */
body[data-page="landing"] .stat-strip .ss{ background:rgba(255,255,255,.72); backdrop-filter:blur(8px);
    border:1px solid #ffe0ec; box-shadow:0 6px 20px rgba(255,123,157,.10); transition:transform .25s, box-shadow .25s; }
body[data-page="landing"] .stat-strip .ss:hover{ transform:translateY(-4px); box-shadow:0 12px 28px rgba(255,123,157,.20); }
.lp-trust{ text-align:center; margin-top:16px; color:var(--sakura-text-light); font-size:.95rem; position:relative; z-index:2; }
.lp-trust b{ color:var(--sakura-accent); }

/* 3 bước */
.step-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:18px; }
.step-card{ position:relative; background:rgba(255,255,255,.8); backdrop-filter:blur(6px);
    border:1px solid #ffe0ec; border-radius:var(--radius); padding:26px 22px 22px; text-align:center;
    box-shadow:0 6px 20px rgba(255,123,157,.10); transition:transform .25s, box-shadow .25s; }
.step-card:hover{ transform:translateY(-5px); box-shadow:0 14px 30px rgba(255,123,157,.20); }
.step-card .step-no{ position:absolute; top:-14px; left:50%; transform:translateX(-50%);
    width:30px; height:30px; border-radius:50%; background:linear-gradient(135deg,var(--sakura-accent),var(--sakura-dark));
    color:#fff; font-weight:800; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 12px rgba(255,107,157,.4); }
.step-card .fi{ font-size:2.4rem; margin-top:6px; } .step-card h3{ margin:8px 0 6px; } .step-card p{ color:var(--sakura-text-light); font-size:.92rem; margin:0; }

/* Feature card — viền gradient top khi hover */
body[data-page="landing"] .feat-card{ position:relative; overflow:hidden; background:rgba(255,255,255,.82); backdrop-filter:blur(6px); }
body[data-page="landing"] .feat-card::before{ content:""; position:absolute; top:0; left:0; right:0; height:3px;
    background:linear-gradient(90deg,#ff6b9d,#c779ff,#ff9d6b); transform:scaleX(0); transform-origin:left; transition:transform .3s; }
body[data-page="landing"] .feat-card:hover::before{ transform:scaleX(1); }

/* Scroll reveal */
.reveal{ opacity:0; transform:translateY(28px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){ .reveal{opacity:1;transform:none;transition:none} .lp-blob,.lp-spark,.lp-badge{animation:none} }
