body {
    font-family: "Kanit", cursive;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    color: #000000;
    background: var(--bg-body);
}

#body-background {
    background: url('../../assets/img/NEWBG_06112025.jpg') center 0px no-repeat;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.form-padding {
    padding: 1.3rem;
}

.fa-facebook-square {
    color: #3b5998;
}

.has-centered {
    margin: auto !important;
}

.margin-top-20 {
    margin-top: 20px;
}

.margin-top-50 {
    margin-top: 50px;
}

.hero-bg {
    background: url('../../assets/img/NEWBG_06112025.jpg') center 0px no-repeat;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    background-position: 0% 45%;
}

.eventwheel-hero-bg {
    background: url('../../assets/img/NEWBG_06112025.jpg') center 0px no-repeat;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    background-position: 0% 45%;
}

.inline-block {
    display: inline-block;
}

.shop-img-category {
    padding: 2px;
    border: 1px solid #dee2e6 !important;
    background-color: #ffddc9;
    border-radius: 10px;
}

.GetCookie {
    color: #008000;
    font-size: 11px;
}

.ChooseAmount {
    color: rgb(255, 0, 0);
    font-size: 11px;
}

.InputAmt {
    border: 1px solid rgb(255, 122, 0);
    border-radius: 10px;
    width: 60px;
    text-align: center;
    color: rgb(255, 122, 0);
}

.title-faq {
    color: #4cbdfd !important;
    font-family: 'Kanit' !important;
}

.title-cancel-sms {
    color: #ff0000 !important;
    font-family: 'Kanit' !important;
}

button.default-font {
    font-family: 'Kanit' !important;
}

@font-face {
    font-family: 'ChristmasFont';
    src: URL('../fonts/christmasfont.ttf') format('truetype');
}

@font-face {
    font-family: 'HalloweenFont';
    src: URL('../fonts/HalloweenFont.ttf') format('truetype');
}

.navbar {
    font-size: 1em;
    font-weight: normal;
}

.navbar-dropdown {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border: 1px solid #fff8f8;
}

.onoffswitch {
    position: relative;
    width: 30px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.onoffswitch-checkbox {
    display: none;
}

.onoffswitch-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #EEEEEE;
    border-radius: 50px;
}

.onoffswitch-inner {
    display: block;
    width: 200%;
    margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}

.onoffswitch-inner:before,
.onoffswitch-inner:after {
    display: block;
    float: left;
    width: 50%;
    height: 5px;
    padding: 0;
    line-height: 5px;
    font-size: 14px;
    color: white;
    font-family: Trebuchet, Arial, sans-serif;
    font-weight: bold;
    box-sizing: border-box;
}

.onoffswitch-inner:before {
    content: "";
    padding-left: 10px;
    background-color: #EEEEEE;
    color: #FFFFFF;
}

.onoffswitch-inner:after {
    content: "";
    padding-right: 10px;
    background-color: #EEEEEE;
    color: #999999;
    text-align: right;
}

.onoffswitch-switch {
    display: block;
    width: 16px;
    margin: -5.5px;
    background: #4D4D4D;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 21px;
    border: 2px solid #EEEEEE;
    border-radius: 50px;
    transition: all 0.3s ease-in 0s;
}

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-switch {
    right: 0px;
    background-color: #00FF7B;
}

::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    font-family: 'Kanit';
    font-size: 15px;
    color: #8E8E8E !important;
}

::-moz-placeholder {
    /* Firefox 19+ */
    font-family: 'Kanit';
    font-size: 15px;
    color: #8E8E8E !important;
}

:-ms-input-placeholder {
    /* IE 10+ */
    font-family: 'Kanit';
    font-size: 15px;
    color: #8E8E8E !important;
}

:-moz-placeholder {
    /* Firefox 18- */
    font-family: 'Kanit';
    font-size: 15px;
    color: #8E8E8E !important;
}

.tox-tinymce-aux {
    z-index: 99999999 !important;
}

.table tr.is-ban {
    background-color: #000000 !important;
    color: #f00;
}

.has-text-red {
    color: #f00;
}

.twb {
    font-weight: bold;
}

.smf {
    font-size: 10px;
}

.table-acenter {
    vertical-align: middle !important;
    text-align: center !important;
}

td.table-acenter {
    height: 110px;
}

.table-border-radius {
    border-collapse: separate !important;
    border-spacing: 0;
}

.table-border-radius>thead>tr>th:first-child {
    border-top-left-radius: 10px;
}

.table-border-radius>thead>tr>th:last-child {
    border-top-right-radius: 10px;
}

.table-border-radius>tbody>tr:last-child>td:first-child {
    border-bottom-left-radius: 10px;
}

.table-border-radius>tbody>tr:last-child>td:last-child {
    border-bottom-right-radius: 10px;
}

.table.is-striped tbody tr:nth-child(odd) {
    background-color: rgb(232, 249, 239) !important;
}

.table.is-striped tbody tr:nth-child(even) {
    background-color: #ffffff !important;
}

.is-size-normal {
    font-size: 0.9rem !important;
}

.dropdown-item img {
    margin-right: 10px;
}

.dropdown-item {
    display: flex;
    align-items: center;
}

.dropdown-trigger .selected-flag {
    margin-right: 10px;
}

.dropdown-trigger .button-content {
    display: flex;
    align-items: center;
}

.dropdown-trigger .button-content span {
    margin-right: 5px;
}

.dropdown.is-up .dropdown-menu {
    top: auto;
    bottom: 100%;
}

.dropdown-content {
    max-height: 200px;
    overflow-y: auto;
}

.world-record {
    vertical-align: middle !important;
    text-align: center !important;
}

.blink {
    animation: blink-animation 1s steps(2, start) infinite;
    -webkit-animation: blink-animation 1s steps(2, start) infinite;
}

td.userinfo {
    vertical-align: middle !important;
}

@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

@-webkit-keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

.help.is-blue {
    color: #4663f1;
}

.profile-box {
    font-size: 13px;
    border-radius: 12px;
    border: 1px solid #dbdbdb;
}

a.sort-link {
    color: #2900ff;
}

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Primary Colors */
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;

    /* Status Colors */
    --success: #10b981;
    --success-dark: #059669;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --warning: #f59e0b;
    --warning-dark: #d97706;

    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* Background Colors */
    --bg-body: #f1f5f9;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f8fafc;

    /* Border Colors */
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    /* Shadows */
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* ==================== CONTAINER WIDTH ==================== */
.container {
    max-width: 1500px !important;
    width: 100% !important;
}

/* ==================== NAVBAR (Desktop Only) ==================== */
@media screen and (min-width: 1024px) {
    .navbar {
        min-height: 54px !important;
    }

    .navbar>.container {
        padding: 0 20px;
        display: flex;
        align-items: center;
        min-height: 54px !important;
    }

    .navbar-brand {
        min-height: 54px !important;
        align-items: center;
    }

    .navbar-brand>.navbar-item {
        padding: 0;
    }

    .navbar-brand .navbar-item img {
        max-height: 44px !important;
    }

    .navbar-menu {
        flex-grow: 1;
        align-items: center;
    }

    .navbar-start,
    .navbar-end {
        align-items: center;
    }

    .navbar-item,
    .navbar-link {
        min-height: unset !important;
        padding: 0.5rem 0.75rem;
    }
}

