/* ==========================================================================
   KEYBLOX - PERFECT MOBILE & DESKTOP ROBLOX OFFICIAL THEME (2026)
   Hand-crafted, Clean, Flat, 100% Touch-Optimized & Responsive
   ========================================================================== */

:root {
    /* Roblox Official Palette */
    --rbx-bg-page: #111216;
    --rbx-bg-header: #191b1d;
    --rbx-bg-card: #232529;
    --rbx-bg-card-hover: #2b2e33;
    --rbx-bg-card-active: #32353b;
    --rbx-bg-input: #111216;
    
    /* Roblox Borders */
    --rbx-border: #33363c;
    --rbx-border-subtle: #282a2e;
    --rbx-border-light: #42464e;
    
    /* Typography Colors */
    --rbx-text-main: #ffffff;
    --rbx-text-sub: #b8b8b8;
    --rbx-text-muted: #757b85;
    
    /* Roblox Brand Accents */
    --rbx-green: #00b06f;
    --rbx-green-hover: #00c77e;
    --rbx-green-active: #009960;
    --rbx-blue: #00a2ff;
    --rbx-blue-hover: #1ab0ff;
    --rbx-gold: #f59e0b;
    
    /* Radii */
    --rbx-radius-sm: 6px;
    --rbx-radius-md: 10px;
    --rbx-radius-lg: 14px;
    
    /* Font */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, monospace;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--rbx-bg-page);
    color: var(--rbx-text-main);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--rbx-bg-page);
    color: var(--rbx-text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

input {
    font-family: inherit;
    outline: none;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   GLOBAL BRAND LOGO (Strict Size Protection)
   ========================================================================== */
.brand-logo-img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    border-radius: 6px;
}

/* ==========================================================================
   1. STICKY TOPBAR HEADER
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--rbx-bg-header);
    border-bottom: 1px solid var(--rbx-border-subtle);
    height: 56px;
    display: flex;
    align-items: center;
}

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

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.brand-name {
    font-size: 1.18rem;
    font-weight: 900;
    letter-spacing: -0.3px;
    color: var(--rbx-text-main);
}

.brand-name .highlight {
    color: #ffffff;
}

.rbx-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item {
    padding: 6px 12px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--rbx-text-sub);
    border-radius: var(--rbx-radius-sm);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item:hover {
    color: var(--rbx-text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: var(--rbx-text-main);
    background-color: var(--rbx-bg-card);
    border: 1px solid var(--rbx-border);
}

/* Search Bar in Header */
.header-search {
    flex: 1;
    max-width: 440px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-ico {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rbx-text-muted);
    font-size: 0.88rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 36px;
    padding: 0 34px 0 34px;
    background-color: var(--rbx-bg-input);
    border: 1px solid var(--rbx-border);
    border-radius: var(--rbx-radius-sm);
    color: var(--rbx-text-main);
    font-size: 0.88rem;
    transition: border-color 0.15s ease;
}

.search-input:focus {
    border-color: var(--rbx-green);
    background-color: #0d0e11;
}

.search-input::placeholder {
    color: var(--rbx-text-muted);
}

.clear-search {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rbx-text-muted);
    cursor: pointer;
    display: none;
    font-size: 0.88rem;
}

.clear-search.active {
    display: block;
}

/* Status Pill */
.header-right {
    display: flex;
    align-items: center;
}

.rbx-status-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--rbx-bg-card);
    border: 1px solid var(--rbx-border);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--rbx-text-sub);
    white-space: nowrap;
}

.status-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--rbx-green);
}

/* Main Container */
.main-content {
    flex: 1;
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 20px 20px 40px;
}

.view-section {
    width: 100%;
}

/* ==========================================================================
   2. ROBLOX DISCOVER HERO (Clean & Proportional)
   ========================================================================== */
