/* Kick Theme Variables */
:root {
    --bg-color: #000000;
    --card-bg: #151515;
    --border-color: #2a2a2c;
    --accent-color: #53FC18;
    --text-primary: #ffffff;
    --text-secondary: #E2E8F0;
    --success-color: #53FC18;
    --error-color: #ff4444;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Language Selector Container */
.lang-selector-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

/* Profile Container */
.profile-container {
    position: absolute;
    top: 20px;
    right: 180px;
    z-index: 1001;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .profile-container {
        right: 100px;
    }
    
    .lang-selector-container {
        right: 10px;
    }
}

/* Google Login Button */
.google-login-button {
    width: 100%;
    padding: 14px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.google-login-button:hover {
    border-color: var(--accent-color);
    background: rgba(83, 252, 24, 0.05);
}

.google-login-button svg {
    color: white;
}

.lang-selector {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}

.lang-selector:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Auth Container */
.auth-container {
    max-width: 500px;
    width: 100%;
    padding: 40px 36px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Body for auth form centering */
body.auth-mode {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container h2 {
    color: var(--text-primary);
    margin-bottom: 32px;
    font-size: 28px;
    font-weight: 700;
}

.auth-container .form-group {
    margin-bottom: 20px;
    width: 100%;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-field {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 18px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.auth-submit-button {
    width: 100%;
    padding: 18px 24px;
    background: var(--accent-color);
    border: none;
    border-radius: 12px;
    color: #000000;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.google-login-button {
    width: 100%;
    padding: 14px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.auth-view {
    animation: fadeIn 0.3s ease;
}

.auth-submit-button {
    width: 100%;
    padding: 16px 24px;
    background: var(--accent-color);
    border: none;
    border-radius: 12px;
    color: #000000;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.auth-submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(83, 252, 24, 0.4);
}

.auth-submit-button:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.auth-divider {
    margin: 20px 0;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.auth-toggle {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.toggle-link {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}

.toggle-link:hover {
    text-decoration: underline;
}

.auth-error {
    margin-top: 15px;
    padding: 12px 16px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--error-color);
    border-radius: 8px;
    color: var(--error-color);
    font-size: 14px;
    text-align: left;
}

/* Full Width Container - Responsive for Mobile and Desktop */
.app-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background-color: var(--bg-color);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 80px 20px 120px 20px;
    overflow-y: auto;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

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

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Balance Card - Meme Hash Style with Large Numbers */
.balance-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 15px 20px !important;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.balance-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.balance-icon {
    color: var(--accent-color);
}

.balance-label {
    color: var(--text-secondary);
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.balance-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 auto !important;
}

.balance-value {
    color: var(--text-primary);
    margin: 0 0 20px 0;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    width: 100% !important;
}

@media (max-width: 768px) {
    .balance-value {
        font-size: 32px !important;
    }
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.task-count {
    background: rgba(83, 252, 24, 0.1);
    color: var(--accent-color);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--accent-color);
}

/* CTA Container */
.cta-container {
    margin-bottom: 24px;
}

.cta-button {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #53FC18 0%, #53FC18 100%);
    border: none;
    border-radius: 16px;
    color: #000000;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(83, 252, 24, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(83, 252, 24, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-icon {
    font-size: 24px;
}

.cta-text {
    font-size: 18px;
    font-weight: 700;
}

/* Tasks List - Responsive Grid */
.tasks-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .tasks-list {
        grid-template-columns: 1fr;
    }
}

.task-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.task-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

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

.task-icon {
    width: 50px;
    height: 50px;
    background: rgba(83, 252, 24, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-color);
}

.task-info {
    flex: 1;
}

.task-name {
    color: var(--text-primary);
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.task-type {
    color: var(--text-secondary);
    margin: 0;
    font-size: 13px;
}

.task-reward {
    text-align: right;
    flex-shrink: 0;
    margin-right: 16px;
}

.reward-amount {
    color: var(--accent-color);
    margin: 0 0 2px 0;
    font-size: 20px;
    font-weight: 700;
}

.reward-label {
    color: var(--text-secondary);
    margin: 0;
    font-size: 11px;
}

.task-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 0;
}

.task-difficulty {
    display: flex;
    gap: 4px;
}

.difficulty-star {
    color: var(--accent-color);
}

.difficulty-star.empty {
    color: rgba(255, 255, 255, 0.2);
}

.task-button {
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(83, 252, 24, 0.4);
}

.task-button:active {
    transform: translateY(0);
}

.task-button:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* Referral Card - Meme Hash Style */
.referral-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px 25px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.referral-icon {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.referral-card h2 {
    color: var(--text-primary);
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
}

.referral-description {
    color: var(--text-secondary);
    margin: 0 0 25px 0;
    font-size: 15px;
    line-height: 1.5;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
}

.referral-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 25px;
}

.referral-stat {
    text-align: center;
}

.referral-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 6px;
}

.referral-label {
    color: var(--text-secondary);
    font-size: 13px;
}

.referral-link-container {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-field {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: var(--accent-color);
}

.input-field::placeholder {
    color: var(--text-secondary);
}

.copy-button {
    background: var(--accent-color);
    border: none;
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-button:hover {
    transform: scale(1.05);
}

.copy-icon {
    color: var(--bg-color);
}

.share-button {
    width: 100%;
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(83, 252, 24, 0.4);
}

.share-icon {
    color: var(--bg-color);
}

.claim-button {
    width: 100%;
    background: var(--success-color);
    color: var(--bg-color);
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
    margin-bottom: 16px;
}

.claim-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(83, 252, 24, 0.4);
}

.claim-button:active {
    transform: translateY(0);
}

.commission-text {
    color: var(--success-color);
    font-weight: 600;
    font-size: 14px;
}

.referrals-list-container {
    margin-top: 25px;
    text-align: left;
}

.referrals-list-title {
    color: var(--text-primary);
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
}

.referrals-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.no-referrals {
    color: var(--text-secondary);
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

.referral-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.referral-item:hover {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

.referral-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.referral-name {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.referral-username {
    color: var(--text-secondary);
    font-size: 12px;
}

.referral-date {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

.referral-tips {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.referral-tips h3 {
    color: var(--text-primary);
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    color: var(--text-secondary);
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
}

.tips-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Withdraw Card - Meme Hash Style */
.withdraw-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border-color);
}

.withdraw-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.withdraw-icon {
    color: var(--accent-color);
}

.withdraw-card h2 {
    color: var(--text-primary);
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.current-balance {
    background: rgba(83, 252, 24, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
    border: 1px solid var(--accent-color);
}

.conversion-rate {
    margin-bottom: 20px;
    text-align: center;
}

.conversion-text {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coin-cost {
    background: rgba(83, 252, 24, 0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(83, 252, 24, 0.2);
}

.cost-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.cost-value {
    color: var(--accent-color);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.service-notes {
    background: rgba(255, 152, 0, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.service-notes-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-note {
    color: var(--text-secondary);
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

.withdraw-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-hint {
    color: var(--text-secondary);
    font-size: 12px;
    margin: 0;
}

.form-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    color: var(--text-secondary);
    font-size: 13px;
}

.info-value {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
}

.withdraw-button {
    width: 100%;
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.withdraw-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(83, 252, 24, 0.4);
}

.withdraw-button:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.button-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top-color: var(--bg-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.hidden {
    display: none !important;
}

.recent-withdrawals {
    margin-top: 25px;
}

.recent-withdrawals h3 {
    color: var(--text-primary);
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.withdrawals-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.no-withdrawals {
    color: var(--text-secondary);
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

.withdrawal-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
}

.withdrawal-info {
    flex: 1;
}

.withdrawal-username {
    color: var(--text-primary);
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 500;
}

.withdrawal-amount {
    color: var(--text-secondary);
    margin: 0;
    font-size: 12px;
}

.withdrawal-status {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.withdrawal-status.pending {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.withdrawal-status.completed {
    background: rgba(83, 252, 24, 0.1);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.withdrawal-status.failed {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Bottom Navigation - Meme Hash Style with Glassmorphism */
.bottom-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(22, 22, 24, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 15px 0;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.nav-item {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.nav-icon-outline {
    color: #8e8e93;
}

.nav-icon-filled {
    color: #53FC18;
}

.nav-item.active .nav-icon-outline {
    color: #53FC18;
}

.nav-item.active .nav-icon-filled {
    color: #53FC18;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-color);
    border-radius: 0 0 3px 3px;
    transition: width 0.3s ease;
}

.nav-item.active::before {
    width: 50%;
}

.nav-icon {
    transition: all 0.3s ease;
}

.nav-icon-outline {
    display: block;
}

.nav-icon-filled {
    display: none;
}

.nav-item.active .nav-icon-outline {
    display: none;
}

.nav-item.active .nav-icon-filled {
    display: block;
}

.nav-label {
    font-size: 11px;
    color: #8e8e93;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-item.active .nav-label {
    color: #53FC18;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #53FC18;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.task-card {
    animation: slideIn 0.3s ease forwards;
}

.task-card:nth-child(1) {
    animation-delay: 0.05s;
}

.task-card:nth-child(2) {
    animation-delay: 0.1s;
}

.task-card:nth-child(3) {
    animation-delay: 0.15s;
}

.task-card:nth-child(4) {
    animation-delay: 0.2s;
}

.task-card:nth-child(5) {
    animation-delay: 0.25s;
}
