/* RESET & GLOBAL */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: #050505;
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* BACKGROUND */
#blockchain-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
}

/* FLUID LAYOUT */
.container-fluid {
    width: 96%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
header {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid #333;
    padding: 15px 0;
    position: sticky; top: 0; z-index: 100;
}
.header-wrap { display: flex; align-items: center; justify-content: center; }
.logo-box { display: flex; align-items: center; gap: 15px; }
.logo-img { height: 50px; background: #fff; padding: 4px; border-radius: 4px; }
.logo-text h1 {
    font-family: 'Orbitron', sans-serif; font-size: 20px; color: #fff; margin: 0; letter-spacing: 1px;
}
.version-tag {
    font-size: 11px; color: #000; background: #00ff88;
    padding: 2px 8px; border-radius: 3px; font-weight: bold; margin-left: 10px;
}

/* GRID LAYOUT */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.results-grid {
    grid-template-columns: 4fr 6fr; /* Bảng P&L 40%, Tư vấn 60% */
}

/* CARDS */
.card {
    background: #ffffff; border-radius: 10px; padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7); height: 100%;
}
.card-head {
    display: flex; align-items: center; border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px; margin-bottom: 25px;
}
.step-num {
    font-family: 'Orbitron', sans-serif; font-size: 32px; color: #ddd; margin-right: 15px;
}
.card-head h3 { margin: 0; font-size: 16px; text-transform: uppercase; font-weight: 700; color: #222; }

/* INPUTS */
.form-group { margin-bottom: 20px; }
.form-row { display: flex; gap: 20px; }
.half { width: 50%; }
label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 8px; }
input, select {
    width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px;
    background: #f8f9fa; font-size: 15px; color: #000;
}
input:focus, select:focus {
    border-color: #00a651; outline: none; background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
}
.highlight-box { background: #e3f2fd; padding: 15px; border-radius: 6px; border: 1px dashed #2196f3; margin-top: 10px; }
.info-alert { background: #fff3e0; border-left: 4px solid #ff9800; padding: 12px; font-size: 12px; color: #e65100; margin: 15px 0; }
.text-blue { color: #0277bd; }

/* BUTTON */
.action-wrap { text-align: center; margin: 50px 0; }
.btn-submit {
    background: linear-gradient(135deg, #00ff88 0%, #00b359 100%);
    color: #000; font-family: 'Orbitron', sans-serif; font-size: 18px; font-weight: bold;
    padding: 18px 60px; border: none; border-radius: 50px; cursor: pointer;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4); transition: all 0.3s;
}
.btn-submit:hover { transform: scale(1.05); box-shadow: 0 0 50px rgba(0, 255, 136, 0.6); }

/* KPI DASHBOARD */
.kpi-row { display: flex; gap: 25px; margin-bottom: 30px; }
.kpi-box {
    flex: 1; background: #111; color: white; padding: 25px; border-radius: 10px;
    text-align: center; border: 1px solid #333;
}
.main-kpi { border-color: #00ff88; box-shadow: 0 0 20px rgba(0, 255, 136, 0.1); }
.kpi-box span { font-size: 32px; font-weight: bold; font-family: 'Orbitron', sans-serif; display: block; margin-top: 10px; }
.kpi-box h4 { font-size: 12px; color: #bbb; text-transform: uppercase; letter-spacing: 1px; }

/* TABLE */
.pl-table { width: 100%; border-collapse: collapse; }
.pl-table td { padding: 12px 10px; border-bottom: 1px solid #eee; font-size: 14px; }
.text-right { text-align: right; }
.text-red { color: #d32f2f; }
.final-line td { border-top: 2px solid #000; padding-top: 15px; font-size: 18px; color: #00a651; font-weight: bold; }

/* ADVICE SECTION */
.advice-card { border-top: 4px solid #00ff88; overflow-y: auto; max-height: 800px; }
.advice-item {
    display: flex; gap: 15px; padding: 20px; margin-bottom: 20px;
    background: #f9f9f9; border-radius: 8px; border-left: 5px solid #ccc;
}
.advice-item.danger { background: #fff5f5; border-left-color: #d32f2f; }
.advice-item.warning { background: #fffde7; border-left-color: #fbc02d; }
.advice-item.success { background: #e8f5e9; border-left-color: #2e7d32; }
.advice-item.info { background: #e3f2fd; border-left-color: #1565c0; }
.advice-item.strategy { background: #f3e5f5; border-left-color: #7b1fa2; }
.icon { font-size: 28px; }
.content p { font-size: 14px; margin: 5px 0 0; color: #444; line-height: 1.6; }
.content strong { font-size: 15px; font-family: 'Orbitron', sans-serif; display: block; }

/* VIP CONTACT */
.vip-contact-box {
    margin-top: 30px; background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border: 1px solid #333; padding: 30px; border-radius: 12px;
    text-align: center; color: white; border-top: 4px solid #00ff88;
}
.contact-header { font-family: 'Orbitron', sans-serif; color: #00ff88; font-weight: bold; margin-bottom: 15px; font-size: 16px; }
.phone-cta {
    display: inline-flex; align-items: center; gap: 15px;
    background: rgba(255,255,255,0.05); padding: 12px 35px; border-radius: 50px;
    border: 1px solid #00ff88; margin: 20px 0; cursor: pointer; transition: all 0.3s;
}
.phone-cta:hover { background: rgba(0, 255, 136, 0.1); transform: scale(1.05); }
.phone-number { font-family: 'Orbitron', sans-serif; font-size: 24px; font-weight: bold; color: #fff; }
.expert-info { margin-top: 10px; font-size: 14px; color: #ccc; }
.expert-info strong { color: #fff; display: block; margin-bottom: 5px; }

/* PAYWALL MODAL */
#paywall-screen {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.92); z-index: 9999; backdrop-filter: blur(8px);
}
.paywall-modal {
    background: white; width: 90%; max-width: 450px; margin: 10vh auto;
    padding: 40px; border-radius: 15px; text-align: center; border: 4px solid #00ff88;
    box-shadow: 0 0 60px rgba(0, 255, 136, 0.4); animation: slideDown 0.4s ease;
}
@keyframes slideDown { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.qr-border { border: 2px solid #eee; padding: 10px; width: 200px; margin: 20px auto; border-radius: 10px; }
.qr-border img { width: 100%; }
.input-verify-group { display: flex; gap: 10px; justify-content: center; margin-top: 25px; }
.input-verify-group input { padding: 12px; border: 2px solid #333; border-radius: 4px; width: 200px; text-align: center; font-weight: bold; font-size: 16px; }
#btn-unlock { background: #000; color: white; border: none; padding: 0 25px; font-weight: bold; cursor: pointer; border-radius: 4px; }
#error-notify { color: red; margin-top: 15px; font-weight: bold; }

/* FOOTER */
footer { text-align: center; padding: 40px; background: #050505; color: #666; border-top: 1px solid #222; margin-top: 50px; }

/* RESPONSIVE */
@media (max-width: 1200px) {
    .grid-layout { grid-template-columns: repeat(2, 1fr); }
    .results-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .grid-layout { grid-template-columns: 1fr; }
    .kpi-row { flex-direction: column; }
    .header-wrap { flex-direction: column; }
    .logo-text h1 { font-size: 16px; margin-top: 10px; }
}