:root {
    --primary: #f7931a;
    --bg-dark: #020617;
    --glass: rgba(255,255,255,0.04);
    --border: rgba(255,255,255,0.08);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
}

/* GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: radial-gradient(circle at top, #0f172a, #020617 80%);
    color: var(--text-main);
    padding-bottom: 80px;
    overflow-x: hidden;
}

/* 🔥 ANIMATED BACKGROUND */
body::before {
    content: "";
    position: fixed;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(247,147,26,0.08), transparent 60%);
    animation: moveBg 15s linear infinite;
    z-index: 0;
}
@keyframes moveBg {
    0% { transform: translate(-25%, -25%); }
    50% { transform: translate(-10%, -10%); }
    100% { transform: translate(-25%, -25%); }
}

/* HEADER */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: rgba(2,6,23,0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px;
    z-index: 1000;
}

.menu-toggle i {
    font-size: 24px;
    color: var(--primary);
    transition: 0.2s;
}
.menu-toggle i:active {
    transform: scale(0.9);
}

/* FULL MENU */
.full-page-menu {
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,0.95);
    backdrop-filter: blur(25px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    z-index: 2000;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.full-page-menu a {
    font-size: 24px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}
.full-page-menu a:hover {
    color: var(--primary);
    letter-spacing: 1px;
}


/* =========================
   DEWA UI: FULL PAGE MENU 
   ========================= */
.full-page-menu {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    display: none; /* Dikontrol via JS */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

/* Background Decoration */
.menu-overlay-bg {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, rgba(247, 147, 26, 0.1) 0%, transparent 70%);
    z-index: -1;
    animation: pulseGlow 8s infinite alternate;
}

@keyframes pulseGlow {
    from { transform: scale(1); opacity: 0.5; }
    to { transform: scale(1.2); opacity: 0.8; }
}

.menu-content {
    text-align: center;
    width: 100%;
}

.menu-header {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
}

.menu-header img {
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(247, 147, 26, 0.5));
}

.menu-header span {
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--primary);
    font-weight: 700;
}

/* Close Button */
.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.close-menu:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: rotate(90deg);
}

/* Menu List */
.full-page-menu ul {
    list-style: none;
    padding: 0;
}

.full-page-menu ul li {
    margin: 25px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animasi Masuk per Item */
.full-page-menu.active ul li {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(0.1s * var(--i));
}

.full-page-menu a {
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: 0.3s;
    position: relative;
}

.full-page-menu a i {
    font-size: 22px;
    color: var(--primary);
    opacity: 0.7;
}

.full-page-menu a:hover {
    color: var(--primary);
    transform: scale(1.1);
    letter-spacing: 2px;
}

.full-page-menu a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.full-page-menu a:hover::after {
    width: 50px;
}

.menu-footer {
    position: absolute;
    bottom: 40px;
    width: 100%;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 1px;
}


/* CONTENT */
.content-wrapper {
    position: relative;
    z-index: 1;
    padding: 80px 15px 20px;
}

/* CARD STYLE GLOBAL */
.user-card,
.chart-container,
.convert-box,
.history-section {
    background: var(--glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(25px);
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

/* USER CARD */
.user-card {
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

/* GLOW EFFECT */
.user-card::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(247,147,26,0.4), transparent);
    top: -30px;
    right: -30px;
    filter: blur(40px);
}

/* USER INFO */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    font-size: 42px;
    color: var(--primary);
}

.details h3 {
    font-size: 18px;
    font-weight: 600;
}
.details p {
    font-size: 13px;
    color: var(--text-dim);
}

/* CHART */
.chart-container {
    padding: 15px;
    margin-bottom: 20px;
}

.update-tag {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 6px;
}

/* CONVERT */
.conversion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.convert-box {
    padding: 18px;
    text-align: center;
    transition: 0.25s;
    position: relative;
}

.convert-box:hover {
    transform: translateY(-5px) scale(1.02);
}

.convert-box::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: radial-gradient(circle, rgba(247,147,26,0.15), transparent);
    opacity: 0;
    transition: 0.3s;
}
.convert-box:hover::after {
    opacity: 1;
}

.convert-box h4 {
    font-size: 18px;
    color: var(--primary);
}

/* TABLE */
.history-section {
    padding: 15px;
}

.section-title {
    margin-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    color: var(--text-dim);
    font-size: 12px;
    padding: 10px;
}

td {
    padding: 12px 10px;
    border-top: 1px solid var(--border);
}

/* =========================================
   FOOTER (DEWA UI: FIXED ICON DISPLAY)
   ========================================= */
.main-footer {
    position: fixed;
    z-index: 99;
    bottom: 0px; /* Melayang dengan jarak aman */
    left: 50%;
    transform: translateX(-50%);
    width: 100%; 
    max-width: 420px;
    height: 80px;
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 2px solid rgba(247, 147, 26, 0.3); 
    border-radius: 30px 30px 0 0;
    box-shadow: 0 0 15px rgba(247, 147, 26, 0.2);
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.footer-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 100%;
}

.nav-item {
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 1;

    -webkit-tap-highlight-color: transparent; 
    outline: none;
    user-select: none;
}

/* Fix: Area Ikon agar Muncul & Presisi */
.nav-icon-wrapper {
    width: 35px;
    height: 35px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-bottom: 2px;
    transition: 0.3s;
}

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

.nav-item span {
    font-size: 10px;
    font-weight: 600;
}

/* ACTIVE GLOW & LEAP */
.nav-item.active {
    color: var(--primary);
}

.nav-item.active .nav-icon-wrapper {
    transform: translateY(-0px); /* Efek melompat naik */
    filter: drop-shadow(0 0 10px rgba(247,147,26,0.8));
}

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

.nav-item:active {
    transform: scale(0.9);
}

/* =========================
   TABLE RIWAYAT MINING (UPGRADE)
========================= */

.history-section {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 15px;
    margin-bottom: 20px;
}

/* Judul */
.section-title {
    font-size: 15px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
}

/* Header */
th {
    text-align: left;
    color: var(--text-dim);
    font-size: 12px;
    padding: 10px;
}

/* =========================
   ISI TABEL (INI YANG PENTING)
========================= */

/* Semua isi tabel */
tbody td {
    padding: 12px 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Kolom TIME */
tbody td:nth-child(1) {
    font-size: 11px;
    color: var(--text-dim);
}

/* Kolom BTC */
tbody td:nth-child(2) {
    font-size: 14px;
    font-weight: 600;
    color: #f7931a;
}

/* Kolom IDR */
tbody td:nth-child(3) {
    font-size: 14px;
    font-weight: 500;
    color: #22c55e;
}

/* =========================
   HOVER EFFECT (PREMIUM)
========================= */
tbody tr {
    transition: 0.2s;
}

tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

/* =========================
   ANIMASI ROW MASUK (BONUS)
========================= */
tbody tr {
    animation: fadeInRow 0.3s ease;
}

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

 
.mining-loader {
    color: #f39c12;
    font-size: 0.85em;
    font-weight: bold;
}