.discover-hero {
    background: #191b1d;
    border: 1px solid var(--rbx-border-subtle);
    border-radius: var(--rbx-radius-md);
    padding: 22px 26px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.discover-hero-content {
    max-width: 680px;
}

.rbx-subheading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--rbx-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.discover-title {
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -0.4px;
    color: var(--rbx-text-main);
    margin-bottom: 4px;
    line-height: 1.25;
}

.discover-desc {
    font-size: 0.9rem;
    color: var(--rbx-text-sub);
    line-height: 1.45;
}

.rbx-stats-bar {
    display: flex;
    align-items: center;
    background: var(--rbx-bg-card);
    border: 1px solid var(--rbx-border);
    border-radius: var(--rbx-radius-sm);
    padding: 10px 18px;
    gap: 16px;
    flex-shrink: 0;
}

.rbx-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--rbx-text-main);
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--rbx-text-muted);
    text-transform: uppercase;
}

.rbx-stat-divider {
    width: 1px;
    height: 24px;
    background-color: var(--rbx-border);
}

/* Category Filter Row */
.rbx-filters-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 14px;
}

.rbx-pills-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.rbx-pills-wrap::-webkit-scrollbar {
    display: none;
}

.rbx-filter-pill {
    padding: 6px 14px;
    border-radius: 16px;
    background: var(--rbx-bg-card);
    border: 1px solid var(--rbx-border);
    color: var(--rbx-text-sub);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.rbx-filter-pill:hover {
    color: var(--rbx-text-main);
    background: var(--rbx-bg-card-hover);
}

.rbx-filter-pill.active {
    background: #ffffff;
    color: #111216;
    border-color: #ffffff;
}

.results-counter {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--rbx-text-muted);
    white-space: nowrap;
}

/* ==========================================================================
   3. ROBLOX GAME CARDS GRID
   ========================================================================== */
.rbx-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Exactly 4 cards on Desktop (PC) */
    gap: 20px;
    margin-bottom: 30px;
}

.rbx-game-card {
    background-color: var(--rbx-bg-card);
    border: 1px solid var(--rbx-border);
    border-radius: var(--rbx-radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
    display: flex;
    flex-direction: column;
}

.rbx-game-card:hover {
    transform: translateY(-3px);
    background-color: var(--rbx-bg-card-hover);
    border-color: var(--rbx-border-light);
}

.rbx-card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #16181b;
    overflow: hidden;
}

.rbx-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rbx-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(17, 18, 22, 0.85);
    backdrop-filter: blur(4px);
    color: var(--rbx-green);
    border: 1px solid rgba(0, 176, 111, 0.35);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.rbx-card-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rbx-card-title {
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--rbx-text-main);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rbx-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    font-size: 0.78rem;
    font-weight: 700;
}

.rbx-meta-rating {
    color: var(--rbx-green);
    display: flex;
    align-items: center;
    gap: 4px;
}

.rbx-meta-playing {
    color: var(--rbx-text-sub);
    display: flex;
    align-items: center;
    gap: 4px;
}

.rbx-card-dev {
    font-size: 0.74rem;
    color: var(--rbx-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Empty State */
.no-results-box {
    text-align: center;
    padding: 50px 20px;
    background: var(--rbx-bg-card);
    border: 1px solid var(--rbx-border);
    border-radius: var(--rbx-radius-md);
}

.no-results-ico {
    font-size: 2.5rem;
    color: var(--rbx-text-muted);
    margin-bottom: 12px;
}

.no-results-box h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.no-results-box p {
    color: var(--rbx-text-sub);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.btn-reset {
    padding: 8px 18px;
    background: var(--rbx-green);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: var(--rbx-radius-sm);
}

.btn-reset:hover {
    background: var(--rbx-green-hover);
}

/* ==========================================================================
   4. ROBLOX EXPERIENCE VIEW
   ========================================================================== */
.details-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--rbx-bg-card);
    border: 1px solid var(--rbx-border);
    color: var(--rbx-text-main);
    padding: 7px 14px;
    border-radius: var(--rbx-radius-sm);
    font-size: 0.86rem;
    font-weight: 700;
    transition: all 0.15s ease;
}

.btn-back:hover {
    background: var(--rbx-bg-card-hover);
}

.breadcrumb {
    font-size: 0.84rem;
    color: var(--rbx-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb strong {
    color: var(--rbx-text-main);
}

/* Experience Header */
.rbx-experience-header {
    background-color: var(--rbx-bg-card);
    border: 1px solid var(--rbx-border);
    border-radius: var(--rbx-radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.rbx-exp-logo-wrap {
    width: 86px;
    height: 86px;
    border-radius: var(--rbx-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--rbx-border);
    background: #111216;
}

.rbx-exp-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rbx-exp-info {
    flex: 1;
    min-width: 0;
}

.rbx-exp-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.rbx-exp-title {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--rbx-text-main);
    letter-spacing: -0.4px;
}

.rbx-verified-badge {
    color: var(--rbx-blue);
    font-size: 1.1rem;
}

.rbx-exp-developer {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--rbx-text-muted);
    margin-bottom: 6px;
}

.rbx-exp-desc {
    font-size: 0.88rem;
    color: var(--rbx-text-sub);
    line-height: 1.45;
    margin-bottom: 10px;
    max-width: 800px;
}

.rbx-exp-stats-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rbx-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(17, 18, 22, 0.7);
    border: 1px solid var(--rbx-border);
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--rbx-text-sub);
}

.rbx-stat-chip span {
    color: var(--rbx-text-main);
    font-weight: 800;
}

/* ==========================================================================
   5. ROBLOX TABS SWITCHER
   ========================================================================== */
.rbx-tabs-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
    border-bottom: 1px solid var(--rbx-border);
    padding-bottom: 10px;
}

