/* ============================================================================
 *  ธีมหน้าเติมเงิน RO-Frozen  (donate2)
 * ----------------------------------------------------------------------------
 *  ไฟล์เดียวจบ : โครงหน้า การ์ด ปุ่ม ช่องกรอก ตาราง การ์ดแพ็คเกจ และมือถือ
 *  โทนสีเอามาจากกล่อง STATUS SERVER ของหน้าแรก (css/status.css)
 *      ฟ้าน้ำแข็ง + กระจกขาว + ขอบเรืองแสง + เกล็ดหิมะ ❄
 *
 *  อยากเปลี่ยนสีทั้งหน้า แก้ที่ :root ด้านล่างที่เดียว
 * ==========================================================================*/

:root {
    --fz-blue:        #1676a8;                       /* ฟ้าเข้ม  ปุ่ม/หัวข้อ */
    --fz-blue-mid:    #43bce9;
    --fz-blue-light:  #9eefff;
    --fz-ice:         rgba(72, 180, 235, 0.95);      /* ขอบการ์ด */
    --fz-line:        rgba(70, 170, 220, 0.45);      /* ขอบช่อง/แถว */
    --fz-line-soft:   rgba(70, 170, 220, 0.25);
    --fz-glow:        rgba(70, 190, 255, 0.65);

    --fz-text:        #285c7c;                       /* ตัวหนังสือหลัก */
    --fz-text-dim:    #5b87a3;                       /* ตัวหนังสือรอง */
    --fz-text-strong: #1d4a66;

    --fz-gold:        #e2b857;                       /* โปรโมชั่น */
    --fz-gold-dark:   #b98f36;
    --fz-purple:      #7d6ff0;                       /* Package Limited */
    --fz-mint:        #22b283;                       /* แต้มสะสม / ของรางวัล */
    --fz-success:     #0f9d58;
    --fz-danger:      #d92c2c;

    --fz-radius:      14px;
    --fz-font:        'Kanit', 'Noto Sans Thai', Tahoma, sans-serif;
}

/* ================================================================== โครงหน้า */

html { scroll-behavior: smooth; }

body.custom.mb-page {
    min-height: 100vh;
    margin: 0;
    padding: 0 0 60px;

    font-family: var(--fz-font);
    font-weight: 300;
    color: var(--fz-text);

    background-color: #eaf7fd;
    background-image: url('../../img/bg_test3.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
}

/* หมอกน้ำแข็งจาง ๆ ทับพื้นหลัง ให้การ์ดอ่านง่าย */
body.custom.mb-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 255, 255, .55), transparent 40%),
        radial-gradient(circle at 85% 90%, rgba(95, 210, 255, .28), transparent 45%);
}

/* โลโก้ด้านบน (ไม่ใช้ .logo-box ของหน้าแรก เพราะอันนั้น absolute + ซูมใหญ่) */
.fz-logo {
    position: relative;
    z-index: 1;
    padding: 34px 16px 6px;
    text-align: center;
}

.fz-logo img {
    width: 300px;
    max-width: 80%;
    filter: drop-shadow(0 8px 18px rgba(30, 120, 180, .35));
    transition: transform .25s ease;
}

.fz-logo a:hover img {
    transform: scale(1.04);
}

.mb-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding: 14px 16px 0;
}

/* ================================================================= การ์ดหลัก */

.mb-card {
    position: relative;
    box-sizing: border-box;
    width: 460px;
    max-width: 100%;
    padding: 26px 28px 28px;

    border: 2px solid var(--fz-ice);
    border-radius: 16px;

    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 32%),
        radial-gradient(circle at bottom right, rgba(95, 210, 255, 0.35), transparent 38%),
        linear-gradient(180deg, rgba(247, 253, 255, 0.96), rgba(212, 240, 252, 0.94));

    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.65) inset,
        inset 0 0 22px rgba(255, 255, 255, 0.8),
        0 0 16px var(--fz-glow),
        0 10px 24px rgba(30, 120, 180, 0.22);

    animation: fzFadeUp .45s ease both;
}

.mb-card::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(95, 190, 240, 0.5);
    border-radius: 10px;
    pointer-events: none;
}

.mb-card::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 6px;
    height: 3px;
    border-radius: 10px;
    background: linear-gradient(90deg, transparent, #69dfff, transparent);
    box-shadow: 0 0 10px rgba(105, 223, 255, 0.95);
    pointer-events: none;
}

.mb-card.is-donate {
    width: 1120px;
}

@keyframes fzFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

