/* ============================================================
   MISSION SUNDAY (โฟลเดอร์ sunday/) — ชิ้นส่วนเฉพาะหน้า M-SUNDAY
   ต่อยอดจาก ../pro/pro.css (ทอง #D6B172 / ครีม / การ์ดขาว) โหลดผ่าน ms_head() ใน ui.php
   ทุกคลาสอยู่ใต้ .ms (แท็ก <main class='pp ms'>) ขึ้นต้นด้วย ms-  ·  แถบเมนูใช้ ../pro/menu.css (+ .ms-nav ด้านล่าง)
   ============================================================ */

/* ซ่อนด้วย attribute hidden ได้เสมอ แม้คลาสจะตั้ง display ไว้ (สคริปต์โปรโมชั่นหน้า package / ป๊อปอัป) */
.ms [hidden] {
    display: none !important;
}

/* ลิงก์ #rank / #missions : เว้นใต้แถบเมนูที่ลอยอยู่ */
.ms .hero,
.ms .sec {
    scroll-margin-top: calc(80px + var(--pend-h, 0px));   /* + แถบสถานะการสมัคร PRO ถ้ามี */
}

.ms .ms-gold {
    color: var(--gold-dark);
}

/* ---------- แถบเมนู ---------- */

.ms-nav a {
    text-decoration: none;
}

/* มีลิงก์เมนูอยู่แล้ว ปุ่มสมัคร PRO ไม่ต้องดันขวา */
.ms-nav .topnav-cta.ms-up {
    margin-left: 0;
    padding: 0 18px;
    text-decoration: none;
}

@media screen and (max-width: 700px) {
    .ms-nav .topnav-cta.ms-up {
        display: none;
    }
}

@media screen and (max-width: 360px) {
    .ms-nav .topnav-brand .name b {
        display: none;
    }
}

/* ---------- hero : ยินดีต้อนรับ ---------- */

.ms .hero-total .num small {
    margin-left: 4px;
    font-size: 0.42em;
    font-weight: 500;
    letter-spacing: 0;
}

.ms .hero-total .unit small {
    display: block;
    font-size: 14px;
    color: var(--muted);
}

.ms .ms-who {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.ms .ms-who span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #555;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.ms .ms-who i {
    color: var(--gold);
}

.ms .ms-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

/* การ์ดเข้ม : ภารกิจถัดไป */
.ms .ms-next .mission-topic span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
}

.ms .ms-next-lock {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
}

.ms .ms-next-lock i {
    margin-top: 4px;
    color: var(--gold);
}

.ms .ms-next-lock b {
    font-weight: 500;
    color: #f6e7c8;
}

/* ---------- The SUN Ranking ---------- */

.ms .rank-num small {
    margin-left: 1px;
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
}

.ms .rank-list li.me:not(:first-child) {
    background: #fffaf0;
    box-shadow: inset 3px 0 0 var(--gold);
}

/* ---------- ภารกิจทั้งหมด ---------- */

.ms .ms-m {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

/* เปิดให้ทำ : ขอบทอง เด่นกว่าการ์ดอื่น */
.ms .ms-m.is-open {
    border-color: var(--gold);
    box-shadow: 0 10px 26px rgba(214, 177, 114, 0.22);
}

.ms .ms-m.is-soon {
    background: #fcfaf6;
}

.ms .ms-m-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ms .ms-m-no {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: var(--gold-dark);
}

.ms .ms-m h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
}

.ms .ms-m-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.ms .ms-m-sub i {
    color: var(--gold);
}

.ms .ms-m-desc {
    margin: 0;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--muted);
}

/* ส่วนล่างของการ์ด (ผลคะแนน / ปุ่ม / เวลาเปิด) ชิดล่างเสมอ */
.ms .ms-m-foot {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
}

.ms .ms-m-res {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line2);
}

/* อันดับ 4 กลุ่ม (2 x 2) */
.ms .ms-rk {
    flex: 1 1 240px;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ms .ms-rk li {
    min-width: 0;
    padding: 8px 12px;
    border-radius: 12px;
    background: #faf6ef;
    line-height: 1.35;
}

.ms .ms-rk span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
    color: #666;
}

.ms .ms-rk b {
    display: block;
    font-size: 18px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ms .ms-rk small {
    display: block;
    font-size: 11px;
    font-weight: 300;
    color: var(--muted);
}

.ms .ms-m-lock {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--gold-soft);
    color: #6b5a3e;
    font-size: 14px;
    line-height: 1.6;
}

.ms .ms-m-lock i {
    margin-top: 4px;
    color: var(--gold-dark);
}

.ms .ms-m-lock b {
    font-weight: 500;
}

