/**
 * H5Games4U Apex Arcade - Official Flagship Theme Stylesheet
 * High-Performance, High-Contrast HTML5 Arcade Layout
 * Target: https://h5games4u.site
 */

:root {
    --h5-orange: #ff5722;
    --h5-orange-hover: #f4511e;
    --h5-orange-glow: rgba(255, 87, 34, 0.28);
    --h5-cyan: #06b6d4;
    --h5-cyan-hover: #0891b2;
    --h5-cyan-glow: rgba(6, 182, 212, 0.25);
    --h5-indigo: #6366f1;
    --h5-amber: #f59e0b;
    --h5-bg: #f4f6fb;
    --h5-surface: #ffffff;
    --h5-surface-alt: #f8fafc;
    --h5-border: #e2e8f0;
    --h5-border-subtle: #f1f5f9;
    --h5-text-primary: #0f172a;
    --h5-text-secondary: #334155;
    --h5-text-muted: #64748b;
    --h5-dark-bg: #090d16;
    --h5-dark-surface: #0f172a;
    --h5-dark-border: #1e293b;
    --h5-radius-sm: 8px;
    --h5-radius-md: 12px;
    --h5-radius-lg: 16px;
    --h5-radius-pill: 9999px;
    --h5-shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
    --h5-shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06);
    --h5-shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.08);
}

/* Global Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--h5-bg) !important;
    color: var(--h5-text-primary) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease, transform 0.18s ease;
}

/* =====================================================================
   1. TOP HEADER BAR
   ===================================================================== */
.h5-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff !important;
    border-bottom: 1px solid var(--h5-border);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    height: 64px;
}

.h5-header-inner {
    max-width: 1800px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.h5-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.h5-menu-toggle {
    display: none;
    background: #f1f5f9;
    border: 1px solid var(--h5-border);
    color: var(--h5-text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--h5-radius-sm);
    font-size: 1.15rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.h5-menu-toggle:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.h5-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.h5-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #ff5722 0%, #06b6d4 100%);
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 3px 8px rgba(255, 87, 34, 0.3);
}

.h5-brand-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.h5-brand-name {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #0f172a !important;
}

.h5-orange {
    color: #ff5722 !important;
}

.h5-cyan {
    color: #06b6d4 !important;
}

.h5-brand-badge {
    background: #0f172a;
    color: #ff5722 !important;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Centered Pill Search Form */
.h5-search-wrap {
    flex: 1;
    max-width: 480px;
    margin: 0 16px;
}

.h5-search-form {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--h5-radius-pill);
    padding: 0 16px;
    height: 42px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.h5-search-form:focus-within {
    background: #ffffff;
    border-color: #ff5722;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.18);
}

.h5-search-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.95rem;
    padding: 0;
    margin-right: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.h5-search-btn:hover {
    color: #ff5722;
}

.h5-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.92rem;
    font-weight: 500;
    color: #0f172a;
    outline: none;
}

.h5-search-input::placeholder {
    color: #94a3b8;
}

/* Header Actions */
.h5-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.h5-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff5722 0%, #ea580c 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 9px 18px;
    border-radius: var(--h5-radius-pill);
    box-shadow: 0 3px 10px rgba(255, 87, 34, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.h5-btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(255, 87, 34, 0.4);
    color: #ffffff !important;
}

/* =====================================================================
   2. TWO-COLUMN LAYOUT: SIDEBAR + MAIN CONTENT
   ===================================================================== */
.h5-layout-container {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    min-height: calc(100vh - 64px);
}

/* Left Sidebar */
.h5-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #ffffff;
    border-right: 1px solid var(--h5-border);
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    z-index: 100;
}

.h5-sidebar::-webkit-scrollbar {
    width: 6px;
}

.h5-sidebar::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.h5-sidebar-inner {
    padding: 16px 12px;
}

.h5-sidebar-mobile-head {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--h5-border);
}

.h5-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
}

.h5-sidebar-close {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.h5-nav-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.h5-nav-heading {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8 !important;
    padding: 8px 12px 4px;
}

.h5-side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: var(--h5-radius-sm);
    color: #334155 !important;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.h5-side-link:hover {
    background: #f1f5f9;
    color: #ff5722 !important;
    transform: translateX(2px);
}

.h5-side-link.active {
    background: rgba(255, 87, 34, 0.1);
    color: #ea580c !important;
    font-weight: 700;
}

.h5-side-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.h5-side-link:hover .h5-side-icon-box,
.h5-side-link.active .h5-side-icon-box {
    background: #ff5722;
    color: #ffffff;
}

