/* ruay-refresh.css — DEV-003 (docs/90-deviations.md): decoration-only refresh of the member area + login page in the default theme.
   Owner 2026-09-28: first "จัดวางให้สวยงามทุกหน้าใหม่ … concept เดิม สีเดิม", then after the dark skin round: "เอาโทนสีเดิมของเว็บดีกว่า
   สวยดี แค่ตกแต่งองค์ประกอบ" → this file keeps the ORIGINAL colours of style.css / member.css / index.css (white panels, gold headings,
   gold/silver gradient buttons, legacy button colours) and only adds shape: rounded corners, soft shadows, spacing, card grids, pill
   links, hover states, black labels on the gold buttons ("เห็นไม่ชัด ขอ font สีดำ"). No JS, no data/URL changes, no new colours for
   text or backgrounds. Loaded once by useSiteHeaderMeta after member.css (default/red theme only; also on /login). Every rule is scoped
   by an `rg-*` class that the views/layout add (rg-skin on every member page from layouts/member.vue), so untouched pages are unaffected. */

:root {
    --rg-gold: #d5ad6d;
    --rg-gold-deep: #b47e18;           /* style.css .btn-outline-danger text / lotto-title h4 family */
    --rg-gold-grad: linear-gradient(160deg, #a54e07, #b47e11, #fef1a2, #bc881b, #a54e07);   /* member.css .golden-btn */
    --rg-edge: rgba(180, 126, 24, .28);   /* thin gold edge on white cards */
    --rg-edge-strong: rgba(180, 126, 24, .6);
    --rg-radius: 14px;
    --rg-radius-sm: 10px;
    --rg-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    --rg-shadow-hover: 0 10px 24px rgba(0, 0, 0, .2);
}

/* ===== 1. shared shell — shapes only (colours stay as the legacy stylesheets paint them) ======================================= */
.rg-skin .bar-back,
.rg-back.bar-back { border: 0; padding: 10px 2px 8px; margin-top: 8px; background: transparent; }
.rg-skin .bar-back a:not(.btn),
.rg-back.bar-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--rg-edge);
    color: #6b4f0d;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
    transition: box-shadow .18s ease, border-color .18s ease;
}
.rg-skin .bar-back a:not(.btn):hover,
.rg-back.bar-back a:hover { border-color: var(--rg-edge-strong); box-shadow: var(--rg-shadow); color: #6b4f0d; }
.rg-skin .bar-back .btn,
.rg-skin .bar-back a.btn-outline-secondary { border-radius: 999px; }
.rg-skin .main-content.bg-light,
.rg-shell.bg-light { border-radius: var(--rg-radius); }
.rg-skin .bgwhitealpha,
.rg-page.bgwhitealpha {
    border-radius: var(--rg-radius) !important;
    box-shadow: var(--rg-shadow);
    border-color: var(--rg-edge);
}
.rg-page.bgwhitealpha { padding: 14px 14px 18px !important; }
@media (min-width: 992px) { .rg-page.bgwhitealpha { padding: 18px 20px 24px !important; } }
.rg-skin .bg-white.rounded,
.rg-skin .rounded.bg-white { border-radius: var(--rg-radius-sm) !important; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
/* `h3:not(.flag-icon)`: lottoset.vue renders the flags as <h3 class="flag-icon flag-icon-xx"> whose height comes from flag-icon.css
   `:before { content: "\00a0" }` — the accent-bar ::before below must not replace it (2026-09-28 "รูปธงไปไหน") */
.rg-page h3:not(.flag-icon),
.rg-page .rg-sub {
    position: relative;
    margin: 2px 0 12px;
    padding-left: 13px;
    font-family: SukhumvitBold, sans-serif;
    font-size: 1.2rem;
    line-height: 1.3;
    letter-spacing: .01em;
}
.rg-page .rg-sub { font-size: 1rem; margin: 16px 0 10px; color: var(--rg-gold-deep); }
.rg-page h3:not(.flag-icon)::before,
.rg-page .rg-sub::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    border-radius: 4px;
    background: var(--rg-gold-grad);
}
.rg-page .rg-promo {
    display: block;
    border-radius: var(--rg-radius-sm);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: var(--rg-shadow);
    margin-bottom: 12px;
}
.rg-page .rg-promo img { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
/* generic shapes on every member page */
.rg-skin .card { border-radius: var(--rg-radius-sm); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); overflow: hidden; }
.rg-skin .card > .card-header:first-child { border-radius: var(--rg-radius-sm) var(--rg-radius-sm) 0 0; }
.rg-skin .form-control,
.rg-skin .custom-select,
.rg-skin .input-group-text,
.rg-skin .bootstrap-select > .dropdown-toggle { border-radius: var(--rg-radius-sm); }
.rg-skin .input-group > .input-group-prepend > .input-group-text { border-radius: var(--rg-radius-sm) 0 0 var(--rg-radius-sm); }
.rg-skin .input-group > .form-control:not(:first-child) { border-radius: 0 var(--rg-radius-sm) var(--rg-radius-sm) 0; }
.rg-skin .input-group > .form-control:not(:last-child) { border-radius: var(--rg-radius-sm) 0 0 var(--rg-radius-sm); }
.rg-skin .input-group > .input-group-append > .btn { border-radius: 0 var(--rg-radius-sm) var(--rg-radius-sm) 0; }
.rg-skin .btn.btn-block,
.rg-skin .btn-af { border-radius: var(--rg-radius-sm) !important; }
.rg-skin .btn-af { box-shadow: 0 2px 8px rgba(0, 0, 0, .1); transition: transform .18s ease, box-shadow .18s ease; }
.rg-skin .btn-af:hover { transform: translateY(-2px); box-shadow: var(--rg-shadow); }
.rg-skin .nav-tabs .nav-link { border-radius: var(--rg-radius-sm) var(--rg-radius-sm) 0 0; }
.rg-skin .dropdown-menu { border-radius: var(--rg-radius-sm); box-shadow: var(--rg-shadow); }
.rg-skin .modal-content { border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.rg-skin .page-link { border-radius: 8px; margin: 0 2px; }
.rg-skin .table-secondary,
.rg-skin .alert { border-radius: var(--rg-radius-sm); }
.rg-skin .tanghuay-time,
.rg-skin .tanghuay-time_day { border-radius: var(--rg-radius-sm); }
.rg-skin .withdraw-card { box-shadow: var(--rg-shadow); }
/* the gold topbar keeps its legacy look entirely */

/* ===== 2. provider cards (main / select) — white cards with the ORIGINAL S3 images ============================================ */
.rg-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 4px 0 6px;
}
@media (min-width: 576px) { .rg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 992px) { .rg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.rg-card {
    position: relative;
    display: block;
    border-radius: var(--rg-radius-sm);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: var(--rg-shadow);
    text-decoration: none;
    color: #333;
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.rg-card:hover,
.rg-card:focus { transform: translateY(-3px); border-color: var(--rg-edge-strong); box-shadow: var(--rg-shadow-hover); color: #333; text-decoration: none; }
/* boxes match the original image shapes (no cropping): mobile cover `cover-*.jpg` 2:3, PC banner `partner-*.jpg` ≈2.05:1 */
.rg-card__media { position: relative; padding-top: 150%; background: #f3f3f3; }
@media (min-width: 992px) { .rg-card__media { padding-top: 48.85%; } }
.rg-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.rg-card:hover .rg-card__media img { transform: scale(1.04); }
/* name bar UNDER the picture (the original banners carry their logo at the bottom edge) */
.rg-card__cap {
    padding: 6px 8px 7px;
    background: linear-gradient(180deg, #fffdf7, #f6efe0);
    border-top: 1px solid var(--rg-edge);
    font-family: SukhumvitReg, sans-serif;
    font-size: 11.5px;
    line-height: 1.25;
    text-align: center;
    color: #5a4a1e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rg-card:hover .rg-card__cap { color: var(--rg-gold-deep); }
@media (min-width: 576px) { .rg-card__cap { font-size: 12.5px; } }
@media (min-width: 992px) { .rg-card__cap { font-size: 14px; padding: 8px 12px 9px; } }
.rg-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: #fff;
    background: linear-gradient(45deg, #ff003c, #ff8a00);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.rg-card__badge--gold { background: var(--rg-gold-grad); color: #3d2200; }

/* ===== 3. member home (views/main.vue) — legacy colours, new shapes ============================================================ */
.rg-hero.main-card { border-radius: 16px; overflow: hidden; box-shadow: var(--rg-shadow); }
.rg-hero .credit-btn.btn {
    border-radius: 12px;
    font-size: 19px;
    line-height: 2.1;
    padding: 5px 0;
    letter-spacing: .01em;
    color: #111 !important;                          /* owner: "เห็นไม่ชัด ขอ font สีดำ" */
    text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
    font-family: SukhumvitBold, sans-serif;
}
.rg-hero .credit-btn.btn:hover,
.rg-hero .credit-btn.btn:focus { color: #000 !important; }
@media (min-width: 992px) { .rg-hero .credit-btn.btn { font-size: 22px; line-height: 2.2; } }
.rg-menu.twbox { border-radius: var(--rg-radius); box-shadow: var(--rg-shadow); padding: 8px; }
.rg-menu .menu-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 !important;
}
@media (min-width: 768px) { .rg-menu .menu-row { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; } }
.rg-menu .menu-row > .col,
.rg-menu .menu-row > [class*="col"] { padding: 0 !important; border: 0 !important; max-width: none; flex: none; }
.rg-menu a.menu-btn {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 72px;
    padding: 10px 4px 8px !important;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .07);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    text-decoration: none;
    font-size: 12px;
    line-height: 1.2;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.rg-menu a.menu-btn i { font-size: 22px; line-height: 1; }
.rg-menu a.menu-btn:hover { transform: translateY(-2px); border-color: var(--rg-edge-strong); box-shadow: var(--rg-shadow); }
@media (min-width: 768px) { .rg-menu a.menu-btn { min-height: 80px; font-size: 13px; } }
.rg-bar.tab { border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.rg-actions .btn.btn-labeled { border-radius: 12px; box-shadow: var(--rg-shadow); transition: transform .18s ease; }
.rg-actions .btn.btn-labeled:hover { transform: translateY(-2px); }
.rg-actions .btn.btn-labeled .btn-label { border-radius: 11px 0 0 11px; }

/* ===== 4. game list grid (casino/main, casino/pg/main, casino/paginated/main) ================================================== */
.rg-page .rg-game-wrapper { margin-top: 6px; }
.rg-page .rg-game-grid { margin: 0 -5px; }
.rg-page .rg-game-grid .rg-game-col { padding: 5px; }
@media (min-width: 992px) {
    .rg-page .rg-game-grid { margin: 0 -7px; }
    .rg-page .rg-game-grid .rg-game-col { flex: 0 0 20%; max-width: 20%; padding: 7px; }
}
@media (min-width: 1200px) { .rg-page .rg-game-grid .rg-game-col { flex: 0 0 16.6667%; max-width: 16.6667%; } }
.rg-page .rg-game-card {
    height: 100%;
    border-radius: var(--rg-radius-sm);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: var(--rg-shadow);
    transform: translateZ(0);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.rg-page .rg-game-card:hover,
.rg-page .rg-game-card:focus { transform: translateY(-3px); border-color: var(--rg-edge-strong); box-shadow: var(--rg-shadow-hover); }
.rg-page .rg-game-thumb { background: #f3f3f3; }
.rg-page .rg-game-thumb img { transition: transform .3s ease; }
.rg-page .rg-game-card:hover .rg-game-thumb img { transform: scale(1.04); }
.rg-page .rg-game-body {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 6px 7px;
    background: linear-gradient(180deg, #fffdf7, #f6efe0);
    border-top: 1px solid var(--rg-edge);
}
.rg-page .rg-game-title { font-family: SukhumvitReg, sans-serif; font-size: 11.5px; line-height: 1.3; min-height: 0; color: #5a4a1e; }
.rg-page .rg-game-card:hover .rg-game-title { color: var(--rg-gold-deep); }
@media (min-width: 576px) { .rg-page .rg-game-title { font-size: 12.5px; } }
@media (min-width: 992px) { .rg-page .rg-game-title { font-size: 13px; } .rg-page .rg-game-body { padding: 8px 8px 9px; } }
.rg-page .rg-badge-new { top: 8px; left: 8px; border-radius: 6px; letter-spacing: .08em; }
.rg-page .pagination-bottom-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 6px; }
.rg-page .pagination-bottom-container a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    border-radius: 999px !important;
    border: 1px solid var(--rg-edge);
    font-family: SukhumvitReg, sans-serif;
    font-size: 13px;
    text-decoration: none;
}

/* ===== 5. หวยชุด (views/lottoset.vue) — 3 cards side by side ≥576px, stacked on phones; legacy colours ============================ */
.rg-lottoset .btn.btn-contactbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 92px;
    padding: 14px 12px !important;
    border-radius: var(--rg-radius) !important;
    border-width: 2px !important;
    box-shadow: var(--rg-shadow);
    font-family: SukhumvitBold, sans-serif;
    font-size: 1.05rem;
    transition: transform .18s ease, box-shadow .18s ease;
}
.rg-lottoset .btn.btn-contactbox:hover { transform: translateY(-3px); box-shadow: var(--rg-shadow-hover); }
.rg-lottoset .btn.btn-contactbox img { width: 52px; height: auto; border-radius: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
/* the flag is an <h3 class="flag-icon"> (background-image) — give it a real box; keep the legacy order (name left, flag right on phones) */
.rg-lottoset .btn.btn-contactbox .flag-icon {
    display: block;
    width: 64px;
    height: 44px;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    background-size: cover;
}
.rg-lottoset .btn.btn-contactbox span { margin: 0; font-family: SukhumvitBold, sans-serif; font-size: 1.05rem; line-height: 1.25; }
@media (min-width: 576px) {
    .rg-lottoset .btn.btn-contactbox { flex-direction: column-reverse; gap: 10px; min-height: 130px; }
    .rg-lottoset .btn.btn-contactbox .flag-icon { width: 80px; height: 56px; }
}

/* ===== 6. lottery list (views/lottery.vue) — shapes only ========================================================================== */
.rg-lotto .topbox { border-radius: var(--rg-radius) var(--rg-radius) 0 0; }
.rg-lotto .topbox a.linkback {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
}
.rg-lotto .twbox { border-radius: 0 0 var(--rg-radius) var(--rg-radius); box-shadow: var(--rg-shadow); }
.rg-lotto .card { border-radius: var(--rg-radius-sm); margin-bottom: 6px !important; }
.rg-lotto .card .card-header { font-family: SukhumvitBold, sans-serif; }
.rg-lotto .boxhuay { border-radius: 12px; overflow: hidden; box-shadow: var(--rg-shadow); transition: transform .18s ease, box-shadow .18s ease; }
.rg-lotto a:hover .boxhuay { transform: translateY(-3px); box-shadow: var(--rg-shadow-hover); }
.rg-lotto .boxhuay.disabled { filter: grayscale(1) opacity(.6); }

/* ===== 7. notifications — modern shape, legacy colours (toastr keeps its green/red/blue/orange, SweetAlert2 gets the gold button) === */
#toast-container > div {
    opacity: 1 !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .35) !important;
    font-family: SukhumvitReg, sans-serif;
}
#toast-container .toast-title { font-family: SukhumvitBold, sans-serif; }
#toast-container .toast-message { font-size: 15px; line-height: 1.4; }
#toast-container .toast-progress { height: 3px; }
.swal2-popup { border-radius: 18px !important; box-shadow: 0 24px 60px rgba(0, 0, 0, .35) !important; font-family: SukhumvitReg, sans-serif; }
.swal2-title { font-family: SukhumvitBold, sans-serif; }
.swal2-styled.swal2-confirm {
    background: var(--rg-gold-grad) !important;
    background-color: #b47e11 !important;
    color: #2b1a00 !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 10px 30px !important;
    font-family: SukhumvitBold, sans-serif;
    font-size: 1.05em !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25) !important;
}
.swal2-styled.swal2-cancel,
.swal2-styled.swal2-deny { border-radius: 999px !important; padding: 10px 24px !important; font-family: SukhumvitReg, sans-serif; }
.swal2-styled:focus { box-shadow: 0 0 0 3px rgba(213, 173, 109, .45) !important; outline: 0; }

/* ===== 8. login / landing (views/login.vue) — index.css colours (black login box, gold border) + shapes =========================== */
.rg-login .toplogin { border-radius: var(--rg-radius) !important; box-shadow: var(--rg-shadow); padding: 16px 8px 8px !important; }
.rg-login .toplogin .btn-dark,
.rg-login .toplogin .golden-btn,
.rg-login .toplogin .bootstrap-select > .dropdown-toggle { border-radius: var(--rg-radius-sm); }
.rg-login .toplogin .golden-btn { color: #111 !important; text-shadow: 0 1px 0 rgba(255, 255, 255, .45); font-family: SukhumvitBold, sans-serif; font-size: 1.05rem; }
.rg-login .topbox { border-radius: var(--rg-radius); box-shadow: var(--rg-shadow); padding: 10px 6px; margin-top: 10px; }
.rg-login .boxjackpot { border-radius: 12px !important; padding: 6px 12px; }
.rg-login .topbox > .row > div > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .2);
    text-decoration: none;
    font-size: 14px;
}
.rg-login .topbox img { border-radius: 10px; display: block; }
.rg-login .owl-carousel { margin: 8px 0 14px; }
.rg-login .owl-carousel .item { padding: 0 5px; }
.rg-login .image-container { border-radius: 12px !important; overflow: hidden; box-shadow: var(--rg-shadow); transition: transform .18s ease, box-shadow .18s ease; }
.rg-login .image-container:hover { transform: translateY(-3px); box-shadow: var(--rg-shadow-hover); }
.rg-login .image-container img { border-radius: 0 !important; width: 100%; display: block; }
.rg-login .image-tab { border-radius: 0 !important; font-family: SukhumvitReg, sans-serif; text-align: center; }