/* ==================== NAVBAR LOGIN BUTTON ==================== */
.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 50%, #ef4444 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
    color: white;
}

.btn-login:active {
    transform: translateY(0);
}

/* ==================== SERVER STATUS ==================== */
.server-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-hover);
    border-radius: 6px;
    font-size: inherit;
    font-weight: 500;
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ==================== USER MENU ==================== */
.user-menu-btn {
    padding: 6px 12px !important;
    padding-right: 38px !important;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.user-menu-btn:hover {
    border-color: var(--primary-light);
}

.user-menu-btn strong {
    color: var(--primary);
}

/* ==================== HERO ==================== */
.hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.6) 50%, rgba(240, 147, 251, 0.5) 100%), url('https://www.pangyath.com/assets/img/NEWBG_06112025.jpg');
    background-size: cover;
    background-position: center 34%;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="3" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="2" fill="white" opacity="0.1"/></svg>');
    background-size: 100px 100px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #94a3b8;
    margin-top: 40px;
    padding: 0;
}

.footer-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    width: 250px;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #94a3b8;
}

.footer-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 14px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.footer-link:hover {
    color: white;
    transform: translateX(4px);
}

.footer-link i {
    font-size: 12px;
    width: 16px;
}

.footer-social-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social-item i {
    width: 24px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 24px;
    text-align: center;
}

.footer-bottom-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.footer-copyright {
    color: #64748b;
}

.footer-copyright a {
    color: var(--primary);
}

.footer-copyright a:hover {
    text-decoration: underline;
}

.footer-powered {
    color: #64748b;
}

/* Footer Responsive */
@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .footer-main {
        grid-template-columns: 1fr;
        padding: 30px 16px;
        gap: 24px;
    }

    .footer-brand {
        grid-column: span 1;
        text-align: center;
        align-items: center;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h4 {
        margin-bottom: 14px;
    }

    .footer-links {
        align-items: center;
    }

    .footer-link:hover {
        transform: none;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 10px;
    }

    .social-link-item {
        padding: 10px;
    }

    .social-link-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .social-link-name {
        font-size: 13px;
    }
}

/* ==================== NEWS SECTION ==================== */
.news-section {
    padding: 40px 20px;
    background: var(--bg-body);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary);
}

/* News Article */
.news-article {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
}

.news-article-image {
    width: 300px;
    flex-shrink: 0;
}

.news-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-article-content {
    padding: 20px 20px 20px 0;
    flex: 1;
}