.h5-side-icon-box.orange { color: #ff5722; }
.h5-side-icon-box.cyan { color: #06b6d4; }
.h5-side-icon-box.emerald { color: #10b981; }
.h5-side-icon-box.indigo { color: #6366f1; }
.h5-side-icon-box.rose { color: #f43f5e; }

.h5-side-divider {
    height: 1px;
    background: var(--h5-border);
    margin: 12px 0;
}

.h5-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 99;
}

/* Main Content Area */
.h5-main-wrap {
    flex: 1;
    min-width: 0;
    padding: 20px 24px;
    background-color: var(--h5-bg);
}

/* =====================================================================
   3. HERO SHOWCASE (ZERO BLANK SPACE: BANNER LEFT + 2x2 TILES RIGHT)
   ===================================================================== */
.h5-showcase-row {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    height: 380px;
}

/* Left Main Banner */
.h5-showcase-main {
    flex: 1.6;
    height: 100%;
}

.h5-showcase-card {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--h5-radius-lg);
    overflow: hidden;
    background: #090d16;
    box-shadow: var(--h5-shadow-md);
    text-decoration: none;
}

.h5-showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.h5-showcase-card:hover .h5-showcase-img {
    transform: scale(1.03);
}

.h5-slider-arrows {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.h5-slider-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.h5-slider-btn:hover {
    background: #ff5722;
    transform: scale(1.08);
}

.h5-showcase-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    background: linear-gradient(to top, rgba(9, 13, 22, 0.95) 0%, rgba(9, 13, 22, 0.65) 45%, rgba(9, 13, 22, 0.1) 100%);
    z-index: 2;
}

.h5-showcase-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ff5722;
    color: #ffffff !important;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: var(--h5-radius-pill);
    margin-bottom: 10px;
}

.h5-showcase-title {
    font-size: 1.85rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    line-height: 1.2;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.h5-showcase-desc {
    font-size: 0.95rem !important;
    line-height: 1.45;
    color: #e2e8f0 !important;
    max-width: 600px;
    margin: 0 0 14px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.h5-showcase-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.h5-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    color: #f8fafc !important;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.h5-btn-play-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ff5722;
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: var(--h5-radius-pill);
    margin-left: auto;
    box-shadow: 0 3px 10px rgba(255, 87, 34, 0.4);
}

/* Right 2x2 Grid (Matching Height = Zero Blank Space) */
.h5-showcase-grid {
    flex: 1;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
}

.h5-tile-card {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--h5-radius-md);
    overflow: hidden;
    background: #090d16;
    box-shadow: var(--h5-shadow-sm);
    text-decoration: none;
}

.h5-tile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.h5-tile-card:hover img {
    transform: scale(1.06);
}

.h5-tile-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px 12px;
    background: linear-gradient(to top, rgba(9, 13, 22, 0.88) 0%, rgba(9, 13, 22, 0.2) 60%, transparent 100%);
    z-index: 2;
}

.h5-tile-title {
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h5-tile-cat {
    font-size: 0.72rem !important;
    color: #ff5722 !important;
    font-weight: 700;
    margin-top: 2px;
}

.h5-tile-hover-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 87, 34, 0.9);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s ease;
    z-index: 3;
}

.h5-tile-card:hover .h5-tile-hover-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* =====================================================================
   4. MIDDLE SPOTLIGHT ROW (ROW 2: 4 CARDS ACROSS)
   ===================================================================== */
.h5-midrow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.h5-midrow-card {
    position: relative;
    border-radius: var(--h5-radius-md);
    overflow: hidden;
    height: 140px;
    background: #090d16;
    box-shadow: var(--h5-shadow-sm);
    display: block;
}

.h5-midrow-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.h5-midrow-card:hover img {
    transform: scale(1.05);
}

.h5-midrow-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    background: linear-gradient(to top, rgba(9, 13, 22, 0.9) 0%, rgba(9, 13, 22, 0.2) 65%, transparent 100%);
    z-index: 2;
}

.h5-midrow-badge {
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    color: #ff5722 !important;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.h5-midrow-title {
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h5-midrow-play {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 3;
}

.h5-midrow-card:hover .h5-midrow-play {
    opacity: 1;
    transform: scale(1.05);
    background: #ff5722;
}

/* =====================================================================
   5. SECTION BAR & QUICK PILLS
   ===================================================================== */
.h5-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.h5-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.h5-section-indicator {
    width: 4px;
    height: 22px;
    background: #ff5722;
    border-radius: 2px;
}

.h5-section-heading {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0;
}

.h5-quick-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.h5-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--h5-border);
    padding: 6px 14px;
    border-radius: var(--h5-radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155 !important;
    transition: all 0.15s ease;
}

.h5-pill:hover {
    border-color: #ff5722;
    color: #ff5722 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 87, 34, 0.15);
}

