/* ── Mobile-Only Index Page Styles ── */

.section {
    padding: 14px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1.5px solid var(--border-color);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0;
}

.section-title::before {
    content: '';
    display: block;
    width: 3px;
    height: 14px;
    background: var(--color-primary);
    border-radius: 2px;
}

.view-all {
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
}

/* ── 1. Flash Deals & Countdown Row ── */
.deals-countdown-section {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 10px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-xs);
}

.deals-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}

.deals-title-box {
    display: flex;
    align-items: center;
    gap: 6px;
}

.deals-icon {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    background: #fee2e2;
    color: var(--color-accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.deals-title-text h3 {
    font-size: 12px;
    font-weight: 800;
    margin: 0;
    color: var(--text-heading);
}

.deals-countdown-clock {
    display: flex;
    align-items: center;
    gap: 3px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-secondary);
    color: #ffffff;
    border-radius: 3px;
    min-width: 28px;
    padding: 2px 3px;
    text-align: center;
}

.countdown-num {
    font-size: 12px;
    font-weight: 800;
    font-family: monospace;
    color: #facc15;
    line-height: 1;
}

.countdown-lbl {
    font-size: 7px;
    text-transform: uppercase;
    color: #94a3b8;
}

.countdown-sep {
    font-size: 12px;
    font-weight: 800;
    color: var(--color-secondary);
}

/* 2-Column Mobile Grid for Flash Deals */
.deals-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.deal-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 4px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.deal-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--color-accent-red);
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 2px;
}

.deal-badge.bonus {
    background: var(--color-primary);
}

.deal-card-icon {
    font-size: 22px;
    margin: 6px auto 2px;
}

.deal-name {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.deal-rtp {
    font-size: 9px;
    font-weight: 700;
    color: var(--color-accent-green);
    background: #ecfdf5;
    padding: 1px 4px;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 6px;
}

.deal-btn {
    background: var(--color-primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 6px;
    border-radius: 3px;
    display: block;
}

/* ── 2. Category Showcases (2-Column Mobile Grid) ── */
.showcase-block {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: var(--shadow-xs);
}

.showcase-header {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.showcase-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 6px;
}

.showcase-body-layout {
    display: flex;
    flex-direction: column;
}

.showcase-left-banner {
    background: linear-gradient(135deg, #0d213a 0%, #1e3a5f 100%);
    padding: 12px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.showcase-left-banner.casino-theme {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

.showcase-left-tag {
    font-size: 9px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    color: #ffaa00;
    display: inline-block;
    margin-bottom: 3px;
}

.showcase-left-banner h4 {
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 2px;
}

.showcase-left-banner p {
    display: none;
}

.btn-showcase-left {
    background: var(--color-primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

/* 2-Column Mobile Items Grid */
.showcase-grid-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.showcase-item {
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    min-width: 0;
}

.showcase-item:nth-child(2n) {
    border-right: none;
}

.showcase-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.showcase-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.showcase-item-provider {
    font-size: 9px;
    font-weight: 700;
    color: var(--color-primary);
}

.showcase-item-rtp {
    font-size: 9px;
    font-weight: 700;
    color: var(--color-accent-green);
    background: #dcfce7;
    padding: 1px 4px;
    border-radius: 2px;
}

.showcase-item-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 6px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.showcase-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.showcase-item-status {
    font-size: 9px;
    color: var(--text-muted);
}

.showcase-item-play {
    font-size: 10px;
    font-weight: 800;
    color: var(--color-primary);
}

/* ── 3. Formulir Pendaftaran & Klaim Bonus (Mobile RFQ) ── */
.rfq-casino-section {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: var(--shadow-xs);
}

.rfq-grid-layout {
    display: flex;
    flex-direction: column;
}

.rfq-left-banner {
    background: linear-gradient(135deg, #091728 0%, #17365d 100%);
    padding: 14px 12px;
    color: #ffffff;
}

.rfq-tag {
    font-size: 9px;
    font-weight: 800;
    color: #facc15;
    text-transform: uppercase;
}

.rfq-left-banner h3 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    margin: 4px 0;
}

.rfq-left-banner p {
    color: #cbd5e1;
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.rfq-perks-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rfq-perk {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #e2e8f0;
}

.rfq-perk i {
    color: var(--color-accent-green);
    font-size: 11px;
}

.rfq-right-form {
    padding: 14px 12px;
    background: #f8fafc;
}

.rfq-form-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.rfq-form-group {
    margin-bottom: 8px;
}

.rfq-form-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.rfq-input,
.rfq-select {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-family: inherit;
    background: #ffffff;
    outline: none;
}

.rfq-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff6a00 100%);
    color: #ffffff;
    border: none;
    padding: 9px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}

/* ── 4. Rekomendasi Game (2-Column Mobile Grid for CMS: 循环栏目) ── */
.vertical-games {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.game-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.game-card-image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #e2e8f0;
    overflow: hidden;
}

.game-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card-top {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-card-domain {
    background: rgba(13, 33, 58, 0.85);
    color: #ffffff;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 2px;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-badge {
    background: var(--color-primary);
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
    padding: 2px 4px;
    border-radius: 2px;
}

.game-card-body {
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.game-card-info {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.game-card-actions {
    display: flex;
    gap: 4px;
}

.btn-card {
    flex: 1;
    text-align: center;
    padding: 5px 2px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
}

.btn-card.visite {
    background: #f1f5f9;
    color: var(--color-secondary);
    border: 1px solid var(--border-color);
}

.btn-card.contato {
    background: var(--color-primary);
    color: #ffffff;
}

/* ── 5. Real-Time Wins Ticker (Mobile) ── */
.wins-section {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-xs);
}

.wins-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

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

.live-badge {
    background: #fee2e2;
    color: var(--color-accent-red);
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-full);
}

.live-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--color-accent-red);
    border-radius: 50%;
    margin-right: 3px;
}

.wins-header-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-heading);
}

.wins-counter {
    font-size: 10px;
    color: var(--text-muted);
}

.wins-ticker-wrap {
    overflow: hidden;
}

.wins-ticker {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 0;
}

.wins-ticker::-webkit-scrollbar {
    display: none;
}

.win-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.win-card-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 10px;
}

.win-card-body {
    display: flex;
    flex-direction: column;
}

.win-card-name {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-heading);
}

.win-card-game {
    font-size: 8px;
    color: var(--text-muted);
}

.win-card-amount {
    font-size: 10px;
    font-weight: 800;
    color: var(--color-accent-green);
}

.win-card-amount--big {
    color: #b45309;
}

.win-card-amount--mega {
    color: var(--color-accent-red);
}

/* ── 6. Links Box (Mobile List for CMS: 循环图片 row=12) ── */
.links-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
    margin-bottom: 14px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    background: #f8fafc;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.link-row:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.link-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.tag-new {
    background: #fee2e2;
    color: var(--color-accent-red);
    font-size: 8px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── 7. Tournament & Leaderboard (Mobile Stack) ── */
.tournament-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.tournament-info {
    padding: 14px 12px;
    background: linear-gradient(135deg, #0d213a 0%, #173256 100%);
    color: #ffffff;
}

.tournament-tag {
    background: var(--color-primary);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 6px;
}

.tournament-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
}

.tournament-desc {
    color: #cbd5e1;
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.tournament-prize {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    padding: 8px 10px;
    margin-bottom: 10px;
}

.prize-label {
    display: block;
    font-size: 9px;
    color: #94a3b8;
    font-weight: 700;
}

.prize-amount {
    font-size: 18px;
    font-weight: 900;
    color: #facc15;
}

.btn-tournament {
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff6a00 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    display: inline-block;
}

.tournament-leaderboard {
    padding: 12px;
    background: #f8fafc;
}

.lb-title {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-heading);
}

.lb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    border-radius: 3px;
    margin-bottom: 4px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    font-size: 11px;
}