.content-tabs-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--rbx-radius-sm);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--rbx-text-muted);
    transition: all 0.15s ease;
    user-select: none;
}

.tab-nav-btn:hover {
    color: var(--rbx-text-main);
    background: rgba(255, 255, 255, 0.05);
}

.tab-nav-btn.active {
    background: var(--rbx-bg-card);
    border-color: var(--rbx-border);
    color: var(--rbx-text-main);
}

.tab-badge {
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.1);
    color: var(--rbx-text-sub);
}

.tab-nav-btn.active .tab-badge {
    background: var(--rbx-green);
    color: #ffffff;
}

.tab-nav-btn[data-tab="scripts"].active .tab-badge {
    background: var(--rbx-blue);
    color: #ffffff;
}

.feed-codes-counter {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--rbx-text-muted);
}

/* ==========================================================================
   6. FEED CARDS (Clean Mobile & Desktop Layout)
   ========================================================================== */
.coupons-feed-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Code Item */
.rbx-code-item {
    background-color: var(--rbx-bg-card);
    border: 1px solid var(--rbx-border);
    border-radius: var(--rbx-radius-md);
    padding: 14px 18px;
    transition: background-color 0.15s ease;
}

.rbx-code-item:hover {
    background-color: var(--rbx-bg-card-hover);
}

.rbx-card-content-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rbx-code-title-row {
    width: 100%;
}

.rbx-item-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.35;
}

.rbx-code-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.rbx-token-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rbx-pill-code {
    background: rgba(0, 176, 111, 0.15);
    color: var(--rbx-green);
    border: 1px solid rgba(0, 176, 111, 0.35);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.rbx-masked-token {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    background: #111216;
    border: 1px solid var(--rbx-border);
    padding: 3px 10px;
    border-radius: 5px;
    letter-spacing: 1.5px;
    cursor: pointer;
}

.rbx-btn-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: var(--rbx-green);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 8px 20px;
    border-radius: 6px;
    transition: background-color 0.15s ease, transform 0.1s ease;
    flex-shrink: 0;
}

.rbx-btn-green:hover {
    background-color: var(--rbx-green-hover);
}

.rbx-btn-green:active {
    background-color: var(--rbx-green-active);
    transform: scale(0.98);
}

.rbx-btn-green.copied-success {
    background-color: #059669 !important;
}

/* Script Card */
.rbx-script-item {
    border-left: 3px solid var(--rbx-blue);
}

.rbx-script-content-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rbx-script-title {
    color: #ffffff !important;
}

