/* ==========================================================================
   Index CSS - Mobile-First Emerald & Tangerine Online Casino Theme
   ========================================================================== */

/* ── Hero Section (Emerald Green Banner tailored for Mobile View) ── */
.hero {
    position: relative;
    background: linear-gradient(145deg, #0ea876 0%, #00875a 50%, #00603f 100%);
    border-radius: var(--radius-xl);
    padding: 24px 18px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-shadow: 0 12px 30px -6px rgba(0, 135, 90, 0.35);
    overflow: hidden;
    margin-bottom: 20px;
}

/* Organic geometric shapes in hero */
.hero::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    top: -80px;
    right: -60px;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.3) 0%, transparent 70%);
    bottom: -40px;
    left: -30px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.hero-title span {
    color: #ffd875;
}

.hero-subtitle {
    font-size: 13.5px;
    font-weight: 600;
    color: #d1fae5;
    margin-bottom: 10px;
}

.hero-desc {
    font-size: 12.5px;
    line-height: 1.65;
    color: #f0fdf4;
    margin-bottom: 18px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.hero-actions .btn-register {
    width: 100%;
    padding: 13px 20px;
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(255, 122, 0, 0.4);
}

.hero-actions .btn-login {
    width: 100%;
    padding: 11px 20px;
    font-size: 13.5px;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.12);
}

/* Hero Feature Pills Row */
.hero-features {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-feature-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #e6f7f0;
    background: rgba(255, 255, 255, 0.12);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.hero-feature-item .check-icon {
    color: #ffd875;
    font-weight: 800;
    font-size: 11px;
}

/* ── Hero Layered Card Composition (Mobile Presentation) ── */
.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    margin-top: 4px;
}

.hero-shape-bg {
    position: absolute;
    width: 95%;
    height: 100%;
    background: linear-gradient(145deg, #ff8c00 0%, #ff5e00 100%);
    border-radius: var(--radius-lg);
    transform: rotate(2deg);
    box-shadow: 0 10px 25px rgba(255, 94, 0, 0.3);
    z-index: 1;
}

.hero-main-card {
    position: relative;
    z-index: 2;
    background: #ffffff;
    color: var(--text-main);
    padding: 20px 18px;
    border-radius: var(--radius-lg);
    width: 100%;
    box-shadow: 0 14px 30px rgba(0, 45, 30, 0.2);
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

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

.hero-card-brand img {
    height: 26px;
}

.hero-card-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
}

.hero-card-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    display: inline-block;
}

.hero-promo-badge {
    align-self: center;
    background: var(--secondary-light);
    color: var(--secondary);
    border: 1px solid #ffd8b3;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
}

.hero-card-amount {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-card-amount .label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.hero-card-amount .value {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.15;
}

.hero-card-amount .perk {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--secondary);
}

.hero-card-btn {
    width: 100%;
    padding: 10px;
    font-size: 13px;
}

/* Floating Badges for Mobile */
.hero-floating-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
    margin-bottom: 8px;
    width: 100%;
}

.hero-floating-top .icon {
    font-size: 18px;
}

.hero-floating-top .info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
}

.hero-floating-top .info span:first-child {
    color: var(--text-muted);
}

.hero-floating-top .info span:last-child {
    color: var(--secondary);
}

.hero-floating-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
}

.hero-floating-bottom .stars {
    color: #ffd875;
}

/* ── Steps Section (3 Langkah Mudah) ── */
.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.step-card {
    background: #ffffff;
    padding: 18px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.step-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
}

.step-card:nth-child(2) .step-badge {
    background: var(--secondary-light);
    color: var(--secondary);
}

.step-card:nth-child(3) .step-badge {
    background: var(--accent-gold-light);
    color: var(--accent-gold);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 12.5px;
    line-height: 1.55;
    margin-bottom: 0;
}

/* ── Categories Grid (2 Columns on Mobile) ── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.category-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-img-wrap {
    width: 100%;
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
    background: #eef5f2;
}

.category-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card h3 {
    font-size: 15px;
    margin: 0;
    line-height: 1.2;
}

.category-card p {
    font-size: 11.5px;
    color: var(--text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
    padding-top: 4px;
    border-top: 1px solid var(--border-color);
}

/* ── Bonuses & Promotions (Mobile Cards) ── */
.bonus-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
}

.bonus-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.bonus-card--featured {
    border: 2px solid var(--secondary);
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.15);
}