.lb-row--gold {
    background: #fefce8;
    border-color: #fef08a;
    font-weight: 700;
}

.lb-name {
    flex: 1;
    margin-left: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-score {
    font-weight: 800;
    color: var(--color-primary);
    font-size: 10px;
}

/* ── 8. Testimonials (Mobile Stack) ── */
.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 12px;
    margin-bottom: 6px;
}

.testimonial-text {
    font-size: 11px;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 8px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.testimonial-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 800;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-author strong {
    font-size: 11px;
    color: var(--text-heading);
    display: block;
}

.testimonial-author span {
    font-size: 9px;
    color: var(--text-muted);
}

/* ── 9. Berita Terkini (CMS Loop: 循环图片 row=9) ── */
.latest-news {
    margin-bottom: 14px;
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    gap: 10px;
    padding: 8px;
}

.news-card img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.news-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.news-content h3 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.news-content h3 a {
    color: var(--text-heading);
}

.news-content p {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── 10. Bonus & Promosi Grid ── */
.promos-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.promo-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.promo-badge {
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: 4px;
}

.promo-card--green .promo-badge {
    background: #ecfdf5;
    color: var(--color-accent-green);
}

.promo-card--purple .promo-badge {
    background: #f5f3ff;
    color: var(--color-accent-purple);
}

.promo-amount {
    font-size: 20px;
    font-weight: 900;
    color: var(--color-secondary);
    line-height: 1;
    margin-bottom: 2px;
}

.promo-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-heading);
}

.promo-sub {
    font-size: 10px;
    color: var(--text-muted);
}

.promo-cta {
    background: var(--color-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── 11. Footer Promo Strip ── */
.footer-promo {
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff7700 100%);
    color: #ffffff;
    text-align: center;
    padding: 16px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.footer-promo h3 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
}

.footer-promo p {
    color: #ffe6db;
    font-size: 11px;
}