/* หัวการ์ด : ป้ายฟ้าไล่สีแบบ STATUS SERVER */
.mb-head {
    position: relative;
    z-index: 1;
    margin: -4px auto 18px;
    text-align: center;
}

.mb-title {
    position: relative;
    display: inline-block;
    min-width: 56%;
    margin: 0;
    padding: 8px 48px;

    color: #fff;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0 #2378a3, 0 0 8px rgba(90, 220, 255, 0.95);

    background: linear-gradient(180deg, #9eefff 0%, #43bce9 45%, #1676a8 100%);
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 22px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -4px 8px rgba(0, 80, 140, 0.35),
        0 0 12px rgba(70, 190, 255, 0.85),
        0 3px 6px rgba(0, 80, 130, 0.25);
}

.mb-title::before,
.mb-title::after {
    content: "❄";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #eaffff;
    font-size: 15px;
    text-shadow: 0 0 8px #fff;
}

.mb-title::before { left: 16px; }
.mb-title::after  { right: 16px; }

.mb-subtitle {
    margin-top: 10px;
    color: var(--fz-text-dim);
    font-size: 13.5px;
}

/* ===================================================================== เมนู */

.mb-nav {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;

    margin-bottom: 18px;
    padding: 8px;

    border: 1px solid var(--fz-line);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(200, 235, 250, 0.6));
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.85);
}

.mb-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 999px;

    color: var(--fz-text);
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all .15s ease;
}

.mb-nav a:hover {
    border-color: var(--fz-line);
    background: rgba(255, 255, 255, 0.85);
}

.mb-nav a.is-active {
    color: #fff;
    background: linear-gradient(180deg, #6fd3f5, #1c86bd);
    border-color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 0 #145a82;
    box-shadow: 0 0 10px rgba(70, 190, 255, 0.7);
}

.mb-nav a.is-danger {
    color: var(--fz-danger);
}

.mb-nav a.is-danger:hover {
    background: rgba(217, 44, 44, 0.08);
    border-color: rgba(217, 44, 44, 0.35);
}

.mb-nav-spacer {
    flex: 1;
}

/* ============================================================ กล่องข้อความ */

.mb-alert {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px;
    align-items: flex-start;

    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid;

    font-size: 14px;
    line-height: 1.6;
}

.mb-alert > i {
    margin-top: 3px;
    font-size: 18px;
}

.mb-alert.is-error {
    color: #9b1c1c;
    background: rgba(255, 235, 235, 0.92);
    border-color: rgba(217, 44, 44, 0.45);
}

.mb-alert.is-success {
    color: #0b6b3c;
    background: rgba(226, 250, 238, 0.92);
    border-color: rgba(15, 157, 88, 0.45);
}

/* ========================================================= บัญชี + สถิติ */

.mb-account {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 14px;
    padding: 12px 16px;

    border: 1px solid var(--fz-line);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(200, 235, 250, 0.58));
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.85), 0 1px 4px rgba(50, 140, 190, 0.25);
}

.mb-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: none;

    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    background: linear-gradient(180deg, #9eefff, #43bce9 45%, #1676a8);
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(70, 190, 255, 0.7);
}

.mb-account-name {
    color: var(--fz-text-strong);
    font-size: 17px;
    font-weight: 500;
}

.mb-account-sub {
    color: var(--fz-text-dim);
    font-size: 12.5px;
}

.mb-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.mb-stat {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 14px 18px;
    border: 1px solid var(--fz-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.85), 0 1px 4px rgba(50, 140, 190, 0.2);
}

.mb-stat > i {
    width: 36px;
    flex: none;
    font-size: 26px;
    text-align: center;
}

.mb-stat-label {
    color: var(--fz-text-dim);
    font-size: 12.5px;
}

.mb-stat-value {
    color: var(--fz-text-strong);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.15;
    text-shadow: 1px 1px 0 #fff, 0 0 6px rgba(90, 210, 255, 0.6);
}

.mb-stat-sub {
    margin-top: 2px;
    color: var(--fz-text-dim);
    font-size: 12px;
}

.mb-stat.dn-stat-point {
    border-color: rgba(72, 180, 235, 0.8);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(180, 230, 252, 0.7));
}

.mb-stat.dn-stat-point > i { color: var(--fz-blue); }

.mb-stat.dn-stat-reward {
    border-color: rgba(34, 178, 131, 0.55);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(200, 245, 228, 0.7));
}

.mb-stat.dn-stat-reward > i { color: var(--fz-mint); }

