/* ═══════════════════════════════════════════════════════════════════════════════
   MINIGAME SOLANA - MOBILE OPTIMIZED STYLES + GUIDE MODAL
   Giao diện tối ưu cho Mobile với spacing cân đối + Guide popup
   ═══════════════════════════════════════════════════════════════════════════════ */

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

:root { 
    --primary: #14f195; 
    --secondary: #9945ff; 
    --accent: #ffd700; 
    --dark: #0d0d1a; 
    --text: #ffffff; 
    --text-muted: rgba(255, 255, 255, 0.6);
    
    /* Optimized Spacing System */
    --spacing-xs: 6px;
    --spacing-sm: 10px;
    --spacing-md: 14px;
    --spacing-lg: 18px;
    --spacing-xl: 22px;
    
    /* Border Radius */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-full: 50%;
}

html, body { 
    width: 100%;
}

body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; 
    background: #0d0d1a; 
    color: var(--text); 
    position: relative; 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale; 
}

/* Background Effects */
body::before { 
    content: ''; 
    position: fixed; 
    top: -50%; 
    left: -50%; 
    width: 200%; 
    height: 200%; 
    background: 
        radial-gradient(circle at 20% 30%, rgba(20, 241, 149, 0.12) 0%, transparent 40%), 
        radial-gradient(circle at 80% 70%, rgba(153, 69, 255, 0.12) 0%, transparent 40%), 
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.06) 0%, transparent 50%); 
    animation: gradientMove 15s ease infinite; 
    pointer-events: none; 
    z-index: 0; 
}

@keyframes gradientMove { 
    0%, 100% { transform: translate(0, 0) rotate(0deg); } 
    33% { transform: translate(5%, 5%) rotate(120deg); } 
    66% { transform: translate(-5%, 5%) rotate(240deg); } 
}

.mesh-gradient { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: 
        linear-gradient(125deg, transparent 0%, rgba(20, 241, 149, 0.04) 50%, transparent 100%), 
        linear-gradient(215deg, transparent 0%, rgba(153, 69, 255, 0.04) 50%, transparent 100%); 
    pointer-events: none; 
    z-index: 0; 
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CONTAINER - OPTIMIZED PADDING
   ═══════════════════════════════════════════════════════════════════════════════ */

.container { 
    position: relative; 
    z-index: 1; 
    max-width: 480px; 
    margin: 0 auto; 
    padding: 12px;
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TOP NAVIGATION - COMPACT DESIGN
   ═══════════════════════════════════════════════════════════════════════════════ */

.top-nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1); 
    flex-shrink: 0;
    margin-bottom: 6px;
    gap: 8px;
}

.points-display {
    display: none;
    align-items: center;
    gap: 7px;
    padding: 5px 11px 5px 6px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85), rgba(20, 20, 36, 0.9));
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(20, 241, 149, 0.3);
    border-radius: 24px;
    animation: slideInLeft 0.4s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    flex-shrink: 1;
    min-width: 0;
}