/* ---------- เปรียบเทียบแพ็กเกจ ---------- */

.ms .ms-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.ms .ms-plan h3 {
    margin: 0;
    padding-right: 90px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.ms .ms-plan-desc {
    margin: 0;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--muted);
}

.ms .ms-plan-badge {
    position: absolute;
    top: 26px;
    right: 24px;
}

.ms .ms-price {
    margin: 10px 0 4px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line2);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.ms .ms-price small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 300;
    color: var(--muted);
}

.ms .ms-feat {
    display: grid;
    gap: 10px;
    margin: 10px 0 24px;
    padding: 0;
    list-style: none;
    font-size: 15px;
}

.ms .ms-feat li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.ms .ms-feat i {
    flex: none;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold-dark);
    font-size: 10px;
}

.ms .ms-feat li.no {
    color: var(--muted);
}

.ms .ms-feat li.no i {
    background: var(--red-soft);
    color: var(--red);
}

.ms .ms-plan .btn {
    margin-top: auto;
}

/* i-TEST PRO : การ์ดเข้มขอบทอง (แบบกล่องนับถอยหลังหน้าแรกเว็บครูผู้ช่วย) */
.ms .ms-plan.pro {
    border-color: rgba(214, 177, 114, 0.55);
    background:
        radial-gradient(circle at 8% 0%, rgba(214, 177, 114, 0.32), transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(214, 177, 114, 0.16), transparent 40%),
        linear-gradient(135deg, #2c231a, #1b1712);
    color: #fff;
    box-shadow: 0 16px 36px rgba(60, 42, 16, 0.25);
}

.ms .ms-plan.pro h3 {
    color: #f6e7c8;
}

.ms .ms-plan.pro .ms-plan-desc,
.ms .ms-plan.pro .ms-price small {
    color: rgba(255, 255, 255, 0.72);
}

.ms .ms-plan.pro .ms-price {
    border-color: rgba(214, 177, 114, 0.3);
    background: linear-gradient(180deg, #f8e6bd, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ms .ms-plan.pro .ms-price small {
    -webkit-text-fill-color: rgba(255, 255, 255, 0.72);
}

.ms .ms-plan.pro .ms-feat i {
    background: rgba(214, 177, 114, 0.22);
    color: var(--gold);
}

/* ---------- ป๊อปอัป i-TEST PRO ---------- */

.ms .ms-pop {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(27, 23, 18, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: ms-fade .2s ease-out;
}

.ms .ms-pop-box {
    position: relative;
    width: min(420px, 100%);
    padding: 10px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    animation: ms-rise .25s ease-out;
}

.ms .ms-pop-box img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 80px);
    object-fit: contain;
    border-radius: 14px;
}

.ms .ms-pop-x {
    position: absolute;
    top: -12px;
    right: -12px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(0, 0, 0, 0.3);
}

.ms .ms-pop-x:hover {
    background: var(--red);
}

@keyframes ms-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes ms-rise {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ms .ms-pop,
    .ms .ms-pop-box {
        animation: none;
    }
}

/* ---------- ผลการทำแบบทดสอบ (quiz_show.php) ---------- */

.ms .ms-result h1 span {
    display: block;
    color: var(--gold-dark);
    font-size: 0.8em;
}

.ms .ms-verdict {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin: 24px 0 10px;
}

.ms .ms-verdict b {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.ms .ms-tone-ok   { color: var(--green); }
.ms .ms-tone-warn { color: var(--amber); }
.ms .ms-tone-bad  { color: var(--red); }

.ms .ms-comment {
    max-width: 640px;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: #555;
}

.ms .ms-comment b {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: var(--ink);
}

.ms .ms-sum-t {
    font-size: 16px;
    text-align: center;
}

.ms .ms-scale {
    width: 100%;
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ms .ms-scale li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #faf6ef;
    color: #777;
    font-size: 14px;
}

.ms .ms-scale small {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

.ms .ms-scale li.on {
    color: var(--ink);
    font-weight: 600;
}

.ms .ms-scale li.on.ok   { border-color: var(--green); background: var(--green-soft); }
.ms .ms-scale li.on.warn { border-color: var(--amber); background: var(--amber-soft); }
.ms .ms-scale li.on.bad  { border-color: var(--red);   background: var(--red-soft); }

/* ---------- เข้าสู่ระบบ (login.php) : ไม่มีแถบเมนู การ์ดกลางจอ ---------- */

.pp.ms-login {
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background:
        radial-gradient(circle at 12% 8%, rgba(214, 177, 114, 0.35), transparent 45%),
        radial-gradient(circle at 92% 92%, rgba(214, 177, 114, 0.25), transparent 40%),
        linear-gradient(180deg, var(--cream), #fff);
}

.ms .ms-auth {
    width: min(440px, 100%);
    padding: 34px 32px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(120, 90, 40, 0.16);
}

.ms .ms-auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ms .ms-auth-brand img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--gold);
}

.ms .ms-auth-brand .n {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.3px;
}

/* ป้ายทองแบบแถบเมนู */
.ms .ms-auth-brand .n b {
    padding: 1px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, #e3c48e, var(--gold) 45%, #c49a55);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    line-height: 1.6;
}

.ms .ms-auth-brand small {
    display: block;
    font-size: 13px;
    font-weight: 300;
    color: var(--muted);
}

.ms .ms-auth h1 {
    margin: 28px 0 4px;
    font-size: 26px;
    font-weight: 500;
}

.ms .ms-auth-lead {
    margin: 0 0 22px;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--muted);
}

.ms .ms-field {
    margin-bottom: 14px;
}

.ms .ms-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
}