/* ============================================================== หัวข้อย่อย */

.mb-section-title {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;

    margin: 0 0 12px;
    padding: 7px 14px;

    color: #fff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .5px;
    text-shadow: 1px 1px 0 #145a82;

    background: linear-gradient(180deg, rgba(68, 170, 215, 0.95), rgba(20, 100, 150, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 0 7px rgba(75, 190, 240, 0.45);
}

.mb-section-title i { color: #d9f6ff; }

.mb-section-title.is-limited {
    background: linear-gradient(180deg, rgba(150, 140, 250, 0.95), rgba(79, 67, 184, 0.95));
    text-shadow: 1px 1px 0 #3b3190;
}

.mb-section-title.is-reward {
    background: linear-gradient(180deg, rgba(74, 210, 160, 0.95), rgba(18, 128, 92, 0.95));
    text-shadow: 1px 1px 0 #0d5c42;
}

.mb-section-note {
    margin-left: 4px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12.5px;
    font-weight: 300;
    text-shadow: none;
}

/* ================================================================ ฟอร์ม */

.mb-field {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
}

.mb-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--fz-text-strong);
    font-size: 13.5px;
    font-weight: 400;
}

.mb-field .req { color: var(--fz-danger); }

.mb-input {
    display: flex;
    align-items: center;

    border: 1px solid var(--fz-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 3px rgba(20, 90, 130, 0.12);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.mb-input:focus-within {
    border-color: var(--fz-blue-mid);
    box-shadow: 0 0 0 3px rgba(67, 188, 233, 0.25);
}

.mb-input > i {
    width: 40px;
    flex: none;
    color: var(--fz-blue);
    font-size: 15px;
    text-align: center;
}

.mb-input input,
.mb-input select {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 12px 0 0;

    border: 0;
    outline: 0;
    background: transparent;

    color: var(--fz-text-strong);
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 400;
}

.mb-input select {
    padding-right: 12px;
}

.mb-input input::placeholder { color: #9bb9cb; }

.mb-eye {
    width: 40px;
    height: 42px;
    flex: none;
    border: 0;
    background: transparent;
    color: var(--fz-text-dim);
    font-size: 15px;
}

.mb-eye:hover { color: var(--fz-blue); }

.mb-hint {
    min-height: 18px;
    margin-top: 5px;
    color: var(--fz-text-dim);
    font-size: 12.5px;
}

.mb-hint.is-success {
    color: var(--fz-success);
    font-weight: 400;
}

/* ปุ่มหลัก */
.mb-submit,
.dn-buy-btn {
    display: block;
    width: 100%;
    padding: 11px 12px;

    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 12px;

    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .3px;
    text-shadow: 1px 1px 0 #2378a3;

    background: linear-gradient(180deg, #9eefff 0%, #43bce9 45%, #1676a8 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -4px 8px rgba(0, 80, 140, 0.35),
        0 0 10px rgba(70, 190, 255, 0.7),
        0 3px 6px rgba(0, 80, 130, 0.25);

    transition: filter .15s ease, transform .12s ease;
}

.mb-submit { margin-top: 6px; }

.mb-submit:hover,
.dn-buy-btn:hover { filter: brightness(1.08); }

.mb-submit:active,
.dn-buy-btn:active { transform: translateY(1px); }

.mb-submit:disabled,
.dn-buy-btn:disabled,
.dn-buy-btn.is-disabled {
    background: linear-gradient(180deg, #e9f1f5, #c9d7df);
    color: #7f95a3;
    text-shadow: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.8);
    cursor: not-allowed;
    filter: none;
}

.mb-foot {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 18px;
    font-size: 13.5px;
}

.mb-foot a {
    color: var(--fz-blue);
    text-decoration: none;
}

.mb-foot a:hover { text-decoration: underline; }

.mb-foot a.dim { color: var(--fz-text-dim); }

/* ================================================================ ตาราง */

.mb-table-wrap {
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
    overflow-x: auto;
    border: 1px solid var(--fz-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
}

.mb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.mb-table th {
    padding: 10px 14px;
    color: #fff;
    font-weight: 500;
    text-align: left;
    text-shadow: 1px 1px 0 #145a82;
    background: linear-gradient(180deg, rgba(68, 170, 215, 0.95), rgba(20, 100, 150, 0.95));
    white-space: nowrap;
}

.mb-table td {
    padding: 10px 14px;
    border-top: 1px solid var(--fz-line-soft);
    color: var(--fz-text);
    white-space: nowrap;
}

.mb-table tbody tr:nth-child(even) td { background: rgba(200, 235, 250, 0.3); }
.mb-table tbody tr:hover td           { background: rgba(160, 225, 250, 0.35); }

.mb-char-name {
    color: var(--fz-text-strong);
    font-weight: 500;
}

.mb-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 400;
    color: #fff;
}

.mb-badge.is-online  { background: linear-gradient(180deg, #34c98a, #0f9d58); }
.mb-badge.is-offline { background: linear-gradient(180deg, #f2b25d, #d98a1f); }

.mb-empty {
    padding: 26px 16px;
    color: var(--fz-text-dim);
    font-size: 14px;
    text-align: center;
}

.mb-empty i {
    display: block;
    margin-bottom: 6px;
    font-size: 26px;
    color: var(--fz-blue-mid);
}

/* ============================================================================
 *  ส่วนของหน้าเติมเงินโดยเฉพาะ  (dn-*)
 * ==========================================================================*/

/* ------------------------------------------------------------- เลือกตัวละคร */

.dn-charpick {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 18px;
    align-items: start;

    margin-bottom: 24px;
    padding: 16px 18px;

    border: 1px solid var(--fz-line);
    border-left: 4px solid var(--fz-blue-mid);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.dn-charpick .mb-field { margin-bottom: 0; }

.dn-charpick-note {
    padding-top: 26px;
    color: var(--fz-text-dim);
    font-size: 13px;
    line-height: 1.9;
}

.dn-charpick-note b {
    display: block;
    margin-bottom: 2px;
    color: var(--fz-text-strong);
    font-weight: 500;
}

.dn-charpick-note b.is-warn { color: var(--fz-danger); }

/* ------------------------------------------------------------ การ์ดแพ็คเกจ */

.dn-packages {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}

.dn-package {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    padding: 18px 18px 16px;
    border: 1px solid var(--fz-line);
    border-radius: var(--fz-radius);

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(214, 240, 252, 0.75));
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.9), 0 2px 6px rgba(50, 140, 190, 0.18);

    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dn-package:hover {
    transform: translateY(-3px);
    border-color: var(--fz-blue-mid);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.9), 0 0 14px var(--fz-glow), 0 10px 22px rgba(30, 120, 180, 0.22);
}

.dn-package-label {
    margin-bottom: 2px;
    color: var(--fz-text-dim);
    font-size: 13px;
    text-align: center;
}

.dn-package-price {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--fz-line-soft);

    color: var(--fz-blue);
    font-size: 26px;
    font-weight: 600;
    text-align: center;
    text-shadow: 1px 1px 0 #fff, 0 0 6px rgba(90, 210, 255, 0.6);
}

.dn-package-price span {
    margin-left: 4px;
    color: var(--fz-text-dim);
    font-size: 13px;
    font-weight: 300;
    text-shadow: none;
}

.dn-reward {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 14px;
}

.dn-reward span   { color: var(--fz-text-dim); }
.dn-reward strong { color: var(--fz-text-strong); font-weight: 500; }
.dn-reward.is-bonus strong { color: var(--fz-success); }

.dn-items {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed var(--fz-line);
}

.dn-item {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 6px;
    color: var(--fz-text);
    font-size: 13.5px;
}

.dn-item img {
    width: 26px;
    height: 26px;
    flex: none;
    padding: 1px;
    object-fit: contain;
    image-rendering: pixelated;
    border: 1px solid var(--fz-line-soft);
    border-radius: 6px;
    background: #fff;
}

.dn-item b {
    margin-left: auto;
    color: var(--fz-blue);
    font-size: 12.5px;
    font-weight: 500;
}

/* แถบคาดมุม */
.dn-ribbon {
    position: absolute;
    top: 16px;
    right: -44px;
    width: 170px;
    padding: 5px 0;

    color: #2a1e05;
    font-size: 12px;
    font-weight: 500;
    text-align: center;

    background: linear-gradient(180deg, #f6dc8f, var(--fz-gold) 45%, var(--fz-gold-dark));
    box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
    transform: rotate(38deg);
    pointer-events: none;
}

/* โปรโมชั่น : ขอบทอง */
.dn-package.is-promo {
    border-color: var(--fz-gold);
    background: linear-gradient(180deg, rgba(255, 252, 240, 0.95), rgba(252, 240, 205, 0.8));
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(226, 184, 87, 0.35), 0 4px 12px rgba(180, 140, 40, 0.2);
}

.dn-package.is-promo .dn-package-price { color: #a3781d; text-shadow: 1px 1px 0 #fff; }

/* Package Limited : โทนม่วง */
.dn-package.is-limited {
    border-color: rgba(125, 111, 240, .7);
    background: linear-gradient(180deg, rgba(250, 249, 255, 0.95), rgba(226, 222, 252, 0.8));
}

.dn-package.is-limited .dn-package-price { color: #5b4bd6; }

.dn-package.is-limited .dn-ribbon {
    color: #fff;
    background: linear-gradient(180deg, #b6aefb, #7d6ff0 45%, #4f43b8);
}

.dn-package.is-limited .dn-stock-bar span { background: linear-gradient(90deg, #7d6ff0, #b6aefb); }

.dn-package.is-limited .dn-buy-btn:not(:disabled):not(.is-disabled) {
    background: linear-gradient(180deg, #c9c3ff 0%, #8b7ff3 45%, #4f43b8 100%);
    text-shadow: 1px 1px 0 #3b3190;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -4px 8px rgba(40, 30, 120, 0.35), 0 0 10px rgba(139, 127, 243, 0.6);
}

.dn-perid {
    margin-top: 12px;
    padding: 7px 10px;
    border: 1px solid rgba(125, 111, 240, .4);
    border-radius: 8px;
    background: rgba(125, 111, 240, .1);
    color: #4f43b8;
    font-size: 12.5px;
    text-align: center;
}

.dn-perid i { margin-right: 5px; }
.dn-perid b { font-weight: 600; }

/* ของรางวัล : โทนมิ้นต์ */
.dn-package.is-reward {
    border-color: rgba(34, 178, 131, .6);
    background: linear-gradient(180deg, rgba(247, 255, 251, 0.95), rgba(210, 245, 230, 0.8));
}

.dn-package.is-reward .dn-package-price { color: #12805c; }

.dn-package.is-reward .dn-ribbon {
    color: #04291d;
    background: linear-gradient(180deg, #a7f3d0, #34d399 45%, #12805c);
}

.dn-package.is-reward .dn-stock-bar span { background: linear-gradient(90deg, #34d399, #a7f3d0); }

.dn-package.is-reward .dn-buy-btn:not(:disabled):not(.is-disabled) {
    background: linear-gradient(180deg, #b6f5dc 0%, #34d399 45%, #12805c 100%);
    text-shadow: 1px 1px 0 #0d5c42;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -4px 8px rgba(0, 90, 60, 0.35), 0 0 10px rgba(52, 211, 153, 0.6);
}

.dn-package.is-reward.is-limited { border-color: rgba(125, 111, 240, .7); }

/* ขายหมด / แลกครบแล้ว */
.dn-package.is-soldout,
.dn-package.is-claimed {
    opacity: .6;
    filter: grayscale(.6);
}

.dn-package.is-soldout:hover,
.dn-package.is-claimed:hover {
    transform: none;
    border-color: var(--fz-line);
    box-shadow: none;
}

/* สต็อก */
.dn-stock {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--fz-line);
}

.dn-stock-bar {
    height: 12px;
    padding: 2px;
    border: 1px solid rgba(20, 105, 155, 0.6);
    border-radius: 12px;
    background: linear-gradient(180deg, #b9efff, #4aaed7);
    box-shadow: inset 0 0 6px rgba(0, 70, 120, 0.45);
    overflow: hidden;
}

.dn-stock-bar span {
    display: block;
    height: 100%;
    border-radius: 10px;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0 2px, transparent 2px 9px),
        linear-gradient(90deg, #79ff9c 0%, #f9f871 58%, #ff8d45 100%);
}

.dn-stock-text {
    margin-top: 6px;
    color: var(--fz-text-dim);
    font-size: 12.5px;
    text-align: center;
}

.dn-stock-text b {
    color: var(--fz-blue);
    font-weight: 600;
}

/* ปุ่มแลก */
.dn-buy {
    margin-top: auto;
    padding-top: 14px;
}

.dn-buy form { margin: 0; }

a.dn-buy-btn.is-topup {
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--fz-line);
    color: var(--fz-blue);
    text-shadow: none;
    box-shadow: none;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
}

a.dn-buy-btn.is-topup:hover {
    background: rgba(160, 225, 250, 0.45);
    filter: none;
}

/* ------------------------------------------------------------ สองคอลัมน์ */

.dn-columns {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 26px;
}

.dn-box {
    padding: 18px;
    border: 1px solid var(--fz-line);
    border-radius: var(--fz-radius);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.9);
}

/* บัญชีรับโอน */
.dn-bank {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 16px;
    align-items: center;

    margin: 0 0 16px;
    padding: 16px 18px;

    border: 1px solid rgba(72, 180, 235, 0.8);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(200, 235, 250, 0.6));
}

.dn-bank dt {
    color: var(--fz-text-dim);
    font-size: 13px;
    white-space: nowrap;
}

.dn-bank dd {
    margin: 0;
    color: var(--fz-text-strong);
    font-size: 17px;
    font-weight: 500;
    word-break: break-all;
}

.dn-copy {
    margin-left: 8px;
    padding: 3px 12px;
    border: 1px solid var(--fz-line);
    border-radius: 999px;
    background: #fff;
    color: var(--fz-blue);
    font-family: inherit;
    font-size: 12px;
    vertical-align: middle;
    transition: background .15s ease;
}

.dn-copy:hover { background: rgba(160, 225, 250, 0.45); }

/* กล่องคำเตือน / หมายเหตุ / วิธีได้แต้ม */
.dn-warning,
.dn-note,
.dn-howto {
    position: relative;
    z-index: 1;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.9;
}

.dn-warning {
    border: 1px solid rgba(217, 44, 44, 0.35);
    border-left: 4px solid var(--fz-danger);
    background: rgba(255, 238, 238, 0.85);
    color: #8f2323;
}

.dn-warning b {
    display: block;
    margin-bottom: 2px;
    color: var(--fz-danger);
    font-weight: 500;
}

.dn-note {
    margin-top: 16px;
    border: 1px solid var(--fz-line-soft);
    border-left: 4px solid var(--fz-blue-mid);
    background: rgba(255, 255, 255, 0.7);
    color: var(--fz-text-dim);
}

.dn-note b {
    display: block;
    margin-bottom: 2px;
    color: var(--fz-text-strong);
    font-weight: 500;
}

.dn-howto {
    margin-bottom: 22px;
    border: 1px solid rgba(34, 178, 131, .4);
    border-left: 4px solid var(--fz-mint);
    background: rgba(230, 250, 242, 0.85);
    color: #1f5d47;
}

.dn-howto > b:first-child {
    display: block;
    margin-bottom: 2px;
    color: #12805c;
    font-weight: 500;
}

.dn-howto b { color: #0d5c42; font-weight: 500; }

.dn-howto a {
    color: #12805c;
    text-decoration: underline;
}

/* โลโก้ธนาคาร */
.dn-banklogos { margin-top: 16px; }

.dn-banklogos-title {
    margin-bottom: 8px;
    color: var(--fz-text-dim);
    font-size: 13px;
}

.dn-banklogos-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dn-banklogos-list img {
    width: 42px;
    height: 42px;
    padding: 4px;
    border: 1px solid var(--fz-line);
    border-radius: 10px;
    background: #fff;
    object-fit: contain;
}

/* ================================================================== มือถือ */

@media (max-width: 1024px) {
    .dn-columns  { grid-template-columns: 1fr; }
    .dn-packages { grid-template-columns: repeat(2, 1fr); }
    .dn-charpick { grid-template-columns: 1fr; gap: 10px; }
    .dn-charpick-note { padding-top: 0; }
}

@media (max-width: 680px) {
    .fz-logo { padding-top: 22px; }
    .fz-logo img { width: 230px; }

    .mb-wrap { padding: 8px 10px 0; }
    .mb-card { padding: 20px 16px 24px; }

    .mb-title {
        min-width: 0;
        padding: 7px 40px;
        font-size: 18px;
    }

    .mb-nav a { padding: 7px 12px; font-size: 13px; }
    .mb-nav-spacer { display: none; }

    .mb-stats { grid-template-columns: 1fr; }
    .mb-stat-value { font-size: 20px; }

    .dn-packages { gap: 10px; }
    .dn-package  { padding: 14px; }
    .dn-package-price { font-size: 21px; }

    .dn-bank { grid-template-columns: 1fr; gap: 2px 0; }
    .dn-bank dd { margin-bottom: 10px; font-size: 15px; }
}

@media (max-width: 480px) {
    .dn-packages { grid-template-columns: 1fr; }
}

/* ================================================================== ท้ายหน้า */

.fz-footer {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    color: var(--fz-text-dim);
    font-size: 12.5px;
    text-align: center;
}

.fz-footer a {
    color: var(--fz-blue);
    text-decoration: none;
}

.fz-footer a:hover { text-decoration: underline; }