.points-display.show {
    display: flex;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInDown { 
    from { opacity: 0; transform: translateY(-15px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.points-coin {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.coin-icon {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 3px rgba(20, 241, 149, 0.3));
    animation: coinFloat 3s ease-in-out infinite;
}

@keyframes coinFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-1px) rotate(3deg); }
}

.points-amount {
    display: flex;
    align-items: center;
    line-height: 1;
    min-width: 0;
}

.points-number {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Inter', -apple-system, sans-serif;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.3px;
    text-shadow: 0 0 8px rgba(20, 241, 149, 0.25);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wallet-controls { 
    display: flex; 
    align-items: center; 
    gap: 8px;
    flex-shrink: 0;
}

.wallet-status { 
    display: none; 
    align-items: center; 
    gap: 6px; 
    padding: 6px 10px; 
    background: rgba(20, 241, 149, 0.08); 
    border: 1.5px solid rgba(20, 241, 149, 0.35); 
    border-radius: var(--radius-md); 
    animation: slideInRight 0.4s ease-out;
    flex-shrink: 1;
    min-width: 0;
    max-width: 130px;
}

.wallet-status.show { display: flex; }

@keyframes slideInRight { 
    from { opacity: 0; transform: translateX(15px); } 
    to { opacity: 1; transform: translateX(0); } 
}

.status-dot { 
    width: 7px; 
    height: 7px; 
    border-radius: var(--radius-full); 
    background: var(--primary); 
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse { 
    0%, 100% { opacity: 1; transform: scale(1); } 
    50% { opacity: 0.5; transform: scale(1.15); } 
}

.status-text { 
    font-size: 11px; 
    font-weight: 600; 
    color: var(--primary); 
    text-transform: uppercase; 
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-wallet-btn { 
    padding: 8px 16px; 
    background: rgba(26, 26, 46, 0.6); 
    backdrop-filter: blur(10px); 
    border: 1.5px solid rgba(20, 241, 149, 0.35); 
    border-radius: 20px; 
    color: var(--primary); 
    font-size: 12px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    white-space: nowrap; 
    font-family: 'Inter', sans-serif; 
    line-height: 1.3;
    flex-shrink: 0;
}

.nav-wallet-btn:hover { 
    background: rgba(20, 241, 149, 0.1); 
    border-color: var(--primary); 
    transform: translateY(-1px); 
}

.nav-wallet-btn.disconnect { 
    background: rgba(239, 68, 68, 0.12); 
    border-color: rgba(239, 68, 68, 0.4); 
    color: #ef4444; 
}

.nav-wallet-btn.disconnect:hover { 
    background: rgba(239, 68, 68, 0.2); 
    border-color: #ef4444; 
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MAIN CONTENT - BALANCED SPACING
   ═══════════════════════════════════════════════════════════════════════════════ */

.main-content { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
    gap: 8px;
    padding: 0;
    min-height: 0;
}

@keyframes fadeInUp { 
    from { opacity: 0; transform: translateY(20px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LOGO SECTION - COMPACT & CENTERED
   ═══════════════════════════════════════════════════════════════════════════════ */

.logo-section { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
}

.logo-brand-wrapper { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
}

.logo-circle { 
    width: 58px; 
    height: 58px; 
    border-radius: var(--radius-full); 
    border: 2.5px solid rgba(0, 212, 255, 0.35); 
    background: rgba(26, 26, 46, 0.5); 
    backdrop-filter: blur(8px); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
    flex-shrink: 0; 
    overflow: hidden; 
}

.logo-circle img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: var(--radius-full); 
}

.brand-text { 
    text-align: left; 
}

.brand-title { 
    font-size: 24px; 
    font-weight: 900; 
    line-height: 1; 
    margin-bottom: 3px; 
    background: linear-gradient(135deg, #14f195 0%, #9945ff 50%, #ffd700 100%); 
    background-size: 200% 200%; 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
    animation: shimmer 3s ease infinite; 
    letter-spacing: -0.4px; 
}

@keyframes shimmer { 
    0%, 100% { background-position: 0% 50%; } 
    50% { background-position: 100% 50%; } 
}

.brand-subtitle { 
    font-size: 9px; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: var(--text-muted); 
    line-height: 1.4; 
}

/* ═══════════════════════════════════════════════════════════════════════════════
   DESCRIPTION & FEATURES - COMPACT
   ═══════════════════════════════════════════════════════════════════════════════ */

.description { 
    text-align: center; 
}

.description p { 
    font-size: 10px; 
    line-height: 1.45; 
    color: var(--text-muted); 
    margin-bottom: 7px; 
    padding: 0 var(--spacing-xs);
}

.features { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 6px; 
    max-width: 100%; 
    margin: 0 auto; 
}

.feature-item { 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    gap: 3px; 
    font-size: 9px; 
    font-weight: 500; 
    color: rgba(255, 255, 255, 0.75); 
    padding: 8px 4px; 
    background: transparent;
    border: none;
    transition: all 0.3s ease; 
    text-align: center;
}

.feature-item:hover { 
    background: transparent;
    border: none;
    transform: translateY(-1px); 
    color: rgba(255, 255, 255, 0.95);
}

.feature-icon { 
    font-size: 15px; 
    filter: drop-shadow(0 2px 3px rgba(20, 241, 149, 0.25)); 
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ACTION SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

.action-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ACTION BUTTONS - COMPACT
   ═══════════════════════════════════════════════════════════════════════════════ */

.action-buttons { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 8px; 
}

.action-btn { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
    padding: 10px 12px; 
    background: rgba(26, 26, 46, 0.55); 
    backdrop-filter: blur(8px); 
    border: 1.5px solid rgba(20, 241, 149, 0.28); 
    border-radius: var(--radius-sm); 
    color: var(--text); 
    font-size: 11px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    font-family: 'Inter', sans-serif; 
}

.action-btn:not(.disabled):hover { 
    background: rgba(20, 241, 149, 0.08); 
    border-color: var(--primary); 
    transform: translateY(-1px); 
    box-shadow: 0 6px 16px rgba(20, 241, 149, 0.18); 
}

.action-btn.disabled { 
    opacity: 0.35; 
    cursor: not-allowed; 
    background: rgba(26, 26, 46, 0.35); 
    border-color: rgba(255, 255, 255, 0.08); 
}

.action-btn-icon { 
    font-size: 15px; 
}

/* ═══════════════════════════════════════════════════════════════════════════════
   DAILY PLAYTIME - COMPACT PROGRESS
   ═══════════════════════════════════════════════════════════════════════════════ */

.progress-container {
    display: none;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-container.show {
    display: block;
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(12px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.progress-card {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.65), rgba(20, 20, 36, 0.75));
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(20, 241, 149, 0.22);
    border-radius: 14px;
    padding: 12px 14px 11px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.clock-icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
    stroke-width: 2;
    flex-shrink: 0;
    filter: drop-shadow(0 0 3px rgba(20, 241, 149, 0.3));
}

.label-text {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.15px;
}

.progress-count {
    display: flex;
    align-items: baseline;
    gap: 3px;
    font-family: 'Inter', -apple-system, monospace;
    font-variant-numeric: tabular-nums;
}

.count-number {
    font-size: 14px;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 8px rgba(20, 241, 149, 0.3);
}

.count-divider {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.22);
    margin: 0 1px;
}

.count-total {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
}

.count-suffix {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    margin-left: 1px;
}

.progress-track-area {
    position: relative;
    margin-bottom: 6px;
    padding: 0 1px;
}

.track-background {
    position: relative;
    height: 8px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.025) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.025) 100%
    );
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}

.track-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
        #14f195 0%,
        #1aff9f 50%,
        #14f195 100%
    );
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 0 10px rgba(20, 241, 149, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    animation: shimmer 3s ease-in-out infinite;
}

.milestone-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    pointer-events: none;
}

.milestone-item {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.milestone-circle {
    position: relative;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 36, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.circle-inner {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.check-icon {
    position: absolute;
    width: 9px;
    height: 9px;
    color: #0a0a14;
    opacity: 0;
    transform: scale(0.3);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.milestone-item.completed .milestone-circle {
    background: linear-gradient(135deg, #14f195 0%, #0fa372 100%);
    border-color: #14f195;
    border-width: 2.5px;
    box-shadow: 
        0 0 14px rgba(20, 241, 149, 0.6),
        0 0 24px rgba(20, 241, 149, 0.35),
        0 3px 6px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.milestone-item.completed .circle-inner {
    opacity: 0;
    transform: scale(0);
}

.milestone-item.completed .check-icon {
    opacity: 1;
    transform: scale(1);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PLAY OPTIONS - COMPACT CARDS
   ═══════════════════════════════════════════════════════════════════════════════ */

.play-options { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}

.play-header { 
    text-align: center; 
}

.play-header-title { 
    font-size: 14px; 
    font-weight: 700; 
    color: var(--text); 
    margin-bottom: 3px; 
    letter-spacing: -0.25px; 
}

.play-header-subtitle { 
    font-size: 9px; 
    color: var(--text-muted); 
    font-weight: 500; 
}

.play-card { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 11px 12px; 
    background: rgba(26, 26, 46, 0.55); 
    backdrop-filter: blur(8px); 
    border: 1.5px solid rgba(74, 158, 255, 0.28); 
    border-radius: var(--radius-sm); 
    cursor: pointer; 
    transition: all 0.3s ease; 
    position: relative; 
    overflow: hidden; 
}

.play-card::before { 
    content: ''; 
    position: absolute; 
    top: -2px; 
    left: -2px; 
    right: -2px; 
    bottom: -2px; 
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.25), transparent); 
    border-radius: var(--radius-sm); 
    opacity: 0; 
    transition: opacity 0.3s ease; 
    z-index: -1; 
}

.play-card:hover::before { 
    opacity: 1; 
}

.play-card:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 10px 28px rgba(74, 158, 255, 0.28); 
    border-color: #4a9eff; 
}

.play-card.premium { 
    border-color: rgba(153, 69, 255, 0.35); 
}

.play-card.premium::before { 
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.25), transparent); 
}

.play-card.premium:hover { 
    box-shadow: 0 10px 28px rgba(153, 69, 255, 0.3); 
    border-color: #9945ff; 
}

.play-card.paid { 
    border-color: rgba(20, 241, 149, 0.45); 
}

.play-card.paid::before { 
    background: linear-gradient(135deg, rgba(20, 241, 149, 0.25), transparent); 
}

.play-card.paid:hover { 
    box-shadow: 0 10px 28px rgba(20, 241, 149, 0.3); 
    border-color: #14f195; 
}

.play-icon { 
    width: 38px; 
    height: 38px; 
    border-radius: var(--radius-xs); 
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.18), rgba(74, 158, 255, 0.08)); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 20px; 
    flex-shrink: 0; 
    transition: all 0.3s ease; 
}

.play-card.premium .play-icon { 
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.18), rgba(153, 69, 255, 0.08)); 
}

.play-card.paid .play-icon { 
    background: linear-gradient(135deg, rgba(20, 241, 149, 0.18), rgba(20, 241, 149, 0.08)); 
}

.play-info { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 3px;
    min-width: 0;
}

.play-title { 
    font-size: 13px; 
    font-weight: 700; 
    color: var(--text); 
    letter-spacing: -0.15px; 
}

.play-subtitle { 
    font-size: 9px; 
    color: var(--text-muted); 
    font-weight: 500; 
}

.play-note { 
    font-size: 8px; 
    color: rgba(20, 241, 149, 0.75); 
    font-weight: 500; 
    margin-top: 1px; 
}

.premium-note { 
    color: rgba(153, 69, 255, 0.75); 
}

.play-action { 
    display: flex; 
    align-items: center; 
    justify-content: center;
    flex-shrink: 0;
}

.play-arrow { 
    font-size: 14px; 
    color: rgba(255, 255, 255, 0.55); 
    transition: all 0.3s ease; 
}

.play-card:hover .play-arrow { 
    color: var(--text); 
    transform: translateX(3px); 
}

.price-badge, .paid-badge { 
    padding: 5px 10px; 
    background: rgba(153, 69, 255, 0.18); 
    border: 1px solid rgba(153, 69, 255, 0.35); 
    border-radius: 18px; 
    color: #9945ff; 
    font-size: 10px; 
    font-weight: 700; 
    white-space: nowrap; 
}

.paid-badge { 
    background: rgba(20, 241, 149, 0.18); 
    border-color: rgba(20, 241, 149, 0.35); 
    color: var(--primary); 
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FOOTER - COMPACT
   ═══════════════════════════════════════════════════════════════════════════════ */

.bottom-section { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 6px; 
    padding: 8px 0; 
    flex-shrink: 0; 
    width: 100%;
}

.social-section { 
    display: flex; 
    gap: 8px; 
}

.social-btn { 
    width: 34px; 
    height: 34px; 
    border-radius: var(--radius-full); 
    background: rgba(26, 26, 46, 0.55); 
    backdrop-filter: blur(8px); 
    border: 1.5px solid rgba(20, 241, 149, 0.28); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--primary); 
    transition: all 0.3s ease; 
    cursor: pointer; 
}

.social-btn:hover { 
    background: rgba(20, 241, 149, 0.08); 
    border-color: var(--primary); 
    transform: translateY(-2px); 
    box-shadow: 0 6px 16px rgba(20, 241, 149, 0.25); 
}

.social-btn svg { 
    width: 14px; 
    height: 14px; 
    fill: currentColor; 
}

.social-btn.guide-btn svg {
    stroke: currentColor;
    fill: none;
}

.bottom-text { 
    font-size: 10px; 
    color: var(--text-muted); 
    font-weight: 500; 
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   GUIDE MODAL
   ═══════════════════════════════════════════════════════════════════════════════ */

.guide-modal {
    background: rgba(26, 26, 46, 0.98);
    border: 2px solid rgba(20, 241, 149, 0.3);
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUpModal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
    #guideModal.show {
        padding: 20px;
    }
    
    .guide-modal {
        max-width: 520px;
        width: 100%;
        height: auto;
        max-height: 90vh;
        border-radius: 18px;
        margin: 0 auto;
    }
}

.guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.guide-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.3px;
}

.guide-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.guide-body::-webkit-scrollbar {
    width: 5px;
}

.guide-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

.guide-body::-webkit-scrollbar-thumb {
    background: rgba(20, 241, 149, 0.28);
    border-radius: 2px;
}

.guide-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guide-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
    letter-spacing: -0.2px;
}