.ms .ms-input {
    position: relative;
    display: flex;
    align-items: center;
}

.ms .ms-input i {
    position: absolute;
    left: 16px;
    color: var(--gold-dark);
    font-size: 15px;
    pointer-events: none;
}

.ms .ms-input input {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 16px;
    transition: border-color .15s, box-shadow .15s;
}

.ms .ms-input input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(214, 177, 114, 0.22);
}

.ms .ms-auth .btn {
    height: 50px;
    margin-top: 8px;
    font-size: 16px;
}

.ms .ms-auth-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--muted);
}

.ms .ms-auth-links a {
    color: var(--gold-dark);
    font-weight: 500;
}

.ms .ms-auth-links a:hover {
    text-decoration: underline;
}

/* ---------- สมัครสมาชิก (package.php / sunday/package.php ผ่าน package_view.php) ---------- */

/* การ์ดเลือกแพ็กเกจ 3 แบบ : ไอคอนซ้าย | ชื่อ / ราคา / รายละเอียด  วงติ๊กมุมขวาบน */
.ms .ms-opts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.ms .ms-opt {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-areas: "ic name" "ic price" "ic sub";
    align-items: center;
    column-gap: 12px;
    row-gap: 1px;
    min-width: 0;
    padding: 14px 44px 14px 16px;
    border: 2px solid var(--line);
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.ms .ms-opt:hover {
    border-color: rgba(214, 177, 114, 0.7);
    transform: translateY(-2px);
}

.ms .ms-opt:focus-visible {
    outline: 3px solid rgba(214, 177, 114, 0.6);
    outline-offset: 2px;
}

.ms .ms-opt.on {
    border-color: var(--gold);
    background: linear-gradient(180deg, #fffaf1, #fff);
    box-shadow: 0 12px 28px rgba(214, 177, 114, 0.3);
}

/* วงกลมติ๊กมุมขวาบนของการ์ดที่เลือก */
.ms .ms-opt::after {
    content: "\f00c";
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: transparent;
    font: var(--fa-font-solid);
    font-size: 10px;
    transition: all .2s;
}

.ms .ms-opt.on::after {
    border-color: var(--gold);
    background: var(--gold);
    color: #fff;
}

.ms .ms-opt .badge {
    position: absolute;
    top: -11px;
    right: 44px;
}

.ms .ms-opt-ic {
    grid-area: ic;
    align-self: start;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-top: 2px;
    border-radius: 12px;
    background: var(--gold-soft);
    color: var(--gold-dark);
    font-size: 15px;
}

.ms .ms-opt b {
    grid-area: name;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.ms .ms-opt b small {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
}

.ms .ms-opt-p {
    grid-area: price;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--gold-dark);
    font-variant-numeric: tabular-nums;
}

.ms .ms-opt-p small {
    margin-left: 4px;
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
}

.ms .ms-opt-s {
    grid-area: sub;
    font-size: 12px;
    font-weight: 300;
    color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
    .ms .ms-opt,
    .ms .ms-opt::after {
        transition: none;
    }
    .ms .ms-opt:hover {
        transform: none;
    }
}

.ms .ms-pack {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: start;
    gap: 20px;
}

.ms .ms-pack.one {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
}

/* การ์ดรายการ / ชำระเงิน : กระชับกว่าการ์ดทั่วไป */
.ms .ms-bill,
.ms .ms-pay {
    padding: 18px 22px 16px;
}

.ms .ms-bill .panel-head,
.ms .ms-pay .panel-head {
    margin-bottom: 6px;
}

.ms .ms-bill-h {
    padding: 12px 4px 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--gold-dark);
}

.ms .ms-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 4px;
    border-top: 1px solid var(--line2);
    font-size: 15px;
}

