/* ==========================================================================
   HẢI TẶC MŨ RƠM - SERVER 2: MÁY CHỦ TUỔI THƠ
   Theme: Modern Slate Light (Trắng Xám Tinh Gọn)
   Ultra High Contrast, Crisp Typography, Pure White Cards, Slate-100 Canvas
   Eliminates all cream/parchment glare for maximum text legibility
   ========================================================================== */

/* 1. Global Canvas Resets */
:root, [data-skin="slate"] {
    --surface: #f1f5f9;
    --surface-card: #ffffff;
    --surface-raised: #f8fafc;
    --fg: #0f172a;
    --fg-muted: #475569;
    --card-fg: #0f172a;
    --card-fg-muted: #64748b;
    --accent: #f59e0b;
    --accent-fg: #ffffff;
    --border: #e2e8f0;
    --ring: #f59e0b;
}

html {
    background-color: #f1f5f9 !important;
    scroll-behavior: smooth;
    font-size: clamp(15.5px, 0.4vw + 13.5px, 22px) !important;
    overflow-x: hidden;
    overflow-x: clip;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
}

@media (min-width: 1440px) {
    html {
        font-size: clamp(18px, 0.45vw + 12px, 22.5px) !important;
    }
}

@media (min-width: 1800px) {
    html {
        font-size: clamp(20px, 0.4vw + 13px, 24px) !important;
    }
}

body {
    min-height: 100%;
    margin: 0;
    color: #0f172a !important;
    background: #f1f5f9 !important;
    font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif !important;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-x: clip;
    overflow-y: visible;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    background-attachment: scroll !important;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
}

/* Base Utilities */
.hidden { display: none !important; }
.truncate { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }

/* Complete Responsive Utilities Missing from Compiled Tailwind Bundle */
@media (min-width: 640px) {
    .sm\:block { display: block !important; }
    .sm\:inline-block { display: inline-block !important; }
    .sm\:flex { display: flex !important; }
    .sm\:inline-flex { display: inline-flex !important; }
    .sm\:grid { display: grid !important; }
    .sm\:hidden { display: none !important; }
    .sm\:flex-row { flex-direction: row !important; }
    .sm\:flex-col { flex-direction: column !important; }
    .sm\:items-center { align-items: center !important; }
    .sm\:justify-start { justify-content: flex-start !important; }
    .sm\:justify-center { justify-content: center !important; }
    .sm\:justify-between { justify-content: space-between !important; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .sm\:overflow-visible { overflow: visible !important; }
    .sm\:gap-2 { gap: 0.5rem !important; }
    .sm\:gap-2\.5 { gap: 0.625rem !important; }
    .sm\:gap-3 { gap: 0.75rem !important; }
    .sm\:gap-4 { gap: 1rem !important; }
    .sm\:gap-5 { gap: 1.25rem !important; }
    .sm\:gap-6 { gap: 1.5rem !important; }
    .sm\:p-4 { padding: 1rem !important; }
    .sm\:p-5 { padding: 1.25rem !important; }
    .sm\:p-6 { padding: 1.5rem !important; }
    .sm\:p-7 { padding: 1.75rem !important; }
    .sm\:px-3\.5 { padding-left: 0.875rem !important; padding-right: 0.875rem !important; }
    .sm\:px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
    .sm\:px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
    .sm\:py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
    .sm\:py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
    .sm\:py-14 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
    .sm\:size-7 { width: 1.75rem !important; height: 1.75rem !important; }
    .sm\:size-8 { width: 2rem !important; height: 2rem !important; }
    .sm\:size-10 { width: 2.5rem !important; height: 2.5rem !important; }
    .sm\:size-11 { width: 2.75rem !important; height: 2.75rem !important; }
    .sm\:size-12 { width: 3rem !important; height: 3rem !important; }
    .sm\:size-13 { width: 3.25rem !important; height: 3.25rem !important; }
    .sm\:size-14 { width: 3.5rem !important; height: 3.5rem !important; }
    .sm\:text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
    .sm\:text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
    .sm\:text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
    .sm\:text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
    .sm\:text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
    .sm\:text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
    .sm\:text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
    .sm\:text-4xl { font-size: 2.25rem !important; line-height: 2.5rem !important; }
    .sm\:text-5xl { font-size: 3rem !important; line-height: 1 !important; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex !important; }
    .md\:flex-row { flex-direction: row !important; }
    .md\:justify-start { justify-content: flex-start !important; }
    .md\:text-left { text-align: left !important; }
}

@media (min-width: 1024px) {
    .lg\:block { display: block !important; }
    .lg\:inline-block { display: inline-block !important; }
    .lg\:flex { display: flex !important; }
    .lg\:inline-flex { display: inline-flex !important; }
    .lg\:grid { display: grid !important; }
    .lg\:hidden { display: none !important; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .lg\:items-start { align-items: flex-start !important; }
    .lg\:items-center { align-items: center !important; }
    .lg\:justify-start { justify-content: flex-start !important; }
    .lg\:justify-end { justify-content: flex-end !important; }
    .lg\:text-left { text-align: left !important; }
    .lg\:py-16 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
    .lg\:text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
    .lg\:text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
    .lg\:text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
    .lg\:text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
    .lg\:text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
    .lg\:text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
    .lg\:text-4xl { font-size: 2.25rem !important; line-height: 2.5rem !important; }
    .lg\:text-5xl { font-size: 3rem !important; line-height: 1 !important; }
    .lg\:text-\[15px\] { font-size: 15px !important; }
}

@media (min-width: 1536px) {
    .\32 xl\:max-w-\[1600px\] { max-width: 1600px !important; }
    .\32 xl\:text-base { font-size: 1rem !important; }
    .\32 xl\:text-lg { font-size: 1.125rem !important; }
    .\32 xl\:text-xl { font-size: 1.25rem !important; }
    .\32 xl\:text-2xl { font-size: 1.5rem !important; }
}

#root,
.s2-site-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#root > .max-w-3xl {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.texture-layer {
    display: none !important;
}

.s2-site-container::before,
.s2-site-container::after,
#root > .max-w-3xl::before,
#root > .max-w-3xl::after {
    display: none !important;
}