.h5-pill.highlight {
    background: rgba(255, 87, 34, 0.1);
    border-color: #ff5722;
    color: #ea580c !important;
    font-weight: 700;
}

/* =====================================================================
   6. DENSE BENTO / MOSAIC GAME GRID (120+ GAMES)
   ===================================================================== */
.h5-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.h5-grid-card {
    background: #ffffff;
    border: 1px solid var(--h5-border);
    border-radius: var(--h5-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--h5-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.h5-grid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.h5-grid-thumb-link {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e2e8f0;
    display: block;
}

.h5-grid-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.h5-grid-card:hover .h5-grid-thumb {
    transform: scale(1.08);
}

.h5-grid-cat {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff !important;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.h5-grid-hover-play {
    position: absolute;
    inset: 0;
    background: rgba(255, 87, 34, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.h5-grid-card:hover .h5-grid-hover-play {
    opacity: 1;
}

.h5-grid-info {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.h5-grid-title {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.h5-grid-card:hover .h5-grid-title {
    color: #ff5722 !important;
}

.h5-grid-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #64748b !important;
    margin-top: auto;
}

.h5-grid-rating {
    color: #f59e0b !important;
    font-weight: 700;
}

/* 2x2 Bento Spotlight Tile */
.h5-grid-card.card-large-2x2 {
    grid-column: span 2;
    grid-row: span 2;
}

.h5-grid-card.card-large-2x2 .h5-grid-thumb-link {
    aspect-ratio: 16 / 11;
}

.h5-grid-card.card-large-2x2 .h5-grid-title {
    font-size: 1rem !important;
}

/* =====================================================================
   7. CONTENT SECTION UNDER GAMES (Human-Written Authority for AdSense)
   ===================================================================== */
.h5-content-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 32px;
}

/* ABOUT H5Games4U Luxury Dark Box */
.h5-about-box {
    background: #090d16;
    border: 1.5px solid #1e293b;
    border-radius: var(--h5-radius-lg);
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.h5-about-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff5722 0%, #06b6d4 100%);
}

.h5-about-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.h5-about-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 87, 34, 0.15);
    border: 1px solid #ff5722;
    color: #ff5722;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.h5-about-title {
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin: 0 0 4px 0;
    letter-spacing: -0.3px;
}

.h5-about-subtitle {
    font-size: 0.85rem !important;
    font-weight: 600;
    color: #ff5722 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.h5-about-body {
    color: #cbd5e1 !important;
    font-size: 0.95rem !important;
    line-height: 1.7;
}

.h5-about-body p {
    margin: 0 0 14px 0;
    color: #cbd5e1 !important;
}

.h5-about-body strong {
    color: #ffffff !important;
}

.h5-about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.h5-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc !important;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
}

/* Guides Grid Box */
.h5-guides-box {
    background: #ffffff;
    border: 1px solid var(--h5-border);
    border-radius: var(--h5-radius-lg);
    padding: 24px;
    box-shadow: var(--h5-shadow-sm);
}

.h5-guides-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.h5-guides-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.h5-guides-title {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0;
}

.h5-guides-all-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ff5722 !important;
}

.h5-guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.h5-guide-card {
    background: #f8fafc;
    border: 1px solid var(--h5-border);
    border-radius: var(--h5-radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.h5-guide-card:hover {
    transform: translateY(-2px);
    border-color: #ff5722;
}

.h5-guide-badge {
    align-self: flex-start;
    background: rgba(255, 87, 34, 0.15);
    color: #ea580c !important;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
}

.h5-guide-name {
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    margin: 0;
    line-height: 1.35;
}

.h5-guide-name a {
    color: #0f172a !important;
}

.h5-guide-name a:hover {
    color: #ff5722 !important;
}

.h5-guide-snippet {
    font-size: 0.85rem !important;
    color: #64748b !important;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.h5-guide-read {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ff5722 !important;
    margin-top: 4px;
}

/* 4 Platform Pillars */
.h5-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.h5-pillar-card {
    background: #ffffff;
    border: 1px solid var(--h5-border);
    border-radius: var(--h5-radius-md);
    padding: 18px;
    box-shadow: var(--h5-shadow-sm);
}

.h5-pillar-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.h5-pillar-icon.orange { background: rgba(255, 87, 34, 0.15); color: #ff5722; }
.h5-pillar-icon.cyan { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.h5-pillar-icon.emerald { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.h5-pillar-icon.indigo { background: rgba(99, 102, 241, 0.15); color: #6366f1; }

.h5-pillar-title {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 6px 0;
}

.h5-pillar-desc {
    font-size: 0.82rem !important;
    color: #64748b !important;
    line-height: 1.5;
    margin: 0;
}

/* Community FAQs */
.h5-faq-box {
    background: #ffffff;
    border: 1px solid var(--h5-border);
    border-radius: var(--h5-radius-lg);
    padding: 24px;
}

.h5-faq-heading {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.h5-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.h5-faq-item {
    background: #f8fafc;
    border: 1px solid var(--h5-border);
    border-radius: var(--h5-radius-sm);
    padding: 12px 16px;
}

.h5-faq-question {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a !important;
    cursor: pointer;
    outline: none;
}

.h5-faq-answer {
    margin-top: 8px;
    font-size: 0.88rem;
    color: #475569 !important;
    line-height: 1.6;
}

.h5-faq-answer p {
    margin: 0;
    color: #475569 !important;
}

/* =====================================================================
   8. ACTION BUTTONS
   ===================================================================== */
.h5-action-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 28px 0;
    flex-wrap: wrap;
}

.h5-btn-shuffle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff5722 0%, #ea580c 100%);
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: var(--h5-radius-pill);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.h5-btn-shuffle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.45);
    color: #ffffff !important;
}

.h5-btn-backtotop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    color: #ffffff !important;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: var(--h5-radius-pill);
    transition: background 0.15s ease, transform 0.15s ease;
}

.h5-btn-backtotop:hover {
    background: #1e293b;
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* =====================================================================
   9. MODERN HIGH-CONTRAST FOOTER
   ===================================================================== */
.h5-footer {
    background: #090d16 !important;
    border-top: 1px solid #1e293b;
    padding: 48px 24px 28px;
    color: #94a3b8 !important;
}

.h5-footer-inner {
    max-width: 1600px;
    margin: 0 auto;
}

.h5-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.2fr;
    gap: 36px;
    margin-bottom: 36px;
}

.h5-fcol.brand-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.h5-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.h5-footer-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff5722 0%, #06b6d4 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.h5-footer-title {
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    letter-spacing: -0.5px;
}

.h5-footer-desc {
    color: #cbd5e1 !important;
    font-size: 0.88rem !important;
    line-height: 1.6;
    margin: 0;
    max-width: 440px;
}

.h5-footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.h5-footer-badges .f-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc !important;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

.h5-fcol-title {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 16px 0;
}

.h5-fcol-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.h5-fcol-links li a {
    color: #94a3b8 !important;
    font-size: 0.88rem;
    transition: color 0.15s ease, transform 0.15s ease;
    display: inline-block;
}

.h5-fcol-links li a:hover {
    color: #ff5722 !important;
    transform: translateX(3px);
}

.h5-footer-divider {
    height: 1px;
    background: #1e293b;
    margin-bottom: 24px;
}

.h5-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.h5-copy-text {
    font-size: 0.82rem !important;
    color: #cbd5e1 !important;
    margin: 0;
}

.h5-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
}

.h5-bottom-links a {
    color: #94a3b8 !important;
}

.h5-bottom-links a:hover {
    color: #ff5722 !important;
}

.h5-bottom-links span {
    color: #475569 !important;
}

/* =====================================================================
   10. MOBILE & RESPONSIVE BREAKPOINTS (100% MOBILE FRIENDLY)
   ===================================================================== */
@media (max-width: 1200px) {
    .h5-showcase-row {
        height: 340px;
    }
    .h5-midrow-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .h5-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .h5-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .h5-menu-toggle {
        display: flex;
    }
    .h5-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 270px;
        height: 100vh;
        z-index: 1001;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
    }
    .h5-sidebar.open {
        left: 0;
    }
    .h5-sidebar-mobile-head {
        display: flex;
    }
    .h5-sidebar-backdrop.active {
        display: block;
    }
    .h5-main-wrap {
        padding: 16px;
    }
    .h5-showcase-row {
        flex-direction: column;
        height: auto;
    }
    .h5-showcase-main {
        height: 280px;
    }
    .h5-showcase-grid {
        height: 220px;
    }
    .h5-guides-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .h5-header-inner {
        padding: 0 14px;
    }
    .h5-search-wrap {
        margin: 0 8px;
    }
    .h5-btn-label {
        display: none;
    }
    .h5-btn-action {
        padding: 8px 12px;
    }
    .h5-showcase-main {
        height: 240px;
    }
    .h5-showcase-title {
        font-size: 1.35rem !important;
    }
    .h5-showcase-desc {
        display: none;
    }
    .h5-midrow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .h5-bento-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 8px;
    }
    .h5-grid-card.card-large-2x2 {
        grid-column: span 2;
        grid-row: span 2;
    }
    .h5-pillars-grid {
        grid-template-columns: 1fr;
    }
    .h5-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .h5-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .h5-showcase-main {
        height: 210px;
    }
    .h5-showcase-grid {
        height: 180px;
    }
    .h5-search-wrap {
        display: none;
    }
}
