/* ==========================================================================
   RUMMY TRY (rummytrys.com)
   THEME: Royal Midnight Amethyst & Cyber Amber Gold VIP Luxury Suite
   ========================================================================== */

:root {
    --bg-obsidian: #0b0618;
    --bg-obsidian-deep: #070310;
    --bg-amethyst-card: #160c33;
    --bg-amethyst-surface: #22124d;
    --bg-amethyst-highlight: #2f1966;
    --border-amethyst: rgba(168, 85, 247, 0.28);
    --border-amethyst-glow: rgba(168, 85, 247, 0.55);
    --border-amber: rgba(255, 183, 3, 0.35);
    --amber-primary: #ffb703;
    --amber-secondary: #fb8500;
    --amber-light: #fff3c4;
    --amber-gradient: linear-gradient(135deg, #ffd166 0%, #ffb703 50%, #fb8500 100%);
    --amethyst-gradient: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
    --mint-cta: #00f2aa;
    --mint-gradient: linear-gradient(180deg, #00f2aa 0%, #00c875 100%);
    --text-primary: #ffffff;
    --text-secondary: #e2d9f3;
    --text-muted: #a695c4;
}

* {
    padding: 0;
    margin: 0;
    user-select: none;
    -webkit-user-select: none;
    box-sizing: border-box;
    list-style: none;
}

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

html {
    font-size: 16px;
    background-color: var(--bg-obsidian-deep);
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-obsidian-deep);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
}

/* Base Responsive Container (580px max-width: sleek & compact mobile frame) */
.container {
    position: relative;
    max-width: 580px;
    margin: 0 auto;
    background: linear-gradient(180deg, #0b0618 0%, #120926 50%, #0b0618 100%);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(168, 85, 247, 0.12);
    overflow-x: hidden;
    padding-bottom: 90px;
    border-left: 1px solid rgba(168, 85, 247, 0.18);
    border-right: 1px solid rgba(168, 85, 247, 0.18);
}

/* ==========================================================================
   HEADER DESIGN: DUAL-LAYER ROYAL AMETHYST GLASSMORPHIC BAR
   ========================================================================== */
.top-header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    z-index: 999;
}

/* Upper Live Payout Metrics Ribbon */
.top-metrics-ribbon {
    background: linear-gradient(90deg, #1f0d45 0%, #341573 50%, #1f0d45 100%);
    border-bottom: 1px solid rgba(255, 183, 3, 0.25);
    padding: 5px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    color: #f3e8ff;
    overflow: hidden;
}

.top-metrics-ribbon .pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--mint-cta);
    border-radius: 50%;
    margin-right: 7px;
    box-shadow: 0 0 8px var(--mint-cta);
    animation: blinkDot 1.5s infinite;
    flex-shrink: 0;
}

@keyframes blinkDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.top-metrics-ribbon .ribbon-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.top-metrics-ribbon .gold-val {
    color: var(--amber-primary);
    font-weight: 900;
}

/* Main Header Bar */
#top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    background: rgba(11, 6, 24, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1.5px solid rgba(168, 85, 247, 0.35);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.85);
    padding: 0 14px;
}

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

.topIcon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1.5px solid rgba(168, 85, 247, 0.45);
    box-shadow: 0 2px 12px rgba(168, 85, 247, 0.35);
    flex-shrink: 0;
    object-fit: contain;
}

.top-title-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.topTitle {
    font-size: 15px;
    font-weight: 900;
    background: var(--amber-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.6px;
    line-height: 1.15;
}

.topVipBadge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    font-size: 9px;
    font-weight: 800;
    color: #e9d5ff;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: 0.8px;
    margin-top: 2px;
}

/* Quick Navigation Links */
.top-quick-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-quick-nav a {
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    letter-spacing: 0.3px;
}

.top-quick-nav a:hover {
    color: var(--amber-primary);
}