/* 2. Main Pure White Content Panels */
.sc-bdvuGq,
.BoTfp,
.download-panel,
.forum-panel,
.profile-panel,
.payment-panel,
.member-panel,
.info-panel,
.rules-panel,
.devilfruits-panel,
.medallion-panel,
.handbook-panel,
.dungeon-panel,
.equipment-panel,
.balance-panel,
.guide-panel,
.feature-panel,
.payment-shell,
.member-card,
.profile-card,
.thread-panel {
    position: relative !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-style: solid !important;
    border-width: 1px !important;
    border-image: none !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03) !important;
    color: #0f172a !important;
    padding: 24px 28px !important;
    margin: 0 auto 28px !important;
    box-sizing: border-box !important;
}

/* 3. Sub-cards, List Items & Content Blocks */
.download-card,
.s2-post-card,
.s2-quick-feature,
.atm-status-box,
.bank-info-box,
.exchange-card,
.devil-card,
.medallion-card,
.handbook-step,
.comment-card,
.user-stat-card,
.ranking-card,
.privilege-card,
.thread-post-header-card,
.thread-post,
.thread-comment,
.thread-reply-box,
.comment-box-container,
.fruit-hero,
.fruit-source,
.fruit-card,
.fruit-modal-box,
.equipment-hero,
.equipment-summary-card,
.feature-hero,
.medal-card,
.handbook-hero,
.tier-card,
.farm-hub-card,
.dungeon-card,
.sea-card,
.score-card,
.rank-card,
.currency-stat-card,
.stat-ruby-card,
.stat-beri-card,
.detail-box,
.daily-routine-box,
.resource-cat-card,
.entry-meta-card,
.giftcode-card,
.guide-card,
.payment-history {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    color: #0f172a !important;
    transition: all 0.2s ease !important;
}

.download-card:hover,
.s2-post-card:hover,
.s2-quick-feature:hover,
.devil-card:hover,
.medallion-card:hover,
.privilege-card:hover,
.dungeon-card:hover,
.giftcode-card:hover,
.guide-card:hover,
.fruit-card:hover,
.medal-card:hover {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07) !important;
    transform: translateY(-1px) !important;
}