.rbx-script-tags-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.rbx-tag-antiban, .rbx-tag-nokey, .rbx-tag-platform {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rbx-tag-antiban {
    background: rgba(0, 176, 111, 0.12);
    color: var(--rbx-green);
    border: 1px solid rgba(0, 176, 111, 0.25);
}

.rbx-tag-nokey {
    background: rgba(245, 158, 11, 0.12);
    color: var(--rbx-gold);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.rbx-tag-platform {
    background: rgba(255, 255, 255, 0.06);
    color: var(--rbx-text-sub);
    border: 1px solid var(--rbx-border);
}

.rbx-btn-blue {
    width: 100%;
    height: 40px;
    background-color: var(--rbx-blue);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background-color 0.15s ease;
}

.rbx-btn-blue:hover {
    background-color: var(--rbx-blue-hover);
}

/* Empty Box */
.rbx-empty-box {
    text-align: center;
    padding: 40px 20px;
    background: var(--rbx-bg-card);
    border: 1px dashed var(--rbx-border);
    border-radius: var(--rbx-radius-sm);
}

.rbx-empty-box i {
    font-size: 2rem;
    color: var(--rbx-text-muted);
    margin-bottom: 8px;
}

.rbx-empty-box h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--rbx-text-main);
}

.rbx-empty-box p {
    font-size: 0.85rem;
    color: var(--rbx-text-sub);
}

/* ==========================================================================
   7. ROBLOX MODAL (VERIFICATION & REVEAL)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
}

.modal-window {
    background: var(--rbx-bg-card);
    border: 1px solid var(--rbx-border-light);
    border-radius: var(--rbx-radius-md);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.modal-window-header {
    background: var(--rbx-bg-header);
    border-bottom: 1px solid var(--rbx-border);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header-game {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-brand-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--rbx-green);
    text-transform: uppercase;
    display: block;
}

.modal-title-text {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.modal-btn-close {
    background: transparent;
    color: var(--rbx-text-muted);
    font-size: 1.15rem;
    padding: 4px;
    cursor: pointer;
}

.modal-btn-close:hover {
    color: var(--rbx-text-main);
}

.modal-window-body {
    padding: 20px 18px;
}

.rblx-input-label {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--rbx-text-main);
    margin-bottom: 8px;
}

.rblx-input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 8px;
}

.rblx-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rbx-text-muted);
    font-size: 0.95rem;
}

.rblx-input-field {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 42px;
    background: var(--rbx-bg-input);
    border: 1px solid var(--rbx-border);
    border-radius: var(--rbx-radius-sm);
    color: var(--rbx-text-main);
    font-size: 0.92rem;
}

.rblx-input-field:focus {
    border-color: var(--rbx-green);
}

.rblx-help-text {
    font-size: 0.78rem;
    color: var(--rbx-text-muted);
    margin-top: 6px;
    margin-bottom: 18px;
}

/* Modal Submit Button */
.btn-modal-action {
    width: 100%;
    height: 44px;
    background: var(--rbx-green);
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 800;
    border-radius: var(--rbx-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-modal-action:hover {
    background-color: var(--rbx-green-hover);
}

.btn-modal-action:active {
    transform: scale(0.98);
}

/* Spinner */
.rblx-loading-box {
    text-align: center;
    padding: 20px 0;
}

.rblx-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 176, 111, 0.2);
    border-top-color: var(--rbx-green);
    border-radius: 50%;
    animation: rbxSpin 0.8s linear infinite;
    margin: 0 auto 10px;
}

@keyframes rbxSpin {
    to { transform: rotate(360deg); }
}

.rblx-loading-txt {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--rbx-text-main);
}

/* Script Reveal Box in Record Modal */
.script-reveal-box {
    background: #0d1117;
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 6px;
    padding: 12px;
    margin-top: 14px;
    text-align: left;
}

.reveal-badge {
    font-size: 0.72rem;
    color: #8b949e;
    margin-bottom: 6px;
    text-transform: uppercase;
    font-weight: 700;
}

.reveal-code-text {
    font-family: var(--font-mono);
    color: #00ff00;
    font-size: 0.82rem;
    word-break: break-all;
    user-select: all;
}

/* Toast */
.notification-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--rbx-bg-card);
    border: 1px solid var(--rbx-green);
    border-radius: var(--rbx-radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.25s ease;
}

.notification-toast.active {
    transform: translateY(0);
    opacity: 1;
}

.notification-toast i {
    color: var(--rbx-green);
    font-size: 1.2rem;
}

.toast-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--rbx-text-main);
}

