* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
}


    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    outline: none !important;
}

*:focus,
*:active,
*:hover {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
}

*::-moz-focus-inner {
    border: 0 !important;
}

input,
textarea,
[contenteditable] {
    -webkit-user-select: auto !important;
    -khtml-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #1e1b4b 0%, #0f0d2e 50%, #1a103c 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e1b4b 0%, #0f0d2e 50%, #1a103c 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(251, 191, 36, 0.2);
    border-top-color: #fbbf24;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    font-weight: 500;
}

.desktop-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e1b4b 0%, #0f0d2e 50%, #1a103c 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.desktop-warning-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    padding: 20px;
}

.desktop-warning-icon {
    width: 120px;
    height: 120px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.desktop-warning-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    max-width: 320px;
}

.desktop-warning-text br {
    margin-bottom: 8px;
}

.app-container {
    width: 100%;
    max-width: 420px;
    min-height: 100vh;
    background: linear-gradient(180deg, #2d2463 0%, #1a1333 100%);
    padding: 16px 16px 90px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.app-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.header {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.balance-card, .gems-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 10px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.balance-icon, .gems-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.balance-icon img, .gems-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.balance-info, .gems-info {
    display: flex;
    flex-direction: column;
}

.balance-label, .gems-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-value, .gems-value {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.level-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.05));
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.level-star {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.level-star img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.level-text {
    font-size: 16px;
    font-weight: 600;
    color: #fbbf24;
}

.bonus-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.bonus-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.bonus-emoji {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bonus-emoji img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tab-content {
    display: none;
    flex: 1;
    flex-direction: column;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.tab-content.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tap-zone {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    overflow: hidden;
}

.tap-circle {
    width: 242px;
    height: 242px;
    border-radius: 50%;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    background: transparent;
}

.tap-circle:active {
    transform: scale(0.92);
}

.tap-circle.tap-active {
    transform: scale(0.92) !important;
    transition: transform 0.1s ease-out !important;
}

.tap-gold-full {
    width: 176%;
    height: 176%;
    display: block;
    pointer-events: none;
}

.stats-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.energy-block {
    flex: 1;
}

.energy-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.energy-symbol {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: -2px;
}

.energy-symbol img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.energy-count {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.energy-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.energy-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.powerup-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(236, 72, 153, 0.4);
    padding: 10px 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    outline: none;
}

.powerup-btn:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(236, 72, 153, 0.1));
    transform: translateY(-2px);
}

.powerup-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.powerup-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.powerup-text {
    font-size: 12px;
    font-weight: 600;
    color: #ec4899;
}

.tasks-container {
    flex: 1;
    overflow-y: auto;
}

.section-title {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.sponsor-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
}

.sponsor-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.sponsor-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.sponsor-info h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 4px;
}

.sponsor-info p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.sponsor-actions {
    display: flex;
    gap: 10px;
}

.btn-subscribe, .btn-check {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    outline: none;
}

.btn-subscribe {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-check {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-check:hover {
    background: rgba(255, 255, 255, 0.15);
}

.account-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 6px;
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.avatar-ring {
    position: relative;
    margin-bottom: 6px;
}

.avatar {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    flex-shrink: 0;
}

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

.level-ring {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: #1a1333;
    border: 2px solid #1a1333;
}

.username {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 2px;
}

.user-id {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
    margin-bottom: 10px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
}

.stat-value {
    display: block;
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

.withdraw-btn {
    width: 100%;
    padding: 14px 10px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1333;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    outline: none;
}

.withdraw-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
}

.withdraw-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.withdraw-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.promo-btn {
    width: 100%;
    padding: 14px 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    outline: none;
    margin-top: 7px;
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.promo-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.promo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.support-btn {
    width: 100%;
    padding: 14px 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    outline: none;
    margin-top: 7px;
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.support-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.support-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.refer-container {
    flex: 1;
    overflow: hidden;
    padding-top: 4px;
}

.refer-header {
    text-align: center;
    margin-bottom: 6px;
}

.refer-icon {
    display: none;
}

.refer-header h2 {
    color: white;
    font-size: 16px;
    margin-bottom: 2px;
}

.refer-header p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
}

.refer-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 6px;
}

.refer-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
}

.refer-stat-value {
    display: block;
    color: #22d3ee;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.refer-stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 9px;
}

.referral-link-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 6px;
}

.referral-link-box label {
    display: none;
}

.link-container {
    display: flex;
    gap: 6px;
}

.link-container input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px;
    color: white;
    font-size: 10px;
    outline: none;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    outline: none;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.copy-btn img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

.invite-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 6px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    outline: none;
}

.invite-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(34, 211, 238, 0.3);
}

.invite-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.invite-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.support-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    outline: none;
    margin-top: 7px;
}

.recent-referrals {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    margin-top: 10px;
}

.recent-referrals h3 {
    color: white;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 600;
    text-align: center;
}