/* 4. Headings & Typography (Ultra Sharp Charcoal #0f172a) */
h1, h2, h3, h4, h5, h6,
.download-heading h1,
.s2-section-header,
.s2-section-header span,
.ranking-heading h1,
.profile-title,
.auth-title,
.section-title,
.s2-post-title,
.post-title,
.thread-headline,
.member-title,
.fruit-title,
.equipment-hero h1,
.payment-history-title,
.comment-box-title,
.detail-box h2 {
    color: #0f172a !important;
    font-weight: 800 !important;
    font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif !important;
    text-shadow: none !important;
}

.download-heading p,
.s2-section-sub,
.auth-subtitle,
.section-desc,
.s2-post-snippet,
.member-note,
.fruit-intro,
.equipment-hero p,
.thread-metrics-ribbon,
.thread-author-role,
.payment-history-time,
.payment-empty {
    color: #64748b !important;
}

/* Body text & content */
.thread-body,
.comment-body,
p,
span,
li {
    color: #334155;
}

/* 5. Downloads Page */
.download-heading {
    text-align: center;
    margin-bottom: 12px;
}
.download-heading h1 {
    font-size: 18px !important;
    margin-bottom: 2px;
}
.download-heading p {
    font-size: 12px;
    margin: 0;
}
.download-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 560px;
    margin: 0 auto;
}
.download-card {
    display: grid !important;
    grid-template-columns: 85px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    align-items: center;
    border-radius: 12px !important;
}
.download-platform-badge img {
    max-width: 75px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}
.download-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.download-platform-title,
.download-links div:first-child {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}
.download-platform-desc,
.download-links div:nth-child(2) {
    font-size: 12px !important;
    color: #475569 !important;
    line-height: 1.4;
}
.download-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    width: fit-content;
    min-height: 32px;
}
.download-button:hover {
    filter: brightness(1.08) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35) !important;
}
.download-button.guide {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
}
.download-button.guide:hover {
    background: #e2e8f0 !important;
}

/* 6. Forum Subpages */
.s2-quick-features-bar {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 22px !important;
}
.s2-quick-feature {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    text-decoration: none !important;
}
.qf-icon {
    font-size: 26px !important;
}
.qf-name {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}
.qf-sub {
    font-size: 11.5px !important;
    color: #64748b !important;
}
.s2-forum-cat-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 18px 0 22px !important;
}
.cat-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 14px !important;
    border-radius: 9999px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}
.cat-pill:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}
.cat-pill.active {
    background: #f59e0b !important;
    color: #ffffff !important;
    border-color: #d97706 !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;
}
.s2-posts-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}
.s2-post-card {
    padding: 18px 20px !important;
}
.s2-post-link {
    text-decoration: none !important;
    display: block !important;
}
.s2-post-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 8px !important;
}
.s2-post-badges {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}
.s2-post-author-meta {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 12px !important;
    color: #64748b !important;
}
.role-badge.admin {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border: 1px solid #fca5a5 !important;
    font-weight: 800 !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
}
.role-badge.player {
    background: #e0f2fe !important;
    color: #0284c7 !important;
    border: 1px solid #bae6fd !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
}
.s2-post-title {
    font-size: 16.5px !important;
    color: #0f172a !important;
    margin: 4px 0 8px !important;
}
.s2-post-title:hover {
    color: #d97706 !important;
}
.s2-post-metrics-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 12px !important;
    padding-top: 10px !important;
    border-top: 1px solid #e2e8f0 !important;
    font-size: 12px !important;
    color: #64748b !important;
}
.s2-post-detail-link {
    color: #d97706 !important;
    font-weight: 700 !important;
}

/* Post Detail Styling */
.thread-post-header-card {
    padding: 20px 22px !important;
    margin-bottom: 18px !important;
}
.thread-post, .thread-comment {
    padding: 20px !important;
    margin-bottom: 16px !important;
}
.thread-userline {
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}
.thread-author-name {
    color: #0f172a !important;
    font-weight: 800 !important;
}
.thread-body, .comment-body {
    color: #1e293b !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.75 !important;
}
.thread-date {
    color: #64748b !important;
}
.thread-reply-box {
    padding: 20px !important;
}
.thread-btn {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 6px 14px !important;
    font-weight: 700 !important;
}
.post-quote-box {
    background: #f1f5f9 !important;
    border-left: 4px solid #f59e0b !important;
    color: #334155 !important;
    padding: 10px 14px !important;
    border-radius: 0 8px 8px 0 !important;
}

