:root {
    --bg-color: #f2f2f5;
    --text-primary: #111111;
    --text-secondary: #666666;
    --card-bg: #ffffff;
    --accent-color: #e02b6b; /* Tukar button color */
    --dark-card-bg: #3c3c3c;
    --dark-card-text: #ffffff;
    --dark-card-secondary: #b3b3b3;
    --border-color: #eaeaea;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f0f2f5; /* Cleaner background outside container */
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Responsive App Container */
.app-container {
    background-color: var(--bg-color);
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    box-shadow: 0 0 25px rgba(0,0,0,0.04);
    position: relative;
    overflow-x: hidden;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .app-container {
        max-width: 768px; /* Tablet view */
        border-left: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
        box-shadow: 0 0 40px rgba(0,0,0,0.08);
    }
}

@media (min-width: 1024px) {
    .app-container {
        max-width: 960px; /* Desktop view */
    }
}

/* Header */
.header {
    display: flex;
    align-items: center;
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.header i {
    font-size: 20px;
    margin-right: 15px;
    cursor: pointer;
}

/* Content Area */
.content-area {
    padding: 0 20px 90px 20px; /* Extra bottom padding for floating navigation bar */
}

/* Main Balance Card */
.balance-card {
    background-color: var(--dark-card-bg);
    border-radius: 16px;
    padding: 20px;
    color: var(--dark-card-text);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.balance-card::after {
    content: '\266A'; /* Music note or similar TikTok logo placeholder */
    font-family: 'FontAwesome';
    position: absolute;
    right: 20px;
    top: 30%;
    font-size: 120px;
    opacity: 0.1;
    color: white;
    transform: rotate(-15deg);
}

.balance-subtitle {
    font-size: 13px;
    color: var(--dark-card-secondary);
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.show-btn {
    font-size: 12px;
    color: var(--dark-card-text);
    text-decoration: none;
    background: rgba(255,255,255,0.1);
    padding: 5px 10px;
    border-radius: 15px;
    z-index: 2;
}

.balance-divider {
    height: 1px;
    background-color: rgba(255,255,255,0.2);
    margin: 15px 0;
}

.balance-footer {
    display: flex;
    justify-content: space-between;
}

.balance-footer-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.balance-footer-item:first-child {
    border-right: 1px solid rgba(255,255,255,0.2);
}

.balance-footer-item:last-child {
    padding-left: 20px;
    justify-content: center;
}

.coin-label {
    font-size: 13px;
    color: var(--dark-card-secondary);
    margin-bottom: 5px;
}

.coin-value {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
}

.coin-icon {
    color: #ffc107;
    margin-right: 5px;
    font-size: 14px;
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--dark-card-text);
}

/* Section Titles */
.section-title {
    font-size: 15px;
    font-weight: 600;
    margin: 25px 0 15px 0;
    color: var(--text-primary);
}

/* Previous Choice Card */
.choice-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.choice-info {
    display: flex;
    flex-direction: column;
}

.choice-coin {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 5px;
}

.choice-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

.btn-tukar {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-tukar:hover {
    background-color: #c71e59;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (min-width: 576px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: transform 0.2s;
}

.service-card:hover {
    transform: translateY(-2px);
}

.service-card i {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.service-card span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Dashboard Specific */
.dashboard-welcome {
    padding: 20px;
    background: linear-gradient(135deg, #1e1e1e, #3c3c3c);
    color: white;
    border-radius: 0 0 20px 20px;
}

.dashboard-welcome h2 {
    font-size: 22px;
    margin-bottom: 5px;
}

.dashboard-welcome p {
    font-size: 14px;
    color: #b3b3b3;
}

.nav-bottom {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    z-index: 999;
    transition: max-width 0.3s ease;
}

@media (min-width: 768px) {
    .nav-bottom {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .nav-bottom {
        max-width: 960px;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 11px;
    gap: 5px;
}

.nav-item.active {
    color: #1e1e1e;
    font-weight: 600;
}

.nav-item i {
    font-size: 20px;
}

/* Premium Language Switcher Styling */
.lang-switcher {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    z-index: 1002;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-switcher::before {
    content: '\f0ac'; /* Globe icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 8px;
    margin-right: 4px;
}

.lang-switcher.dark-theme {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.lang-switcher.dark-theme::before {
    color: #555555;
}

.lang-btn {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.lang-btn.active {
    background: #ffffff;
    color: #e02b6b !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.lang-btn:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.lang-switcher.dark-theme .lang-btn {
    color: #555555;
}

.lang-switcher.dark-theme .lang-btn.active {
    background: #e02b6b;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(224, 43, 107, 0.25);
}

.lang-switcher.dark-theme .lang-btn:hover:not(.active) {
    color: #111111;
    background: rgba(0, 0, 0, 0.04);
}

.lang-divider {
    display: none;
}
