/* ============================================================
   THE LEGEND v2 — Responsive stylesheet (PC + Mobile)
   ธีม: กรมท่า (#0b1e3f) + ทอง (#ffd54f)
   ============================================================ */
:root {
  --navy: #0b1e3f;
  --navy2: #12294f;
  --navy3: #1b3a6b;
  --gold: #ffd54f;
  --gold2: #e6b422;
  --blue: #1c4fd6;
  --sky: #eef3fb;
  --danger: #dc3545;
  --success: #22a45d;
  --warning: #ff9800;
  --muted: #7d8aa0;
  --line: #e5e9f0;
  --bg: #f4f6fb;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 6px 22px rgba(11, 30, 63, .08);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  font-family: "Segoe UI", "Sarabun", Tahoma, -apple-system, sans-serif;
  background: var(--bg);
  color: #1f2b45;
  line-height: 1.55;
  font-size: 15px;
}

a {
  color: inherit;
  text-decoration: none
}

img {
  max-width: 100%
}

button {
  font-family: inherit;
  cursor: pointer
}

/* ---------- layout ---------- */
.app {
  max-width: 1120px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  padding-bottom: 78px
}

.container {
  padding: 16px
}

@media(min-width:768px) {
  .app {
    padding-bottom: 24px
  }

  .container {
    padding: 22px 26px
  }
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--line)
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .5px
}

.brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  display: grid;
  place-items: center;
  font-size: 18px
}

.brand .logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain
}

.site-footer .fl img {
  height: 34px;
  vertical-align: middle;
  margin-right: 6px
}

.bottom-nav .center .fab img {
  width: 34px;
  height: 34px;
  object-fit: contain
}

.brand small {
  display: block;
  font-weight: 500;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0
}

.bell {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--navy)
}

.bell .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  font-weight: 700
}

.iconbtn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 18px
}

/* ---------- page header ---------- */
.page-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line)
}

.page-head h1 {
  font-size: 18px;
  margin: 0;
  font-weight: 800;
  flex: 1;
  text-align: center
}

.page-head .back {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 20px
}

/* ---------- cards ---------- */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 16px
}

.card-t {
  font-weight: 800;
  margin: 0 0 4px
}

.card-sub {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 14px
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 15px;
  width: 100%;
  transition: .15s
}

.btn:active {
  transform: scale(.99)
}

.btn-navy {
  background: var(--navy);
  color: #fff
}

.btn-blue {
  background: var(--blue);
  color: #fff
}

.btn-gold {
  background: var(--gold);
  color: var(--navy)
}

.btn-light {
  background: #dfe8ff;
  color: var(--navy)
}

.btn-success {
  background: var(--success);
  color: #fff
}

.btn-danger {
  background: var(--danger);
  color: #fff
}

.btn-outline {
  background: #fff;
  border: 1.5px solid var(--navy);
  color: var(--navy)
}

.btn-sm {
  padding: 9px 14px;
  font-size: 13px;
  width: auto;
  border-radius: 10px
}

.btn-block {
  width: 100%
}

/* ---------- forms ---------- */
.field {
  margin-bottom: 16px
}

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 7px
}

.field label .req {
  color: var(--danger)
}

.input,
select,
textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  background: #fff;
  font-family: inherit;
  color: #1f2b45
}

.input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue)
}

textarea {
  min-height: 110px;
  resize: vertical
}

.input-row {
  display: flex;
  gap: 10px
}

.input-row .btn {
  width: auto;
  white-space: nowrap
}

.help {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px
}

/* ---------- stepper ---------- */
.steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 20px;
  flex-wrap: wrap
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px
}

.step .n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 13px
}

.step.active {
  color: var(--navy)
}

.step.active .n {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy)
}

/* ---------- role chooser ---------- */
.roles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px
}

@media(min-width:768px) {
  .roles {
    grid-template-columns: repeat(4, 1fr)
  }
}

.role {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition: .15s
}

.role .ic {
  font-size: 26px
}

.role h4 {
  margin: 8px 0 4px;
  font-size: 15px
}

.role p {
  margin: 0;
  font-size: 11px;
  color: var(--muted)
}

.role.active,
.role:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 16px rgba(28, 79, 214, .15)
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(120deg, #fff 55%, #dbe6ff);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow)
}

.hero h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.25
}

.hero h2 span {
  color: var(--gold2)
}

.hero p {
  margin: 0;
  font-size: 13px;
  color: #41527a
}

/* ---------- lsp balance ---------- */
.lsp {
  background: linear-gradient(135deg, var(--navy), var(--navy3));
  color: #fff;
  border-radius: 16px;
  padding: 20px;
  text-align: center
}

.lsp .amt {
  font-size: 34px;
  font-weight: 800;
  margin: 6px 0
}

.lsp small {
  opacity: .8
}

/* ---------- stat grid ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px
}

@media(min-width:768px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr)
  }
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  text-align: center
}

.stat .num {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy)
}

.stat .lbl {
  font-size: 12px;
  color: var(--muted)
}

/* ---------- menu grid (dashboard features) ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px
}
.menu-grid-1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px
}

.menu-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 6px;
  text-align: center;
  transition: .15s
}

.menu-item:hover {
  border-color: var(--blue);
  transform: translateY(-2px)
}

.menu-item .ic {
  font-size: 22px;
  color: var(--blue)
}

.menu-item .t {
  font-size: 11px;
  margin-top: 6px;
  font-weight: 600
}

.menu-item.on {
  background: #fff6d8;
  border-color: var(--gold)
}

.menu-item.on .ic {
  color: var(--gold2)
}

/* ---------- badges / status ---------- */
.badge2 {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700
}