/* 7. Payment (Nạp Coin) */
.payment-shell {
    overflow: hidden;
    color: #0f172a !important;
}
.payment-method-menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 16px auto 22px !important;
    padding: 6px !important;
    max-width: 520px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    background: #f8fafc !important;
}
.payment-method-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    min-height: 50px !important;
    padding: 9px 12px !important;
    border: 1.5px solid transparent !important;
    border-radius: 12px !important;
    color: #475569 !important;
    background: transparent !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: all 0.18s ease !important;
}
.payment-method-btn:hover {
    color: #0f172a !important;
    background: #e2e8f0 !important;
}
.payment-method-btn.is-active {
    color: #ffffff !important;
    border-color: #d97706 !important;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3) !important;
    transform: translateY(-1px) !important;
}
.payment-rate-box {
    margin: 16px auto 20px !important;
    max-width: 600px !important;
    padding: 16px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
}
.payment-rate-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
}
.payment-rate-item {
    padding: 10px 8px !important;
    border-radius: 10px !important;
    text-align: center !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}
.payment-rate-item span {
    display: block !important;
    color: #64748b !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
}
.payment-rate-item strong {
    color: #d97706 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
}
.payment-rate-item.is-current {
    border-color: #16a34a !important;
    background: #f0fdf4 !important;
}
.payment-rate-item.is-current span,
.payment-rate-item.is-current strong {
    color: #15803d !important;
}
.payment-current-status {
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin-top: 14px !important;
}
.card-payment-form {
    max-width: 440px !important;
    margin: 20px auto 0 !important;
    display: grid !important;
    gap: 14px !important;
}
.card-payment-form label {
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    margin-bottom: 4px !important;
    display: block !important;
}
.card-payment-form select,
.card-payment-form input,
input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
select,
textarea {
    width: 100% !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-family: inherit !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
    outline: none !important;
}
.card-payment-form select:focus,
.card-payment-form input:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2) !important;
}
.card-payment-form select option {
    background: #ffffff !important;
    color: #0f172a !important;
}
.card-payment-submit,
.btn-primary,
.auth-btn-primary,
.exchange-submit,
button[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 46px !important;
    padding: 11px 20px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3) !important;
    transition: all 0.2s ease !important;
}
.card-payment-submit:hover,
.btn-primary:hover,
.auth-btn-primary:hover,
button[type="submit"]:hover {
    filter: brightness(1.08) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4) !important;
}

.payment-history-row {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    color: #0f172a !important;
    padding: 10px 14px !important;
    margin-top: 8px !important;
}
.payment-refresh {
    color: #d97706 !important;
    font-weight: 700 !important;
}

/* 8. Authentication (Login & Register) */
.auth-page {
    padding: 8px 4px 16px !important;
    color: #0f172a !important;
}
.auth-card {
    max-width: 360px !important;
    margin: 0 auto !important;
    padding: 14px 16px 16px !important;
    border-radius: 14px !important;
}
.auth-header {
    text-align: center;
    margin-bottom: 8px !important;
}
.auth-badge, .profile-badge, .member-icon {
    display: inline-block;
    padding: 2px 9px;
    margin-bottom: 4px;
    border-radius: 999px;
    background: #f59e0b !important;
    color: #ffffff !important;
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.auth-title {
    font-size: 17px !important;
    color: #0f172a !important;
    margin: 0 0 2px !important;
    font-weight: 900;
}
.auth-subtitle {
    font-size: 11px !important;
    color: #64748b !important;
    margin: 0 !important;
    font-weight: 500;
}
.auth-form-group {
    margin-bottom: 6px !important;
    text-align: left;
}
.auth-label {
    display: block;
    margin-bottom: 2px !important;
    color: #0f172a !important;
    font-weight: 800;
    font-size: 11.5px !important;
}
.auth-footer {
    text-align: center;
    margin-top: 8px !important;
    font-size: 11.5px !important;
    color: #64748b !important;
}
.auth-link, .auth-footer a {
    color: #d97706 !important;
    font-weight: 700;
    text-decoration: underline;
}

/* 9. Tables */
table,
.ranking-table,
.profile-info-table,
.equipment-table {
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 16px 0 !important;
}
th {
    background: #f8fafc !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    padding: 12px 14px !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
    text-align: left !important;
}
td {
    color: #334155 !important;
    padding: 11px 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
tr:last-child td {
    border-bottom: none !important;
}
tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.6) !important;
}
tr:hover {
    background: rgba(245, 158, 11, 0.08) !important;
}