.ms .ms-row .amt {
    flex: none;
    text-align: right;
    white-space: nowrap;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.ms .ms-row .amt em {
    display: block;
    font-style: normal;
    color: var(--red);
}

.ms .ms-total {
    margin-top: 4px;
    padding: 12px 4px 4px;
    border-top: 2px solid var(--line);
    font-size: 17px;
    font-weight: 600;
}

.ms .ms-total .amt b {
    font-size: 24px;
    color: var(--gold-dark);
}

.ms .ms-status {
    margin-top: 4px;
}

.ms .ms-status .ms-row {
    align-items: center;
}

/* ปุ่ม [เลือก] / [ยกเลิก] โปรโมชั่น */
.ms .ms-pick {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 12px;
    border: 1px solid var(--gold);
    border-radius: 999px;
    background: #fff;
    color: var(--gold-dark);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    cursor: pointer;
    transition: background .2s, color .2s;
    vertical-align: 1px;
}

.ms .ms-pick:hover {
    background: var(--gold);
    color: #fff;
}

.ms .ms-pick span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* เบอร์สมาชิกของโปรโมชั่น : ช่องละครึ่งแถว (ป้ายเล็กด้านบน) */
.ms .ms-members {
    margin: 0 0 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #faf6ef;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

.ms .ms-tels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    line-height: 1.4;
}

.ms .ms-tel {
    display: grid;
    align-content: start;
    gap: 3px;
    min-width: 0;
    margin: 0;
}

.ms .ms-tel > span {
    font-size: 12px;
    color: #666;
}

.ms .ms-tel .box_tel {
    width: 100%;
    max-width: none;
    height: 36px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.3px;
}

/* ตรวจเบอร์ : ไม่ครบ 10 หลัก / ซ้ำ / ไม่พบในระบบ = แดง + ข้อความ  พบ = ขอบเขียว + ติ๊กหลังป้าย + ชื่อเจ้าของเบอร์ */
.ms .ms-tel-msg {
    font-size: 12px;
    line-height: 1.4;
    color: var(--red);
}

.ms .ms-tel-who {
    overflow: hidden;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #2f7a52;
}

.ms .ms-tel-who:empty {
    display: none;
}

.ms .ms-tel-who::before {
    content: "\f2bd";
    margin-right: 5px;
    font: var(--fa-font-solid);
    font-size: 11px;
}

.ms .ms-tel-who.wait {
    font-weight: 400;
    color: var(--muted);
}

.ms .ms-tel-who.wait::before {
    content: "\f110";
    display: inline-block;
    animation: ms-spin 1s linear infinite;
}

/* ชื่อของตัวเอง (ช่องอ่านอย่างเดียว) : สีปกติ */
.ms .ms-tel input[readonly] ~ .ms-tel-who {
    color: #666;
}

@keyframes ms-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .ms .ms-tel-who.wait::before {
        animation: none;
    }
}

.ms .ms-tel.bad .box_tel {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-soft);
}

.ms .ms-tel.ok .box_tel {
    border-color: var(--green);
}

.ms .ms-tel.ok > span::after {
    content: "\f00c";
    margin-left: 6px;
    font: var(--fa-font-solid);
    font-size: 10px;
    color: var(--green);
}

.ms .ms-form-err {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(224, 91, 91, 0.35);
    border-radius: 12px;
    background: #fff6f5;
    color: #b53c3c;
    font-size: 13px;
    line-height: 1.6;
}

.ms .ms-form-err.wait {
    border-color: var(--line);
    background: #faf6ef;
    color: #666;
}

.ms .box_tel {
    flex: 1 1 180px;
    max-width: 240px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    transition: border-color .15s, box-shadow .15s;
}

.ms .box_tel[readonly] {
    background: #f5f1ea;
    color: #666;
}

.ms .box_tel:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(214, 177, 114, 0.22);
}

.ms .box_tel.ms-code {
    width: 160px;
    height: 36px;
    font-weight: 400;
}

.ms .ms-warn {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--red);
}