.recent-referrals-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recent-referral-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 8px 10px;
}

.recent-referral-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
}

.recent-referral-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-referral-name {
    color: white;
    font-size: 13px;
    font-weight: 500;
    flex: 1;
}

.no-referrals {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    text-align: center;
    padding: 10px 0;
}

.referral-list {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 8px;
}

.referral-list h3 {
    color: white;
    font-size: 11px;
    margin-bottom: 6px;
    font-weight: 600;
}

.refer-header {
    text-align: center;
    margin-bottom: 10px;
}

.refer-icon {
    display: none;
}

.refer-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.refer-header h2 {
    color: white;
    font-size: 18px;
    margin-bottom: 4px;
}

.refer-header p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.refer-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.refer-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.refer-stat-value {
    display: block;
    color: #22d3ee;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 2px;
}

.refer-stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
}

.referral-link-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
}

.referral-link-box label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.link-container {
    display: flex;
    gap: 8px;
}

.link-container input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    color: white;
    font-size: 13px;
    outline: none;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    outline: none;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.copy-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.invite-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    border: none;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 24px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    outline: none;
}

.invite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.4);
}

.invite-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.invite-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.referral-list {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 16px;
}

.referral-list h3 {
    color: white;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 600;
}

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

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

.ref-name {
    color: white;
    font-size: 11px;
}

.ref-earn {
    color: #22d3ee;
    font-size: 11px;
    font-weight: 600;
}

.subs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.sub-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    outline: none;
}

.sub-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sub-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2d2463;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.sub-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sub-avatar .default-avatar {
    font-size: 20px;
}

.sub-title {
    flex: 1;
    color: white;
    font-weight: 500;
}

.sub-link-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
}

.check-subs-btn {
    width: 100%;
    margin-top: 10px;
}

.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(180deg, #2d2463 0%, #1a1333 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 360px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.close-modal {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.close-modal:hover {
    color: white;
}

.close-modal img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.modal-body {
    padding: 20px;
}

.input-group-compact {
    margin-bottom: 20px;
}

.input-group-compact label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 8px;
}

.input-group-compact input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px;
    color: white;
    font-size: 16px;
    outline: none;
}

.input-group-compact input:focus {
    border-color: #6366f1;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.btn-secondary, .btn-primary {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    outline: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1333;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
}

.boost-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.boost-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    outline: none;
}

.boost-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.boost-duration {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.boost-price {
    color: #22d3ee;
    font-size: 16px;
    font-weight: 700;
}

.no-tasks-message {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    text-align: center;
    padding: 30px 0;
}

.nav-menu {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 8px 4px;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: calc(100% - 32px);
    max-width: 388px;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 16px;
    transition: all 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    outline: none;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.2));
}

.nav-emoji {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-emoji img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-name {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.nav-link.active .nav-name {
    color: #818cf8;
}

@media (max-width: 400px) {
    .tap-circle {
        width: 200px;
        height: 200px;
    }

    .balance-icon, .gems-icon {
        width: 28px;
        height: 28px;
    }

    .powerup-icon {
        width: 30px;
        height: 30px;
    }

    .withdraw-icon, .invite-icon {
        width: 24px;
        height: 24px;
    }

    .nav-emoji {
        width: 32px;
        height: 32px;
    }

    .nav-link {
        padding: 4px 8px;
    }

    .refer-icon {
        width: 64px;
        height: 64px;
    }

    .level-star, .bonus-emoji {
        width: 24px;
        height: 24px;
    }
}

.btn-subscribe, .btn-check, .withdraw-btn, .invite-btn, .copy-btn, .powerup-btn, .nav-link, .connect-btn, #bet-btn, .tap-circle, .tap-gold-full, .sub-item {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    width: 100%;
    max-width: 400px;
}

.notification {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease;
    max-width: 90%;
    pointer-events: auto;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: rgba(255, 255, 255, 0.3);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: rgba(255, 255, 255, 0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.modal-open {
    overflow: hidden;
}

.boost-indicator {
    font-size: 10px;
    color: #ec4899;
    margin-top: 4px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.gold-particle {
    position: absolute;
    width: 24px;
    height: 24px;
    pointer-events: none;
    animation: fly-away 0.6s ease-out forwards;
    z-index: 9999;
}

@keyframes fly-away {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(calc(100px * var(--dx)), calc(100px * var(--dy))) scale(0.5);
    }
}

.pickaxe-strike {
    position: absolute;
    width: 82px;
    height: 82px;
    pointer-events: none;
    animation: pickaxe-hit 0.3s ease-out forwards;
    z-index: 9999;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes pickaxe-hit {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.8) rotate(0deg);
    }
    30% {
        transform: translate(-50%, -50%) scale(1.2) rotate(-45deg);
    }
    60% {
        transform: translate(-50%, -50%) scale(1.0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) rotate(0deg);
    }
}
