/* Modern Glassmorphism Style CSS for Telegram WebApp */

:root {
    --primary-color: #5865F2;
    --secondary-color: #57F287;
    --accent-color: #EB459E;
    --text-color: #FFFFFF;
    --text-secondary: #B9BBBE;
    --background-color: #36393F;
    --card-bg: rgba(32, 34, 37, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.25);
    --gradient-start: #5865F2;
    --gradient-end: #EB459E;
    --pro-color: #57F287;
    --enterprise-color: #FEE75C;
    --free-color: #B9BBBE;
    --body-bg: #36393F;
}

/* Base Styles */
html {
    background-color: #36393F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--body-bg);
    color: var(--text-color);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

/* App Container */
.app-container {
    max-width: 100%;
    padding: 16px;
    margin: 0 auto;
}

/* Glassmorphism Card Style */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    padding: 20px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px 0 var(--shadow-color);
}

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

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.card-content {
    padding: 8px 0;
}

/* Welcome Banner */
.welcome-banner {
    text-align: center;
    margin-bottom: 24px;
    padding: 24px 0;
}

.avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 2;
}

.avatar-glow {
    position: absolute;
    width: 110%;
    height: 110%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    top: -5%;
    left: -5%;
    animation: pulse 2s infinite;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.welcome-banner h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.user-id {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Mobile Bottom Navigation */
.app-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(32, 34, 37, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--card-border);
    z-index: 100;
    padding: 10px 0;
}

.app-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: space-around;
}

.app-nav li {
    margin: 0;
    width: 20%;
}

.app-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    padding: 8px 0;
}

.app-nav a::before {
    content: '';
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.app-nav a[data-nav="dashboard"]::before {
    content: '📊';
}

.app-nav a[data-nav="referral"]::before {
    content: '🔗';
}

.app-nav a[data-nav="upgrade"]::before {
    content: '⭐';
}

.app-nav a[data-nav="rewards"]::before {
    content: '🎁';
}

.app-nav a[data-nav="blog"]::before {
    content: '📰';
}

.app-nav a[data-nav="leaderboard"]::before {
    content: '🏆';
}

.app-nav a[data-nav="profile"]::before {
    content: '👤';
}

.app-nav a.active {
    color: var(--primary-color);
}

/* Pages */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Daily Rewards Page */
.daily-reward-container {
    text-align: center;
}

.daily-calendar, .calendar-grid {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 20px 0;
    overflow-x: auto;
    padding: 10px 0;
}

.calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    flex-shrink: 0;
    text-align: center;
}

.day-label {
    font-size: 0.8rem;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.day-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.day-circle.checked {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.day-circle.checked::after {
    content: '✓';
    color: white;
    font-size: 0.9rem;
}

.day-circle.today {
    border: 2px solid var(--primary-color);
}

.streak-info {
    font-size: 1.1rem;
    margin: 10px 0;
    color: var(--secondary-color);
    font-weight: 500;
}

.btn-claim, .btn-spin {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 0;
}

.btn-claim:hover, .btn-spin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(88, 101, 242, 0.3);
}

.btn-claim:disabled, .btn-spin:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.reward-status {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-height: 20px;
}

/* Spin Wheel */
.wheel-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 20px auto;
}

.wheel {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    transform: rotate(0deg);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.wheel-inner {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    background: #2B2D31;
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: bottom right;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    background-color: var(--segment-color);
}

.wheel-segment:nth-child(1) {
    clip-path: polygon(100% 0, 100% 100%, 0 0);
    transform: rotate(0deg);
}

.wheel-segment:nth-child(2) {
    clip-path: polygon(100% 0, 100% 100%, 0 0);
    transform: rotate(60deg);
}

.wheel-segment:nth-child(3) {
    clip-path: polygon(100% 0, 100% 100%, 0 0);
    transform: rotate(120deg);
}

.wheel-segment:nth-child(4) {
    clip-path: polygon(100% 0, 100% 100%, 0 0);
    transform: rotate(180deg);
}

.wheel-segment:nth-child(5) {
    clip-path: polygon(100% 0, 100% 100%, 0 0);
    transform: rotate(240deg);
}

.wheel-segment:nth-child(6) {
    clip-path: polygon(100% 0, 100% 100%, 0 0);
    transform: rotate(300deg);
}

.wheel-pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid var(--primary-color);
    z-index: 10;
}

.wheel.spinning {
    animation: spin 4s cubic-bezier(0.17, 0.67, 0.12, 0.99) forwards;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(1800deg); }
}

/* Reward Animation */
.reward-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.reward-animation.show {
    opacity: 1;
    pointer-events: auto;
}

.reward-animation-content {
    text-align: center;
    animation: popIn 0.5s ease forwards;
}

.reward-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 1s infinite alternate;
}

.reward-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