/* 10. Breadcrumbs */
.download-breadcrumb,
.breadcrumb,
.forum-breadcrumb,
.thread-breadcrumb,
.s2-breadcrumb {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    color: #64748b !important;
    margin-bottom: 18px !important;
    background: transparent !important;
    border: none !important;
}
.download-breadcrumb a,
.breadcrumb a,
.forum-breadcrumb a,
.thread-breadcrumb a,
.s2-breadcrumb a {
    color: #d97706 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
.download-breadcrumb a:hover,
.breadcrumb a:hover,
.forum-breadcrumb a:hover,
.thread-breadcrumb a:hover,
.s2-breadcrumb a:hover {
    text-decoration: underline !important;
}

/* 11. Alerts */
.alert,
.alert-box,
.s2-alert,
.notice-box,
.forum-note {
    padding: 12px 16px !important;
    border-radius: 12px !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    margin: 14px 0 !important;
}
.alert-warning,
.notice-warning,
.forum-note {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    color: #92400e !important;
}
.alert-success,
.notice-success {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #166534 !important;
}
.alert-danger,
.notice-danger {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
/* 11.5. CẨM NANG & HƯỚNG DẪN: SẮC NÉT, ĐỘ TƯƠNG PHẢN CAO, KHÔNG TRÙNG MÀU NỀN */
.fruit-page,
.handbook-page,
.sea-page,
.equipment-page,
.medallion-page,
.feature-page,
.guide-page,
.rules-page,
.balance-page {
    color: #1e293b !important;
}

/* Breadcrumbs in all pages */
.s2-breadcrumb,
.download-breadcrumb,
.breadcrumb,
.forum-breadcrumb,
.thread-breadcrumb,
.handbook-breadcrumb,
.sea-breadcrumb,
.equipment-breadcrumb {
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
}
.s2-breadcrumb strong,
.download-breadcrumb strong,
.breadcrumb strong,
.forum-breadcrumb strong,
.thread-breadcrumb strong,
.handbook-breadcrumb strong,
.sea-breadcrumb strong,
.equipment-breadcrumb strong {
    color: #0f172a !important;
    font-weight: 800 !important;
}
.s2-breadcrumb a,
.download-breadcrumb a,
.breadcrumb a,
.forum-breadcrumb a,
.thread-breadcrumb a,
.handbook-breadcrumb a,
.sea-breadcrumb a,
.equipment-breadcrumb a {
    color: #d97706 !important;
    font-weight: 700 !important;
}

/* Hero Cards across Handbooks */
.fruit-hero,
.handbook-hero,
.sea-hero,
.equipment-hero,
.feature-hero {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-top: 4px solid #f59e0b !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

.fruit-title,
.handbook-title,
.sea-title,
.equipment-hero h1,
.feature-hero h1 {
    color: #0f172a !important;
    font-weight: 900 !important;
    text-shadow: none !important;
}

.fruit-intro,
.handbook-lead,
.sea-lead,
.equipment-hero p,
.feature-hero p {
    color: #334155 !important;
    font-weight: 500 !important;
    text-shadow: none !important;
}

/* Trái Ác Quỷ (Devil Fruits) High-Contrast */
.fruit-source {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 16px !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04) !important;
}
.fruit-source strong {
    color: #0f172a !important;
    font-weight: 800 !important;
}
.fruit-source span {
    color: #334155 !important;
    font-weight: 500 !important;
}
.fruit-source b {
    color: #d97706 !important;
    font-weight: 800 !important;
}

.fruit-card {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}
.fruit-card:hover {
    border-color: #f59e0b !important;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15) !important;
}
.fruit-name {
    color: #0f172a !important;
    font-weight: 900 !important;
}
.fruit-subname {
    color: #d97706 !important;
    font-weight: 700 !important;
}
.fruit-desc {
    color: #475569 !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
}
.fruit-type-label {
    color: #64748b !important;
    font-weight: 700 !important;
}
.fruit-rarity.badge-gold {
    background: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
}
.fruit-rarity.badge-cyan {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
}
.fruit-rarity.badge-purple {
    background: #f3e8ff !important;
    color: #6b21a8 !important;
    border: 1px solid #e9d5ff !important;
}
.fruit-rarity.badge-pink {
    background: #fce7f3 !important;
    color: #9d174d !important;
    border: 1px solid #fbcfe8 !important;
}

/* Sổ Tay Hải Tặc / Chiến Lệnh High-Contrast */
.handbook-guide {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 16px !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04) !important;
}
.handbook-guide-title {
    color: #0f172a !important;
    font-weight: 900 !important;
}
.handbook-guide-desc {
    color: #334155 !important;
    font-weight: 500 !important;
}
.exp-chip {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}
.exp-chip b {
    color: #d97706 !important;
    font-weight: 900 !important;
}

.tier-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}
.tier-price-bar {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}
.tier-price-label {
    color: #475569 !important;
    font-weight: 600 !important;
}
.tier-price-val {
    color: #d97706 !important;
    font-weight: 900 !important;
}
.reward-row {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
.reward-row:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}
.reward-name {
    color: #0f172a !important;
    font-weight: 700 !important;
}
.reward-qty {
    color: #059669 !important;
    font-weight: 900 !important;
}