.b-verified {
  background: #e7f8ee;
  color: var(--success)
}

.b-pending {
  background: #fff3cd;
  color: #946200
}

.b-reject {
  background: #fde2e2;
  color: var(--danger)
}

.verified-bar {
  background: linear-gradient(90deg, var(--navy), var(--navy3));
  color: var(--gold);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  font-weight: 700;
  font-size: 13px
}

/* ---------- benefits list ---------- */
.benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  font-size: 14px
}

.benefit .tick {
  color: var(--blue)
}

/* ---------- footer ---------- */
.site-footer {
  background: #fafbfe;
  border-top: 1px solid var(--line);
  padding: 26px 16px;
  text-align: center;
  margin-top: 10px
}

.site-footer .fl {
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--navy);
  font-size: 20px
}

.site-footer p {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 16px 0;
  color: var(--muted);
  flex-wrap: wrap
}

.footer-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px
}

.copyright {
  color: #aab3c5;
  font-size: 12px;
  margin-top: 14px
}

/* ---------- bottom nav (mobile) ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1120px;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 6px;
  z-index: 50
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 11px;
  flex: 1
}

.bottom-nav a.active {
  color: var(--blue)
}

.bottom-nav a .ic {
  font-size: 20px
}

.bottom-nav .center {
  margin-top: -26px
}

.bottom-nav .center .fab {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  z-index: -999;
  border-top: 1px solid var(--line);
}

@media(min-width:768px) {
  .bottom-nav {
    display: none
  }
}

/* ---------- desktop top-nav ---------- */
.desk-nav {
  display: none
}

@media(min-width:768px) {
  .desk-nav {
    display: flex;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px;
    margin-bottom: 16px;
    box-shadow: var(--shadow)
  }

  .desk-nav a {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    color: #41527a
  }

  .desk-nav a.active {
    background: var(--navy);
    color: #fff
  }
}

/* ---------- utilities ---------- */
.flex {
  display: flex
}

.between {
  justify-content: space-between
}

.center {
  align-items: center
}

.gap8 {
  gap: 8px
}

.gap12 {
  gap: 12px
}

.mt8 {
  margin-top: 8px
}

.mt16 {
  margin-top: 16px
}

.mb0 {
  margin-bottom: 0
}

.text-c {
  text-align: center
}

.text-muted {
  color: var(--muted)
}

.small {
  font-size: 13px
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 16px 0
}

.flash {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-weight: 600
}

.flash.info {
  background: #e7f0ff;
  color: #1c4fd6
}

.flash.success {
  background: #e7f8ee;
  color: var(--success)
}

.flash.error {
  background: #fde2e2;
  color: var(--danger)
}

.avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold)
}

.hidden {
  display: none !important
}

/* ---------- form components (create pages) ---------- */
/* section header with underline */
.section-title {
  font-weight: 800;
  color: var(--navy);
  margin: 22px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line)
}

.section-title:first-child {
  margin-top: 0
}

/* upload dropzone */
.uploader {
  border: 2px dashed #c7d3ea;
  border-radius: 14px;
  padding: 26px 16px;
  text-align: center;
  background: #fbfcff;
  cursor: pointer;
  transition: .15s
}

.uploader:hover {
  border-color: var(--blue);
  background: #f5f9ff
}

.uploader .up-ic {
  font-size: 34px;
  color: var(--blue);
  line-height: 1
}

.uploader .up-t {
  font-weight: 800;
  color: var(--navy);
  margin-top: 8px
}

.uploader .up-s {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px
}

.uploader .up-btn {
  display: inline-block;
  margin-top: 12px;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  border-radius: 10px;
  padding: 8px 22px;
  font-weight: 700;
  font-size: 14px
}

.uploader input[type=file] {
  display: none
}

.up-names {
  font-size: 12px;
  color: var(--success);
  margin-top: 8px;
  font-weight: 600
}

/* toggle switch (referenced by app.js) */
.toggle {
  position: relative;
  display: inline-flex;
  align-items: center
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0
}

.toggle .track {
  width: 52px;
  height: 30px;
  border-radius: 20px;
  background: #cbd5e6;
  transition: .2s;
  display: inline-block;
  position: relative
}

.toggle .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: .2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25)
}

.toggle.on .track {
  background: var(--blue)
}

.toggle.on .track::after {
  transform: translateX(22px)
}

/* segmented radio (pills) */
.seg {
  display: flex;
  gap: 22px;
  flex-wrap: wrap
}

.seg label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer
}

.seg input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue)
}

/* checklist grid */
.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px
}

@media(max-width:520px) {
  .checklist {
    grid-template-columns: 1fr
  }
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  cursor: pointer
}

.checklist input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue)
}

/* input with prefix (≥ / ≤) */
.affix {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff
}

.affix:focus-within {
  border-color: var(--blue)
}

.affix .pfx {
  display: grid;
  place-items: center;
  min-width: 48px;
  background: var(--sky);
  color: var(--navy);
  font-weight: 800;
  font-size: 18px
}

