/* ============================================================
   Repage Styles - Dark Gaming Theme (matching index_index.html)
   ============================================================ */

/* ---------- Base ---------- */
@font-face {
    font-family: myFont;
    src: url('../fonts/Montserrat-Regular.ttf');
}

@font-face {
    font-family: myFont01;
    letter-spacing: 2px;
    src: url('../fonts/Geologica.ttf');
}

html,
.uk-h1,
.uk-h2,
.uk-h3,
.uk-h4,
.uk-h5,
.uk-h6,
.uk-heading-2xlarge,
.uk-heading-large,
.uk-heading-medium,
.uk-heading-small,
.uk-heading-xlarge,
.uk-button,
.uk-navbar-nav>li>a,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
li,
a,
span {
    font-family: myFont !important;
}

body {
    min-width: auto !important;
    background: #020401;
    color: #FFF;
}

/* Fix layui layer message text color (inherits body #FFF but has light background) */
.layui-layer,
.layui-layer-content,
.layui-layer-content p,
.layui-layer-content span,
.layui-layer-ico,
.layui-layer-setwin a {
    color: #333 !important;
}

/* Break page sections out of container padding for full-width backgrounds */
.pay-page,
.user-page,
.login-page,
.rpage-page {
    margin-left: -30px;
    margin-right: -30px;
}

.gm-bg-body {
    background: #020401;
    min-height: 100vh;
}

.header_padding {
    padding: 30px 0 0 0;
}

/* ============================================================
   Login / Register Pages
   ============================================================ */
.login-page {
    padding: 40px 30px 0 30px;
    background: #020401;
    min-height: 80vh;
}

.login-page__inner {
    width: 100%;
    margin: 0;
}

/* Left decorative panel */
.login-page__left {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    border-radius: 15px;
}

.login-page__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/h_bg.jpg') center;
    background-size: cover;
}

.login-page__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(62, 55, 13, 0.92), rgba(90, 77, 32, 0.88));
}

.login-page__content {
    position: relative;
    z-index: 2;
    padding: 80px 60px;
    color: #FFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 600px;
}

.login-page__content h1 {
    font-family: myFont01 !important;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 20px 0;
    color: #FFF;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

.login-page__content p {
    font-size: 16px;
    color: #E0D890;
    line-height: 1.6;
    margin: 0;
    max-width: 400px;
}

/* Right form panel */
.login-page__right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.login-form {
    background: #3e370d;
    border-radius: 30px;
    border: 2px solid #78838d;
    border-bottom-width: 5px;
    padding: 50px 45px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.login-form__logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-form__logo img {
    width: 160px;
    height: auto;
}

.login-form__title {
    font-family: myFont01 !important;
    font-size: 28px;
    font-weight: 700;
    color: #FFCC33;
    text-align: center;
    margin: 0 0 35px 0;
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(255, 204, 51, 0.4);
}

.login-form__label {
    font-size: 12px;
    font-weight: 700;
    color: #FFCC33;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px !important;
}

.login-form__input {
    width: 100%;
    height: 48px;
    padding: 0 18px;
    border: 1px solid #78838d;
    border-bottom: 3px solid #222;
    border-radius: 10px;
    font-size: 14px;
    color: #FFF !important;
    background: #5a4d20;
    transition: all 0.3s ease;
}

.uk-text-xsmall{
    font-size: 11px;
}

.login-form__input:focus {
    outline: none;
    border-color: #FFCC33;
    background: #6b5e30;
    box-shadow: 0 0 0 2px rgba(255, 204, 51, 0.2);
}

.login-form__input::placeholder {
    color: #998a40;
}

.login-form__checkbox {
    font-size: 13px;
    color: #CCC;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-form__checkbox input[type="checkbox"] {
    margin: 0;
    accent-color: #FFCC33;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.login-form__btn {
    height: 52px;
    border: 1px solid #FFCC33;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: #FFF;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(to bottom, #ffb329 0%, #d48806 50%, #995c00 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: myFont01 !important;
    box-shadow: 0 0 8px rgba(255, 204, 51, 0.6);
}

.login-form__btn:hover {
    background: linear-gradient(to top, #ffc349 0%, #e49816 50%, #a96c10 100%);
    box-shadow: 0 0 12px rgba(255, 204, 51, 0.8);
    text-decoration: none;
    color: #3e370d;
}

.login-form__btn:active {
    transform: translateY(1px);
}

.login-form__hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #78838d, transparent);
    margin: 25px 0;
}

.login-form__terms {
    font-size: 12px;
    color: #AAA;
    line-height: 1.6;
    margin: 12px 0;
}

.login-form__terms a {
    color: #FFCC33;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-form__terms a:hover {
    color: #86e038;
    text-decoration: underline;
}

.login-form__signup {
    text-align: center;
    font-size: 14px;
    color: #CCC;
    margin: 0;
}

.login-form__signup a {
    color: #FFCC33;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-form__signup a:hover {
    color: #86e038;
    text-decoration: underline;
}

/* ============================================================
   Payment Page
   ============================================================ */
.pay-page {
    padding: 0;
    background: #020401;
}

.pay-page__header {
    position: relative;
    min-height: 280px;
    overflow: hidden;
}

.pay-page__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/h_bg.jpg') center;
    background-size: cover;
}

.pay-page__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(62, 55, 13, 0.92), rgba(2, 4, 1, 0.95));
}