.bonus-badge {
    position: absolute;
    top: -11px;
    left: 18px;
    background: linear-gradient(135deg, #ff8c00, #ff5e00);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
}

.bonus-top-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bonus-icon {
    font-size: 28px;
    line-height: 1;
}

.bonus-card h3 {
    font-size: 16.5px;
    margin: 0;
}

.bonus-amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.bonus-card--featured .bonus-amount {
    color: var(--secondary);
}

.bonus-card p {
    font-size: 12.5px;
    margin: 0;
}

.bonus-card .btn {
    width: 100%;
    padding: 9px 16px;
    font-size: 13px;
    margin-top: 4px;
}

/* ── Why Choose Us ── */
.features-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.feature-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 14px;
    display: flex;
    gap: 14px;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.feature-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-item:nth-child(2) .feature-icon-wrapper { background: var(--secondary-light); color: var(--secondary); }
.feature-item:nth-child(3) .feature-icon-wrapper { background: #eff6ff; color: #3b82f6; }
.feature-item:nth-child(4) .feature-icon-wrapper { background: #fdf2f8; color: #ec4899; }
.feature-item:nth-child(5) .feature-icon-wrapper { background: #f5f3ff; color: #8b5cf6; }
.feature-item:nth-child(6) .feature-icon-wrapper { background: var(--accent-gold-light); color: var(--accent-gold); }

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 15px;
    margin-bottom: 2px;
}

.feature-text p {
    font-size: 12px;
    margin: 0;
    line-height: 1.5;
}

/* ── Live Stats Bar (2x2 Grid) ── */
.stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 12px;
    box-shadow: var(--shadow-sm);
    margin: 24px 0;
}

.stat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
    padding: 6px;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.15;
}

.stat-block:nth-child(2) .stat-number {
    color: var(--secondary);
}

.stat-desc {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

/* ── Testimonials ── */
.testimonial-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

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

.testimonial-stars {
    color: #ff9900;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.testimonial-card h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.testimonial-card p {
    font-size: 12.5px;
    line-height: 1.6;
    margin-bottom: 12px;
    font-style: italic;
}

.testimonial-author-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

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

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.testimonial-author {
    font-size: 12.5px;
    font-weight: 700;
}

.testimonial-badge {
    font-size: 10px;
    color: var(--primary);
    font-weight: 600;
}

/* ── Recent Jackpot Winners ── */
.jackpot-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

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

.jackpot-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jackpot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea876, #00875a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    flex-shrink: 0;
}

.jackpot-card:nth-child(2) .jackpot-avatar {
    background: linear-gradient(135deg, #ff8c00, #ff5e00);
}

.jackpot-game {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.jackpot-game span:first-child {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.jackpot-game span:last-child {
    font-size: 13.5px;
    font-weight: 700;
}

.jackpot-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.jackpot-amount {
    font-size: 15px;
    font-weight: 800;
    color: var(--secondary);
}

.jackpot-time {
    font-size: 10.5px;
    color: var(--text-muted);
}

/* ── Live Casino Showcase ── */
.live-casino-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.live-game-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.live-game-img {
    position: relative;
    height: 140px;
    background: #0f241d;
    overflow: hidden;
}

.live-game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #ffffff;
    border-radius: 50%;
    animation: livePulse 1.2s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.live-viewers {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.live-game-info {
    padding: 14px;
}

.live-game-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.live-game-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.live-dealer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.live-dealer-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 800;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-dealer span {
    font-size: 12px;
    font-weight: 600;
}

/* ── Loyalty / VIP Program (2x2 Grid) ── */
.loyalty-section {
    margin-top: 36px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    box-shadow: var(--shadow-sm);
}

.loyalty-tiers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.tier-card {
    background: #fbfdfc;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 10px 14px;
    text-align: center;
    position: relative;
}

.tier-card--featured {
    border-color: var(--secondary);
    background: #fffaf5;
}

.tier-badge {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff8c00, #ff5e00);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.tier-icon {
    font-size: 30px;
    margin-bottom: 6px;
}

.tier-name {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
}

.tier-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tier-perks li {
    font-size: 11px;
    color: var(--text-muted);
}

/* ── Responsible Gaming ── */
.responsible-gaming {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: var(--shadow-sm);
    margin-top: 28px;
    text-align: center;
}

.rg-content h2 {
    font-size: 20px;
    margin-bottom: 6px;
}

.rg-content p {
    font-size: 12.5px;
    margin-bottom: 16px;
}

.rg-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    text-align: left;
}

.rg-tool {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    background: #f6f9f8;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
}

.rg-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: left;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.rg-badge-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    flex-shrink: 0;
}

.rg-badge p {
    font-size: 11px;
    margin: 0;
    line-height: 1.45;
}

/* ── Editorial In-Depth Content Section ── */
.editorial-section {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 18px;
    box-shadow: var(--shadow-sm);
    margin-top: 28px;
}

.editorial-header {
    text-align: center;
    margin-bottom: 18px;
}

.editorial-header h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.editorial-lead {
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--text-muted);
}

.editorial-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.editorial-block {
    background: #fbfdfc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.editorial-block h3 {
    font-size: 14.5px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.editorial-block h3 span {
    font-size: 17px;
}

.editorial-block p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ── FAQ Section & Accordion ── */
.faq-section {
    margin-top: 28px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.25s ease;
}

.faq-item.active {
    border-color: var(--primary);
}

.faq-question {
    padding: 14px 16px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    user-select: none;
    transition: color 0.2s ease;
}

.faq-question span {
    color: var(--primary);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 16px 14px;
    max-height: 500px;
}

.faq-answer p {
    font-size: 12px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}