.affix input {
  border: none;
  border-radius: 0
}

.affix input:focus {
  outline: none
}



/* ----------------------5555---------------------- */

.ggg-hhhh8{
  background: #1c4ed63b;
  width: 50px;
  height:50px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(230, 180, 34, .5);
}
.gglok{
  background: #fff;
  width: 80px;
  height: 61px;
  position: absolute;
  bottom: 0;
}
.ss5-gglok{
  position: relative;
}
.kkks{
  z-index: 999;
  position: absolute;
  margin: 10px;
  background: #fff;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  border: solid 2px rgba(185, 142, 12, 0.5);
  outline: 4px solid #f0e6ff;
}

/* --------------------- feed profile -------------------- */
.profile-dashboard-v2 {
    position: relative;

    display: grid;
    grid-template-columns: 108px minmax(0, 1fr) 108px;

    width: 100%;
    min-height: 165px;

    box-sizing: border-box;
    overflow: hidden;

    border-radius: 10px;
    background: #fff;

    font-family: "Noto Sans Thai", sans-serif;
    color: #172c62;
    margin-bottom: 15px;
}

/* พื้นหลังฝั่งซ้าย */
.profile-dashboard-v2::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;

    width: 34%;
    background:
        linear-gradient(
            135deg,
            rgba(216, 193, 248, 0.85),
            rgba(239, 229, 255, 0.65)
        );

    clip-path: ellipse(78% 100% at 0% 50%);
    z-index: 0;
}

/* พื้นหลังฝั่งขวา */
.profile-dashboard-v2::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;

    width: 34%;
    background:
        linear-gradient(
            135deg,
            #f8e4a3,
            #f0c85b
        );

    clip-path: ellipse(82% 100% at 100% 50%);
    z-index: 0;
}

/* ส่วนโปรไฟล์ */
.profile-dashboard-v2-profile {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 14px 6px 10px;
}

/* รูปโปรไฟล์ */
.profile-dashboard-v2-avatar {
    width: 75px;
    height: 75px;

    padding: 3px;
    box-sizing: border-box;

    border: 1.5px solid #d5a72d;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
}

.profile-dashboard-v2-avatar img {
    display: block;

    width: 100%;
    height: 100%;

    border-radius: 50%;
    object-fit: cover;
}

/* ปุ่มโปรไฟล์ของฉัน */
.profile-dashboard-v2-profile-button {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 75px;
    height: 19px;
    margin-top: -1px;
    padding: 0 5px;

    box-sizing: border-box;
    border-radius: 4px;
    font-weight: 600;
    background: #fff;
    color: #26355d;

    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* โลโก้โรงเรียน */
.profile-dashboard-v2-school-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    margin-top: 10px;

    border-radius: 50%;
    background: #fff;
    overflow: hidden;
}

.profile-dashboard-v2-school-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ส่วนข้อมูลตรงกลาง */
.profile-dashboard-v2-info {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 22px 4px 10px;
    text-align: center;
}

.profile-dashboard-v2-info h2 {
    margin: 0;

    color: #182b5d;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.profile-dashboard-v2-school {
    margin: 3px 0 0;

    color: #56627f;
    font-size: 13px;
    line-height: 1.5;
}

.profile-dashboard-v2-class {
    margin: 2px 0 0;

    color: #56627f;
    font-size: 12px;
    line-height: 1.5;
}

.profile-dashboard-v2-class span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 13px;
    height: 13px;
    margin-left: 3px;

    border-radius: 50%;
    background: #6f72b8;
    color: #fff;

    font-size: 8px;
}

/* เส้นคั่น */
.profile-dashboard-v2-divider {
    width: 80%;
    height: 1px;
    margin: 8px 0 8px;

    background: linear-gradient(
        to right,
        transparent,
        #d9ad43,
        transparent
    );
}

/* สถิติ */
.profile-dashboard-v2-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

.profile-dashboard-v2-stat {
    display: flex;
    flex-direction: column;
    align-items: center;

    border-right: 1px solid #eee4d0;
}

.profile-dashboard-v2-stat:last-child {
    border-right: 0;
}

.profile-dashboard-v2-stat-icon {
    height: 17px;

    color: #e4a900;
    font-size: 15px;
    line-height: 1;
}

.profile-dashboard-v2-stat-label {
    margin-top: 2px;

    color: #65718b;
    font-size: 9px;
}

.profile-dashboard-v2-stat strong {
    margin-top: 1px;

    color: #7a6bd0;
    font-size: 13px;
    font-weight: 500;
}

/* ส่วนสร้างกิจกรรม */
.profile-dashboard-v2-create {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 27px 5px 10px;
    text-align: center;
}

/* ปุ่ม + */
.profile-dashboard-v2-create-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border: 1px solid #e1c36b;
    border-radius: 50%;
    background: #fff;

    color: #d9a323;
    text-decoration: none;

    box-shadow: 0 2px 7px rgba(177, 130, 24, 0.12);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.profile-dashboard-v2-create-button span {
    margin-top: 2px;

    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
}

.profile-dashboard-v2-create-button:hover {
    background: #fff8df;
    transform: scale(1.05);
}

.profile-dashboard-v2-create h3 {
    margin: 6px 0 0;

    color: #8a651c;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.profile-dashboard-v2-create p {
    margin: 2px 0 0;

    color: #8d7b51;
    font-size: 8px;
    line-height: 1.6;
}