/* Phó Bản / Dungeons / Sea Leader High-Contrast */
.dungeon-card,
.sea-card,
.farm-hub-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}
.dungeon-card h3,
.dungeon-title,
.sea-card-title,
.farm-hub-card h3 {
    color: #0f172a !important;
    font-weight: 900 !important;
}
.dungeon-card p,
.dungeon-desc,
.sea-card-desc,
.farm-hub-card p {
    color: #334155 !important;
    font-weight: 500 !important;
}
.sea-page [style*="color: #cbd5e1"],
.sea-page [style*="color: #e2e8f0"],
.sea-page [style*="color: #f1f5f9"] {
    color: #334155 !important;
}
.sea-page [style*="color: #fef08a"] {
    color: #b45309 !important;
    font-weight: 700 !important;
}
.sea-page [style*="color: #94a3b8"] {
    color: #64748b !important;
}
.sea-page [style*="color: #38bdf8"] {
    color: #0284c7 !important;
    font-weight: 700 !important;
}
.sea-table th {
    background: #f8fafc !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    border-color: #e2e8f0 !important;
}
.sea-table td {
    color: #1e293b !important;
    font-weight: 600 !important;
    border-color: #e2e8f0 !important;
}

/* Tra Cứu Trang Bị (EquipmentStats.php) High-Contrast */
.equipment-summary-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 14px !important;
}
.equipment-summary-card strong {
    color: #b45309 !important;
    font-weight: 900 !important;
}
.equipment-summary-card span {
    color: #334155 !important;
    font-weight: 600 !important;
}
.equipment-summary-card span.stat-highlight {
    color: #059669 !important;
    font-weight: 800 !important;
}
.equipment-class-notice {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    border-left: 4px solid #3b82f6 !important;
    color: #1e3a8a !important;
}
.equipment-class-notice b {
    color: #1d4ed8 !important;
    font-weight: 800 !important;
}
.equipment-section {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 16px !important;
}
.equipment-section h2 {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
.equipment-table th {
    background: #f8fafc !important;
    color: #0f172a !important;
    font-weight: 800 !important;
}
.equipment-table td {
    color: #1e293b !important;
    font-weight: 600 !important;
}

/* 12. Mobile Responsiveness */
@media (max-width: 767.98px) {
    .sc-bdvuGq,
    .BoTfp,
    .download-panel,
    .forum-panel,
    .profile-panel,
    .payment-panel,
    .member-panel {
        padding: 18px 16px !important;
        border-radius: 16px !important;
    }
    .download-card {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        padding: 16px 14px !important;
    }
    .download-platform-badge img {
        margin: 0 auto !important;
    }
    .download-button {
        width: 100% !important;
    }
    .s2-quick-features-bar {
        grid-template-columns: 1fr !important;
    }
    .payment-rate-grid {
        grid-template-columns: 1fr !important;
    }
    .thread-post, .thread-comment {
        grid-template-columns: 50px minmax(0, 1fr) !important;
        text-align: left !important;
        gap: 10px !important;
        padding: 12px 10px !important;
    }
    .s2-forum-cat-bar {
        gap: 6px !important;
        margin: 12px 0 16px !important;
    }
    .cat-pill {
        padding: 5px 10px !important;
        font-size: 11.5px !important;
        gap: 4px !important;
    }
}