.toast-desc {
    display: block;
    font-size: 0.78rem;
    color: var(--rbx-text-sub);
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--rbx-bg-header);
    border-top: 1px solid var(--rbx-border-subtle);
    padding: 24px 20px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-brand .brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand .brand-name {
    font-size: 1.1rem;
}

.footer-desc {
    font-size: 0.8rem;
    color: var(--rbx-text-muted);
    max-width: 440px;
}

.footer-links-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--rbx-radius-sm);
    background: var(--rbx-bg-card);
    border: 1px solid var(--rbx-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rbx-text-sub);
    font-size: 0.85rem;
    transition: all 0.15s ease;
}

.social-btn:hover {
    color: var(--rbx-text-main);
    background: var(--rbx-bg-card-hover);
}

.copyright-txt {
    font-size: 0.74rem;
    color: var(--rbx-text-muted);
}

/* ==========================================================================
   9. PERFECT ALL-SCREEN RESPONSIVENESS
   ========================================================================== */

/* Tablets (1024px and below) */
@media (max-width: 1024px) {
    .discover-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    .rbx-stats-bar {
        width: 100%;
        justify-content: space-around;
    }
    .rbx-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 14px;
    }
}

/* Mobile Screens (768px and below) */
@media (max-width: 768px) {
    .site-header {
        height: auto;
        padding: 10px 0;
    }
    .header-container {
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 16px;
    }
    .rbx-nav-links {
        display: none;
    }
    .header-search {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    .main-content {
        padding: 12px 14px 30px;
    }

    /* COMPACT HERO ON MOBILE (NO GIANT WASTED SPACE) */
    .discover-hero {
        padding: 10px 4px 12px;
        margin-bottom: 10px;
        background: transparent;
        border: none;
    }
    .rbx-subheading {
        font-size: 0.72rem;
        margin-bottom: 2px;
    }
    .discover-title {
        font-size: 1.25rem;
        margin-bottom: 0;
        line-height: 1.2;
    }
    .discover-desc {
        display: none; /* Hide long paragraph on mobile */
    }
    .rbx-stats-bar {
        display: none; /* Hide 3 big stat boxes on mobile so cards are immediately visible! */
    }

    /* FILTER PILLS SCROLLABLE ON MOBILE */
    .rbx-filters-row {
        margin-bottom: 12px;
        gap: 0;
    }
    .rbx-pills-wrap {
        width: 100%;
        gap: 6px;
        padding-bottom: 2px;
    }
    .rbx-filter-pill {
        padding: 5px 12px;
        font-size: 0.78rem;
    }
    .results-counter {
        display: none; /* Save space on mobile */
    }

    /* EXACT 2-COLUMNS ON MOBILE (ROBLOX APP LAYOUT) */
    .rbx-game-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .rbx-card-body {
        padding: 8px 10px 10px;
    }
    .rbx-card-title {
        font-size: 0.88rem;
    }
    .rbx-card-meta {
        font-size: 0.74rem;
        gap: 6px;
    }

    /* DETAILS TOP BAR ON MOBILE */
    .details-top-bar {
        margin-bottom: 10px;
        gap: 8px;
    }
    .btn-back {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .breadcrumb {
        font-size: 0.78rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* EXPERIENCE HEADER ON MOBILE (COMPACT HORIZONTAL ROBLOX APP STYLE) */
    .rbx-experience-header {
        padding: 12px 14px;
        margin-bottom: 12px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        background-color: var(--rbx-bg-card);
        border: 1px solid var(--rbx-border);
        border-radius: var(--rbx-radius-md);
    }
    .rbx-exp-logo-wrap {
        width: 56px;
        height: 56px;
        border-radius: 8px;
        flex-shrink: 0;
    }
    .rbx-exp-info {
        flex: 1;
        min-width: 0;
    }
    .rbx-exp-title-row {
        gap: 6px;
        margin-bottom: 2px;
    }
    .rbx-exp-title {
        font-size: 1.15rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .rbx-verified-badge {
        font-size: 0.95rem;
    }
    .rbx-exp-developer {
        font-size: 0.76rem;
        margin-bottom: 4px;
    }
    .rbx-exp-desc {
        display: none; /* Hide long description on mobile so promo codes are visible immediately */
    }
    .rbx-exp-stats-row {
        gap: 5px;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .rbx-exp-stats-row::-webkit-scrollbar {
        display: none;
    }
    .rbx-stat-chip {
        font-size: 0.7rem;
        padding: 2px 7px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* FULL WIDTH SEGMENTED TABS ON MOBILE */
    .rbx-tabs-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    .content-tabs-nav {
        display: flex;
        width: 100%;
        background: #181a1d;
        padding: 3px;
        border-radius: 8px;
        border: 1px solid var(--rbx-border);
    }
    .tab-nav-btn {
        flex: 1;
        justify-content: center;
        padding: 7px 10px;
        font-size: 0.84rem;
        border-radius: 6px;
    }
    .tab-nav-btn.active {
        background: #282b30;
    }
    .tab-badge {
        font-size: 0.68rem;
        padding: 1px 5px;
    }
    .feed-codes-counter {
        font-size: 0.76rem;
    }

    /* CODE CARD ON MOBILE */
    .rbx-code-item {
        padding: 12px 14px;
        border-radius: 8px;
    }
    .rbx-item-title {
        font-size: 0.88rem;
        line-height: 1.3;
    }
    .rbx-code-bottom-bar {
        gap: 8px;
    }
    .rbx-token-container {
        gap: 6px;
    }
    .rbx-pill-code {
        font-size: 0.68rem;
        padding: 2px 6px;
    }
    .rbx-masked-token {
        font-size: 0.86rem;
        padding: 3px 8px;
        letter-spacing: 1px;
    }
    .rbx-btn-green {
        padding: 6px 14px;
        font-size: 0.82rem;
        height: 34px;
    }

    /* SCRIPT CARD ON MOBILE */
    .rbx-script-item {
        padding: 12px 14px;
        border-radius: 8px;
    }
    .rbx-script-title {
        font-size: 0.88rem;
    }
    .rbx-script-tags-row {
        gap: 5px;
    }
    .rbx-tag-antiban, .rbx-tag-nokey, .rbx-tag-platform {
        font-size: 0.68rem;
        padding: 2px 6px;
    }
    .rbx-btn-blue {
        height: 38px;
        font-size: 0.86rem;
        border-radius: 6px;
    }

    /* MODAL ON MOBILE */
    .modal-overlay {
        padding: 12px;
    }
    .modal-window {
        max-width: 100%;
        border-radius: 12px;
    }
    .modal-window-header {
        padding: 12px 16px;
    }
    .modal-window-body {
        padding: 16px;
    }
    .rblx-input-label {
        font-size: 0.84rem;
    }
    .rblx-input-field {
        height: 42px;
        font-size: 0.88rem;
    }
    .btn-modal-action {
        height: 42px;
        font-size: 0.9rem;
    }

    /* FOOTER ON MOBILE */
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-links-wrap {
        align-items: center;
    }
}

/* Small Mobile (420px and below) */
@media (max-width: 420px) {
    .rbx-game-grid {
        gap: 8px !important;
    }
    .rbx-card-badge {
        font-size: 0.62rem;
        padding: 1px 5px;
    }
    .rbx-card-title {
        font-size: 0.82rem;
    }
}

/* ==========================================================================
   10. ADSTERRA AD SLOTS & LAYOUT EXTENSIONS
   ========================================================================== */
.ad-slot-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 16px auto;
    text-align: center;
    clear: both;
}

/* Grid specific desktop square ad cards: perfectly fills column 4 of each row on PC */
.rbx-game-grid > .ad-slot-wrapper.desktop-ad {
    margin: 0 !important;
    height: 100%;
    min-height: 320px;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.ad-card-item {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--rbx-bg-card);
    border: 1px solid var(--rbx-border);
    border-radius: var(--rbx-radius-md);
    padding: 10px;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ad-card-item iframe {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    border-radius: var(--rbx-radius-sm);
}

.mobile-grid-banner {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--rbx-bg-card);
    border: 1px solid var(--rbx-border);
    border-radius: var(--rbx-radius-md);
    padding: 10px;
    margin: 10px 0;
}

@media (min-width: 769px) {
    .mobile-ad { display: none !important; }
}

@media (max-width: 768px) {
    .desktop-ad { display: none !important; }
}