/* Blog and Tutorial Styles */
.promotions-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.promotion-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.promotion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

.promotion-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.promotion-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.promotion-dates {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.promotion-code {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 0.9rem;
    margin-top: 10px;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-post {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.blog-content {
    padding: 16px;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.blog-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Tutorial */
.tutorial-container {
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.tutorial-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 10px 0;
    opacity: 0;
    position: absolute;
    transform: translateX(100%);
    transition: all 0.5s ease;
    width: 100%;
}

.tutorial-step.active {
    opacity: 1;
    transform: translateX(0);
}

.step-number {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.step-content p {
    margin: 0;
    color: var(--text-secondary);
}

.tutorial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.tutorial-nav-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tutorial-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.tutorial-indicators {
    display: flex;
    gap: 8px;
    margin: 0 15px;
}

.tutorial-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.tutorial-indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Points Card */
.points-card .card-content {
    padding: 16px 0;
}

.points-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.points-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.points-value {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plan-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.plan-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.plan-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
}

.plan-badge[data-plan="Free"] {
    background-color: var(--free-color);
    color: #36393F;
}

.plan-badge[data-plan="Pro"] {
    background-color: var(--pro-color);
    color: #36393F;
}

.plan-badge[data-plan="Enterprise"] {
    background-color: var(--enterprise-color);
    color: #36393F;
}

.plan-expiry {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.progress-container {
    padding: 0 8px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.progress-bar {
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* Stats Card */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.05);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Referral Page */
.referral-info {
    margin-bottom: 20px;
    line-height: 1.6;
}

.highlight {
    color: var(--secondary-color);
    font-weight: 600;
}

.referral-link-container {
    display: flex;
    margin-bottom: 16px;
}

.referral-link-container input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px 0 0 12px;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
}

.btn-copy {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-copy:hover {
    background-color: #4752c4;
}

.btn-share {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(88, 101, 242, 0.3);
}

.referral-history {
    max-height: 300px;
    overflow-y: auto;
}

.referral-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.referral-item:last-child {
    border-bottom: none;
}

.referral-user {
    display: flex;
    align-items: center;
}

.referral-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin-right: 12px;
}

.referral-name {
    font-weight: 500;
}

.referral-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.referral-points {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Reward History Items */
.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reward-item:last-child {
    border-bottom: none;
}

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

.reward-date {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 4px;
}

.reward-streak, .reward-type {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.reward-points {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 24px;
    color: var(--text-secondary);
}

/* Success and Jackpot Messages */
.success-message {
    color: var(--secondary-color);
    font-weight: 600;
    text-align: center;
    padding: 12px;
    background-color: rgba(87, 242, 135, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(87, 242, 135, 0.3);
}

.jackpot-message {
    color: #FEE75C;
    font-weight: 700;
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, rgba(254, 231, 92, 0.2), rgba(255, 51, 243, 0.2));
    border-radius: 12px;
    border: 2px solid #FEE75C;
    animation: jackpot-glow 2s ease-in-out infinite alternate;
}

@keyframes jackpot-glow {
    0% { box-shadow: 0 0 10px rgba(254, 231, 92, 0.5); }
    100% { box-shadow: 0 0 20px rgba(254, 231, 92, 0.8), 0 0 30px rgba(255, 51, 243, 0.3); }
}

/* Pulse animation for calendar days */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* PERFECT CONIC-GRADIENT Spin Wheel - 100% WORKING! */
.perfect-wheel-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    padding: 20px;
}

.wheel {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 8px solid #000;
    background: conic-gradient(
        #FF4757 0deg 60deg,
        #2ED573 60deg 120deg,
        #3742FA 120deg 180deg,
        #FFA502 180deg 240deg,
        #A55EEA 240deg 300deg,
        #26D0CE 300deg 360deg
    );
    transition: transform 4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.wheel.spinning {
    transition: transform 4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Center dot */
.wheel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: #000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* Divider lines */
.wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translate(-50%, -50%);
    background: repeating-linear-gradient(
        60deg, 
        transparent 0px, 
        transparent 60px, 
        #000 60px, 
        #000 62px
    );
    z-index: 5;
}

/* Labels positioned perfectly */
.label {
    position: absolute;
    font-weight: 900;
    font-size: 18px;
    color: white;
    text-shadow: 2px 2px 5px #000;
    white-space: nowrap;
}

.l1 { 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%) rotate(30deg) translateY(-80px) rotate(-30deg); 
}

.l2 { 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%) rotate(90deg) translateY(-80px) rotate(-90deg); 
}

.l3 { 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%) rotate(150deg) translateY(-80px) rotate(-150deg); 
}

.l4 { 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%) rotate(210deg) translateY(-80px) rotate(-210deg); 
}

.l5 { 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%) rotate(270deg) translateY(-80px) rotate(-270deg); 
}

.l6 { 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%) rotate(330deg) translateY(-80px) rotate(-330deg); 
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 30px solid #2c3e50;
    z-index: 15;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

/* Perfect spinning animation */
@keyframes perfect-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(1440deg); }
}

.wheel.spinning {
    animation: perfect-spin 4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Professional button styling */
.btn-spin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    margin-top: 20px;
}

.btn-spin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-spin:active {
    transform: translateY(0);
}

.btn-spin:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Particle animation */
@keyframes particle-float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px) rotate(360deg);
        opacity: 0;
    }
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #FFD700;
    border-radius: 50%;
    animation: particle-float 2s ease-out infinite;
}

