:root {
    --primary: #27ae60;
    --primary-dark: #219150;
    --primary-light: #e8f5e9;
    --secondary: #f1c40f;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --border: #e0e0e0;
    --danger: #e74c3c;
    --success: #2ecc71;
    --nav-height: 70px;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

#app {
    padding-bottom: calc(var(--nav-height) + 20px);
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    animation: fadeIn 0.4s ease-out;
}

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

/* Utilities */
.hidden { display: none !important; }
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1rem;
}
.btn-primary:active { transform: scale(0.95); }
.btn-primary:disabled { background: #ccc; cursor: not-allowed; }

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.02);
}

/* Bottom Nav */
#bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border);
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s;
    font-size: 0.7rem;
    font-weight: 500;
}

.nav-item i {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    transition: transform 0.3s;
}

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

.nav-item.active i {
    transform: translateY(-2px);
}

/* Screens Styling */
.screen {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Landing Screen */
.landing-screen {
    height: 100vh;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 100%);
}

.landing-screen img {
    width: 250px;
    margin-bottom: 30px;
}

.landing-screen h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

/* Payment Styling */
.qris-container {
    text-align: center;
    margin: 20px 0;
}

.qris-img {
    width: 200px;
    height: 200px;
    background: #f0f0f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px dashed #ccc;
}

/* Price Ticker */
.ticker-wrap {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 500;
    font-size: 0.9rem;
}

.ticker {
    display: inline-block;
    animation: ticker 20s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Package Card */
.package-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.package-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.package-info {
    flex: 1;
}

.package-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-full { background: #fee2e2; color: #ef4444; }
.status-available { background: #dcfce7; color: #22c55e; }

/* Overlays */
#pending-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.overlay-content i {
    color: var(--secondary);
    margin-bottom: 20px;
}

.icon-large {
    width: 80px;
    height: 80px;
}

/* Charts */
.chart-container {
    margin-top: 20px;
    height: 200px;
}