.ms .ms-qr {
    display: grid;
    place-items: center;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.ms .ms-qr img {
    display: block;
    width: 100%;
    max-width: 230px;
    height: auto;
}

.ms .ms-upload {
    display: grid;
    grid-template-columns: minmax(0, 1fr);   /* ชื่อไฟล์ยาว ๆ ต้องไม่ดันกล่องให้กว้างเกินการ์ด */
    gap: 8px;
    margin-top: 14px;
}

.ms .ms-upload input[type=file] {
    min-width: 0;
    max-width: 100%;
}

.ms .ms-upload label {
    font-size: 14px;
    font-weight: 500;
}

.ms input[type=file] {
    width: 100%;
    padding: 8px;
    border: 1px dashed var(--gold);
    border-radius: 14px;
    background: var(--cream);
    color: #555;
    font-family: inherit;
    font-size: 14px;
}

/* โฟกัส (กดเปลี่ยนสลิปแล้วเลื่อนมาที่ช่องนี้) : วงสีทองแบบช่องเบอร์ แทนกรอบดำของเบราว์เซอร์ */
.ms input[type=file]:focus-visible {
    outline: none;
    border-style: solid;
    box-shadow: 0 0 0 3px rgba(214, 177, 114, 0.28);
}

/* ไม่ได้แนบ / ไฟล์ไม่ใช่รูป : กรอบเลือกไฟล์เป็นสีแดง */
.ms .ms-upload.bad input[type=file] {
    border-color: var(--red);
    background: #fff6f5;
}

.ms .ms-slip-err {
    font-size: 12px;
    line-height: 1.5;
    color: var(--red);
}

/* รูปตัวอย่างหลักฐานที่เลือก (ก่อนส่ง) */
.ms .ms-slip-prev {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.ms .ms-slip-prev img {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 10px;
    background: #faf6ef;
}

.ms .ms-slip-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 2px;
    font-size: 12px;
    color: #666;
}

.ms .ms-slip-bar .n {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ms .ms-slip-x {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--red);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.ms .ms-slip-x:hover {
    border-color: var(--red);
    background: var(--red-soft);
}

/* หลักฐานที่ส่งมาแล้ว (สมัครแล้ว) : รูปแสดงในหน้า แตะเพื่อเปิดรูปเต็ม */
.ms .ms-slip {
    padding: 10px 4px 12px;
    border-top: 1px solid var(--line2);
}

.ms .ms-slip-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 15px;
}

.ms .ms-slip-h .more {
    padding: 4px 14px;
    border-width: 1px;
    font-size: 13px;
}

.ms .ms-slip-img {
    display: block;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #faf6ef;
    cursor: zoom-in;
}

.ms .ms-slip-img img {
    display: block;
    max-width: 100%;
    max-height: 460px;
    margin: 0 auto;
    border-radius: 10px;
    object-fit: contain;
}

.ms .ms-slip-img.miss {
    cursor: default;
    pointer-events: none;
    padding: 18px;
    text-align: center;
}

.ms .ms-slip-img.miss img {
    display: none;
}

.ms .ms-slip-img.miss::after {
    content: "ไม่พบไฟล์รูปหลักฐานการชำระเงิน";
    font-size: 13px;
    color: var(--muted);
}

/* ---------- เปลี่ยนสลิป / ยกเลิกการสมัคร (package_view.php pk_slip_actions → package_slip.php) ---------- */

/* ผลการทำรายการ (แสดงครั้งเดียวบนหัวหน้า) */
.ms .ms-flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 760px;
    margin: 0 auto 18px;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.55;
}

.ms .ms-flash i { margin-top: 4px; }
.ms .ms-flash.ok  { background: var(--green-soft); color: var(--green); }
.ms .ms-flash.bad { background: var(--red-soft);   color: #b94040; }

/* สลิปมีปัญหา : กล่อง "กรุณาติดต่อ Facebook ครูผู้ช่วย เนื่องจากสลิปการชำระเงินของท่านมีปัญหา" ใต้แถวสถานะ (เจ้าของเว็บขอ 2026-10-06) */
.ms .ms-bad-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 12px;
    padding: 14px 16px;
    border: 1px solid rgba(224, 91, 91, 0.3);
    border-radius: 16px;
    background: var(--red-soft);
}

.ms .ms-bad-note .ic {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1877f2;
    color: #fff;
    font-size: 19px;
}

.ms .ms-bad-note p {
    margin: 0;
    line-height: 1.5;
}

