* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #0a0e1c;
    color: #fff;
    line-height: 1.6;
}

.app {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
    padding-bottom: 80px;
    min-height: 100vh;
    background: linear-gradient(180deg, #1a1f35 0%, #0a0e1c 100%);
}

/* Loading */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80vh;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(76, 175, 80, 0.3);
    border-top: 5px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* Header */
.header {
    padding: 20px 0;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.username {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.stats-badge {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.stat-item {
    font-size: 16px;
    font-weight: 500;
}

.stat-icon {
    margin-left: 5px;
}

/* Section Title */
.section-title {
    font-size: 18px;
    margin: 20px 0 15px 0;
    color: #8b95b0;
}

/* Area Card */
.area-card {
    background: rgba(26, 31, 53, 0.8);
    border-radius: 16px;
    padding: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.area-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.area-header h3 {
    color: #4CAF50;
    font-size: 16px;
}

.area-slots {
    display: flex;
    gap: 5px;
}

.slot-dot {
    color: #4CAF50;
    font-size: 12px;
}

/* Plantations Grid */
.plantations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.plantation-card {
    background: rgba(10, 14, 28, 0.8);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.plantation-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.plantation-emoji {
    font-size: 20px;
}

.plantation-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.plantation-share {
    font-size: 12px;
    color: #8b95b0;
    margin-bottom: 8px;
}

.plantation-actions {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.ads-btn {
    background: #ff9800;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    flex: 1;
}

.harvest-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    flex: 1;
}

.plantation-permanent {
    font-size: 10px;
    color: #8b95b0;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Empty Slots */
.empty-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.empty-slot {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    font-size: 12px;
    color: #8b95b0;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1f35;
    display: flex;
    justify-content: space-around;
    padding: 8px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin: 0 auto;
}

.nav-btn {
    background: none;
    border: none;
    color: #8b95b0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-btn.active {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.nav-icon {
    font-size: 20px;
}

.nav-label {
    font-size: 11px;
}

/* Sections */
.section {
    margin-top: 20px;
    padding: 16px;
    background: rgba(26, 31, 53, 0.8);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

/* Shop Catalog */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.fruit-card {
    background: rgba(10, 14, 28, 0.8);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.fruit-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #fff;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 4px;
}

.share {
    font-size: 12px;
    color: #8b95b0;
    margin-bottom: 12px;
}

.buy-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
}

.buy-btn:disabled {
    background: #2a2f45;
    color: #8b95b0;
    cursor: not-allowed;
}

/* Plans */
.plans-grid {
    display: grid;
    gap: 12px;
}

.plan-card {
    background: rgba(10, 14, 28, 0.8);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.plan-card h3 {
    color: #FFD700;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.plan-share {
    color: #8b95b0;
    margin: 8px 0;
}

/* Deposit/Withdraw */
.deposit-card, .withdraw-card {
    background: rgba(10, 14, 28, 0.8);
    padding: 20px;
    border-radius: 12px;
}

.deposit-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.deposit-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.withdraw-input {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 16px;
}

.withdraw-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

.note {
    font-size: 12px;
    color: #8b95b0;
    margin-top: 15px;
    text-align: center;
}

/* Menu */
.menu-list {
    background: rgba(10, 14, 28, 0.8);
    border-radius: 12px;
    overflow: hidden;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.3s;
}

.menu-item:hover {
    background: rgba(76, 175, 80, 0.1);
}

.menu-item:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 480px) {
    .plantations-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-label {
        font-size: 10px;
    }
}