.topDownloadBtn {
    background: var(--mint-gradient);
    border: 1px solid #3be778;
    color: #070310;
    font-size: 11px;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.6px;
    cursor: pointer;
    box-shadow: 0 2px 14px rgba(0, 242, 170, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.topDownloadBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 18px rgba(0, 242, 170, 0.65);
}

@media only screen and (max-width: 480px) {
    .top-quick-nav {
        display: none;
    }
}

/* ==========================================================================
   HERO STAGE & LIVE TRUST PILLARS
   ========================================================================== */
.hero-stage {
    position: relative;
    width: 100%;
    margin-top: 84px; /* space for dual-layer header */
    background: linear-gradient(180deg, #170b36 0%, #0b0618 100%);
    overflow: hidden;
    padding-bottom: 12px;
}

.hero-main-banner {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.hero-main-banner img.main-art {
    width: 100%;
    height: auto;
    display: block;
}

.floating-players {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-players img {
    position: absolute;
    width: 18%;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.75));
}

.floating-players img:nth-child(1) {
    top: 16%;
    left: 5%;
    animation: floatAnim 5s ease-in-out infinite;
    animation-delay: 0.2s;
}

.floating-players img:nth-child(2) {
    top: 12%;
    left: 28%;
    animation: floatAnim 5.5s ease-in-out infinite;
    animation-delay: 1.2s;
}

.floating-players img:nth-child(3) {
    top: 13.5%;
    left: 52%;
    animation: floatAnim 5.2s ease-in-out infinite;
    animation-delay: 2.2s;
}

.floating-players img:nth-child(4) {
    top: 17%;
    left: 76%;
    animation: floatAnim 5.8s ease-in-out infinite;
    animation-delay: 3.2s;
}

@keyframes floatAnim {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-14px); }
    100% { transform: translateY(0px); }
}

@keyframes moves {
    0% { transform: scale(1); }
    50% { transform: scale(0.96); }
    100% { transform: scale(1); }
}

/* Download Buttons Row */
.hero-action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 16px;
    margin-top: -55px; /* compact margin to reduce vertical gap */
    position: relative;
    z-index: 25;
}

.hero-btn-item {
    flex: 1;
    max-width: 190px;
    cursor: pointer;
    transition: transform 0.2s;
    animation: moves 1.8s infinite;
}

.hero-btn-item:hover {
    transform: scale(1.04);
}

.hero-btn-item img {
    width: 100%;
    display: block;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.75));
}

/* 4-Pillar Live Trust Bar */
.trust-metrics-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px 12px;
    margin: 10px 14px 0 14px;
    background: rgba(22, 12, 51, 0.7);
    border: 1px solid var(--border-amethyst);
    border-radius: 12px;
}

@media only screen and (min-width: 480px) {
    .trust-metrics-strip {
        grid-template-columns: repeat(4, 1fr);
    }
}

.trust-metric-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(11, 6, 24, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.18);
    border-radius: 8px;
    padding: 10px 8px;
}