.ms .ms-bad-note b {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

.ms .ms-bad-note .fb {
    white-space: nowrap;   /* จอแคบ : ไม่ตัด "Facebook ครูผู้ช่วย" กลางชื่อ */
}

.ms .ms-bad-note small {
    display: block;
    font-size: 14px;
    color: #b94040;
}

/* อนุมัติแล้ว ยังไม่กดเริ่มใช้ : ปุ่มไปหน้าต้อนรับ PRO */
.ms .ms-start {
    margin-top: 12px;
}

.ms .ms-slip-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.ms .ms-slip-acts > .btn,
.ms .ms-slip-acts > form {
    flex: 1 1 200px;
    margin: 0;
}

.ms .ms-slip-acts > form .btn {
    width: 100%;
}

/* ยกเลิกการสมัคร : ขอบแดง */
.ms .btn.line.ms-cancel {
    border-color: #eab3ad;
    color: var(--red);
}

.ms .btn.line.ms-cancel:hover {
    border-color: var(--red);
    background: var(--red);
    color: #fff;
}

.ms .ms-change {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fffdf9;
}

.ms .ms-change[hidden] {
    display: none;
}

.ms .ms-change-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ms .ms-change-acts .btn {
    flex: 1 1 160px;
}

.ms .ms-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.ms .ms-note i {
    margin-top: 3px;
    color: var(--gold);
}

.ms input[type=file]::file-selector-button {
    margin-right: 12px;
    padding: 6px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--gold);
    color: #fff;
    font-family: inherit;
    cursor: pointer;
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 860px) {
    .ms .ms-pack {
        grid-template-columns: minmax(0, 1fr);
    }
    .ms .ms-opts {
        gap: 10px;
    }
    .ms .ms-opt {
        grid-template-columns: 32px minmax(0, 1fr);
        column-gap: 10px;
        padding: 12px 34px 12px 12px;
    }
    .ms .ms-opt::after {
        top: 10px;
        right: 10px;
    }
    .ms .ms-opt-ic {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 13px;
    }
    .ms .ms-opt-p {
        font-size: 22px;
    }
    .ms .ms-opt .badge {
        right: 34px;
    }
}

/* มือถือ : การ์ดแพ็กเกจเรียงลงมา แบบแถวแนวนอน (ไอคอน | ชื่อ | ราคา) */
@media screen and (max-width: 600px) {
    .ms .ms-opts {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
    .ms .ms-opt {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        grid-template-areas: "ic name price" "ic sub price";
        column-gap: 12px;
        row-gap: 0;
        padding: 10px 44px 10px 12px;
    }
    .ms .ms-opt::after {
        top: 50%;
        right: 12px;
        margin-top: -11px;
    }
    .ms .ms-opt-ic {
        align-self: center;
        width: 34px;
        height: 34px;
        margin: 0;
    }
    .ms .ms-opt b {
        font-size: 14px;
    }
    .ms .ms-opt-p {
        font-size: 22px;
        text-align: right;
    }
    .ms .ms-opt-p small {
        display: block;
        margin: 0;
        font-size: 11px;
    }
    /* ป้าย "คุ้มสุด" ย้ายไปเหนือชื่อแพ็กเกจ ไม่ทับราคาที่อยู่ชิดขวา (การ์ดที่มีป้ายเว้นด้านบนเพิ่ม) */
    .ms .ms-opt.hot {
        padding-top: 16px;
    }
    .ms .ms-opt .badge {
        top: -9px;
        left: 58px;
        right: auto;
        padding: 1px 9px;
        font-size: 11px;
    }
}

@media screen and (max-width: 360px) {
    .ms .ms-tels {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .ms .hero,
    .ms .sec {
        scroll-margin-top: calc(62px + var(--pend-h, 0px));
    }
    .ms .ms-who span {
        font-size: 13px;
        padding: 5px 12px;
    }
    .ms .ms-m {
        padding: 16px;
        border-radius: 18px;
    }
    .ms .ms-m h3 {
        font-size: 18px;
    }
    .ms .ms-m-res {
        justify-content: center;
    }
    .ms .ms-rk b {
        font-size: 16px;
    }
    .ms .ms-plan {
        padding: 20px 18px;
        border-radius: 18px;
    }
    .ms .ms-plan-badge {
        top: 20px;
        right: 16px;
    }
    .ms .ms-price {
        font-size: 34px;
    }
    .ms .ms-pop-x {
        top: -10px;
        right: -6px;
    }
    .ms .ms-auth {
        padding: 26px 20px 22px;
        border-radius: 22px;
    }
    .ms .ms-auth-brand .n {
        font-size: 24px;
    }
    .ms .ms-verdict b {
        font-size: 20px;
    }
    .ms .ms-row {
        font-size: 14px;
    }
    .ms .ms-total .amt b {
        font-size: 22px;
    }
    .ms .ms-bill,
    .ms .ms-pay {
        padding: 16px 14px 14px;
    }
}

/* ---------- หน้าสมัคร PRO : ราคาตามวันที่ (pk_price.php · package_view.php) ---------- */

/* ช่วงโปรโมชั่น : แถบเร่งตัดสินใจเหนือการ์ดเลือกแพ็กเกจ (package_view.php · pk_hurry_js)
   ไอคอนไฟ | หัวข้อ + ราคาหลังหมดโปร + ส่วนที่ประหยัด | นับถอยหลัง
   .last = เหลือไม่ถึง 24 ชม. (โทนแดง ป้าย "วันสุดท้าย!")  ·  .over = หมดเวลาระหว่างเปิดหน้า (ซ่อนตัวนับ แสดงปุ่มรีเฟรช) */
.ms .ms-hurry {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 20px;
    margin: 0 0 16px;
    padding: 18px 22px;
    border: 1px solid rgba(214, 177, 114, 0.45);
    border-radius: 22px;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 138, 61, 0.38), transparent 42%),
        radial-gradient(circle at 100% 100%, rgba(214, 177, 114, 0.26), transparent 45%),
        linear-gradient(120deg, #2c231a, #15110c);
    color: #fff;
    box-shadow: 0 16px 36px rgba(60, 42, 16, 0.28);
    overflow: hidden;
    isolation: isolate;
}

/* แสงวาบพาดผ่านเป็นระยะ */
.ms .ms-hurry::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -45%;
    z-index: -1;
    width: 35%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-18deg);
    animation: ms-hurry-sweep 5s ease-in-out infinite;
    pointer-events: none;
}