.profile-dashboard-v2-decoration {
    margin-top: 5px;

    color: rgba(255, 255, 255, 0.75);
    font-size: 35px;
    line-height: 1;
}

/* Responsive */
@media (max-width: 500px) {

    .profile-dashboard-v2 {
        grid-template-columns: 94px minmax(0, 1fr) 94px;
        min-height: 155px;
    }

    .profile-dashboard-v2-avatar {
        width: 75px;
        height: 75px;
        
    }

    .profile-dashboard-v2-info h2 {
        font-size: 16px;
    }

    .profile-dashboard-v2-create-button {
        width: 40px;
        height: 40px;
    }

    .profile-dashboard-v2-create-button span {
        font-size: 29px;
    }
}

/* ------------- วีดีโอแนะนำตัว ---------------------- */

/* =========================
   VIDEO SECTION
========================= */

.video-section {
    width: 100%;
    max-width: 1100px;
    margin: 10px 0;

    

    box-sizing: border-box;

    font-family: "Prompt", sans-serif;

    background:
        radial-gradient(
            circle at 70% 10%,
            rgba(90, 115, 255, .10),
            transparent 35%
        );

    border-radius: 24px;
}


/* =========================
   HEADER
========================= */

.video-section-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}

.video-section-header h2 {
    margin: 0;

    font-size: 32px;
    font-weight: 700;

    line-height: 1.2;

    color: #183b94;
}

.video-section-header p {
    margin: 8px 0 0;

    font-size: 14px;

    color: #6d7da3;
}


/* ดูทั้งหมด */

.view-all-btn {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 10px 18px;

    border: none;
    border-radius: 30px;

    background: #fff;

    color: #263f88;

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;

    box-shadow:
        0 5px 20px rgba(38, 63, 136, .08);

    cursor: pointer;

    transition: .2s;
}

.view-all-btn:hover {
    transform: translateY(-2px);
}

.view-all-icon {
    width: 34px;
    height: 34px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #4d72ee;

    border: 2px solid #5d7ff0;
}

.view-all-icon i {
    font-size: 12px;
}


/* =========================
   TABS
========================= */

.video-tabs {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;

    margin-bottom: 10px;
}

.video-tab {
    height: 76px;

    display: flex;
    align-items: center;

    gap: 20px;

    padding: 0 28px;

    border: none;
    border-radius: 16px;

    background: #fff;

    color: #173b83;

    font-family: inherit;

    font-size: 20px;
    font-weight: 500;

    box-shadow:
        0 5px 20px rgba(30, 60, 120, .08);

    cursor: pointer;

    transition: .25s;
}

.video-tab > i:first-child {
    font-size: 28px;
}

.video-tab .arrow {
    margin-left: auto;

    font-size: 16px;

    color: #788ab8;
}

.video-tab.active {
    color: #fff;

    background:
        linear-gradient(
            110deg,
            #a35cff,
            #5368f4
        );

    box-shadow:
        0 8px 25px rgba(107, 76, 230, .25);
}

.video-tab.active .arrow {
    color: #fff;
}

.video-tab:hover {
    transform: translateY(-2px);
}


/* =========================
   VIDEO
========================= */

.video-card {
    width: 100%;

    padding: 8px;

    border-radius: 22px;

    background: #fff;

    box-shadow:
        0 5px 25px rgba(40, 60, 100, .10);
}

.video-thumbnail {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 8.5;

    overflow: hidden;

    border-radius: 17px;

    background: #ad7d89;
}


/* Image */

.video-thumbnail > img {
    position: absolute;

    width: 100%;
    height: 100%;

    inset: 0;

    object-fit: cover;

    display: block;
}


/* =========================
   BADGE
========================= */

.recommend-badge {
    position: absolute;

    top: 25px;
    left: 25px;

    z-index: 5;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 10px 17px;

    border-radius: 30px;

    background: rgba(218, 74, 180, .85);

    color: #fff;

    font-size: 14px;

    backdrop-filter: blur(8px);
}

.recommend-badge i {
    font-size: 18px;
}


/* Duration */

.video-duration {
    position: absolute;

    top: 25px;
    right: 25px;

    z-index: 5;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 10px 17px;

    border-radius: 30px;

    background: rgba(45, 25, 30, .65);

    color: #fff;

    font-size: 14px;

    backdrop-filter: blur(8px);
}


/* =========================
   TEXT ON VIDEO
========================= */

.video-message {
    position: absolute;

    left: 9%;

    top: 32%;

    z-index: 3;

    color: #fff;

    font-size: clamp(18px, 2.5vw, 34px);

    line-height: 1.35;

    font-weight: 500;

    text-shadow:
        0 2px 8px rgba(0,0,0,.15);

    transform: rotate(-3deg);
}

.video-message span {
    display: block;

    margin-top: 8px;

    font-size: 30px;
}

.video-message.right {
    left: auto;

    right: 7%;

    top: 47%;

    transform: rotate(3deg);

    text-align: center;
}


/* =========================
   PLAY BUTTON
========================= */

.video-play {
    position: absolute;

    z-index: 6;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 78px;
    height: 78px;

    border-radius: 50%;

    border: 2px solid rgba(255,255,255,.9);

    background: rgba(50, 35, 40, .45);

    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 25px;

    padding-left: 5px;

    cursor: pointer;

    backdrop-filter: blur(5px);

    transition: .2s;
}