/* Enhanced calendar styling */
.day-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.day-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3);
}

.day-circle.checked {
    background: linear-gradient(135deg, var(--secondary-color), #4CAF50);
    border-color: var(--secondary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(87, 242, 135, 0.4);
}

.day-circle.today {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.6);
    animation: today-pulse 2s ease-in-out infinite;
}

@keyframes today-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

#day-7 {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    border-color: #FF6B35;
    font-size: 1.2rem;
}

#day-7.checked {
    background: linear-gradient(135deg, #FF6B35, #FFD700);
    animation: fire-glow 1.5s ease-in-out infinite alternate;
}

@keyframes fire-glow {
    0% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.6); }
    100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 107, 53, 0.4); }
}

/* Button states */
.btn-claim:disabled, .btn-spin:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Calendar day tooltips */
.day-circle[title] {
    cursor: help;
}

/* Upgrade Page */
.plans-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.plan-option {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.plan-option:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.plan-header {
    margin-bottom: 16px;
}

.plan-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.plan-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.plan-price {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.plan-duration {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.plan-features {
    margin-bottom: 24px;
}

.plan-feature {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-feature:last-child {
    border-bottom: none;
}

.plan-select-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-select-btn:hover {
    background-color: #4752c4;
}

.pro-icon {
    color: var(--pro-color);
}

.enterprise-icon {
    color: var(--enterprise-color);
}

/* Request Form */
.request-card {
    position: relative;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.selected-plan {
    margin-bottom: 20px;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-weight: 500;
}

.selected-plan span {
    color: var(--secondary-color);
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-upgrade {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(88, 101, 242, 0.3);
}

/* Leaderboard */
.leaderboard-container {
    max-height: 400px;
    overflow-y: auto;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.leaderboard-item:hover {
    transform: translateX(5px);
}

.leaderboard-rank {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 12px;
    font-weight: 600;
}

.leaderboard-user {
    display: flex;
    align-items: center;
    flex: 1;
}

.leaderboard-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin-right: 12px;
}

.leaderboard-name {
    font-weight: 500;
}

.leaderboard-points {
    font-weight: 600;
    color: var(--secondary-color);
}

.your-position {
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.position-info {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.position-rank {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    margin-right: 16px;
    font-size: 1.8rem;
    font-weight: 700;
}

.position-details {
    flex: 1;
}

.position-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.position-points {
    color: var(--secondary-color);
    font-weight: 500;
}

.position-next {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.next-rank-label {
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.next-rank-points {
    font-weight: 600;
    color: var(--accent-color);
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.leaderboard-item:hover {
    transform: translateX(5px);
}

.leaderboard-rank {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 12px;
    font-weight: 600;
}

.leaderboard-user {
    display: flex;
    align-items: center;
    flex: 1;
}

.leaderboard-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin-right: 12px;
}

.leaderboard-name {
    font-weight: 500;
}

.leaderboard-points {
    font-weight: 600;
    color: var(--secondary-color);
}

.leaderboard-empty {
    text-align: center;
    padding: 24px;
    color: var(--text-secondary);
}

/* Profile Page */
.profile-info {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin-right: 20px;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-id, .profile-joined {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.profile-stat {
    text-align: center;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.profile-actions {
    display: flex;
    justify-content: center;
}

.btn-secondary {
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .app-container {
        max-width: 768px;
        padding: 24px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Telegram WebApp specific */
body.telegram-app {
    background: var(--body-bg);
}

.telegram-app .app-container {
    padding-bottom: 80px; /* Extra padding for Telegram app */
}

/* Add padding to bottom of all pages to account for fixed nav */
.page {
    padding-bottom: 80px;
}

/* Add safe area padding for iOS devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .app-nav {
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }
    
    .page {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    :root {
        --shadow-color: rgba(0, 0, 0, 0.4);
        --body-bg: #36393F;
    }
}

/* Light mode adjustments */
@media (prefers-color-scheme: light) {
    :root {
        --body-bg: #36393F; /* Force dark theme even in light mode */
    }
}

/* Active navigation indicator with animation */
.app-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.app-nav a.active::after {
    transform: translateX(-50%) scaleX(1);
}