.guide-card {
    background: rgba(26, 26, 46, 0.6);
    border: 1.5px solid rgba(74, 158, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.guide-card.free {
    border-color: rgba(74, 158, 255, 0.35);
}

.guide-card.premium {
    border-color: rgba(153, 69, 255, 0.4);
}

.guide-card-header {
    padding: 10px 12px;
    background: rgba(20, 241, 149, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-card.premium .guide-card-header {
    background: rgba(153, 69, 255, 0.08);
}

.guide-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.free-badge {
    background: rgba(74, 158, 255, 0.15);
    border: 1px solid rgba(74, 158, 255, 0.35);
    color: #4a9eff;
}

.premium-badge {
    background: rgba(153, 69, 255, 0.15);
    border: 1px solid rgba(153, 69, 255, 0.4);
    color: #9945ff;
}

.guide-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(20, 241, 149, 0.04);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.guide-item:hover {
    background: rgba(20, 241, 149, 0.08);
    transform: translateX(2px);
}

.guide-item-icon {
    font-size: 16px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.guide-item-text {
    flex: 1;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    line-height: 1.3;
}

.guide-item-points {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    padding: 3px 9px;
    background: rgba(20, 241, 149, 0.15);
    border-radius: 10px;
    flex-shrink: 0;
}

.guide-note {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    background: rgba(255, 183, 77, 0.08);
    border: 1px solid rgba(255, 183, 77, 0.25);
    border-radius: 8px;
    margin-top: 2px;
}

.guide-note.premium-note {
    background: rgba(153, 69, 255, 0.08);
    border-color: rgba(153, 69, 255, 0.25);
}

.guide-note-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.guide-note-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    line-height: 1.3;
}

.guide-info-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(26, 26, 46, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.guide-info-item:hover {
    border-color: rgba(20, 241, 149, 0.3);
    background: rgba(20, 241, 149, 0.04);
}

.guide-info-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.guide-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.guide-info-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.1px;
    line-height: 1.3;
}

.guide-info-desc {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    line-height: 1.4;
}

.guide-tips {
    background: linear-gradient(135deg, rgba(20, 241, 149, 0.08), rgba(20, 241, 149, 0.04));
    border: 1.5px solid rgba(20, 241, 149, 0.25);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-tips-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.guide-tips-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.guide-tip-item {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    line-height: 1.4;
    padding-left: 4px;
}

.guide-cta-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, rgba(20, 241, 149, 0.2), rgba(20, 241, 149, 0.1));
    border: 2px solid var(--primary);
    border-radius: 12px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.guide-cta-btn:hover {
    background: linear-gradient(135deg, rgba(20, 241, 149, 0.3), rgba(20, 241, 149, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 241, 149, 0.3);
}

.guide-cta-btn:active {
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MODAL - CHECK-IN SYSTEM
   ═══════════════════════════════════════════════════════════════════════════════ */

.modal-overlay { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.8); 
    backdrop-filter: blur(10px); 
    z-index: 9999; 
    animation: fadeIn 0.3s ease; 
}

.modal-overlay.show { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 0;
}

@keyframes fadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}

.checkin-modal { 
    background: rgba(26, 26, 46, 0.98); 
    border: 2px solid rgba(20, 241, 149, 0.3); 
    border-radius: 0;
    width: 100%; 
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUpModal 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

@media (min-width: 768px) {
    .modal-overlay.show {
        padding: 20px;
    }
    
    .checkin-modal {
        max-width: 500px;
        width: 100%;
        height: auto;
        max-height: 90vh;
        border-radius: var(--radius-lg);
        margin: 0 auto;
    }
}

@keyframes slideUpModal { 
    from { opacity: 0; transform: translateY(30px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.checkin-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px 14px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.checkin-title { 
    font-size: 18px; 
    font-weight: 800; 
    color: var(--text); 
}

.modal-close { 
    width: 28px; 
    height: 28px; 
    border-radius: var(--radius-full); 
    background: rgba(239, 68, 68, 0.12); 
    border: 1.5px solid rgba(239, 68, 68, 0.28); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #ef4444; 
    font-size: 20px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    flex-shrink: 0;
}

.modal-close:hover { 
    background: rgba(239, 68, 68, 0.2); 
    border-color: #ef4444; 
    transform: rotate(90deg); 
}

.checkin-body { 
    padding: 14px; 
    display: flex; 
    flex-direction: column; 
    gap: 10px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.checkin-stats { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 8px;
    flex-shrink: 0;
}

.stat-card { 
    background: rgba(20, 241, 149, 0.07); 
    border: 1.5px solid rgba(20, 241, 149, 0.28); 
    border-radius: 9px; 
    padding: 8px 10px; 
    text-align: center; 
}

.stat-value { 
    font-size: 20px; 
    font-weight: 800; 
    color: var(--primary); 
    margin-bottom: 2px; 
    line-height: 1;
}

.stat-label { 
    font-size: 8px; 
    color: var(--text-muted); 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.4px;
    line-height: 1.2;
}

.checkin-calendar { 
    display: flex;
    flex-direction: row;
    gap: 6px;
    padding: 12px 10px;
    background: rgba(20, 241, 149, 0.04);
    border-radius: var(--radius-md);
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: center;
    -webkit-overflow-scrolling: touch;
    min-height: 80px;
}

.checkin-calendar::-webkit-scrollbar {
    height: 4px;
}

.checkin-calendar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 2px;
    margin: 0 6px;
}

.checkin-calendar::-webkit-scrollbar-thumb {
    background: rgba(20, 241, 149, 0.35);
    border-radius: 2px;
}

.day-box { 
    width: 58px;
    min-width: 58px;
    height: 58px;
    background: rgba(26, 26, 46, 0.75); 
    border: 1.5px solid rgba(255, 255, 255, 0.13); 
    border-radius: 7px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 3px; 
    transition: all 0.3s ease; 
    cursor: pointer; 
    position: relative;
    padding: 6px 5px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.day-box:hover { 
    background: rgba(20, 241, 149, 0.06); 
    border-color: rgba(20, 241, 149, 0.28);
    transform: translateY(-1px);
}

.day-box.completed { 
    background: rgba(20, 241, 149, 0.13); 
    border-color: rgba(20, 241, 149, 0.55); 
    box-shadow: 0 2px 10px rgba(20, 241, 149, 0.25);
}

.day-box.today { 
    border-color: var(--primary); 
    border-width: 1.5px;
    box-shadow: 0 0 12px rgba(20, 241, 149, 0.45), 0 2px 10px rgba(0, 0, 0, 0.25);
    animation: todayPulse 2s ease-in-out infinite; 
}

@keyframes todayPulse { 
    0%, 100% { box-shadow: 0 0 12px rgba(20, 241, 149, 0.45), 0 2px 10px rgba(0, 0, 0, 0.25); } 
    50% { box-shadow: 0 0 20px rgba(20, 241, 149, 0.65), 0 2px 14px rgba(0, 0, 0, 0.35); } 
}

.day-box.bonus::before { 
    content: '🎁'; 
    position: absolute; 
    top: 2px; 
    right: 2px; 
    font-size: 8px; 
}

.day-box.bonus.completed { 
    background: rgba(255, 215, 0, 0.13); 
    border-color: #ffd700; 
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.25);
}

.day-number { 
    font-size: 8px; 
    font-weight: 700; 
    color: rgba(255, 255, 255, 0.55); 
    letter-spacing: 0.25px;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

.day-icon { 
    font-size: 18px;
    line-height: 1;
}

.day-box.completed .day-number { 
    color: var(--primary); 
}

.rewards-info { 
    background: rgba(26, 26, 46, 0.55); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 9px; 
    padding: 10px;
    flex-shrink: 0;
}

.rewards-title { 
    font-size: 12px; 
    font-weight: 700; 
    color: var(--text); 
    margin-bottom: 7px; 
}

.rewards-table { 
    display: flex; 
    flex-direction: column; 
    gap: 5px; 
}

.reward-row { 
    display: flex; 
    align-items: center; 
    gap: 7px; 
    padding: 5px 7px; 
    background: rgba(20, 241, 149, 0.04); 
    border-radius: 5px; 
}

.reward-icon { 
    font-size: 13px; 
    width: 18px; 
    text-align: center;
    flex-shrink: 0;
}

.reward-text { 
    flex: 1; 
    font-size: 9px; 
    color: rgba(255, 255, 255, 0.75); 
    font-weight: 500;
    line-height: 1.3;
}

.reward-points { 
    font-size: 10px; 
    font-weight: 700; 
    color: var(--primary); 
    padding: 2px 7px; 
    background: rgba(20, 241, 149, 0.13); 
    border-radius: 8px;
    flex-shrink: 0;
}

.checkin-info { 
    background: rgba(153, 69, 255, 0.08); 
    border: 1px solid rgba(153, 69, 255, 0.28); 
    border-radius: 7px; 
    padding: 8px;
    flex-shrink: 0;
}

.checkin-info p { 
    font-size: 10px; 
    line-height: 1.35; 
    color: rgba(255, 255, 255, 0.75); 
    margin: 0; 
}

.checkin-button { 
    width: 100%; 
    padding: 11px; 
    background: linear-gradient(135deg, rgba(20, 241, 149, 0.18), rgba(20, 241, 149, 0.08)); 
    border: 1.5px solid var(--primary); 
    border-radius: 10px; 
    color: var(--primary); 
    font-size: 14px; 
    font-weight: 800; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
}

.checkin-button:hover:not(:disabled) { 
    background: linear-gradient(135deg, rgba(20, 241, 149, 0.28), rgba(20, 241, 149, 0.18)); 
    transform: translateY(-1px); 
    box-shadow: 0 6px 16px rgba(20, 241, 149, 0.25); 
}

.checkin-button:disabled { 
    opacity: 0.45; 
    cursor: not-allowed; 
    background: rgba(100, 100, 100, 0.18); 
    border-color: rgba(255, 255, 255, 0.18); 
    color: rgba(255, 255, 255, 0.45); 
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════════════════════ */

.toast { 
    position: fixed; 
    top: 60px; 
    left: 50%; 
    transform: translateX(-50%) translateY(-130px); 
    background: rgba(26, 26, 46, 0.98); 
    backdrop-filter: blur(20px); 
    border: 1.5px solid rgba(20, 241, 149, 0.35); 
    border-radius: var(--radius-sm); 
    padding: 12px 18px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 12px; 
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); 
    z-index: 99999; 
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
    min-width: 260px; 
    max-width: 90%; 
    opacity: 0; 
    pointer-events: none; 
}

.toast.show { 
    transform: translateX(-50%) translateY(0); 
    opacity: 1; 
    pointer-events: auto; 
}

.toast.success { 
    border-color: rgba(20, 241, 149, 0.55); 
    background: rgba(20, 241, 149, 0.1); 
}

.toast.error { 
    border-color: rgba(239, 68, 68, 0.55); 
    background: rgba(239, 68, 68, 0.1); 
}

.toast-icon { 
    font-size: 16px; 
    font-weight: bold; 
    flex-shrink: 0; 
    width: 22px; 
    height: 22px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.toast-message { 
    font-size: 13px; 
    font-weight: 600; 
    color: var(--text); 
    line-height: 1.4; 
    text-align: center; 
    flex: 1; 
    letter-spacing: 0.25px; 
}

.spinner { 
    display: inline-block; 
    width: 12px; 
    height: 12px; 
    border: 2px solid rgba(255, 255, 255, 0.25); 
    border-radius: var(--radius-full); 
    border-top-color: currentColor; 
    animation: spin 0.6s linear infinite; 
}

@keyframes spin { 
    to { transform: rotate(360deg); } 
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 360px) {
    .container { padding: 10px; }
    .top-nav { margin-bottom: 5px; gap: 6px; }
    .points-display { padding: 4px 9px 4px 5px; gap: 6px; }
    .coin-icon { width: 22px; height: 22px; }
    .points-number { font-size: 14px; }
    .wallet-status { padding: 5px 8px; gap: 5px; max-width: 110px; }
    .status-text { font-size: 10px; }
    .nav-wallet-btn { padding: 7px 13px; font-size: 11px; }
    .logo-circle { width: 52px; height: 52px; border-width: 2px; }
    .brand-title { font-size: 21px; }
    .brand-subtitle { font-size: 8px; letter-spacing: 0.8px; }
    .description p { font-size: 9px; margin-bottom: 6px; }
    .features { gap: 5px; }
    .feature-item { padding: 7px 3px; font-size: 8px; gap: 2px; }
    .feature-icon { font-size: 14px; }
    .action-section { gap: 8px; }
    .action-buttons { gap: 7px; }
    .action-btn { padding: 9px 10px; font-size: 10px; gap: 5px; }
    .action-btn-icon { font-size: 14px; }
    .progress-card { padding: 10px 12px 9px; }
    .play-options { gap: 7px; }
    .play-card { padding: 10px 11px; gap: 9px; }
    .play-icon { width: 36px; height: 36px; font-size: 19px; }
    .play-title { font-size: 12px; }
    .social-btn { width: 32px; height: 32px; }
    .social-btn svg { width: 13px; height: 13px; }
    
    .guide-header { padding: 12px 14px; }
    .guide-title { font-size: 18px; }
    .guide-body { padding: 14px; gap: 12px; }
    .guide-section-title { font-size: 13px; }
    .guide-item { padding: 7px 9px; }
    .guide-cta-btn { padding: 12px; font-size: 13px; }
}

@media (min-width: 361px) and (max-width: 400px) {
    .logo-circle { width: 55px; height: 55px; }
    .brand-title { font-size: 22px; }
}

@media (min-width: 401px) and (max-width: 480px) {
    .container { padding: 13px; }
    .logo-circle { width: 60px; height: 60px; }
    .brand-title { font-size: 25px; }
}

@media (min-width: 481px) {
    .container { padding: 14px; }
    .top-nav { margin-bottom: 7px; gap: 9px; }
    .logo-circle { width: 62px; height: 62px; }
    .brand-title { font-size: 26px; }
    .social-btn { width: 36px; height: 36px; }
    .social-btn svg { width: 15px; height: 15px; }
    
    .guide-header { padding: 15px 18px; }
    .guide-title { font-size: 21px; }
    .guide-body { padding: 18px; gap: 15px; }
    .guide-section-title { font-size: 15px; }
    .guide-item { padding: 9px 11px; }
    .guide-cta-btn { padding: 14px; font-size: 15px; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TOUCH OPTIMIZATIONS
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (hover: none) and (pointer: coarse) {
    .play-card:hover { transform: none; }
    .play-card:active { transform: scale(0.98); transition: all 0.1s ease; }
    .feature-item:hover { transform: none; }
    .action-btn:not(.disabled):hover { transform: none; }
    .nav-wallet-btn:hover { transform: none; }
    .social-btn:hover { transform: none; }
    .guide-item:hover { transform: none; }
    .guide-info-item:hover {
        border-color: rgba(255, 255, 255, 0.1);
        background: rgba(26, 26, 46, 0.6);
    }
}

.play-card, .action-btn, .social-btn, .nav-wallet-btn, .day-box {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.modal-overlay, .checkin-body, .checkin-calendar, .guide-body {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.checkin-body::-webkit-scrollbar {
    width: 5px;
}

.checkin-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

.checkin-body::-webkit-scrollbar-thumb {
    background: rgba(20, 241, 149, 0.28);
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   APK SPECIFIC FIXES
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Ensure proper text rendering in WebView */
@supports (-webkit-touch-callout: none) {
    body {
        -webkit-text-size-adjust: 100%;
    }
}