@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #FF6B00;
    --primary-dark: #E55A00;
    --secondary: #FFC107;
    --accent: #4CAF50;
    --bg-gradient: linear-gradient(135deg, #FF8C00 0%, #FFD700 50%, #FF6347 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-dark: #2D1B00;
    --text-light: #FFFFFF;
    --shadow: 0 8px 32px rgba(255, 107, 0, 0.3);
    --shadow-sm: 0 4px 16px rgba(255, 107, 0, 0.2);
    --border-radius: 16px;
    --bottom-nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
    padding-bottom: var(--bottom-nav-height);
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: linear-gradient(180deg, #FF8C00 0%, #FFD700 30%, #FFF8DC 60%, #FFFFFF 100%);
}

.top-header {
    background: linear-gradient(135deg, #FF6B00, #FF8C00);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4);
}

.top-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-header .logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #FFD700;
}

.top-header .logo h1 {
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.top-header .balance-display {
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.hero-carousel {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    border-radius: 0 0 30px 30px;
    margin-top: 15px;
}

.hero-carousel .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-carousel .slide.active {
    opacity: 1;
}

.hero-carousel .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px;
    color: white;
}

.hero-overlay h2 {
    font-size: 1.3rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-overlay p {
    font-size: 0.8rem;
    opacity: 0.9;
}

.content-area {
    padding: 15px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 165, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B00, #FF8C00);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
}

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

.btn-success {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #f44336, #e53935);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

.btn-gold {
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: #5D4037;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    background: white;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--bottom-nav-height);
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 20px 20px 0 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #999;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s;
    position: relative;
}

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

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -4px;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.nav-item .nav-icon {
    font-size: 1.4rem;
}

.vip-card {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.15);
    border: 1px solid rgba(255, 165, 0, 0.2);
    transition: transform 0.3s;
    overflow: hidden;
}

.vip-card:hover {
    transform: scale(1.02);
}

.vip-card .vip-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.vip-card .vip-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vip-card .vip-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

.vip-card .vip-price {
    font-weight: 800;
    font-size: 1.1rem;
    color: #E65100;
}

.vip-card .vip-daily {
    font-size: 0.8rem;
    color: #4CAF50;
    font-weight: 600;
}

.vip-card .vip-total {
    font-size: 0.75rem;
    color: #666;
}

.copy-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    background: #f8f9fa;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.copy-row .copy-label {
    font-size: 0.75rem;
    color: #888;
    min-width: 80px;
    font-weight: 500;
}

.copy-row .copy-value {
    flex: 1;
    font-weight: 600;
    font-size: 0.9rem;
    word-break: break-all;
    color: #333;
}

.copy-row .copy-btn {
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.copy-row .copy-btn:hover {
    background: var(--primary-dark);
}

.copy-row .copy-btn.copied {
    background: #4CAF50;
}

.floating-telegram {
    position: fixed;
    bottom: 85px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0088cc, #00a8e8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: pulse-telegram 2s infinite;
    overflow: hidden;
}

.floating-telegram svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.floating-telegram:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.6);
}

.popup-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
    line-height: 1;
    box-shadow: 0 3px 10px rgba(244, 67, 54, 0.5);
}

.popup-close-btn:hover {
    background: #d32f2f;
    transform: scale(1.15);
}

.vip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.vip-grid-card {
    background: linear-gradient(145deg, #FFF8E1, #FFE0B2);
    border-radius: 16px;
    padding: 14px 10px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.2);
    border: 2px solid rgba(255, 165, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.vip-grid-card:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.35);
}

.vip-grid-card img {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 8px;
    border: 3px solid #FFD700;
    box-shadow: 0 3px 10px rgba(255, 107, 0, 0.25);
}

.vip-grid-card .vip-g-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 2px;
}

.vip-grid-card .vip-g-price {
    font-weight: 800;
    font-size: 1rem;
    color: #E65100;
}

.vip-grid-card .vip-g-daily {
    font-size: 0.75rem;
    color: #4CAF50;
    font-weight: 600;
}

@keyframes pulse-telegram {
    0%, 100% { box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5); }
    50% { box-shadow: 0 6px 30px rgba(0, 136, 204, 0.8); }
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.popup-box {
    background: white;
    border-radius: 20px;
    padding: 25px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

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

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

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

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

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.stat-item {
    background: white;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 165, 0, 0.15);
}

.stat-item .stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-item .stat-label {
    font-size: 0.7rem;
    color: #888;
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-pending {
    background: #FFF3E0;
    color: #E65100;
}

.status-approved {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-rejected {
    background: #FFEBEE;
    color: #C62828;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #FF8C00 0%, #FFD700 50%, #FF6347 100%);
}

.auth-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(255, 107, 0, 0.3);
    animation: slideUp 0.5s ease;
}

.auth-logo {
    text-align: center;
    margin-bottom: 20px;
}

.auth-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #FFD700;
}

.auth-logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 10px;
}

.auth-logo p {
    font-size: 0.8rem;
    color: #888;
}

.error-msg {
    background: #FFEBEE;
    color: #C62828;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
}

.success-msg {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
}

.gift-banner {
    background: linear-gradient(135deg, #FFD700, #FFC107, #FF8C00);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.3s;
    animation: bounce 2s infinite;
    border: 2px solid rgba(255,255,255,0.3);
}

.gift-banner:hover {
    transform: scale(1.02);
}

.gift-banner .gift-icon {
    font-size: 2.5rem;
}

.gift-banner .gift-text h3 {
    color: #5D4037;
    font-size: 0.95rem;
    font-weight: 700;
}

.gift-banner .gift-text p {
    color: #795548;
    font-size: 0.75rem;
}

.table-container {
    overflow-x: auto;
    margin-top: 10px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.data-table th {
    background: linear-gradient(135deg, #FF6B00, #FF8C00);
    color: white;
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.data-table td {
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.data-table tr:hover td {
    background: #FFF8E1;
}

.admin-section {
    margin-bottom: 20px;
}

.admin-section h3 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 107, 0, 0.2);
}

.tab-container {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.tab-btn {
    padding: 8px 16px;
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 20px;
    background: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 25px;
    width: 95%;
    max-width: 450px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.user-card-admin {
    background: white;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s;
}

.user-card-admin:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.juice-icon {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

.sparkle {
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.vip-active-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    animation: bounce 2s infinite;
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: #999;
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.fruit-decoration {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    pointer-events: none;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FF6B00, #FFD700);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.fee-notice {
    background: #FFF3E0;
    border: 1px solid #FFE0B2;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.8rem;
    color: #E65100;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.referral-link-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
    border: 1px dashed var(--primary);
    margin-top: 10px;
}

.referral-link-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 500;
    color: #333;
    outline: none;
}

.claim-btn {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.claim-btn:hover {
    transform: scale(1.05);
}

.weekend-notice {
    background: linear-gradient(135deg, #9C27B0, #BA68C8);
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 15px;
    animation: shimmer 2s infinite;
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 3000;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.toast.success { background: #4CAF50; }
.toast.error { background: #f44336; }
.toast.info { background: #2196F3; }

.crypto-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #1a237e;
    color: #FFD700;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.section-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.section-divider span {
    background: #FFF8DC;
    padding: 0 15px;
    position: relative;
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
}

@media (max-width: 480px) {
    .app-container {
        max-width: 100%;
    }
    .bottom-nav {
        max-width: 100%;
    }
}