.trust-metric-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.trust-metric-val {
    font-size: 13px;
    font-weight: 900;
    color: var(--amber-primary);
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.trust-metric-desc {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.2;
    margin-top: 2px;
}

/* Showcase Feature Banners */
.feature-showcase-box {
    padding: 16px;
    position: relative;
}

.feature-showcase-box img.banner-img {
    width: 100%;
    display: block;
    border-radius: 12px;
    border: 1px solid var(--border-amethyst);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* Progress Stage with Animated Chips */
.progress-stage {
    position: relative;
    width: 100%;
    margin-top: 12px;
}

.progress-stage img.stage-bg {
    width: 100%;
    display: block;
    border-radius: 12px;
}

.progress-chips {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.progress-chips img {
    position: absolute;
}

.progress-chips img:nth-child(1) {
    top: 21%;
    left: 13%;
    width: 12%;
    animation: floatAnim 4.8s ease-in-out infinite;
}

.progress-chips img:nth-child(2) {
    top: 2%;
    left: 32%;
    width: 12%;
    animation: floatAnim 5.2s ease-in-out infinite;
    animation-delay: 1.5s;
}

.progress-chips img:nth-child(3) {
    top: 5%;
    left: 85%;
    width: 7%;
    animation: floatAnim 4.5s ease-in-out infinite;
    animation-delay: 2.5s;
}

/* ==========================================================================
   25+ GAME LOBBY SECTION (REDESIGNED CARDS)
   ========================================================================== */
.lobby-section {
    padding: 24px 16px;
    background: linear-gradient(180deg, #0b0618 0%, #160c33 50%, #0b0618 100%);
    border-top: 1px solid var(--border-amethyst);
}

.section-head {
    text-align: center;
    margin-bottom: 20px;
}

.section-tag {
    font-size: 11px;
    font-weight: 800;
    color: var(--amber-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    background: rgba(255, 183, 3, 0.12);
    border: 1px solid var(--border-amber);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.4px;
    line-height: 1.25;
}

.section-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/* Filter Tabs */
.lobby-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.lobby-tab-btn {
    background: rgba(33, 17, 77, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.lobby-tab-btn:hover,
.lobby-tab-btn.active {
    background: var(--amber-gradient);
    color: #070310;
    border-color: #ffb703;
    box-shadow: 0 2px 12px rgba(255, 183, 3, 0.4);
}

/* Lobby Game Cards Grid */
.lobby-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media only screen and (min-width: 768px) {
    .lobby-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.lobby-game-card {
    background: linear-gradient(145deg, #1b0f3e 0%, #12082b 100%);
    border: 1.5px solid rgba(168, 85, 247, 0.25);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
}

.lobby-game-card:hover {
    transform: translateY(-4px);
    border-color: var(--amber-primary);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35);
}

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

.game-badge {
    font-size: 9px;
    font-weight: 800;
    color: #ffd166;
    background: rgba(255, 183, 3, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.game-speed {
    font-size: 9.5px;
    color: var(--mint-cta);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.game-speed::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--mint-cta);
    box-shadow: 0 0 6px rgba(0, 242, 170, 0.85);
}

.game-card-title {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
}

.game-card-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.35;
}

.game-card-foot {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.game-entry-tag {
    font-size: 10px;
    color: var(--amber-primary);
    font-weight: 800;
}

.game-play-cta {
    background: rgba(0, 242, 170, 0.12);
    border: 1px solid rgba(0, 242, 170, 0.4);
    color: var(--mint-cta);
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.lobby-game-card:hover .game-play-cta,
.game-play-cta:hover {
    background: var(--mint-gradient);
    border-color: #00f2aa;
    color: #070310;
}

/* ==========================================================================
   4-STEP RULES CHRONOLOGICAL STEPPER
   ========================================================================== */
.rules-section {
    padding: 24px 16px;
    background: #0b0618;
    border-top: 1px solid var(--border-amethyst);
}

.rules-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.rule-step-card {
    background: linear-gradient(135deg, #170c36 0%, #1c0f42 100%);
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-left: 4px solid var(--amber-primary);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.rule-step-badge {
    background: var(--amber-gradient);
    color: #070310;
    font-weight: 900;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.rule-step-body {
    flex: 1;
}

.rule-step-title {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.rule-step-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   5% REWARDS & BONUS CALCULATOR (AMETHYST SUITE)
   ========================================================================== */
.calculator-section {
    padding: 24px 16px;
    background: linear-gradient(180deg, #100924 0%, #1e0e47 100%);
    border-top: 1px solid var(--border-amethyst);
}

.calc-card {
    background: #170c36;
    border: 1.5px solid var(--border-amethyst);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
}

.deposit-chips-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.deposit-chip {
    flex: 1;
    min-width: 60px;
    background: rgba(33, 17, 77, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 800;
    padding: 8px 4px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.deposit-chip:hover,
.deposit-chip.active {
    background: var(--amber-gradient);
    color: #070310;
    border-color: #ffb703;
    box-shadow: 0 2px 10px rgba(255, 183, 3, 0.4);
}

.calc-results-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: rgba(11, 6, 24, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
}

.calc-metric-box {
    text-align: center;
}

.calc-metric-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.calc-metric-val {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
    margin-top: 2px;
}

.calc-metric-val.amber {
    color: var(--amber-primary);
}

.calc-metric-val.mint {
    color: var(--mint-cta);
}

.calc-cta-btn {
    display: block;
    width: 100%;
    background: var(--mint-gradient);
    border: 1px solid #00f2aa;
    color: #070310;
    font-size: 14px;
    font-weight: 900;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 242, 170, 0.45);
    transition: transform 0.2s;
}

.calc-cta-btn:hover {
    transform: scale(1.02);
}

/* ==========================================================================
   PAYMENT SECURITY HUB
   ========================================================================== */
.payment-section {
    padding: 24px 16px;
    background: #0b0618;
    border-top: 1px solid var(--border-amethyst);
    text-align: center;
}

.payment-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.pay-card {
    background: #170c36;
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pay-card img {
    height: 22px;
    width: auto;
}

.pay-card span {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-section {
    padding: 24px 16px;
    background: linear-gradient(180deg, #0b0618 0%, #160c33 100%);
    border-top: 1px solid var(--border-amethyst);
}

.faq-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: #130a2b;
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

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

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 14px 16px;
    text-align: left;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.faq-question .faq-icon {
    font-size: 16px;
    color: var(--amber-primary);
    transition: transform 0.2s;
}

.faq-item.active .faq-question .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 16px 14px 16px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.55;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
}

.faq-item.active .faq-answer {
    display: block;
}

/* ==========================================================================
   5-TIER LUXURY AMETHYST FOOTER
   (Centered within 860px max-width on desktop to eliminate stretching)
   ========================================================================== */
.luxury-footer {
    width: 100%;
    background: linear-gradient(180deg, #140a2e 0%, #070310 100%);
    border-top: 2px solid var(--amber-primary);
    padding: 30px 0 20px 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.85);
    box-sizing: border-box;
}

.luxury-footer-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

/* Tier 1: Trust Badges Bar */
.footer-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.18);
}

@media only screen and (min-width: 540px) {
    .footer-trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.trust-badge-item {
    background: rgba(33, 17, 77, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
}

.trust-badge-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--amber-primary);
}

.trust-badge-sub {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Tier 2: Payment Partner Strip */
.footer-payment-strip {
    padding: 20px 0;
    border-bottom: 1px solid rgba(168, 85, 247, 0.18);
    text-align: center;
}

.footer-strip-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.footer-payment-chips {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-pay-chip {
    background: #1c0f42;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
}

/* Tier 3: 3-Column Navigation Matrix */
.footer-nav-matrix {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(168, 85, 247, 0.18);
}

@media only screen and (min-width: 580px) {
    .footer-nav-matrix {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-nav-col-title {
    font-size: 13px;
    font-weight: 900;
    color: var(--amber-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.footer-nav-links {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-nav-links a {
    font-size: 12px;
    color: var(--text-secondary);
    transition: color 0.2s, padding-left 0.2s;
}

.footer-nav-links a:hover {
    color: var(--amber-primary);
    padding-left: 3px;
}

/* Tier 4: Legal Statutory Hub */
.footer-legal-hub {
    padding: 20px 0;
    border-bottom: 1px solid rgba(168, 85, 247, 0.18);
}

.statutory-badge-box {
    background: rgba(26, 13, 61, 0.7);
    border: 1px solid rgba(255, 183, 3, 0.35);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.statutory-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--amber-primary);
    margin-bottom: 4px;
}

.statutory-body {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.45;
}

.statutory-body strong {
    color: var(--text-secondary);
}

/* Tier 5: Copyright & Helpline Bar */
.footer-bottom-bar {
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

.telemanas-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 242, 170, 0.12);
    border: 1px solid rgba(0, 242, 170, 0.4);
    color: var(--mint-cta);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 800;
}

/* ==========================================================================
   FULLY RECTANGULAR BOTTOM STICKY DOWNLOAD BAR
   (border-radius: 0 !important; flush bottom, 100% width)
   ========================================================================== */
.sticky-download-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: linear-gradient(180deg, #180d38 0%, #0b0618 100%);
    border-top: 2px solid var(--amber-primary);
    border-radius: 0 !important; /* Strictly rectangular */
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.95);
    padding: 10px 0;
    box-sizing: border-box;
}

.sticky-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    cursor: pointer;
}

.sticky-app-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sticky-app-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
    object-fit: contain;
}

.sticky-app-meta {
    display: flex;
    flex-direction: column;
}

.sticky-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sticky-app-name {
    font-size: 15px;
    font-weight: 900;
    color: var(--amber-primary);
    letter-spacing: 0.4px;
    line-height: 1.2;
}

.sticky-vip-pill {
    font-size: 9px;
    font-weight: 800;
    color: #070310;
    background: var(--amber-gradient);
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.sticky-app-sub {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 3px;
    line-height: 1.2;
}

.sticky-download-btn {
    background: var(--mint-gradient);
    border: 1px solid #00f2aa;
    color: #070310;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.6px;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(0, 242, 170, 0.45);
    animation: pulseMintGlow 2s infinite;
}

@keyframes pulseMintGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 242, 170, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(0, 242, 170, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 242, 170, 0); }
}

/* ==========================================================================
   FLOATING QUICK DOCK (WhatsApp, Telegram, Live Chat)
   ========================================================================== */
.floating-dock {
    position: fixed;
    right: calc(50% - 290px + 10px);
    bottom: 84px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media only screen and (max-width: 620px) {
    .floating-dock {
        right: 12px;
        bottom: 80px;
    }
}

.dock-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    transition: transform 0.2s;
    border: 1.5px solid rgba(168, 85, 247, 0.4);
}

.dock-btn:hover {
    transform: scale(1.1);
}

.dock-btn img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* ==========================================================================
   SUBPAGE STYLES (Header, Breadcrumb, Policy Cards, Tables)
   ========================================================================== */
.policy-nav-bar {
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(11, 6, 24, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1.5px solid rgba(168, 85, 247, 0.35);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.85);
    z-index: 999;
}

.policy-nav-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.policy-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.policy-brand-img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.policy-brand-title {
    font-size: 15px;
    font-weight: 900;
    background: var(--amber-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.policy-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 20px 100px 20px;
    box-sizing: border-box;
}

.policy-breadcrumb {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.policy-breadcrumb a {
    color: var(--amber-primary);
}

.policy-page-header {
    background: linear-gradient(135deg, #170c36 0%, #261357 100%);
    border: 1.5px solid var(--border-amethyst);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
}

.policy-page-title {
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.25;
}

.policy-page-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.5;
}

.policy-content-card {
    background: #140a2e;
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.policy-content-card h2 {
    font-size: 18px;
    font-weight: 900;
    color: var(--amber-primary);
    margin-bottom: 12px;
}

.policy-content-card h3 {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    margin: 14px 0 8px 0;
}

.policy-content-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 12px;
}

.policy-content-card ul,
.policy-content-card ol {
    margin: 10px 0 14px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.policy-content-card li {
    margin-bottom: 6px;
    list-style: disc;
}

.policy-content-card a {
    color: var(--amber-primary);
    font-size: 14px;
    font-weight: 700;
    word-break: break-all;
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13px;
}

.policy-table th,
.policy-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.policy-table th {
    background: rgba(33, 17, 77, 0.8);
    color: var(--amber-primary);
    font-weight: 800;
}

.policy-table td {
    color: var(--text-secondary);
}

/* Contact channel cards */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
}

@media only screen and (min-width: 540px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-card {
    background: #170c36;
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
}

.contact-card-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--amber-primary);
    margin-bottom: 4px;
}

.contact-card a {
    font-size: 14px;
    font-weight: 700;
    word-break: break-all;
    display: inline-block;
    color: #ffffff;
    margin-top: 4px;
}