.pay-page__header-content {
    position: relative;
    z-index: 2;
    padding: 50px 30px;
    text-align: center;
}

.pay-page__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding: 8px 22px;
    background: rgba(62, 55, 13, 0.8);
    border-radius: 30px;
    border: 1px solid #78838d;
}

.pay-page__breadcrumb li {
    display: flex;
    align-items: center;
    color: #FFCC33;
    font-size: 14px;
    font-weight: 600;
}

.pay-page__breadcrumb li a {
    color: #FFCC33;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pay-page__breadcrumb li a:hover {
    color: #86e038;
}

.pay-page__breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 12px;
    color: #78838d;
}

.pay-page__title {
    font-family: myFont01 !important;
    font-size: 44px;
    font-weight: 700;
    color: #FFF;
    line-height: 1.2;
    margin: 0 0 12px 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.pay-page__subtitle {
    font-size: 17px;
    color: #E0D890;
    margin: 0;
}

.pay-page__body {
    position: relative;
    z-index: 3;
    background: #020401;
    padding: 60px 30px 80px 30px;
    margin-top: -30px;
}

.pay-card {
    background: #3e370d;
    border-radius: 15px;
    border: 1px solid #78838d;
    border-bottom: 5px solid #222;
    padding: 0;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.pay-card__header {
    padding: 35px 35px 25px 35px;
    position: relative;
}

.pay-card__body {
    padding: 0 35px 35px 35px;
    overflow: hidden;
}

.pay-card__title--sub {
    margin-top: 35px !important;
}

/* Neutralize UIKit uk-grid negative margins inside pay-card only */
.pay-card__body .uk-grid {
    margin-left: 0;
    margin-right: 0;
}

.pay-card__body .uk-grid > [class*='uk-width-'] {
    padding-left: 0;
    padding-right: 0;
}

.pay-card .uk-form-controls {
    box-sizing: border-box;
}

.pay-card .uk-flex {
    flex-wrap: wrap;
    gap: 10px;
}

.pay-card .uk-flex .pay-input {
    flex: 1;
    min-width: 120px;
}

.pay-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
}

.pay-grid > * {
    min-width: 0;
}

.pay-grid__item {
    width: 100%;
    min-width: 0;
}

@media (min-width: 960px) {
    .pay-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 639px) {
    .pay-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

.pay-card__badge {
    position: absolute;
    top: -14px;
    left: 30px;
    background: linear-gradient(to bottom, #ffb329 0%, #d48806 50%, #995c00 100%);
    color: #FFF;
    border: 1px solid #FFCC33;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 22px;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: myFont01 !important;
    box-shadow: 0 0 6px rgba(255, 204, 51, 0.5);
}

.pay-card__title {
    font-family: myFont01 !important;
    font-size: 22px;
    font-weight: 700;
    color: #FFCC33;
    margin: 0 0 30px 0;
    padding-top: 10px;
    letter-spacing: 1px;
}

.pay-card__hint {
    font-size: 13px;
    color: #BBB;
    line-height: 1.6;
    margin: 18px 0 0 0;
    background: #5a4d20;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px dashed #78838d;
}

.pay-input {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    border: 1px solid #78838d;
    border-bottom: 3px solid #222;
    border-radius: 10px;
    font-size: 14px;
    color: #FFF;
    background: #5a4d20;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.pay-input:focus {
    outline: none;
    border-color: #FFCC33;
    background: #6b5e30;
    box-shadow: 0 0 0 2px rgba(255, 204, 51, 0.2);
}

.pay-input::placeholder {
    color: #998a40;
}

.pay-input--large {
    font-size: 18px;
    font-weight: 700;
    height: 58px;
}

.pay-product {
    display: flex;
    flex-direction: column;
    border: 2px solid #78838d;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #5a4d20;
    box-sizing: border-box;
    height: 100%;
    justify-content: space-between;
}

.pay-product > div:first-child {
    flex: 0 1 auto;
    min-width: 0;
    width: 100%;
}

.pay-product > div:first-child > div {
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.pay-product p {
    height: 50px;
    margin: 0 auto;
}

.pay-product p img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.pay-product h5 {
    min-height: 40px;
    display: block;
    color: #FFF;
    font-size: 13px;
    margin: 0 !important;
    overflow-wrap: break-word;
    word-break: break-word;
    text-align: center;
    line-height: 1.3;
}

.pay-product .uk-text-small,
.pay-product .uk-text-xsmall {
    min-height: 20px;
    display: block;
    color: #CCC;
    font-size: 11px;
    overflow-wrap: break-word;
    word-break: break-word;
    text-align: center;
    line-height: 1.3;
}

.pay-product:hover {
    border-color: #86e038;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(134, 224, 56, 0.3);
}

.pay-product--selected {
    border-color: #FFCC33;
    background: #6b5e30;
    box-shadow: 0 0 0 2px rgba(255, 204, 51, 0.3);
}

.pay-product__price {
    text-align: center;
    padding: 10px 12px;
    background: #3e370d;
    color: #FFCC33;
    font-size: 14px;
    font-weight: 700;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #78838d;
}

.pay-payment {
    display: block;
    border: 2px solid #78838d;
    border-radius: 12px;
    padding: 18px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #5a4d20;
}

.pay-payment:hover {
    border-color: #86e038;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(134, 224, 56, 0.3);
}

.pay-payment--selected {
    border-color: #FFCC33;
    background: #6b5e30;
    box-shadow: 0 0 0 2px rgba(255, 204, 51, 0.3);
}

.pay-card__summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid #78838d;
    margin-top: 25px;
}

.pay-summary__left h5 {
    font-size: 14px;
    color: #FFCC33;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pay-summary__amount {
    font-size: 32px;
    font-weight: 700;
    color: #86e038;
    text-shadow: 0 0 8px rgba(134, 224, 56, 0.4);
}

.pay-quantity {
    display: flex;
    align-items: center;
    border: 2px solid #78838d;
    border-radius: 10px;
    overflow: hidden;
    background: #3e370d;
}

.pay-quantity__btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #5a4d20;
    font-size: 20px;
    font-weight: 700;
    color: #FFCC33;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pay-quantity__btn:hover {
    background: #86e038;
    color: #3e370d;
}

.pay-quantity__input {
    width: 60px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #FFF;
    background: #3e370d;
}

.pay-quantity__input:focus {
    outline: none;
}

.pay-page__submit {
    background: #3e370d;
    border-radius: 15px;
    border: 1px solid #78838d;
    border-bottom: 5px solid #222;
    padding: 30px 40px;
    margin-top: 40px;
}

.pay-submit__info {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.pay-submit__label {
    font-size: 15px;
    color: #CCC;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pay-submit__amount {
    font-size: 40px;
    font-weight: 700;
    color: #86e038;
    text-shadow: 0 0 10px rgba(134, 224, 56, 0.5);
}

.pay-submit__btn {
    height: 60px;
    padding: 0 70px;
    border: 1px solid #FFCC33;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: #FFF;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(to bottom, #ffb329 0%, #d48806 50%, #995c00 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: myFont01 !important;
    box-shadow: 0 0 8px rgba(255, 204, 51, 0.6);
}

.pay-submit__btn:hover {
    background: linear-gradient(to top, #ffc349 0%, #e49816 50%, #a96c10 100%);
    box-shadow: 0 0 12px rgba(255, 204, 51, 0.8);
    color: #3e370d;
}

.pay-submit__btn:active {
    transform: translateY(1px);
}

/* ============================================================
   User Pages (Orders / Order Details)
   ============================================================ */
.user-page {
    padding: 0;
    background: #020401;
}

.user-page__header {
    position: relative;
    min-height: 260px;
    overflow: hidden;
}

.user-page__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/h_bg.jpg') center;
    background-size: cover;
}

.user-page__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(62, 55, 13, 0.92), rgba(2, 4, 1, 0.95));
}

.user-page__header-content {
    position: relative;
    z-index: 2;
    padding: 50px 30px;
    text-align: center;
}

.user-page__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding: 8px 22px;
    background: rgba(62, 55, 13, 0.8);
    border-radius: 30px;
    border: 1px solid #78838d;
}