.news-article-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.news-tag {
    padding: 4px 10px;
    background: var(--warning);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.news-date {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-article-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.news-article-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.news-article-body ul {
    margin: 0;
    padding-left: 20px;
}

.news-article-body li {
    margin-bottom: 6px;
}

.news-article-body code {
    background: var(--bg-hover);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.text-danger {
    color: var(--danger);
    font-weight: 500;
}

/* FAQ Items */
.faq-item {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-item p {
    font-size: 13px;
    margin: 0;
    padding-left: 22px;
}

.faq-danger {
    background: rgba(239, 68, 68, 0.1);
}

.faq-danger h4 {
    color: var(--danger);
}

.faq-success {
    background: rgba(16, 185, 129, 0.1);
}

.faq-success h4 {
    color: var(--success);
}

.faq-info {
    background: rgba(59, 130, 246, 0.1);
}

.faq-info h4 {
    color: var(--primary);
}

.inline-icon {
    height: 40px;
    width: auto;
    vertical-align: middle;
    margin: 0 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .news-section {
        padding: 24px 16px;
    }

    .section-title {
        font-size: 20px;
    }

    .news-article {
        flex-direction: column;
    }

    .news-article-image {
        width: 100%;
        height: 200px;
    }

    .news-article-content {
        padding: 16px;
    }

    .news-article-title {
        font-size: 18px;
    }
}

/* ==================== HERO SMALL ==================== */
.hero-small {
    padding: 50px 20px;
}

.hero-small .hero-title {
    font-size: 32px;
}

.hero-small .hero-subtitle {
    font-size: 16px;
}

/* ==================== HERO REGISTER ==================== */
.hero-register {
    padding: 40px 20px;
}

.register-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.register-box .field-body .help {
    text-align: left;
}

.register-box .field-label {
    flex-basis: 130px;
    flex-grow: 0;
    flex-shrink: 0;
}

.hero-section+.footer {
    margin-top: 0;
}

/* ==================== CAPTCHA ==================== */
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-image-box {
    border-radius: 8px;
    border: 2px solid var(--border);
    overflow: hidden;
    display: inline-block;
}

.captcha-image-box img {
    display: block;
}

.btn-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-refresh:hover {
    background: var(--primary-dark);
    color: white;
    transform: rotate(180deg);
}

.btn-refresh i {
    font-size: 16px;
}

/* ==================== ALERTS ==================== */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

/* ถ้ามี title ให้ชิดบน */
.alert:has(.alert-title) {
    align-items: flex-start;
}

.alert-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    color: white;
}

.alert-content {
    flex: 1;
    text-align: left;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.alert-message {
    opacity: 0.85;
}

.alert-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 0;
    line-height: 1;
}

.alert-close:hover {
    opacity: 1;
}

/* Success */
.alert-success {
    background: linear-gradient(90deg, #ecfdf5 0%, #d1fae5 30%, #a7f3d0 60%, #6ee7b7 100%);
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.alert-success .alert-icon {
    background: #10b981;
}

.alert-success .alert-close {
    color: #065f46;
}

/* Error */
.alert-error {
    background: linear-gradient(90deg, #fef2f2 0%, #fee2e2 30%, #fecaca 60%, #fca5a5 100%);
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.alert-error .alert-icon {
    background: #ef4444;
}

.alert-error .alert-close {
    color: #991b1b;
}

/* Warning */
.alert-warning {
    background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 30%, #fde68a 60%, #fcd34d 100%);
    border: 1px solid #fcd34d;
    color: #92400e;
}

.alert-warning .alert-icon {
    background: #f59e0b;
}

.alert-warning .alert-close {
    color: #92400e;
}

/* Info */
.alert-info {
    background: linear-gradient(90deg, #eff6ff 0%, #dbeafe 30%, #bfdbfe 60%, #93c5fd 100%);
    border: 1px solid #93c5fd;
    color: #1e40af;
}

.alert-info .alert-icon {
    background: #3b82f6;
}

.alert-info .alert-close {
    color: #1e40af;
}

/* ==================== DOWNLOAD PAGE ==================== */
.download-hero {
    padding: 50px 20px;
    text-align: center;
}

.download-hero h1 {
    font-size: 2.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.download-hero p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.download-container {
    padding: 0 20px 50px;
    margin-top: -20px;
}

/* Download Cards Grid */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

/* Download Card */
.dl-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dl-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.dl-card.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.25);
}

.dl-card.featured:hover {
    transform: scale(1.03) translateY(-6px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.35);
}

.dl-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.dl-card-badge.recommend {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 12px;
    padding: 6px 14px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.dl-card-badge.latest {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.dl-card-header {
    padding: 24px 24px 16px;
    flex: 1;
}

.dl-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 16px;
}

.dl-card-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.dl-card-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.dl-card-icon.yellow {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.dl-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.dl-card-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.dl-card-meta {
    display: flex;
    gap: 16px;
    padding: 0 24px;
    margin-bottom: 16px;
}

.dl-card-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.dl-card-meta-item i {
    font-size: 12px;
    color: #94a3b8;
}

.dl-card-footer {
    padding: 16px 24px 24px;
    margin-top: auto;
}

.dl-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    color: white;
}

.dl-card-btn.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.dl-card-btn.blue:hover {
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.dl-card-btn.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.dl-card-btn.green:hover {
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.dl-card-btn.yellow {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.dl-card-btn.yellow:hover {
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

/* Alternative Downloads */
.alt-downloads {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.alt-downloads-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alt-downloads-title i {
    color: #64748b;
}

.alt-downloads-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alt-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.alt-item:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.alt-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 14px;
    background: #e2e8f0;
    color: #64748b;
}

.alt-item-info {
    flex: 1;
}

.alt-item-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 2px;
}

.alt-item-info span {
    font-size: 12px;
    color: #94a3b8;
}

.alt-item-btn {
    padding: 8px 16px;
    background: #1e293b;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.alt-item-btn:hover {
    background: #0f172a;
    color: white;
}

/* Info Box */
.download-info {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.download-info-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-info-title i {
    color: #f59e0b;
}

.download-info ul {
    margin: 0;
    padding-left: 20px;
    color: #475569;
}

.download-info li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.download-info a {
    color: #3b82f6;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .download-hero h1 {
        font-size: 1.6rem;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .dl-card.featured {
        transform: scale(1);
    }

    .dl-card.featured:hover {
        transform: translateY(-6px);
    }
}

/* ==================== SERVER INFO - MODERN CARD STYLE ==================== */

.sv-modern {
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
.sv-modern-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
}

.sv-modern-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sv-modern-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.sv-modern-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.sv-modern-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

.sv-modern-badge {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #047857;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #a7f3d0;
}

/* Rate Cards */
.sv-modern-rates {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-bottom: 1px solid #e2e8f0;
}

.sv-rate-card {
    padding: 28px 24px;
    text-align: center;
    position: relative;
    border-right: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.sv-rate-card:last-child {
    border-right: none;
}

.sv-rate-card:hover {
    background: #f8fafc;
}

.sv-rate-card.blue .sv-rate-value {
    color: #4f46e5;
}

.sv-rate-card.green .sv-rate-value {
    color: #059669;
}

.sv-rate-card.purple .sv-rate-value {
    color: #7c3aed;
}

.sv-rate-card.orange .sv-rate-value {
    color: #d97706;
}

.sv-rate-card.blue .sv-rate-icon {
    color: #818cf8;
}

.sv-rate-card.green .sv-rate-icon {
    color: #34d399;
}

.sv-rate-card.purple .sv-rate-icon {
    color: #a78bfa;
}

.sv-rate-card.orange .sv-rate-icon {
    color: #fbbf24;
}

.sv-rate-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.sv-rate-label {
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
    font-weight: 500;
}

.sv-rate-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 18px;
    opacity: 0.6;
}

/* Content Grid */
.sv-modern-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 32px;
}

/* Info Cards */
.sv-info-card {
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.sv-info-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.sv-info-card-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 15px;
    color: white;
}

.sv-info-card-header i {
    font-size: 16px;
}

.sv-info-card-header.blue {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
}

.sv-info-card-header.green {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.sv-info-card-header.purple {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
}

.sv-info-card-header.orange {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.sv-info-card-body {
    padding: 16px 20px;
    background: white;
}

.sv-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.sv-info-row:last-child {
    border-bottom: none;
}

.sv-info-label {
    color: #475569;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sv-info-label i {
    width: 20px;
    color: #94a3b8;
    text-align: center;
}

.sv-info-value {
    font-weight: 600;
    color: #1e293b;
}

.sv-info-value.highlight {
    color: #1d4ed8;
}

.sv-info-value small {
    font-weight: 400;
    color: #94a3b8;
}

/* Tip Box */
.sv-info-card-tip {
    padding: 14px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    font-size: 13px;
    color: #92400e;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-top: 1px solid #fcd34d;
}

.sv-info-card-tip i {
    color: #f59e0b;
    margin-top: 2px;
}

/* Mode Section */
.sv-mode-section {
    margin-bottom: 16px;
}

.sv-mode-section:last-child {
    margin-bottom: 0;
}

.sv-mode-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sv-mode-title.available {
    color: #047857;
}

.sv-mode-title.coming {
    color: #b45309;
}

.sv-mode-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sv-mode-tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.sv-mode-tag.green {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border: 1px solid #86efac;
}

.sv-mode-tag.orange {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* EXP Box */
.sv-exp-box {
    background: #f1f5f9;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.sv-exp-box:last-child {
    margin-bottom: 0;
}

.sv-exp-mode {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sv-exp-mode i {
    color: #3b82f6;
}

.sv-exp-formula {
    font-size: 13px;
    color: #64748b;
}

.sv-exp-formula.code {
    font-family: 'Consolas', monospace;
    background: white;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    color: #475569;
}

/* Warning Box */
.sv-modern-warning {
    margin: 0 32px 32px;
    padding: 20px 24px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.sv-warning-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.sv-warning-content {
    flex: 1;
}

.sv-warning-content strong {
    font-size: 15px;
    color: #b91c1c;
    display: block;
    margin-bottom: 2px;
}

.sv-warning-content p {
    font-size: 14px;
    color: #dc2626;
    margin: 0;
    line-height: 1.5;
}

.sv-warning-content .highlight {
    color: #b91c1c;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
    .sv-modern-rates {
        grid-template-columns: repeat(2, 1fr);
    }

    .sv-rate-card:nth-child(2) {
        border-right: none;
    }

    .sv-rate-card:nth-child(1),
    .sv-rate-card:nth-child(2) {
        border-bottom: 1px solid #e2e8f0;
    }
}

@media (max-width: 768px) {
    .sv-modern-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .sv-modern-header-content {
        flex-direction: column;
    }

    .sv-modern-rates {
        grid-template-columns: repeat(2, 1fr);
    }

    .sv-modern-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .sv-modern-warning {
        margin: 0 20px 20px;
    }

    .sv-rate-value {
        font-size: 28px;
    }
}

/* ==================== BONGDARI PAGE ==================== */
.bongdari-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* Header */
.bongdari-header {
    background: white;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 24px;
}

.bongdari-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e1e1e 0%, #333 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bongdari-icon img {
    width: 56px;
    height: 56px;
}

.bongdari-info {
    flex: 1;
}

.bongdari-title {
    font-size: 28px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.bongdari-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

.bongdari-stats {
    display: flex;
    gap: 20px;
}

.bongdari-stat {
    text-align: center;
    padding: 14px 24px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.bongdari-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #6366f1;
}

.bongdari-stat-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

/* Search & Filter */
.bongdari-controls {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.filter-btn.active {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

/* Results Info */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.results-count {
    font-size: 14px;
    color: #64748b;
}

.results-count strong {
    color: #1e293b;
}

/* Items Grid */
.bongdari-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

/* Item Card */
.item-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #6366f1;
}

.item-card-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.item-image {
    width: 52px;
    height: 52px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bongdari-item-info {
    flex: 1;
    min-width: 0;
}

.bongdari-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.item-chance {
    display: inline-block;
    padding: 3px 8px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 4px;
}

.item-card-body {
    padding: 14px 16px;
}

.item-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 8px;
    margin-bottom: 10px;
}

.item-stat i {
    color: #3b82f6;
    font-size: 14px;
}

.item-stat-text {
    font-size: 13px;
    font-weight: 600;
    color: #1e40af;
}

.item-stat.no-stat {
    background: #f1f5f9;
}

.item-stat.no-stat i {
    color: #94a3b8;
}

.item-stat.no-stat .item-stat-text {
    color: #64748b;
    font-weight: 400;
}

.item-characters {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

.item-characters strong {
    color: #475569;
}

/* Category badges */
.category-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

.category-badge.face {
    background: #fce7f3;
    color: #be185d;
}

.category-badge.head {
    background: #dbeafe;
    color: #1e40af;
}

.category-badge.tail {
    background: #d1fae5;
    color: #047857;
}

.category-badge.hair {
    background: #fef3c7;
    color: #92400e;
}

/* No results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.no-results i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 18px;
    color: #475569;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 900px) {
    .bongdari-header {
        flex-direction: column;
        text-align: center;
    }

    .bongdari-stats {
        margin-top: 16px;
    }
}

@media (max-width: 768px) {
    .bongdari-controls {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .filter-group {
        width: 100%;
        justify-content: center;
    }

    .bongdari-grid {
        grid-template-columns: 1fr;
    }

    .bongdari-stats {
        flex-direction: column;
        gap: 12px;
    }
}

/* ==================== SIDEBAR CONTAINER ==================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==================== TOP UP CARD ==================== */
.topup-card {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.2s;
}

.topup-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.topup-card a i {
    font-size: 18px;
}

.baht-icon {
    display: inline-block;
    font-weight: 700;
    color: #fbbf24;
    font-size: 20px;
    margin-right: 6px;
    animation: bounce-icon 1s ease-in-out infinite;
}

@keyframes bounce-icon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.topup-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* ==================== INFO CARD (Logged In Panel) ==================== */
.info-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: visible;
    /* IMPORTANT: Allow tooltip to escape */
}

/* Section Header inside Info Card */
.info-section-header {
    padding: 8px 16px;
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-section-header i {
    font-size: 11px;
}

/* User Header - Top of Info Card */
.user-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #1e293b;
    border-bottom: 3px solid #3b82f6;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 16px;
    font-weight: 700;
}

.user-date {
    font-size: 11px;
    color: #64748b;
}

/* Online/Offline Status Badge */
.user-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.user-status i {
    font-size: 7px;
}

.user-status.online {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.user-status.online i {
    color: #22c55e;
}

.user-status.offline {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.user-status.offline i {
    color: #ef4444;
}

/* ==================== INFO ROWS ==================== */
.info-rows {
    padding: 0;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row:hover {
    background: var(--bg-hover);
    position: relative;
    z-index: 10;
    /* Bring hovered row above others so tooltip is visible */
}

/* Use .row-highlight instead of .highlight to avoid Bulma conflict */
.info-row.row-highlight {
    background: #fffbeb;
}

.info-row.row-highlight:hover {
    background: #fef3c7;
}

/* Info Label (Left side) */
.info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-label img {
    height: auto;
    vertical-align: middle;
}

.info-label img.img-icon {
    width: 18px;
    height: 18px;
}

.info-label i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

/* Info Icon (Tooltip trigger) - IMPORTANT: position relative for tooltip */
.info-icon {
    color: var(--primary);
    font-size: 12px;
    cursor: help;
    position: relative;
}

/* Info Value (Right side) */
.info-value {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-value.point {
    color: #2563eb;
}

.info-value.pang {
    color: #d97706;
}

.info-value.cookie {
    color: #db2777;
}

.info-value.coin {
    color: #7c3aed;
}

.info-value.success {
    color: var(--success);
}

.info-value.danger {
    color: var(--danger);
}

.info-value img {
    width: 18px;
    height: 18px;
}

/* VIP Badge */
.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--bg-hover);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

.info-value .vip-badge img,
.vip-badge img {
    width: auto;
    height: auto;
}

/* ==================== TOGGLE SWITCH ==================== */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    min-width: 44px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.toggle-switch.active {
    background: var(--success);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: left 0.2s;
}

.toggle-switch.active::after {
    left: 22px;
}

/* ==================== ACTION LINKS ==================== */
.info-action {
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}

.info-action:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.info-action i {
    font-size: 10px;
}

/* ==================== QUICK LINKS ==================== */
.quick-links {
    display: flex;
    border-top: 1px solid var(--border);
}

.quick-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    border-right: 1px solid var(--border);
    transition: all 0.15s;
}

.quick-link:last-child {
    border-right: none;
}

.quick-link:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.quick-link i {
    font-size: 12px;
}

/* ==================== LOGOUT SECTION ==================== */
.logout-section {
    padding: 12px;
    border-top: 1px solid var(--border);
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--danger);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

/* ==================== SOCIAL SECTION ==================== */
.social-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.social-section-header {
    padding: 12px 16px;
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-section-header i {
    color: var(--primary);
}

.social-links-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-hover);
    border-radius: 8px;
    transition: all 0.2s;
}

.social-link-item:hover {
    transform: translateX(4px);
}

.social-link-item.facebook {
    background: linear-gradient(135deg, #e8f0fe 0%, #d4e4fc 100%);
}

.social-link-item.facebook:hover {
    background: linear-gradient(135deg, #d4e4fc 0%, #c0d8fa 100%);
}

.social-link-item.discord {
    background: linear-gradient(135deg, #e8e6fc 0%, #dcd8fa 100%);
}

.social-link-item.discord:hover {
    background: linear-gradient(135deg, #dcd8fa 0%, #d0cbf8 100%);
}

.social-link-item.facebook-group {
    background: linear-gradient(135deg, #e8f4e8 0%, #d4ecd4 100%);
}

.social-link-item.facebook-group:hover {
    background: linear-gradient(135deg, #d4ecd4 0%, #c0e4c0 100%);
}

.social-link-icon.facebook-group {
    background: #42b72a;
    color: white;
}

.social-link-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.social-link-icon.facebook {
    background: #1877f2;
    color: white;
}

.social-link-icon.discord {
    background: #5865f2;
    color: white;
}

.social-link-info {
    flex: 1;
    min-width: 0;
}

.social-link-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.social-link-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.social-link-arrow {
    color: var(--text-muted);
    font-size: 12px;
}

/* ==================== LOGIN CARD (Not Logged In) ==================== */
.login-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-body {
    padding: 20px;
}

/* ==================== FORM ELEMENTS ==================== */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-label i {
    width: 16px;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    color: var(--text-primary);
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Login Divider */
.login-divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.login-divider span {
    padding: 0 12px;
}

/* ==================== BUTTONS (Sidebar only) ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-lg {
    padding: 14px 24px;
    font-size: 16px;
    border-radius: 10px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* Disabled State */
.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading State */
.btn-loading {
    pointer-events: none;
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== TOOLTIP ==================== */
/*
 * Simple CSS-based tooltip (like original)
 * - JS appends <span class="tooltip"> inside .info-icon
 * - CSS shows on hover
 * - Parent needs overflow:visible to allow tooltip to escape
 */
.tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white !important;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Kanit';
    font-weight: 400;
    line-height: 1.6;
    white-space: normal;
    width: 240px;
    max-width: 280px;
    text-align: left;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

/* Reset any inherited styles inside tooltip */
.tooltip * {
    color: white !important;
    font-style: normal !important;
    text-decoration: none !important;
}

/* Arrow pointing down */
.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e293b;
}

/* Show tooltip on hover */
.info-icon:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 600px) {
    .topup-card {
        padding: 14px;
    }

    .topup-card a {
        font-size: 15px;
    }

    .user-name {
        font-size: 14px;
    }

    .user-date {
        font-size: 10px;
    }

    .user-status {
        font-size: 10px;
        padding: 3px 8px;
    }

    .quick-links {
        flex-wrap: wrap;
    }

    .quick-link {
        flex: 1 1 50%;
        padding: 8px;
        font-size: 11px;
        border-bottom: 1px solid var(--border);
    }

    .quick-link:nth-child(2) {
        border-right: none;
    }

    .quick-link:nth-child(3),
    .quick-link:nth-child(4) {
        border-bottom: none;
    }

    .social-link-item {
        padding: 10px;
    }

    .social-link-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .social-link-name {
        font-size: 13px;
    }

    /* Tooltip smaller on mobile */
    .tooltip {
        width: 220px;
        max-width: 240px;
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* ==================== REDEEM PAGE STYLES ==================== */
.redeem-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.redeem-body {
    padding: 24px;
}

.redeem-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #3b82f6;
}

.redeem-info-icon {
    width: 32px;
    height: 32px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.redeem-info-text {
    font-size: 13px;
    color: #1e40af;
    line-height: 1.5;
}

.redeem-input-group {
    margin-bottom: 20px;
}

.redeem-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.redeem-input-wrapper {
    position: relative;
}

.redeem-input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    font-size: 16px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #1e293b;
    text-align: center;
    transition: all 0.3s;
}

.redeem-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.redeem-input::placeholder {
    color: #94a3b8;
    letter-spacing: 1px;
    text-transform: none;
    font-family: inherit;
    font-weight: 400;
}

.redeem-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    transition: color 0.3s;
}

.redeem-input:focus~.redeem-input-icon {
    color: #3b82f6;
}

.redeem-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
}

.redeem-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.redeem-btn:active {
    transform: translateY(0);
}

.redeem-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.redeem-btn.loading .btn-text,
.redeem-btn.loading i {
    visibility: hidden;
}

.redeem-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.redeem-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #f1f5f9;
}

.redeem-footer-title {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.redeem-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.redeem-source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 12px;
    color: #475569;
    transition: all 0.2s;
}

.redeem-source:hover {
    background: #e2e8f0;
}

.redeem-source i {
    font-size: 14px;
}

.redeem-source.facebook i {
    color: #1877f2;
}

.redeem-source.discord i {
    color: #5865f2;
}

.redeem-source.event i {
    color: #f59e0b;
}

.redeem-source.gift i {
    color: #ef4444;
}

/* Result States */
.redeem-result {
    display: none;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    align-items: center;
}

.redeem-result.success {
    display: flex;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
}

.redeem-result.error {
    display: flex;
    background: #fef2f2;
    border: 1px solid #fca5a5;
}

.redeem-result-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
}

.redeem-result.success .redeem-result-icon {
    background: #10b981;
    color: white;
}

.redeem-result.error .redeem-result-icon {
    background: #ef4444;
    color: white;
}

.redeem-result-content {
    flex: 1;
}

.redeem-result-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.redeem-result.success .redeem-result-title {
    color: #065f46;
}

.redeem-result.error .redeem-result-title {
    color: #991b1b;
}

.redeem-result-message {
    font-size: 13px;
}

.redeem-result.success .redeem-result-message {
    color: #047857;
}

.redeem-result.error .redeem-result-message {
    color: #dc2626;
}

/* ==================== PASSWORD PAGE STYLES ==================== */
.password-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.password-body {
    padding: 24px;
}

.password-title {
    text-align: center;
    margin-bottom: 24px;
}

.password-title-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.password-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.password-title p {
    font-size: 13px;
    color: #64748b;
}

.password-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #f59e0b;
}

.password-info-icon {
    width: 32px;
    height: 32px;
    background: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.password-info-text {
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}

.password-form-group {
    margin-bottom: 18px;
}

.password-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.password-label i {
    color: #64748b;
    font-size: 14px;
}

.password-input-wrapper {
    position: relative;
}

.password-input {
    width: 100%;
    padding: 12px 44px 12px 14px;
    font-size: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #1e293b;
    transition: all 0.3s;
}

.password-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-input:read-only {
    background: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
}

.password-input::placeholder {
    color: #94a3b8;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #3b82f6;
}

.password-hint {
    font-size: 11px;
    color: #64748b;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.password-hint i {
    font-size: 10px;
}

.password-error {
    font-size: 12px;
    color: #dc2626;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.password-error i {
    font-size: 10px;
}

.password-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    margin-top: 24px;
}

.password-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.password-btn:active {
    transform: translateY(0);
}

/* Result Messages */
.password-result {
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.password-result.success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
}

.password-result.error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
}

.password-result-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.password-result.success .password-result-icon {
    background: #10b981;
    color: white;
}

.password-result.error .password-result-icon {
    background: #ef4444;
    color: white;
}

.password-result-text {
    font-size: 14px;
    font-weight: 500;
}

.password-result.success .password-result-text {
    color: #065f46;
}

.password-result.error .password-result-text {
    color: #991b1b;
}

/* Not Logged In State */
.password-login-required {
    text-align: center;
    padding: 40px 20px;
}

.password-login-required-icon {
    font-size: 48px;
    color: #f59e0b;
    margin-bottom: 16px;
}

.password-login-required h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.password-login-required p {
    font-size: 14px;
    color: #64748b;
}

/* ==================== SHOP PAGE STYLES ==================== */

/* ==================== ALERTS ==================== */
.alerts-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.shop-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
}

.shop-alert-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    color: white;
}

.shop-alert-content {
    flex: 1;
}

.shop-alert-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.shop-alert-message {
    opacity: 0.9;
    line-height: 1.5;
}

.shop-alert-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 0;
    line-height: 1;
}

.shop-alert-close:hover {
    opacity: 1;
}

/* Info Alert */
.shop-alert-info {
    background: linear-gradient(to right, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.shop-alert-info .shop-alert-icon {
    background: #3b82f6;
}

/* Success Alert */
.shop-alert-success {
    background: linear-gradient(to right, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.shop-alert-success .shop-alert-icon {
    background: #10b981;
}

/* Warning Alert */
.shop-alert-warning {
    background: linear-gradient(to right, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.shop-alert-warning .shop-alert-icon {
    background: #f59e0b;
}

/* Error Alert */
.shop-alert-error {
    background: linear-gradient(to right, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.shop-alert-error .shop-alert-icon {
    background: #ef4444;
}

/* ==================== CATEGORY TABS ==================== */
.category-section {
    padding: 16px 20px;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    border-radius: 12px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.cat-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

.cat-tab:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.cat-tab.active {
    border-color: var(--primary);
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.cat-tab img {
    width: 34px;
    height: 34px;
    border-radius: 6px;
}

/* ==================== SHOP CARD ==================== */
.shop-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
}

.shop-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to right, #ffffff, #f8fafc);
}

.shop-title {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

/* ==================== TABLE ==================== */
.table-wrapper {
    overflow-x: auto;
}

.shop-table {
    width: 100%;
    border-collapse: collapse;
}

.shop-table th {
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.shop-table th.center {
    text-align: center;
}

.shop-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: all 0.15s;
}

.shop-table tbody tr:nth-child(odd) {
    background: #f1f5f9;
}

.shop-table tbody tr:nth-child(even) {
    background: #ffffff;
}

.shop-table tbody tr:hover {
    background: linear-gradient(to right, #fef9c3, #fef08a);
}

.shop-table td {
    padding: 14px;
    vertical-align: top;
    border-right: 1px solid #f1f5f9;
}

.shop-table td:last-child {
    border-right: none;
}

.shop-table td.v-middle {
    vertical-align: middle;
}

.shop-table td.center {
    text-align: center;
}

/* ==================== ITEM CELL ==================== */
.item-cell {
    display: flex;
    gap: 12px;
    min-width: 200px;
}

.item-img-wrap {
    position: relative;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.item-img {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.item-img:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.item-img img {
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
}

.char-icon {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: white;
    object-fit: contain;
}

/* Big Image Tooltip */
.big-image-tooltip {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    padding: 8px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    max-width: 300px;
}

.big-image-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.big-image-tooltip img {
    display: block;
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
}

/* Item Info */
.item-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ==================== BADGES ==================== */
.item-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    padding: 2px 6px;
    color: white;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-special {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    animation: glow-special 2s ease-in-out infinite;
}

@keyframes glow-special {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(245, 158, 11, 0.5);
    }

    50% {
        box-shadow: 0 0 15px rgba(245, 158, 11, 0.8);
    }
}

.badge-hot {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    animation: glow-hot 1.5s ease-in-out infinite;
}

@keyframes glow-hot {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
    }

    50% {
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
    }
}

.badge-new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    animation: glow-new 2s ease-in-out infinite;
}

@keyframes glow-new {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
    }

    50% {
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.8);
    }
}

/* ==================== DESCRIPTION CELL ==================== */
.desc-cell {
    min-width: 280px;
    max-width: 360px;
}

.desc-cell.center .desc-text {
    text-align: center;
}

.desc-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.desc-text .highlight {
    color: var(--danger);
    font-weight: 500;
}

.desc-text .bonus {
    color: #059669;
    font-weight: 500;
}

/* ==================== PRICE CELL ==================== */
.price-cell {
    text-align: center;
    white-space: nowrap;
}

.price-amount {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    color: #1e293b;
    /* สีดำ */
}

.price-original {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Price Type - เน้นสีตามประเภท */
.price-type {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.price-type.point {
    color: #3b82f6;
}

.price-type.pang {
    color: #d97706;
}

.price-type.cookie {
    color: #ec4899;
}

.price-type.hole {
    color: #10b981;
}

.price-type.minute {
    color: #8b5cf6;
}

.price-type.day {
    color: #D55136;
}

.price-type.hole-today {
    color: #00BD76;
    font-size: 11px;
}

/* ==================== META TEXT ==================== */
.meta-text {
    font-size: 14px;
    font-weight: 500;
}

.meta-text.date {
    color: var(--text-secondary);
}

.meta-text.unlimited {
    color: var(--success);
    font-size: 20px;
}

.meta-text.limited {
    color: var(--danger);
    font-weight: 600;
}

/* ==================== TICKET ==================== */
.ticket-icon {
    font-size: 18px;
}

.ticket-icon.available {
    color: var(--success);
}

.ticket-icon.unavailable {
    color: var(--text-muted);
}

/* ==================== BUTTONS ==================== */
.btn-group {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.shop-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.shop-btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.shop-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.shop-btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.shop-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ==================== PAGINATION ==================== */
.shop-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px;
    background: linear-gradient(to top, #f8fafc, #ffffff);
    border-top: 1px solid var(--border);
    position: relative;
}

.page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #eff6ff;
}

.page-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    border-color: transparent;
    color: white;
}

.page-btn:disabled,
.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: #f1f5f9;
    color: #94a3b8;
}

.page-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ==================== HISTORY BUTTON ==================== */
.history-btn-wrap {
    text-align: center;
    padding: 16px;
}

.history-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.3);
}

.history-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.4);
}

/* History Button Inline (ใน Pagination - Light Theme) */
.history-btn-inline {
    position: absolute;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.history-btn-inline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #eff6ff;
}

.history-btn-inline i {
    color: var(--text-muted);
}

.history-btn-inline:hover i {
    color: var(--primary);
}

/* Badge Row - แสดง Badge บนชื่อไอเท็ม */
.item-badge-row {
    margin-bottom: 4px;
}

.item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==================== COOKIE SELECT ==================== */
.cookie-select-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.cookie-select-label {
    font-size: 12px;
    color: var(--text-muted);
}

.cookie-select-input {
    width: 80px;
    padding: 6px 10px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    font-family: inherit;
    transition: all 0.2s;
}

.cookie-select-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cookie-result {
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .shop-table {
        font-size: 13px;
    }

    .shop-table th,
    .shop-table td {
        padding: 10px;
    }

    .item-cell {
        min-width: 160px;
    }

    .desc-cell {
        min-width: 200px;
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .category-section {
        padding: 12px;
    }

    .cat-tab {
        width: 40px;
        height: 40px;
    }

    .cat-tab img {
        width: 28px;
        height: 28px;
    }

    /* Pagination Mobile */
    .shop-pagination {
        padding: 12px;
        gap: 4px;
        flex-wrap: wrap;
    }

    .page-btn {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }

    /* History Button Mobile - อยู่ข้างล่าง */
    .history-btn-inline {
        position: static;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        order: 99;
    }

    /* ==================== TABLE MOBILE - CARD STYLE ==================== */
    .shop-table {
        display: block;
    }

    .shop-table thead {
        display: none;
    }

    .shop-table tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .shop-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        background: white !important;
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 14px;
        gap: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .shop-table tbody tr:hover {
        background: white !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .shop-table td {
        padding: 0;
        border: none !important;
    }

    /* Item Cell - ซ้ายบน */
    .shop-table td:first-child {
        flex: 1;
        min-width: 0;
        order: 1;
    }

    .item-cell {
        min-width: 0;
    }

    .item-img-wrap {
        width: 50px;
        height: 50px;
    }

    .item-img {
        width: 50px;
        height: 50px;
    }

    .item-img img {
        max-width: 42px;
        max-height: 42px;
    }

    .char-icon {
        width: 20px;
        height: 20px;
    }

    .item-name {
        font-size: 14px;
    }

    .item-badge {
        font-size: 8px;
        padding: 2px 5px;
    }

    /* Price Cell - ขวาบน */
    .price-cell {
        order: 2;
        text-align: right !important;
    }

    .price-amount {
        font-size: 16px !important;
    }

    .price-type {
        font-size: 11px;
    }

    /* Description Cell - เต็มความกว้าง */
    .shop-table td.desc-cell {
        display: block !important;
        width: 100%;
        order: 3;
        padding-top: 12px;
        border-top: 1px solid #f1f5f9 !important;
        margin-top: 4px;
    }

    .desc-cell {
        min-width: 100%;
        max-width: 100%;
    }

    .desc-text {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Hide meta columns on mobile (จำนวน, ขายถึง, จำกัด) */
    .shop-table td:nth-child(3),
    .shop-table td:nth-child(5),
    .shop-table td:nth-child(6) {
        display: none !important;
    }

    /* แต่แสดง Cookie Select */
    .shop-table td:nth-child(3):has(.cookie-select-wrap) {
        display: block !important;
        width: 100%;
        order: 3;
        padding-top: 10px;
        border-top: 1px solid #f1f5f9;
    }

    .shop-table td:nth-child(3) .cookie-select-wrap {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 12px;
    }

    .shop-table td:nth-child(3) .cookie-select-input {
        width: 70px;
    }

    /* Free Ticket Button - ซ่อนถ้าไม่มี */
    .shop-table td:nth-child(7) {
        order: 4;
        width: 100%;
        padding-top: 8px;
    }

    .shop-table td:nth-child(7) .ticket-icon.unavailable {
        display: none;
    }

    /* Buy Button - เต็มความกว้าง */
    .shop-table td:last-child {
        width: 100%;
        order: 5;
        padding-top: 10px;
    }

    .shop-table td:last-child .shop-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    /* Free Ticket Button - เต็มความกว้าง */
    .shop-table td:nth-child(7) .shop-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 14px;
    }

    /* Alerts Mobile */
    .shop-alert {
        padding: 10px 12px;
        font-size: 13px;
    }

    .shop-alert-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .shop-alert-title {
        font-size: 13px;
    }

    .shop-alert-message {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .shop-table tbody {
        padding: 8px;
        gap: 8px;
    }

    .shop-table tbody tr {
        padding: 12px;
        border-radius: 10px;
    }

    .item-img-wrap,
    .item-img {
        width: 44px;
        height: 44px;
    }

    .item-img img {
        max-width: 36px;
        max-height: 36px;
    }

    .item-name {
        font-size: 14px;
    }

    .price-amount {
        font-size: 15px !important;
    }

    .desc-text {
        font-size: 14px;
    }

    .shop-btn {
        font-size: 12px;
        padding: 10px !important;
    }

    .cat-tab {
        width: 36px;
        height: 36px;
    }

    .cat-tab img {
        width: 24px;
        height: 24px;
    }
}

/* ============================================================
 * Shop Purchase Alerts - Success & Error Only
 * - Full width design
 * - Icon left, text centered
 * - Eye-catching with animations
 * ============================================================ */

/* ==================== Base Alert ==================== */
.purchase-alert {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px 24px;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    animation: purchaseAlertIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

/* Slide + Bounce Animation */
@keyframes purchaseAlertIn {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Shimmer Effect */
.purchase-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: purchaseShimmer 2s ease-in-out infinite;
}

@keyframes purchaseShimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ==================== Alert Icon ==================== */
.purchase-alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 26px;
    flex-shrink: 0;
    animation: purchaseIconPulse 1.5s ease-in-out infinite;
}

@keyframes purchaseIconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ==================== Alert Message ==================== */
.purchase-alert-message {
    flex: 1;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    z-index: 1;
    padding-right: 52px;
    /* Balance with icon width */
}

/* ==================== SUCCESS ==================== */
.purchase-alert-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: 2px solid #4ade80;
    color: #ffffff;
}

.purchase-alert-success .purchase-alert-icon {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
    color: #ffffff;
}

/* ==================== ERROR ==================== */
.purchase-alert-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: 2px solid #f87171;
    color: #ffffff;
}

.purchase-alert-error .purchase-alert-icon {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.5);
    color: #ffffff;
}

/* ==================== Mobile Responsive ==================== */
@media screen and (max-width: 768px) {
    .purchase-alert {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
        gap: 12px;
        border-radius: 10px;
    }

    .purchase-alert-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .purchase-alert-message {
        padding-right: 0;
        font-size: 15px;
        line-height: 1.6;
    }
}

/* ============================================================
 * Shop Log Styles - ประวัติการซื้อสินค้า
 * ============================================================ */

/* ==================== Card Container ==================== */
.shop-log-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 24px;
}

/* ==================== Header ==================== */
.shop-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.shop-log-title {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-log-title i {
    font-size: 24px;
}

.shop-log-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 12px;
}

.shop-log-count .count-number {
    font-size: 24px;
    font-weight: 700;
}

.shop-log-count .count-label {
    font-size: 12px;
    opacity: 0.9;
}

/* ==================== Empty State ==================== */
.shop-log-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}

.shop-log-empty .empty-icon {
    font-size: 64px;
    color: #e2e8f0;
    margin-bottom: 16px;
}

.shop-log-empty .empty-title {
    font-size: 20px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.shop-log-empty .empty-text {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 24px;
}

.shop-log-empty .empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.shop-log-empty .empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* ==================== Table Wrapper ==================== */
.shop-log-table-wrapper {
    overflow-x: auto;
    padding: 0 16px 16px;
}

/* ==================== Table ==================== */
.shop-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.shop-log-table thead tr {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
}

.shop-log-table th {
    padding: 14px 12px;
    font-weight: 600;
    color: #475569;
    text-align: center !important;
    white-space: nowrap;
}

.shop-log-table th .hint-text {
    font-weight: 400;
    font-size: 11px;
    color: #3b82f6;
}

.shop-log-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.shop-log-table tbody tr:nth-child(odd) {
    background: #fafbfc;
}

.shop-log-table tbody tr:hover {
    background: #f0f7ff;
}

.shop-log-table td {
    padding: 12px;
    vertical-align: middle;
    text-align: center !important;
}

.shop-log-table td.center {
    text-align: center !important;
}

.shop-log-table td.v-middle {
    vertical-align: middle;
}

/* Row Number */
.shop-log-table .row-number {
    font-weight: 700;
    color: #94a3b8;
    font-size: 13px;
}

/* ==================== Item Cell ==================== */
.log-item-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.log-item-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.log-item-img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.log-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.log-item-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    max-width: 180px;
}

/* Description Cell */
.shop-log-table .desc-cell {
    max-width: 280px;
    text-align: center !important;
}

.log-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* Price */
.log-price {
    font-weight: 700;
    color: #1e293b;
}

/* Price Type */
.log-price-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.log-price-type.cookie {
    background: #fef3c7;
    color: #d97706;
}

.log-price-type.point {
    background: #dbeafe;
    color: #2563eb;
}

.log-price-type.pang {
    background: #dcfce7;
    color: #16a34a;
}

.log-price-type.hole {
    background: #f3e8ff;
    color: #9333ea;
}

.log-price-type.minute {
    background: #e0e7ff;
    color: #4f46e5;
}

.log-price-type.ticket {
    background: #ffe4e6;
    color: #e11d48;
}

.log-price-type.day {
    background: #ffedd5;
    color: #ea580c;
}

.log-price-type.hole-today {
    background: #d1fae5;
    color: #059669;
}

/* Cookie */
.log-cookie {
    font-weight: 600;
    color: #f59e0b;
}

/* Date */
.log-date {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}

/* ==================== Footer ==================== */
.shop-log-footer {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
}

.back-to-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    color: #475569;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-to-shop-btn:hover {
    background: #667eea;
    color: #ffffff;
    border-color: #667eea;
}

/* ==================== Mobile Responsive ==================== */
@media screen and (max-width: 992px) {
    .shop-log-header {
        padding: 16px 20px;
    }

    .shop-log-title {
        font-size: 18px;
    }

    .shop-log-title i {
        font-size: 20px;
    }

    .shop-log-count .count-number {
        font-size: 20px;
    }

    .shop-log-table {
        font-size: 13px;
    }

    .shop-log-table th,
    .shop-log-table td {
        padding: 10px 8px;
    }

    .log-item-img {
        width: 40px;
        height: 40px;
    }

    .log-item-name {
        font-size: 13px;
        max-width: 120px;
    }

    .shop-log-table .desc-cell {
        max-width: 150px;
    }
}

@media screen and (max-width: 768px) {
    .shop-log-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .shop-log-count {
        flex-direction: row;
        gap: 8px;
    }

    /* Convert Table to Cards */
    .shop-log-table {
        display: block;
    }

    .shop-log-table thead {
        display: none;
    }

    .shop-log-table tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .shop-log-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        background: white !important;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 14px;
        gap: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .shop-log-table tbody tr:hover {
        background: white !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .shop-log-table td {
        padding: 0;
        border: none !important;
    }

    /* Row 1: # + Item + Price */
    /* Row Number - ซ้ายสุด */
    .shop-log-table td:nth-child(1) {
        order: 1;
        font-size: 12px;
        color: #667eea;
        font-weight: 700;
    }

    .shop-log-table td:nth-child(1)::before {
        content: "#";
    }

    /* Item Cell - กลาง */
    .shop-log-table td:nth-child(2) {
        flex: 1;
        min-width: 0;
        order: 2;
    }

    .log-item-cell {
        min-width: 0;
    }

    .log-item-img {
        width: 50px;
        height: 50px;
    }

    .log-item-name {
        font-size: 14px;
        max-width: none;
    }

    /* Price + Type - ขวาสุด */
    .shop-log-table td:nth-child(5) {
        order: 3;
        text-align: right !important;
    }

    .log-price {
        font-size: 16px;
    }

    .shop-log-table td:nth-child(6) {
        order: 4;
    }

    .log-price-type {
        font-size: 11px;
    }

    /* Row 2: Description - เต็มความกว้าง */
    .shop-log-table td:nth-child(3) {
        width: 100%;
        order: 5;
        padding-top: 10px;
        border-top: 1px solid #f1f5f9 !important;
        margin-top: 4px;
        text-align: left !important;
    }

    .log-desc {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Row 3: Meta Info - จำนวน, Cookie, วันที่ */
    .shop-log-table td:nth-child(4),
    .shop-log-table td:nth-child(7),
    .shop-log-table td:nth-child(8) {
        padding-top: 8px;
    }

    /* จำนวน */
    .shop-log-table td:nth-child(4) {
        order: 6;
    }

    .shop-log-table td:nth-child(4)::before {
        content: "จำนวน: ";
        font-size: 11px;
        color: #94a3b8;
    }

    /* Cookie */
    .shop-log-table td:nth-child(7) {
        order: 7;
        margin-left: auto;
    }

    .shop-log-table td:nth-child(7)::before {
        content: "🍪 ";
    }

    .log-cookie {
        font-size: 13px;
    }

    /* Date - ขวาสุด */
    .shop-log-table td:nth-child(8) {
        order: 8;
        margin-left: auto;
    }

    .log-date {
        font-size: 12px;
        color: #64748b;
    }

    .log-date::before {
        content: "🕐 ";
    }

    /* Pagination Mobile */
    .shop-log-pagination {
        padding: 12px;
        gap: 4px;
    }

    .log-page-btn {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 13px;
        border-radius: 8px;
    }

    .log-page-dots {
        min-width: 24px;
    }

    /* Empty State */
    .shop-log-empty {
        padding: 40px 20px;
    }

    .shop-log-empty .empty-icon {
        font-size: 48px;
    }
}

/* ==================== Pagination ==================== */
.shop-log-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 16px;
    flex-wrap: wrap;
}

.log-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: #ffffff;
    color: #475569;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.log-page-btn:hover:not(.disabled):not(.active) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.log-page-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.log-page-btn.disabled {
    background: #f8fafc;
    color: #cbd5e1;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

.log-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    color: #94a3b8;
    font-weight: 600;
}