.video-play:hover {
    transform: translate(-50%, -50%) scale(1.08);

    background: rgba(50, 35, 40, .65);
}


/* =========================
   CONTROLS
========================= */

.video-controls {
    position: absolute;

    left: 12px;
    right: 12px;
    bottom: 12px;

    z-index: 10;

    height: 58px;

    padding: 0 15px;

    box-sizing: border-box;

    display: flex;
    align-items: center;

    gap: 16px;

    border-radius: 13px;

    background: rgba(38, 26, 31, .72);

    color: #fff;

    backdrop-filter: blur(8px);
}

.video-controls button {
    width: 28px;
    height: 28px;

    padding: 0;

    border: none;

    background: transparent;

    color: #fff;

    cursor: pointer;

    font-size: 15px;
}

.video-time {
    white-space: nowrap;

    font-size: 12px;
}


/* Progress */

.video-progress {
    position: relative;

    flex: 1;

    height: 6px;

    border-radius: 10px;

    background: rgba(255,255,255,.35);
}

.video-progress-bar {
    width: 31%;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #7d54ff,
            #6e79ff
        );
}

.video-progress-dot {
    position: absolute;

    left: 31%;
    top: 50%;

    width: 15px;
    height: 15px;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background: #fff;

    box-shadow:
        0 1px 4px rgba(0,0,0,.25);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 700px) {

    .video-section {
        
    }

    .video-section-header {
        flex-direction: column;
        gap: 12px;
    }

    .video-section-header h2 {
        font-size: 24px;
    }

    .video-section-header p {
        font-size: 11px;
    }

    .view-all-btn {
        align-self: flex-end;
    }

    .video-tab {
        height: 60px;

        padding: 0 15px;

        gap: 10px;

        font-size: 13px;
    }

    .video-tab > i:first-child {
        font-size: 20px;
    }

    .recommend-badge,
    .video-duration {
        top: 12px;

        padding: 7px 10px;

        font-size: 10px;
    }

    .recommend-badge {
        left: 12px;
    }

    .video-duration {
        right: 12px;
    }

    .video-play {
        width: 55px;
        height: 55px;

        font-size: 18px;
    }

    .video-controls {
        height: 42px;

        left: 7px;
        right: 7px;
        bottom: 7px;

        gap: 7px;

        padding: 0 8px;
    }

    .video-controls button {
        width: 22px;
        font-size: 11px;
    }

    .video-time {
        font-size: 9px;
    }

    .video-message {
        font-size: 15px;
    }

    .video-message span {
        font-size: 20px;
    }
}

.flex5558s{
  display: flex;
  width: 100%;
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    padding: 5px;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

/* ----------------- บ็อกผลการเรียน ------------------ */

.gpa-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 14px 16px;

    box-sizing: border-box;

    background: #fff;

    border: 1px solid #e3e7ef;
    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(20, 50, 100, .04);

    font-family: "Prompt", sans-serif;

    color: #163b91;
    margin-bottom: 10px;
}


/* =========================
   HEADER
========================= */

.gpa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}

.gpa-header h2 {
    margin: 0;

    font-size: 16px;
    font-weight: 700;

    color: #173b91;
}

.gpa-header h2 span {
    font-size: 10px;
    font-weight: 400;

    color: #63739b;
}

.semester-badge {
    padding: 6px 10px;

    border-radius: 8px;

    background: #f5f7fc;

    border: 1px solid #e1e6f0;

    color: #536895;

    font-size: 9px;

    white-space: nowrap;
}


/* =========================
   LEGEND
========================= */

.gpa-legend {
    display: flex;

    align-items: center;

    gap: 25px;

    margin: 13px 0 5px;

    font-size: 9px;

    color: #62739d;
}

.legend-item {
    display: flex;
    align-items: center;

    gap: 7px;
}

.legend-line {
    width: 16px;
    height: 2px;

    display: inline-block;

    background: #285bd5;

    position: relative;
}

.legend-line.solid::before {
    content: "";

    position: absolute;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #285bd5;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);
}

.legend-line.dashed {
    background: repeating-linear-gradient(
        to right,
        #285bd5 0,
        #285bd5 4px,
        transparent 4px,
        transparent 7px
    );
}


/* =========================
   CHART
========================= */

.gpa-chart {
    width: 100%;

    position: relative;
}

.gpa-chart svg {
    width: 100%;

    height: 190px;

    display: block;
}


/* Grid */

.grid {
    stroke: #e8edf5;
    stroke-width: 1;
}


/* เส้น GPA รวม */

.gpa-average {
    fill: none;

    stroke: #3265d7;

    stroke-width: 2;

    stroke-dasharray: 5 5;

    opacity: .85;
}


/* เส้น GPA */

.gpa-main {
    fill: none;

    stroke: #2457d2;

    stroke-width: 2.5;
}


/* จุด */

.gpa-dot {
    fill: #2457d2;

    stroke: #fff;

    stroke-width: 2;
}


/* คะแนน */

.score-text {
    font-family: "Prompt", sans-serif;

    font-size: 11px;

    font-weight: 600;

    fill: #183b91;

    text-anchor: middle;
}


/* Axis */