.user-page__breadcrumb li {
    display: flex;
    align-items: center;
    color: #FFCC33;
    font-size: 14px;
    font-weight: 600;
}

.user-page__breadcrumb li a {
    color: #FFCC33;
    text-decoration: none;
    transition: color 0.3s ease;
}

.user-page__breadcrumb li a:hover {
    color: #86e038;
}

.user-page__breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 12px;
    color: #78838d;
}

.user-page__title {
    font-family: myFont01 !important;
    font-size: 40px;
    font-weight: 700;
    color: #FFF;
    line-height: 1.2;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.user-page__subtitle {
    font-size: 16px;
    color: #E0D890;
    margin: 0;
}

.user-page__body {
    position: relative;
    z-index: 3;
    background: #020401;
    padding: 50px 30px 70px 30px;
    margin-top: -30px;
}

/* Sidebar */
.user-sidebar {
    background: #3e370d;
    border-radius: 15px;
    border: 1px solid #78838d;
    border-bottom: 5px solid #222;
    padding: 30px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.user-sidebar__avatar {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #78838d;
    margin-bottom: 20px;
}

.user-avatar__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #ffb329 0%, #d48806 50%, #995c00 100%);
    border: 2px solid #FFCC33;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    font-size: 30px;
    color: #FFF;
}

.user-sidebar__name {
    font-size: 16px;
    font-weight: 700;
    color: #FFCC33;
    margin: 0;
}

.user-sidebar__menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-menu__item {
    margin-bottom: 6px;
}

.user-menu__item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: #CCC;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #5a4d20;
    border: 1px solid transparent;
}

