/* ============================================================
 * pages.css — สไตล์เฉพาะของแต่ละหน้า
 *   Hero / Features / News / Rank / Jobs / Gallery / Download /
 *   Topup / Profile / Auth (Login-Register) / Contact / Admin
 * ============================================================ */

/* =========================================================
 * A. หน้าแรก : HERO
 * ========================================================= */
.hero {
    position: relative; overflow: hidden;
    min-height: clamp(560px, 88vh, 860px);
    display: flex; align-items: center;
    border-bottom: 1px solid var(--line);
}
.hero-bg {
    position: absolute; inset: -6% 0 0; z-index: 0;
    background: url('../img/bg/hero.jpg') center 30% / cover no-repeat;
    animation: heroZoom 14s var(--ease) forwards;
    will-change: transform;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(180deg, rgba(7,11,24,.78) 0%, rgba(7,11,24,.55) 45%, rgba(7,11,24,.96) 100%),
        radial-gradient(70% 60% at 50% 45%, rgba(157,123,255,.22), transparent 70%);
}
.hero-inner { position: relative; z-index: 3; width: 100%; padding: 90px 0 70px; text-align: center; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(9,13,32,.7); border: 1px solid rgba(247,201,72,.45);
    padding: 8px 20px; border-radius: 999px;
    font-size: .86rem; color: var(--gold-2); font-weight: 500;
    margin-bottom: 26px;
    box-shadow: 0 0 30px rgba(247,201,72,.22);
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.4s infinite; }

.hero-title {
    font-family: var(--font-en);
    font-size: clamp(2.3rem, 7vw, 5rem);
    font-weight: 400; line-height: 1.08; letter-spacing: .01em;
    color: #fff; text-shadow: 0 10px 50px rgba(0,0,0,.75);
}
.hero-title .accent {
    background: var(--grad-main); -webkit-background-clip: text; background-clip: text;
    color: transparent; filter: drop-shadow(0 4px 24px rgba(247,201,72,.5));
}
.hero-sub {
    margin: 20px auto 0; max-width: 640px;
    font-size: clamp(1rem, 2.2vw, 1.25rem); font-weight: 300; color: var(--txt-2);
    min-height: 1.7em;
}
.hero-sub .type-caret { display: inline-block; width: 3px; height: 1.1em; background: var(--gold); margin-left: 4px; vertical-align: -3px; animation: typewriterBlink .75s infinite; }

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }

.hero-stats {
    display: flex; justify-content: center; gap: clamp(20px, 5vw, 60px);
    margin-top: 56px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-stat-num small { color: var(--gold); font-size: .5em; }
.hero-stat-label { font-size: .82rem; color: var(--muted); letter-spacing: .06em; margin-top: 4px; }

/* ลูกกลิ้งตกแต่ง */
.hero-orb { position: absolute; border-radius: 50%; filter: blur(60px); z-index: 1; pointer-events: none; }
.hero-orb.o1 { width: 380px; height: 380px; background: rgba(157,123,255,.30); top: -80px; right: -60px; }
.hero-orb.o2 { width: 320px; height: 320px; background: rgba(90,209,255,.22); bottom: -60px; left: -80px; }
.hero-scroll {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    z-index: 4; color: var(--muted); font-size: .75rem; letter-spacing: .2em;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll i { animation: floatY 1.6s ease-in-out infinite; color: var(--gold); }

/* =========================================================
 * B. หน้าแรก : ระบบเด่น / ฟีเจอร์
 * ========================================================= */
.feature-card { text-align: center; }
.feature-icon {
    width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 24px;
    display: grid; place-items: center; font-size: 1.9rem;
    background: linear-gradient(135deg, rgba(247,201,72,.16), rgba(255,126,182,.14));
    border: 1px solid rgba(247,201,72,.32);
    color: var(--gold);
    transition: transform .45s var(--ease), box-shadow .45s;
}
.feature-card:hover .feature-icon { transform: translateY(-8px) rotate(-8deg) scale(1.05); box-shadow: 0 16px 40px rgba(247,201,72,.35); }
.feature-card h3 { margin-bottom: 10px; font-size: 1.12rem; }
.feature-card p { color: var(--txt-2); font-weight: 300; font-size: .92rem; }

/* แถบสถานะเซิร์ฟเวอร์ */
.server-panel {
    background: linear-gradient(135deg, rgba(22,32,74,.85), rgba(13,19,44,.9));
    border: 1px solid var(--line-2); border-radius: var(--rad-lg);
    padding: 34px; position: relative; overflow: hidden;
}
.server-panel::before {
    content: ''; position: absolute; top: -60%; right: -20%; width: 420px; height: 420px;
    background: radial-gradient(closest-side, rgba(247,201,72,.16), transparent);
    pointer-events: none;
}
.server-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; z-index: 2; }
.server-cell { text-align: center; padding: 18px 10px; background: rgba(0,0,0,.24); border: 1px solid var(--line); border-radius: 16px; transition: all .3s var(--ease); }
.server-cell:hover { border-color: rgba(247,201,72,.5); transform: translateY(-5px); }
.server-cell i { font-size: 1.5rem; color: var(--gold); margin-bottom: 8px; display: block; }
.server-cell b { display: block; font-size: 1.35rem; color: #fff; font-variant-numeric: tabular-nums; }
.server-cell span { font-size: .8rem; color: var(--muted); }
@media (max-width: 800px) { .server-grid { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
 * C. ข่าวสาร (News)
 * ========================================================= */
.news-card { padding: 0; display: flex; flex-direction: column; }
.news-card .card-media { margin: 0; height: 200px; }
.news-card .card-media img { height: 200px; }
.news-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 14px; font-size: .8rem; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.news-meta i { margin-right: 5px; color: var(--gold); }
.news-title { font-size: 1.12rem; line-height: 1.45; margin-bottom: 10px; transition: color .25s; }
.news-card:hover .news-title { color: var(--gold); }
.news-excerpt { color: var(--txt-2); font-weight: 300; font-size: .9rem; flex: 1; }
.news-more { margin-top: 16px; color: var(--gold); font-size: .88rem; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; transition: gap .25s; }
.news-card:hover .news-more { gap: 13px; }
.news-detail-body h2 { margin: 26px 0 14px; }
.news-detail-body p { color: var(--txt-2); font-weight: 300; margin-bottom: 16px; }

/* =========================================================
 * D. อันดับ (Rank)
 * ========================================================= */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 18px; margin-bottom: 40px; flex-wrap: wrap; }
.podium-item { text-align: center; width: 190px; }
.podium-avatar {
    width: 92px; height: 92px; margin: 0 auto 12px; border-radius: 50%;
    display: grid; place-items: center; font-size: 2rem; font-weight: 800;
    background: var(--panel-2); border: 3px solid var(--line-2);
    position: relative; transition: transform .35s var(--ease);
}
.podium-item:hover .podium-avatar { transform: scale(1.08); }
.podium-item.p1 .podium-avatar { border-color: var(--gold); box-shadow: 0 0 34px rgba(247,201,72,.55); width: 112px; height: 112px; font-size: 2.4rem; }
.podium-item.p2 .podium-avatar { border-color: #cfd6e6; }
.podium-item.p3 .podium-avatar { border-color: #d9915a; }
.podium-crown { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-size: 1.7rem; color: var(--gold); animation: floatY 2.4s ease-in-out infinite; }
.podium-avatar-name { font-size: .76rem; font-weight: 700; line-height: 1.3; padding: 0 10px; text-align: center; word-break: break-word; max-width: 100%; color: #fff; }
.podium-item.p1 .podium-avatar .podium-avatar-name { font-size: .84rem; }
.podium-rank { font-size: .8rem; color: var(--muted); }
.podium-name { font-weight: 600; color: #fff; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-lv { color: var(--gold); font-size: .85rem; }
.podium-block {
    margin-top: 12px; border-radius: 14px 14px 0 0;
    background: linear-gradient(180deg, rgba(247,201,72,.2), rgba(247,201,72,.04));
    border: 1px solid var(--line); border-bottom: none;
    padding: 14px 8px; font-size: 1.5rem; font-weight: 800; color: var(--gold);
    font-variant-numeric: tabular-nums;
}
.podium-item.p1 .podium-block { height: 120px; }
.podium-item.p2 .podium-block { height: 92px; }
.podium-item.p3 .podium-block { height: 72px; }
.rank-pos { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.06); font-weight: 700; color: var(--muted); font-size: .9rem; }
.rank-pos.top1 { background: var(--grad-main); color: #14203f; }
.rank-pos.top2 { background: linear-gradient(135deg,#e8ecf7,#aab4d0); color: #14203f; }
.rank-pos.top3 { background: linear-gradient(135deg,#e2a06a,#b9713a); color: #2b1405; }
.rank-name-cell { display: flex; align-items: center; gap: 12px; }
.rank-job-chip { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--cyan); background: rgba(90,209,255,.1); border: 1px solid rgba(90,209,255,.3); padding: 3px 12px; border-radius: 99px; white-space: nowrap; vertical-align: middle; }
.rank-job-icon { width: 38px; height: 32px; object-fit: contain; margin: -3px 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.rank-guild-cell { display: inline-flex; align-items: center; gap: 8px; }
.rank-guild-emblem { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.rank-guild-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); color: var(--cyan); font-size: .74rem; font-weight: 700; flex: none; }

/* ---------- หน้าศึก GvG (ประวัติการยึดปราสาท) ---------- */
.gvg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.gvg-stat { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.gvg-stat b { font-family: var(--font-en); font-size: 1.45rem; color: var(--cyan); letter-spacing: .5px; overflow-wrap: anywhere; }
.gvg-stat span { font-size: .8rem; color: var(--muted); }
.gvg-note { font-size: .85rem; margin-top: 14px; text-align: center; }

/* =========================================================
 * E. สายอาชีพ (Jobs)
 * ========================================================= */
.jobs-toolbar { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 28px; }
.jobs-search { position: relative; max-width: 340px; width: 100%; }
.jobs-search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.jobs-search .form-control { padding-left: 42px; border-radius: 999px; }
.job-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.job-chip {
    padding: 8px 18px; border-radius: 999px; font-size: .85rem; font-weight: 500;
    background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--txt-2);
    transition: all .25s; cursor: pointer;
}
.job-chip:hover { border-color: var(--gold); color: var(--gold); }
.job-chip.active { background: var(--grad-main); color: #14203f; border-color: transparent; }
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
.job-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
    padding: 20px 14px; text-align: center; position: relative; overflow: hidden;
    transition: all .35s var(--ease); cursor: default;
}
.job-card:hover { transform: translateY(-7px); border-color: rgba(90,209,255,.5); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.job-icon {
    width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.9rem;
    background: radial-gradient(circle at 35% 30%, rgba(90,209,255,.25), rgba(157,123,255,.18));
    border: 1px solid rgba(90,209,255,.35);
    transition: transform .4s var(--ease);
}
.job-card:hover .job-icon { transform: scale(1.12) rotate(8deg); }
.job-name { font-size: .95rem; font-weight: 600; color: #fff; }
.job-tier { font-size: .74rem; color: var(--muted); margin-top: 3px; }
.job-type { position: absolute; top: 10px; right: -30px; transform: rotate(38deg); font-size: .62rem; letter-spacing: .08em; padding: 3px 34px; font-weight: 700; }
.job-type.t-first { background: rgba(61,220,132,.9); color: #06210f; }
.job-type.t-second { background: rgba(90,209,255,.9); color: #04202c; }
.job-type.t-third { background: rgba(255,126,182,.9); color: #2c0a1c; }
.job-type.t-fourth { background: var(--grad-main); color: #14203f; }

/* =========================================================
 * F. แกลเลอรี่ (Gallery)
 * ========================================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gallery-item {
    position: relative; border-radius: var(--rad); overflow: hidden;
    border: 1px solid var(--line); cursor: pointer; aspect-ratio: 16/10;
    transition: transform .35s var(--ease), box-shadow .35s;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item::after {
    content: '\f00e'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; inset: 0; display: grid; place-items: center;
    background: rgba(7,11,24,.55); color: var(--gold); font-size: 1.8rem;
    opacity: 0; transition: opacity .35s;
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover img { transform: scale(1.09); }
.gallery-cap {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 30px 16px 12px; font-size: .88rem; color: #fff;
    background: linear-gradient(180deg, transparent, rgba(5,8,20,.92));
    transform: translateY(100%); transition: transform .35s var(--ease);
}
.gallery-item:hover .gallery-cap { transform: translateY(0); }

/* =========================================================
 * G. ดาวน์โหลด (Download)
 * ========================================================= */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.dl-card { text-align: center; padding: 34px 26px; }
.dl-icon {
    width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 26px;
    display: grid; place-items: center; font-size: 2.2rem;
    background: var(--grad-cool); color: #071026;
    box-shadow: 0 16px 40px rgba(90,209,255,.35);
    transition: transform .4s var(--ease);
}
.dl-card:nth-child(2) .dl-icon { background: var(--grad-main); box-shadow: 0 16px 40px rgba(247,201,72,.35); }
.dl-card:nth-child(3) .dl-icon { background: var(--grad-pink); box-shadow: 0 16px 40px rgba(255,126,182,.35); }
.dl-card:hover .dl-icon { transform: translateY(-8px) rotate(-6deg); }
.dl-card h3 { margin-bottom: 8px; }
.dl-card p { color: var(--txt-2); font-weight: 300; font-size: .9rem; min-height: 48px; }
.dl-meta { display: flex; justify-content: center; gap: 16px; font-size: .8rem; color: var(--muted); margin: 14px 0 20px; }
.dl-meta i { color: var(--gold); margin-right: 5px; }

.spec-table td:first-child { color: var(--muted); width: 38%; }
.install-steps { counter-reset: step; display: grid; gap: 16px; }
.install-step { display: flex; gap: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; transition: border-color .3s; }
.install-step:hover { border-color: rgba(247,201,72,.45); }
.install-step::before {
    counter-increment: step; content: counter(step);
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
    background: var(--grad-main); color: #14203f;
    display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.install-step h4 { margin-bottom: 5px; }
.install-step p { color: var(--txt-2); font-weight: 300; font-size: .9rem; }

/* =========================================================
 * H. เติมเงิน (Topup)
 * ========================================================= */
.topup-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 940px) { .topup-layout { grid-template-columns: 1fr; } }

.topup-side { position: sticky; top: calc(var(--header-h) + 18px); }
@media (max-width: 940px) { .topup-side { position: static; } }

/* สรุปรายการ */
.order-summary { background: linear-gradient(160deg, rgba(24,34,76,.9), rgba(12,17,40,.92)); border: 1px solid rgba(247,201,72,.3); border-radius: 20px; padding: 26px; }
.order-summary h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.order-summary h3 i { color: var(--gold); }
.order-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.order-row span { color: var(--muted); }
.order-row b { color: #fff; text-align: right; }
.order-row.total { border-bottom: none; padding-top: 16px; font-size: 1.1rem; }
.order-row.total b { color: var(--gold); font-size: 1.4rem; font-weight: 800; }

/* QR แสดงผล */
.qr-panel { text-align: center; }
.qr-frame {
    position: relative; background: #fff; border-radius: 20px; padding: 18px;
    width: 268px; height: 268px; margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 6px rgba(247,201,72,.2), 0 22px 60px rgba(0,0,0,.5);
    animation: popIn .5s var(--ease);
}
.qr-frame img { max-width: 100%; max-height: 100%; object-fit: contain; }
.qr-frame .qr-loading { color: #333; font-size: .88rem; text-align: center; }
.qr-frame .qr-loading i { display: block; font-size: 2rem; color: #b9772a; margin-bottom: 10px; }
.qr-corner { position: absolute; width: 34px; height: 34px; border: 4px solid var(--gold); }
.qr-corner.tl { top: -8px; left: -8px; border-right: none; border-bottom: none; border-radius: 12px 0 0 0; }
.qr-corner.tr { top: -8px; right: -8px; border-left: none; border-bottom: none; border-radius: 0 12px 0 0; }
.qr-corner.bl { bottom: -8px; left: -8px; border-right: none; border-top: none; border-radius: 0 0 0 12px; }
.qr-corner.br { bottom: -8px; right: -8px; border-left: none; border-top: none; border-radius: 0 0 12px 0; }

.pay-status-line { display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px; border-radius: 999px; font-size: .92rem; background: rgba(255,176,32,.12); border: 1px solid rgba(255,176,32,.4); color: var(--orange); }
.pay-status-line .spin { color: var(--gold); }
.pay-status-line.ok { background: rgba(61,220,132,.12); border-color: rgba(61,220,132,.4); color: var(--green); }
.ref-chip { display: inline-flex; align-items: center; gap: 10px; background: rgba(0,0,0,.35); border: 1px dashed var(--line-2); border-radius: 10px; padding: 8px 14px; font-family: monospace; font-size: .92rem; color: var(--cyan); margin-top: 14px; }
.ref-chip button { color: var(--gold); transition: transform .2s; }
.ref-chip button:hover { transform: scale(1.2); }

.qr-success { text-align: center; padding: 20px 0; animation: popIn .55s var(--ease); }
.qr-success-icon {
    width: 108px; height: 108px; margin: 0 auto 20px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #6ff0ad, #17a05b);
    display: grid; place-items: center; font-size: 3rem; color: #06210f;
    box-shadow: 0 0 60px rgba(61,220,132,.55);
    animation: pulseGlow 1.6s infinite;
}
.qr-success h3 { font-size: 1.5rem; margin-bottom: 8px; }
.qr-success p { color: var(--txt-2); font-weight: 300; }

/* ประวัติเติมเงินซ้ำ/ต่อเนื่อง */
.resume-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: rgba(90,209,255,.08); border: 1px solid rgba(90,209,255,.35); border-radius: 14px; padding: 14px 20px; margin-bottom: 24px; font-size: .92rem; color: #bfeaff; }

/* =========================================================
 * I. โปรไฟล์ / แดชบอร์ด
 * ========================================================= */
.profile-head { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 30px; background: linear-gradient(135deg, rgba(247,201,72,.1), rgba(157,123,255,.1)); border: 1px solid var(--line-2); border-radius: var(--rad-lg); margin-bottom: 26px; }
.profile-head .avatar { width: 96px; height: 96px; font-size: 2.4rem; }
.profile-id h2 { margin-bottom: 4px; }
.profile-id .profile-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.profile-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.wallet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-bottom: 26px; }
.wallet-card { display: flex; align-items: center; gap: 16px; padding: 22px; }
.wallet-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0; }
.wallet-card:nth-child(1) .wallet-icon { background: rgba(247,201,72,.14); color: var(--gold); border: 1px solid rgba(247,201,72,.4); }
.wallet-card:nth-child(2) .wallet-icon { background: rgba(61,220,132,.14); color: var(--green); border: 1px solid rgba(61,220,132,.4); }
.wallet-card:nth-child(3) .wallet-icon { background: rgba(90,209,255,.14); color: var(--cyan); border: 1px solid rgba(90,209,255,.4); }
.wallet-card:nth-child(4) .wallet-icon { background: rgba(255,126,182,.14); color: var(--pink); border: 1px solid rgba(255,126,182,.4); }
.wallet-num { font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1.2; font-variant-numeric: tabular-nums; }
.wallet-label { font-size: .8rem; color: var(--muted); }

/* =========================================================
 * J. หน้า Login / Register
 * ========================================================= */
.auth-page {
    position: relative; min-height: calc(100vh - var(--header-h) - var(--topbar-h));
    display: flex; align-items: center; justify-content: center;
    padding: 60px 20px; overflow: hidden;
}
.auth-page .auth-bg { position: absolute; inset: 0; background: url('../img/bg/page_bg.jpg') center / cover no-repeat; opacity: .28; }
.auth-page .auth-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,11,24,.86), rgba(7,11,24,.94)); }
.auth-card {
    position: relative; z-index: 2; width: 100%; max-width: 460px;
    background: rgba(14, 20, 46, .88); backdrop-filter: blur(14px);
    border: 1px solid var(--line-2); border-radius: 24px;
    padding: 40px 36px; box-shadow: var(--shadow);
    animation: fadeUp .6s var(--ease);
}
.auth-card.wide { max-width: 560px; }
.auth-logo { width: 84px; margin: 0 auto 14px; filter: drop-shadow(0 6px 24px rgba(247,201,72,.5)); }
.auth-title { text-align: center; font-size: 1.5rem; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 26px; }
.auth-switch { text-align: center; margin-top: 22px; font-size: .9rem; color: var(--txt-2); }
.auth-switch a { color: var(--gold); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }
.auth-divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .8rem; margin: 22px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.seg { display: flex; background: rgba(0,0,0,.3); border-radius: 12px; padding: 5px; gap: 5px; margin-bottom: 20px; }
.seg-btn { flex: 1; padding: 10px; border-radius: 9px; font-weight: 500; color: var(--muted); transition: all .3s; font-size: .93rem; }
.seg-btn.active { background: var(--grad-main); color: #14203f; font-weight: 600; }
.seg-panel { display: none; } .seg-panel.active { display: block; animation: fadeUp .4s var(--ease); }

/* =========================================================
 * K. ติดต่อ (Contact)
 * ========================================================= */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info-list li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list .c-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(247,201,72,.12); color: var(--gold); border: 1px solid rgba(247,201,72,.32); flex-shrink: 0; }
.contact-info-list b { display: block; color: #fff; font-size: .95rem; }
.contact-info-list span { color: var(--txt-2); font-size: .88rem; font-weight: 300; }

/* =========================================================
 * L. แอดมิน (Admin)
 * ========================================================= */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .admin-layout { grid-template-columns: 1fr; } }
.admin-side { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
.admin-side a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 11px; color: var(--txt-2); font-size: .93rem; transition: all .25s; margin-bottom: 4px; }
.admin-side a i { width: 18px; color: var(--gold); }
.admin-side a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-side a.active { background: var(--grad-main); color: #14203f; font-weight: 600; }
.admin-side a.active i { color: #14203f; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 24px; }
.admin-stat { display: flex; align-items: center; gap: 15px; padding: 20px; }
.admin-stat i { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: rgba(247,201,72,.13); color: var(--gold); border: 1px solid rgba(247,201,72,.3); }
.admin-stat b { display: block; font-size: 1.5rem; color: #fff; line-height: 1.2; font-variant-numeric: tabular-nums; }
.admin-stat span { font-size: .8rem; color: var(--muted); }

/* =========================================================
 * M. แถบ Rate แสดงผล
 * ========================================================= */
.rate-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.rate-box { text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px 12px; transition: all .3s var(--ease); }
.rate-box:hover { transform: translateY(-6px); border-color: rgba(90,209,255,.5); }
.rate-box b { display: block; font-size: 1.7rem; color: var(--cyan); font-weight: 800; }
.rate-box span { font-size: .82rem; color: var(--muted); }