.axis-text {
    font-family: "Prompt", sans-serif;

    font-size: 8px;

    fill: #7382a1;
}


/* =========================
   X LABEL
========================= */

.x-labels {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    margin-left: 35px;
    margin-right: 5px;

    margin-top: -4px;
}

.x-labels div {
    text-align: center;

    color: #536895;

    font-size: 8px;
}

.x-labels span,
.x-labels small {
    display: block;
}

.x-labels small {
    font-size: 8px;
}


/* =========================
   SUBJECT
========================= */

.subject-list {
    margin-top: 20px;

    display: flex;
    flex-direction: column;

    gap: 7px;
}

.subject-row {
    display: grid;

    grid-template-columns:
        82px 1fr 35px;

    align-items: center;

    gap: 7px;
}

.subject-row > span {
    font-size: 8px;

    color: #53658d;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.subject-row strong {
    text-align: right;

    font-size: 9px;

    font-weight: 500;

    color: #4b6090;
}


/* Progress */

.subject-bar {
    height: 3px;

    border-radius: 10px;

    background: #e5ebf5;

    overflow: hidden;
}

.subject-bar i {
    display: block;

    height: 100%;

    border-radius: inherit;

    background: #2457d2;
}


/* =========================
   BUTTON
========================= */

.gpa-detail-btn {
    width: 100%;

    height: 34px;

    margin-top: 18px;

    border-radius: 9px;

    border: 1px solid #e1e6f0;

    background: #fff;

    color: #2457d2;

    font-family: "Prompt", sans-serif;

    font-size: 10px;

    cursor: pointer;

    transition: .2s;
}

.gpa-detail-btn i {
    margin-left: 5px;
}

.gpa-detail-btn:hover {
    background: #f5f8ff;

    border-color: #bfcdf0;
}


/* ---------------- ผลงาน/รางวัลและกิจกรรม ----------------- */

.achievement-card {
    width: 100%;
    max-width: 420px;

    margin: 0 auto;
    padding: 14px;

    box-sizing: border-box;

    background: #fff;

    border: 1px solid #e3e7ef;

    border-radius: 12px;

    box-shadow:
        0 2px 8px rgba(20, 50, 100, .04);

    font-family: "Prompt", sans-serif;

    color: #173b91;
    margin-bottom: 10px;
}


/* =========================
   HEADER
========================= */

.achievement-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 12px;
}

.achievement-header h2 {
    margin: 0;

    font-size: 14px;
    font-weight: 700;

    color: #173b91;
}

.view-more-top {
    display: flex;

    align-items: center;

    gap: 5px;

    border: none;

    background: transparent;

    color: #3264d5;

    font-family: inherit;

    font-size: 12px;

    cursor: pointer;
}

.view-more-top i {
    font-size: 8px;
}


/* =========================
   LIST
========================= */

.achievement-list {
    display: flex;

    flex-direction: column;

    gap: 6px;
}


/* =========================
   ITEM
========================= */

.achievement-item {
    min-height: 58px;

    display: grid;

    grid-template-columns:
        66px 1fr 72px;

    align-items: center;

    gap: 9px;

    padding: 5px;

    box-sizing: border-box;

    border-radius: 8px;

    background: #fff;

    border-bottom: 1px solid #eef1f6;
}


/* =========================
   IMAGE
========================= */

.achievement-img {
    width: 66px;
    height: 48px;

    display: block;

    object-fit: cover;

    border-radius: 6px;

    border: 1px solid #e1e5ec;
}


/* =========================
   INFO
========================= */

.achievement-info {
    min-width: 0;
}

.achievement-info h3 {
    margin: 0 0 2px;

    font-size: 11px;

    line-height: 1.35;

    font-weight: 600;

    color: #244794;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.achievement-info span {
    display: block;

    font-size: 10px;

    color: #65769b;

    margin-bottom: 2px;
}

.achievement-info small {
    display: block;

    font-size: 10px;

    color: #8a97b0;
}


/* =========================
   VERIFY
========================= */

.verify {
    width: 70px;

    min-height: 39px;

    padding: 5px 3px;

    box-sizing: border-box;

    border-radius: 8px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
}

.verify strong {
    font-size: 7px;

    font-weight: 500;
}

.verify span {
    margin-top: 2px;

    font-size: 6px;
}


/* Pending */

.verify.pending {
    background: #fff8ed;

    color: #d9962b;
}

.verify.pending strong {
    color: #d89424;
}


/* Verified */

.verify.verified {
    background: #effaf4;

    color: #41a374;
}

.verify.verified strong {
    color: #41a374;
}


/* =========================
   FOOTER
========================= */

.achievement-footer {
    width: 100%;

    height: 40px;

    margin-top: 8px;

    border-radius: 8px;

    border: 1px solid #e5e9f1;

    background: #fff;

    color: #3264d5;

    font-family: inherit;

    font-size: 13px;

    cursor: pointer;

    transition: .2s;
}

.achievement-footer i {
    margin-left: 5px;
}

.achievement-footer:hover {
    background: #f5f8ff;
}

/* ---------- กืจกรรมโรงเรียน ----------------------------- */

.school-activity-card {
    width: 100%;
    max-width: 420px;

    margin: 0 auto;
    padding: 14px;

    box-sizing: border-box;

    background: #fff;

    border: 1px solid #e3e7ef;

    border-radius: 12px;

    box-shadow:
        0 2px 8px rgba(20, 50, 100, .04);

    font-family: "Prompt", sans-serif;

    color: #173b91;
    margin-top: 10px;
    margin-bottom: 10px;
}