.user-menu__item a:hover {
    background: #86e038;
    color: #3e370d;
    border-color: #4ca820;
}

.user-menu__item--active a {
    background: linear-gradient(to bottom, #ffb329 0%, #d48806 50%, #995c00 100%);
    color: #FFF;
    border: 1px solid #FFCC33;
    box-shadow: 0 0 6px rgba(255, 204, 51, 0.5);
}

/* User cards */
.user-card {
    background: #3e370d;
    border-radius: 15px;
    border: 1px solid #78838d;
    border-bottom: 5px solid #222;
    padding: 35px 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.user-card__title {
    font-family: myFont01 !important;
    font-size: 22px;
    font-weight: 700;
    color: #FFCC33;
    margin: 0 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 15px;
    border-bottom: 1px solid #78838d;
}

.user-card__content {
    padding-top: 0;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th {
    text-align: left;
    padding: 14px 18px;
    background: #5a4d20;
    color: #FFCC33;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #78838d;
}

.user-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #5a4d20;
    font-size: 14px;
    color: #EEE;
}

.user-table tbody tr:hover {
    background: rgba(255, 204, 51, 0.08);
}

.user-status {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #ffb329 0%, #d48806 50%, #995c00 100%);
    color: #FFF;
    border: 1px solid #FFCC33;
}

.user-amount {
    font-weight: 700;
    color: #86e038;
}

.user-view-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    background: linear-gradient(to bottom, #ffb329 0%, #d48806 50%, #995c00 100%);
    border: 1px solid #FFCC33;
    color: #FFF;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 0 6px rgba(255, 204, 51, 0.4);
}

.user-view-link:hover {
    background: linear-gradient(to top, #ffc349 0%, #e49816 50%, #a96c10 100%);
    color: #3e370d;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 204, 51, 0.6);
}

.user-card__pagination {
    margin-top: 25px;
    text-align: center;
}

.user-card__pagination ul {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-card__pagination li {
    margin: 0;
}

.user-card__pagination a,
.user-card__pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #CCC;
    background: #5a4d20;
    border: 1px solid #78838d;
    transition: all 0.3s ease;
}

.user-card__pagination a:hover {
    background: #86e038;
    color: #3e370d;
    border-color: #4ca820;
}

.user-card__pagination li.active span {
    background: linear-gradient(to bottom, #ffb329 0%, #d48806 50%, #995c00 100%);
    border-color: #FFCC33;
    color: #FFF;
}

.user-card__pagination li.disabled span {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Order details */
.user-details {
    padding: 0;
}

.user-detail__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #5a4d20;
}

.user-detail__label {
    font-size: 14px;
    font-weight: 600;
    color: #FFCC33;
}

.user-detail__value {
    font-size: 14px;
    font-weight: 700;
    color: #FFF;
}

.user-detail__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 10px 0;
    margin-top: 10px;
    border-top: 2px solid #78838d;
}

.user-detail__total-value {
    font-size: 26px;
    font-weight: 700;
    color: #86e038;
    text-shadow: 0 0 8px rgba(134, 224, 56, 0.4);
}

/* ============================================================
   RPage Show Page (Terms, Privacy, etc.)
   ============================================================ */
.rpage-page {
    padding: 40px 30px 80px;
    background: #020401;
}

.rpage-page__header {
    margin-bottom: 25px;
}

.rpage-page__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 22px;
    background: #3e370d;
    border-radius: 30px;
    border: 1px solid #78838d;
}

.rpage-page__breadcrumb li {
    display: flex;
    align-items: center;
    color: #CCC;
    font-size: 14px;
    font-weight: 600;
}

.rpage-page__breadcrumb li a {
    color: #FFCC33;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rpage-page__breadcrumb li a:hover {
    color: #86e038;
}

.rpage-page__breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 12px;
    color: #78838d;
}

.rpage-content {
    background: #3e370d;
    border-radius: 15px;
    border: 1px solid #78838d;
    border-bottom: 5px solid #222;
    padding: 40px 45px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.rpage-content__title {
    font-family: myFont01 !important;
    font-size: 28px;
    font-weight: 700;
    color: #FFCC33;
    margin: 0 0 30px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-bottom: 1px solid #78838d;
    padding-bottom: 18px;
}

.rpage-content__body {
    color: #DDD;
    font-size: 15px;
    line-height: 1.8;
}

.rpage-content__body h1,
.rpage-content__body h2,
.rpage-content__body h3,
.rpage-content__body h4,
.rpage-content__body h5,
.rpage-content__body h6 {
    color: #FFCC33;
    margin-top: 28px;
    margin-bottom: 14px;
    font-weight: 700;
}

.rpage-content__body h1 { font-size: 24px; }
.rpage-content__body h2 { font-size: 22px; }
.rpage-content__body h3 { font-size: 20px; }
.rpage-content__body h4 { font-size: 18px; }

.rpage-content__body p {
    margin-bottom: 16px;
}

.rpage-content__body ul,
.rpage-content__body ol {
    padding-left: 25px;
    margin-bottom: 16px;
}

.rpage-content__body li {
    margin-bottom: 8px;
}

.rpage-content__body a {
    color: #FFCC33;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.rpage-content__body a:hover {
    color: #86e038;
    text-decoration: underline;
}

.rpage-content__body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.rpage-content__body blockquote {
    border-left: 4px solid #FFCC33;
    padding-left: 20px;
    margin: 22px 0;
    color: #BBB;
    font-style: italic;
    background: #5a4d20;
    padding: 14px 20px;
    border-radius: 0 10px 10px 0;
}

.rpage-content__body hr {
    border: none;
    border-top: 1px solid #78838d;
    margin: 28px 0;
}

.rpage-content__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
}

.rpage-content__body th {
    background: #5a4d20;
    padding: 12px 15px;
    text-align: left;
    font-weight: 700;
    color: #FFCC33;
    border: 1px solid #78838d;
}

.rpage-content__body td {
    padding: 12px 15px;
    border: 1px solid #78838d;
}

.rpage-content__body tbody tr:hover {
    background: rgba(255, 204, 51, 0.08);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 959px) {
    /* Adjust negative margins for tablet container padding */
    .pay-page,
    .user-page,
    .login-page,
    .rpage-page {
        margin-left: -20px;
        margin-right: -20px;
    }

    .login-page__left {
        min-height: 400px;
    }

    .login-page__content {
        padding: 50px 40px;
        min-height: 400px;
        text-align: center;
    }

    .login-page__content h1 {
        font-size: 34px;
    }

    .login-page__content p {
        font-size: 15px;
        max-width: 100%;
        margin: 0 auto;
    }

    .login-page__right {
        padding: 30px 20px;
    }

    .login-page {
        padding: 30px 20px 0 20px;
    }

    .login-form {
        padding: 35px 30px;
    }

    .rpage-page {
        padding: 30px 20px 60px;
    }

    .login-form__title {
        font-size: 24px;
        margin-bottom: 28px;
    }

    .pay-page__title {
        font-size: 34px;
    }

    .pay-page__body {
        padding: 40px 20px 60px 20px;
    }

    .pay-page__header-content {
        padding: 40px 20px;
    }

    .pay-card__header {
        padding: 28px 25px 20px 25px;
    }

    .pay-card__body {
        padding: 0 25px 28px 25px;
    }

    .pay-card__title {
        font-size: 18px;
    }

    .pay-card__badge {
        font-size: 10px;
        padding: 5px 16px;
        left: 25px;
    }

    .user-page__title {
        font-size: 30px;
    }

    .user-page__body {
        padding: 40px 20px 60px 20px;
    }

    .user-page__header-content {
        padding: 40px 20px;
    }

    .user-sidebar {
        padding: 25px;
        margin-bottom: 25px;
    }

    .user-card {
        padding: 28px 25px;
    }

    .user-card__title {
        font-size: 18px;
    }

    .user-table th,
    .user-table td {
        padding: 12px 14px;
        font-size: 12px;
    }
}

@media (max-width: 639px) {
    /* Adjust negative margins for mobile container padding */
    .pay-page,
    .user-page,
    .login-page,
    .rpage-page {
        margin-left: -15px;
        margin-right: -15px;
    }

    .login-page__content h1 {
        font-size: 26px;
    }

    .login-page {
        padding: 20px 15px 0 15px;
    }

    .login-page__content p {
        font-size: 13px;
    }

    .login-form {
        padding: 28px 20px;
    }

    .login-form__title {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .login-form__input {
        height: 42px;
        font-size: 13px;
    }

    .login-form__btn {
        height: 46px;
        font-size: 13px;
        letter-spacing: 2px;
    }

    .login-form__logo img {
        width: 110px;
    }

    .pay-page__title {
        font-size: 26px;
    }

    .pay-page__subtitle {
        font-size: 14px;
    }

    .pay-page__body {
        padding: 30px 15px 50px 15px;
    }

    .pay-page__header-content {
        padding: 30px 15px;
    }

    .pay-card__header {
        padding: 24px 20px 18px 20px;
    }

    .pay-card__body {
        padding: 0 20px 24px 20px;
    }

    .pay-page__submit {
        padding: 25px 20px;
    }

    .pay-card__summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .pay-submit__info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin-bottom: 18px;
    }

    .pay-submit__amount {
        font-size: 30px;
    }

    .pay-submit__btn {
        width: 100%;
        padding: 0;
        height: 54px;
    }

    .pay-input {
        height: 46px;
        font-size: 13px;
    }

    .pay-product {
        padding: 12px;
    }

    .pay-product__price {
        padding: 8px 10px;
        font-size: 12px;
    }

    .user-page__title {
        font-size: 24px;
    }

    .user-page__subtitle {
        font-size: 13px;
    }

    .user-page__body {
        padding: 30px 15px 50px 15px;
    }

    .user-page__header-content {
        padding: 30px 15px;
    }

    .user-detail__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .user-detail__label {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .user-detail__total-value {
        font-size: 22px;
    }

    .user-view-link {
        padding: 6px 14px;
        font-size: 11px;
    }

    .rpage-page {
        padding: 25px 15px 50px;
    }

    .rpage-content {
        padding: 22px 18px;
    }

    .rpage-content__title {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .rpage-content__body {
        font-size: 14px;
    }

    .rpage-content__body h1 { font-size: 18px; }
    .rpage-content__body h2 { font-size: 17px; }
    .rpage-content__body h3 { font-size: 16px; }
}

/* ============================================================
   Policy Page Styles (policy_show.html)
   Dark gaming theme - matching index_index.html
   ============================================================ */

.policy-page {
    padding: 20px 0 60px;
}

/* ---------- Top Bar ---------- */
.policy-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 10px;
}

.policy-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(to bottom, #ffb329 0%, #d48806 50%, #995c00 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 10px 20px;
    border: 1px solid #ffcc33;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(255, 204, 51, 0.3);
}

.policy-back-btn:hover {
    background: linear-gradient(to bottom, #ffc349 0%, #e49816 50%, #a96c10 100%);
    box-shadow: 0 0 8px rgba(255, 204, 51, 0.6);
    text-decoration: none;
    color: #3e370d;
}

.policy-back-btn i {
    font-size: 16px;
}

.policy-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255, 204, 51, 0.3));
}