.ms .ms-hurry.last {
    border-color: rgba(255, 138, 61, 0.6);
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 94, 58, 0.5), transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(255, 138, 61, 0.22), transparent 45%),
        linear-gradient(120deg, #3b1c11, #170d08);
}

.ms .ms-hurry-ic {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 17px;
    background: linear-gradient(145deg, #ffb347, #ff5e3a);
    color: #fff;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(255, 94, 58, 0.45);
    animation: ms-hurry-glow 1.8s ease-in-out infinite;
}

.ms .ms-hurry-ic i {
    transform-origin: 50% 90%;
    animation: ms-hurry-flick 1.6s ease-in-out infinite;
}

.ms .ms-hurry-t {
    min-width: 0;
}

.ms .ms-hurry-tag {
    display: inline-block;
    margin-bottom: 5px;
    padding: 1px 10px;
    border-radius: 999px;
    background: rgba(214, 177, 114, 0.22);
    color: #f3d08a;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.ms .ms-hurry-tag .l {
    display: none;
}

.ms .ms-hurry.last .ms-hurry-tag {
    background: #ff5e3a;
    color: #fff;
    animation: ms-hurry-blink 1.2s ease-in-out infinite;
}

.ms .ms-hurry.last .ms-hurry-tag .d {
    display: none;
}

.ms .ms-hurry.last .ms-hurry-tag .l {
    display: inline;
}

.ms .ms-hurry.over .ms-hurry-tag {
    display: none;
}

.ms .ms-hurry-t b {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.ms .ms-hurry-t b em {
    font-style: normal;
    background: linear-gradient(180deg, #fff3d6, #e7bf73);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ms .ms-hurry-t p {
    margin: 3px 0 0;
    font-size: 13.5px;
    font-weight: 300;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

.ms .ms-hurry-t p span {
    font-weight: 600;
    color: #ffc27a;
    white-space: nowrap;
}

/* นับถอยหลัง : วัน · ชม. · นาที · วินาที */
.ms .ms-cd {
    text-align: center;
}

.ms .ms-cd-h {
    display: block;
    margin-bottom: 6px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.7);
}

.ms .ms-cd-row {
    display: flex;
    gap: 8px;
}

.ms .ms-cd-u {
    display: grid;
    place-items: center;
    min-width: 60px;
    padding: 8px 6px 6px;
    border: 1px solid rgba(214, 177, 114, 0.4);
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
}

.ms .ms-cd-u b {
    font-size: 27px;
    font-weight: 700;
    line-height: 1.05;
    color: #f3d08a;
    font-variant-numeric: tabular-nums;
}

.ms .ms-cd-u b.tick {
    animation: ms-cd-tick .35s ease-out;
}

.ms .ms-cd-u small {
    margin-top: 2px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.ms .ms-hurry.last .ms-cd-u {
    border-color: rgba(255, 138, 61, 0.6);
}

.ms .ms-hurry.last .ms-cd-u b {
    color: #ffb38a;
}

/* หมดเวลาระหว่างเปิดหน้า */
.ms .ms-hurry-over {
    display: none;
}

.ms .ms-hurry.over .ms-cd {
    display: none;
}

.ms .ms-hurry.over .ms-hurry-over {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 13.5px;
    line-height: 1.5;
}

.ms .ms-hurry-over b {
    display: block;
    font-size: 15px;
}

.ms .ms-hurry-over .btn {
    flex: none;
}

/* การ์ดแพ็กเกจช่วงโปรโมชั่น : ราคาเต็มขีดฆ่าหน้าราคาโปร + ป้ายประหยัด */
.ms .ms-opt-p s {
    margin-right: 6px;
    font-size: 15px;
    font-weight: 400;
    color: var(--muted);
    text-decoration-color: rgba(224, 91, 91, 0.85);
    text-decoration-thickness: 2px;
}

.ms .ms-opt-save {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8a3d, #ff5e3a);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    vertical-align: 1px;
}

.ms .ms-opt-save i {
    margin-right: 4px;   /* ไม่ใช้ gap : บนจอแคบป้ายเป็น display table */
    font-size: 9px;
}

/* ใต้ปุ่มสมัคร : เวลาที่ยังได้ราคาโปร */
.ms .ms-hurry-note {
    margin: 8px 0 0;
    font-size: 12.5px;
    font-weight: 500;
    color: #c2410c;
    text-align: center;
}

.ms .ms-hurry-note i {
    margin-right: 5px;
}

@keyframes ms-hurry-sweep {
    0%, 55% { left: -45%; }
    100% { left: 125%; }
}

@keyframes ms-hurry-glow {
    0%, 100% { box-shadow: 0 8px 20px rgba(255, 94, 58, 0.45); }
    50% { box-shadow: 0 8px 28px rgba(255, 94, 58, 0.75), 0 0 0 6px rgba(255, 138, 61, 0.15); }
}

@keyframes ms-hurry-flick {
    0%, 100% { transform: scale(1) rotate(0); }
    25% { transform: scale(1.08) rotate(-4deg); }
    50% { transform: scale(0.96) rotate(3deg); }
    75% { transform: scale(1.05) rotate(-2deg); }
}

@keyframes ms-hurry-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes ms-cd-tick {
    0% { transform: translateY(-4px) scale(1.12); opacity: 0.4; }
    100% { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .ms .ms-hurry::before,
    .ms .ms-hurry-ic,
    .ms .ms-hurry-ic i,
    .ms .ms-hurry.last .ms-hurry-tag,
    .ms .ms-cd-u b.tick {
        animation: none;
    }
}

/* ยังไม่มีรูป QR ของยอดนี้ (img/<ราคา>_0.png) : ข้อความแทนรูปเสีย */
.ms .ms-qr-miss {
    max-width: 230px;
    margin: 0;
    padding: 28px 12px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.6;
    text-align: center;
}

.ms .ms-qr-miss i {
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 30px;
}

/* แท็บเล็ต : ตัวนับถอยหลังลงไปเต็มแถวใต้หัวข้อ */
@media screen and (max-width: 860px) {
    .ms .ms-hurry {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 16px 18px;
    }
    .ms .ms-cd {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .ms .ms-cd-h {
        margin: 0;
        text-align: left;
    }
    .ms .ms-cd-row {
        flex: 1;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .ms .ms-cd-u {
        min-width: 0;
    }
    /* การ์ดแพ็กเกจแคบลง : ราคาเต็มขีดฆ่าอยู่บรรทัดบนของราคาโปร · ป้ายประหยัดอยู่บรรทัดของตัวเอง (ข้อความเฉลี่ยต่อคนไม่ขาดกลางวลี) */
    .ms .ms-opt-save {
        display: table;
        margin: 3px 0 2px;
    }
    .ms .ms-opt-p s {
        display: block;
        margin: 0;
        font-size: 12px;
        line-height: 1.3;
    }
}

/* มือถือ : แถบกระชับขึ้น ราคาเต็มขีดฆ่าอยู่เหนือราคาโปร (คอลัมน์ราคาชิดขวาของการ์ด) */
@media screen and (max-width: 600px) {
    .ms .ms-hurry {
        gap: 12px;
        padding: 14px;
        border-radius: 18px;
    }
    .ms .ms-hurry-ic {
        align-self: start;
        width: 42px;
        height: 42px;
        border-radius: 13px;
        font-size: 19px;
    }
    .ms .ms-hurry-t b {
        font-size: 16.5px;
    }
    .ms .ms-hurry-t p {
        font-size: 12.5px;
    }
    .ms .ms-cd {
        display: block;
    }
    .ms .ms-cd-h {
        margin-bottom: 5px;
        text-align: center;
    }
    .ms .ms-cd-row {
        gap: 6px;
    }
    .ms .ms-cd-u {
        padding: 6px 4px 5px;
        border-radius: 11px;
    }
    .ms .ms-cd-u b {
        font-size: 22px;
    }
    .ms .ms-hurry.over .ms-hurry-over {
        flex-wrap: wrap;
    }
}