/* =========================
   HEADER
========================= */

.school-activity-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 10px;
}

.school-activity-header h2 {
    margin: 0;

    font-size: 14px;
    font-weight: 700;

    color: #173b91;
}

.school-view-all {
    display: flex;

    align-items: center;

    gap: 5px;

    border: none;

    background: transparent;

    color: #3264d5;

    font-family: inherit;

    font-size: 13px;

    cursor: pointer;
}

.school-view-all i {
    font-size: 10px;
}


/* =========================
   LIST
========================= */

.school-activity-list {
    display: flex;

    flex-direction: column;
}


/* =========================
   ITEM
========================= */

.school-activity-item {
    min-height: 62px;

    display: grid;

    grid-template-columns:
        48px 1fr 70px;

    align-items: center;

    gap: 10px;

    padding: 7px 2px;

    box-sizing: border-box;

    border-bottom: 1px solid #edf0f5;
}

.school-activity-item:last-child {
    border-bottom: none;
}


/* =========================
   IMAGE
========================= */

.school-activity-img {
    width: 48px;
    height: 48px;

    object-fit: cover;

    display: block;

    border-radius: 6px;

    border: 1px solid #dfe5ef;

    background: #f3f6fa;
}


/* =========================
   INFO
========================= */

.school-activity-info {
    min-width: 0;
}

.school-activity-info h3 {
    margin: 0 0 2px;

    color: #244794;

    font-size: 12px;

    font-weight: 600;

    line-height: 1.35;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.school-activity-info span {
    display: block;

    margin-bottom: 2px;

    color: #60739b;

    font-size: 7px;

    font-weight: 400;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.school-activity-info small {
    display: block;

    color: #8b97ae;

    font-size: 10px;
}


/* =========================
   BUTTON
========================= */

.activity-btn {
    width: 70px;
    height: 30px;

    border-radius: 7px;

    border: 1px solid #dfe5f0;

    background: #fff;

    color: #3264d5;

    font-family: "Prompt", sans-serif;

    font-size: 11.5px;

    cursor: pointer;

    transition: .2s;
}

.activity-btn:hover {
    background: #f3f7ff;

    border-color: #b9c9eb;

    transform: translateY(-1px);
}

/* =========================
   POST COMPOSER (feed.php)
========================= */

.post-composer {
    background: #fff;
    border: 1px solid #d9dde5;
    border-radius: 18px;
    padding: 20px 20px 18px;
    margin-bottom: 16px;
    color: var(--navy);
}

.post-composer-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.post-composer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d9dde5;
}

.post-composer-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.post-composer-date {
    font-size: 13px;
    color: #4a5f86;
}

.post-composer-label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.post-composer-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.post-composer-types input {
    display: none;
}

.post-composer-types span {
    display: block;
    text-align: center;
    padding: 5px 4px;
    border: 1px solid #c9cfda;
    border-radius: 6px;
    font-size: 14px;
    color: #4a5f86;
    cursor: pointer;
    transition: .15s;
}

.post-composer-types input:checked + span {
    background: #9b6bf2;
    border-color: #9b6bf2;
    color: #fff;
}

.post-composer-text {
    width: 100%;
    min-height: 110px;
    border: 1px solid #c9cfda;
    border-radius: 6px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--navy);
    resize: vertical;
    box-sizing: border-box;
}

.post-composer-text::placeholder {
    color: var(--navy);
}

.post-composer-text:focus {
    outline: none;
    border-color: #9b6bf2;
}

.post-composer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
}

.post-composer-attach {
    display: flex;
    gap: 6px;
}

.post-composer-tool {
    width: 60px;
    height: 54px;
    border: 1px solid #c9cfda;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--navy);
    cursor: pointer;
    transition: .15s;
}

.post-composer-tool svg {
    width: 22px;
    height: 22px;
}

.post-composer-tool span {
    font-size: 9.5px;
    color: #4a5f86;
    white-space: nowrap;
}

.post-composer-tool:hover,
.post-composer-tool.has-file {
    border-color: #9b6bf2;
    background: #f6f1ff;
}

.post-composer-actions {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    max-width: 200px;
}

.post-composer-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}

.post-composer-check input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.post-composer-submit {
    background: #0a1f5c;
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 10px 15px;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: .15s;
}

.post-composer-submit:hover {
    background: var(--navy3);
}

.post-composer-files {
    font-size: 12px;
    color: #4a5f86;
    margin-top: 8px;
    word-break: break-all;
}

@media (max-width: 380px) {
    .post-composer-bottom {
        flex-direction: column;
    }

    .post-composer-actions {
        max-width: none;
        width: 100%;
    }
}


/* =========================
   TOPUP (wallet.php?a=topup)
========================= */

.topup-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-bottom: 14px;
}

.topup-head h1 {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.topup-back {
    position: absolute;
    left: 0;
    width: 42px;
    height: 38px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
    display: grid;
    place-items: center;
    color: #111;
}

.topup-back svg {
    width: 22px;
    height: 22px;
}

.topup-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 12px 12px 0 0;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(11, 30, 63, .05);
}

.topup-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--navy);
    padding: 4px;
    background: #fff;
    flex-shrink: 0;
}