/* ---------- Hero Section ---------- */
.policy-hero {
    padding: 50px 20px 40px;
    text-align: center;
}

.policy-hero__icon {
    font-size: 3.5rem;
    color: #ffcc33;
    text-shadow: 0 0 20px rgba(255, 204, 51, 0.5);
    margin-bottom: 20px;
    display: inline-block;
    animation: policyIconFloat 3s ease-in-out infinite;
}

@keyframes policyIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.policy-hero__title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #FFF;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 204, 51, 0.4);
    margin: 0 0 12px;
}

.policy-hero__subtitle {
    font-size: 1rem;
    color: #b8c0b8;
    letter-spacing: 2px;
    margin: 0 0 24px;
}

.policy-hero__divider {
    width: 200px;
    height: 3px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, #ffcc33, transparent);
    border-radius: 2px;
}

/* ---------- Tab Navigation ---------- */
.policy-tabs {
    display: flex !important;
    flex-direction: row !important;
    margin: 30px 0 0 !important;
    padding: 0 20px;
    list-style: none;
    gap: 4px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.policy-tabs > li {
    flex: 1 !important;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

.policy-tabs > li > a {
    width: 100%;
    height: 70px !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    color: #FFF;
    font-size: 0.9rem !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    background: linear-gradient(to bottom, #4d5562 0%, #6b7682 100%);
    border-top: solid 2px #78838d;
    border-left: solid 1px #3e4650;
    border-right: solid 1px #3e4650;
    border-bottom: solid 5px #222;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.policy-tabs > li > a:hover {
    color: #3e370d;
    background: linear-gradient(to bottom, #4ca820 0%, #86e038 100%);
    border-top-color: #96e860;
    border-left-color: #3a8c18;
    border-right-color: #3a8c18;
    text-decoration: none;
}

.policy-tabs > li.uk-active > a {
    color: #3e370d;
    background: linear-gradient(to bottom, #4ca820 0%, #86e038 100%);
    border-top-color: #96e860;
    border-left-color: #3a8c18;
    border-right-color: #3a8c18;
    text-decoration: none;
}

.policy-tabs > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffcc33, transparent);
    transition: transform 0.3s ease;
}

.policy-tabs > li.uk-active > a::after,
.policy-tabs > li > a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.policy-tabs > li.uk-active > a {
    text-shadow: 0 0 10px rgba(134, 224, 56, 0.6);
}

/* ---------- Content Wrapper ---------- */
.policy-content-wrap {
    border: 2px solid #5a4d20;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.6),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
    min-height: 500px;
    overflow: auto;
}

.policy-tab-panel {
    padding: 0;
}

.policy-tab-panel__inner {
    color: #e0e8e0 !important;
    font-size: 15px;
    line-height: 1.8;
    padding: 10px 20px;
    max-width: 900px;
    margin: 0 auto;
    /* 段落文字溢出保护（同 legal_show.html） */
    overflow-wrap: anywhere !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.policy-tab-panel__inner::after {
    content: "";
    display: table;
    clear: both;
}

/* 所有子元素统一换行 + 宽度限制 */
.policy-tab-panel__inner h1,
.policy-tab-panel__inner h2,
.policy-tab-panel__inner h3,
.policy-tab-panel__inner h4,
.policy-tab-panel__inner h5,
.policy-tab-panel__inner h6,
.policy-tab-panel__inner p,
.policy-tab-panel__inner li,
.policy-tab-panel__inner span,
.policy-tab-panel__inner a,
.policy-tab-panel__inner div,
.policy-tab-panel__inner td,
.policy-tab-panel__inner th,
.policy-tab-panel__inner label,
.policy-tab-panel__inner strong,
.policy-tab-panel__inner em,
.policy-tab-panel__inner blockquote,
.policy-tab-panel__inner ul,
.policy-tab-panel__inner ol {
    overflow-wrap: anywhere !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 列表宽度限制 */
.policy-tab-panel__inner ul.list-paddingleft-2,
.policy-tab-panel__inner ol.list-paddingleft-2,
.policy-tab-panel__inner ul,
.policy-tab-panel__inner ol,
.policy-tab-panel__inner li,
.policy-tab-panel__inner p,
.policy-tab-panel__inner div {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Policy content text styling - dark theme */
.policy-tab-panel__inner p {
    color: #e0e8e0 !important;
    line-height: 1.8 !important;
    margin-bottom: 16px !important;
    text-align: left !important;
    background: transparent !important;
}

.policy-tab-panel__inner strong,
.policy-tab-panel__inner b {
    color: #ffcc33 !important;
    font-weight: 700 !important;
    background: transparent !important;
}

.policy-tab-panel__inner h1,
.policy-tab-panel__inner h2,
.policy-tab-panel__inner h3,
.policy-tab-panel__inner h4 {
    color: #FFF !important;
    font-weight: 800 !important;
    margin-top: 32px !important;
    margin-bottom: 16px !important;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffcc33;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: transparent !important;
}

.policy-tab-panel__inner h1:first-child,
.policy-tab-panel__inner h2:first-child,
.policy-tab-panel__inner h3:first-child {
    margin-top: 0 !important;
}

.policy-tab-panel__inner h1 { font-size: 1.8rem; }
.policy-tab-panel__inner h2 { font-size: 1.5rem; }
.policy-tab-panel__inner h3 { font-size: 1.25rem; }
.policy-tab-panel__inner h4 { font-size: 1.1rem; }

.policy-tab-panel__inner ul,
.policy-tab-panel__inner ol {
    color: #e0e8e0 !important;
    padding-left: 24px !important;
    margin-bottom: 16px !important;
}

.policy-tab-panel__inner li {
    color: #e0e8e0 !important;
    line-height: 1.8 !important;
    margin-bottom: 8px;
    background: transparent !important;
}

.policy-tab-panel__inner a {
    color: #ffcc33 !important;
    text-decoration: underline;
    background: transparent !important;
}

.policy-tab-panel__inner a:hover {
    color: #ffd966 !important;
}

.policy-tab-panel__inner span {
    color: #e0e8e0 !important;
    background: transparent !important;
}

.policy-tab-panel__inner div {
    background: transparent !important;
}

.policy-tab-panel__inner img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
    display: block;
    border-radius: 4px;
}

.policy-tab-panel__inner iframe,
.policy-tab-panel__inner embed,
.policy-tab-panel__inner object,
.policy-tab-panel__inner video {
    max-width: 100% !important;
    height: auto !important;
}

.policy-tab-panel__inner pre,
.policy-tab-panel__inner code,
.policy-tab-panel__inner kbd,
.policy-tab-panel__inner samp {
    overflow-x: auto !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: anywhere !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.policy-tab-panel__inner input,
.policy-tab-panel__inner textarea {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.policy-tab-panel__inner table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    overflow-x: auto !important;
    display: block !important;
    -webkit-overflow-scrolling: touch;
    word-break: break-word !important;
    word-wrap: break-word !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
    margin-bottom: 16px;
    color: #e0e8e0;
}

.policy-tab-panel__inner table td,
.policy-tab-panel__inner table th {
    padding: 8px 12px;
    border: 1px solid #5a4d20;
    color: #e0e8e0;
}

.policy-tab-panel__inner table th {
    background: #2a2510;
    color: #ffcc33;
    font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 959px) {
    .policy-topbar {
        padding: 15px 10px;
    }

    .policy-logo {
        height: 40px;
    }

    .policy-hero {
        padding: 35px 15px 30px;
    }

    .policy-hero__icon {
        font-size: 2.8rem;
    }

    .policy-hero__title {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .policy-hero__subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .policy-tab-panel__inner {
        padding: 10px 15px;
        font-size: 14px;
    }

    .policy-tab-panel__inner h1 { font-size: 1.5rem; }
    .policy-tab-panel__inner h2 { font-size: 1.3rem; }
    .policy-tab-panel__inner h3 { font-size: 1.15rem; }
}

@media (max-width: 639px) {
    .policy-page {
        padding: 10px 0 40px;
    }

    .policy-topbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }

    .policy-back-btn {
        font-size: 11px;
        padding: 8px 16px;
    }

    .policy-logo {
        height: 36px;
    }

    .policy-hero {
        padding: 25px 10px 20px;
    }

    .policy-hero__icon {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }

    .policy-hero__title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .policy-hero__subtitle {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .policy-hero__divider {
        width: 140px;
    }

    .policy-tab-panel__inner {
        padding: 8px 10px;
        font-size: 13px;
    }

    .policy-tab-panel__inner h1 { font-size: 1.3rem; }
    .policy-tab-panel__inner h2 { font-size: 1.15rem; }
    .policy-tab-panel__inner h3 { font-size: 1rem; }
}