.topup-profile-info {
    min-width: 0;
    color: var(--navy);
}

.topup-verified {
    display: inline-block;
    border: 1.5px solid var(--navy);
    border-radius: 20px;
    padding: 1px 12px;
    font-size: 11px;
    margin-bottom: 4px;
}

.topup-nick {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.topup-fullname {
    font-size: 17px;
    color: #4a5f86;
    margin-bottom: 6px;
}

.topup-meta {
    font-size: 13px;
    color: #4a5f86;
    margin-top: 3px;
}

.topup-card {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    padding: 16px 14px 18px;
    box-shadow: 0 2px 8px rgba(11, 30, 63, .05);
}

.topup-note {
    font-size: 12.5px;
    color: #333;
    margin: 4px 0 14px;
}

.topup-note span {
    color: #1b3a9b;
}

.topup-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.topup-opt input {
    display: none;
}

.topup-opt-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 104px;
    border: 1px solid #eceef2;
    border-radius: 6px;
    cursor: pointer;
    transition: .15s;
    text-align: center;
}

.topup-opt input:checked + .topup-opt-box {
    background: #eef2fa;
    border-color: #3f5fa8;
}

.topup-opt-lsp {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
}

.topup-opt-lsp.small-t {
    font-size: 13px;
}

.topup-coin {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.topup-opt-thb {
    font-size: 12px;
    color: #777;
}

.topup-opt input:checked + .topup-opt-box .topup-opt-thb {
    color: var(--navy);
}

.topup-custom {
    display: none;
    margin-top: 10px;
}

.topup-custom.show {
    display: block;
}

.topup-offer {
    background: #f1f4fa;
    border-radius: 6px;
    padding: 14px 10px 10px;
    margin: 20px 0;
}

.topup-offer-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #333;
    margin-bottom: 12px;
}

.topup-offer-head span {
    color: #1b3a9b;
    text-align: right;
}

.topup-offer-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 6px;
    padding: 14px;
}

.topup-offer-pct {
    font-size: 38px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.topup-offer-pct small {
    font-size: 18px;
}

.topup-offer-text {
    flex: 1;
    font-size: 11.5px;
    color: #333;
}

.topup-offer-sub {
    font-size: 10.5px;
    color: #777;
    margin-top: 6px;
}

.topup-offer-sub a {
    color: #777;
}

.topup-ref {
    display: none;
    margin-top: 6px;
}

.topup-ref.show {
    display: block;
}

.topup-offer-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 13px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.topup-label {
    font-size: 13px;
    color: #333;
    margin-bottom: 10px;
}

.topup-pays {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topup-pay input {
    display: none;
}

.topup-pay span {
    display: grid;
    place-items: center;
    min-width: 46px;
    height: 30px;
    padding: 0 6px;
    border: 1px solid #e3e6ec;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: .15s;
    background: #fff;
}

.topup-pay input:checked + span {
    border-color: var(--navy);
    box-shadow: 0 0 0 2px rgba(11, 30, 63, .15);
}

.pay-visa { color: #1a1f71; font-style: italic; font-size: 12px !important; }
.pay-mastercard { color: #eb001b; }
.pay-amex { color: #2e77bc; }
.pay-promptpay { color: #1a3d6d; }
.topup-pay .pay-bbl { background: #1e4598; color: #fff; }
.topup-pay .pay-kplus { background: #138f2d; color: #fff; }
.pay-truemoney { color: #f47b20; }
.pay-alipay { color: #1677ff; }

.topup-total {
    display: flex;
    align-items: baseline;
    gap: 22px;
    font-size: 15px;
    color: #333;
    margin: 22px 0 18px;
}

.topup-total b {
    font-size: 20px;
    color: var(--navy);
}

.topup-submit {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 4px;
    background: #0a1f5c;
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    cursor: pointer;
}

.topup-submit:hover {
    background: var(--navy3);
}

.topup-h {
    font-size: 19px;
    font-weight: 500;
    color: #222;
    margin: 26px 0 12px;
}

.topup-tx {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #dfe3ea;
    border-radius: 8px;
    padding: 12px 20px 12px 18px;
    margin-bottom: 14px;
    box-shadow: 0 2px 6px rgba(11, 30, 63, .06);
}

.topup-tx-ic {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #0a1f5c;
    color: #fff;
    font-size: 28px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.topup-tx-info {
    flex: 1;
    color: var(--navy);
}

.topup-tx-t {
    font-size: 17px;
}

.topup-tx-d {
    font-size: 12px;
    line-height: 1.35;
}

.topup-tx-amt {
    font-size: 22px;
    font-weight: 600;
    color: #0a1f5c;
}

.topup-more {
    display: block;
    width: 80%;
    margin: 22px auto 10px;
    height: 54px;
    line-height: 54px;
    border-radius: 30px;
    background: #0a1f5c;
    color: #fff;
    text-align: center;
    font-size: 17px;
    text-decoration: none;
}

@media (max-width: 400px) {
    .topup-avatar { width: 92px; height: 92px; }
    .topup-nick { font-size: 20px; }
    .topup-opt-lsp { font-size: 16px; }
    .topup-opt-box { height: 88px; }
    .topup-tx-amt { font-size: 18px; }
    .topup-tx-ic { width: 48px; height: 48px; font-size: 22px; }
}
