/* ===================================== */
/* ========== BASE STYLES ============== */
/* ===================================== */

html {
    -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #0b0f19, #0f1b2e);
    color: #e6f1ff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

a {
    color: #00f5ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: #00ff99;
    text-shadow: 0 0 10px rgba(0,255,153,0.7);
}

ul {
   list-style: disc;
    padding-left: 20px;
}

ul li {
    padding: 8px 0;
    font-size: 18px;
}

/* ===================================== */
/* ========== NAVBAR =================== */
/* ===================================== */

.navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 55px;
    padding: 0 20px;
    background: #e9e5dd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coin-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f7931a, #ffb347);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.brand {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #b87333;
}

.nav-links a {
    margin-left: 20px;
    color: #333;
    font-weight: 500;
}

.nav-links a:hover {
    color: #f7931a;
}

.hamburger-btn {
    display: none;
    width: 42px;
    height: 42px;
    font-size: 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #c47c3c, #a9652c);
    color: #fff;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hamburger-btn:hover {
    transform: translateY(-2px);
}

/* ===================================== */
/* ========== HERO SECTION ============= */
/* ===================================== */

.hero-section {
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 20px;
    animation: fadeIn 1.2s ease-in-out;
}

.hero-box {
    max-width: 900px;
    margin: auto;
    padding: 45px 50px;
    background: linear-gradient(180deg, #121826, #0d1423);
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.55);
}

.hero-section h2 {
    font-size: 38px;
    margin-bottom: 20px;
    color: #00ffcc;
    text-shadow: 0 0 15px rgba(0,255,200,0.3);
}

.hero-description {
    max-width: 750px;
    margin: 20px auto 0;
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.75;
}

.hero-cta {
    margin-top: 35px;
}

.btn-get-started {
    display: inline-block;
    padding: 14px 34px;
    background: linear-gradient(135deg, #c47c3c, #a9652c);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-get-started:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================================== */
/* ========== TOOLS GRID =============== */
/* ===================================== */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* TOOL CARD */

.tool-card {
    background: rgba(20, 30, 50, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(0,255,200,0.08);
    padding: 30px;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* căn giữa nội dung */
    text-align: center;

    /* giữ layout đẹp */
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 35px rgba(0, 255, 200, 0.2);
}

.tool-card h3 {
    margin-bottom: 12px;
    color: #00ffcc;
}

.tool-card p {
    opacity: 0.75;
}

/* BUTTON */

.tool-btn {
    display: inline-block;
    margin-top: auto; /* đẩy button xuống dưới */
    align-self: center; /* căn giữa button */

    padding: 12px 24px;
    border-radius: 12px;

    background: linear-gradient(90deg, #f7931a, #ffb347);
    color: #000;
    font-weight: 700;

    box-shadow: 0 6px 18px rgba(247,147,26,0.35);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(247,147,26,0.6);
}

.tools-title{
    text-align:center;
    margin-bottom:10px;
}

.tools-desc{
    text-align:center;
    opacity:0.7;
    margin-bottom:40px;
    max-width:700px;
    margin-left:auto;
    margin-right:auto;
}

/* ===================================== */
/* ========== ABOUT SECTION ============ */
/* ===================================== */

.about-section {
    max-width: 900px;
    margin: 25px auto 80px;
    padding: 40px;
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.about-section h3 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #fff;
}

.about-section p {
    margin-bottom: 14px;
    color: #d6d6d6;
    line-height: 1.7;
}

/* ===================================== */
/* ========== FOOTER =================== */
/* ===================================== */

footer {
    text-align: center;
    padding: 30px 20px;
    color: #aaa;
    font-size: 14px;
    margin-top: 50px;
    opacity: 0.6;
}

/* ===================================== */
/* ========== TOOL STYLE =============== */
/* ===================================== */

.container h1 {
    font-size: 34px;
    font-weight: 700;
    color: #00e0ff;
    margin-bottom: 20px;
}

.container .card {
    background: rgba(15, 23, 37, 0.95);
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    max-width: 900px;
    margin: 0 auto;
}

.container .form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.container .form-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid #1f2a40;
    background: #0f1725;
    color: #ffffff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.container .form-group input:focus {
    border-color: #00e0ff;
    box-shadow: 0 0 10px rgba(0, 224, 255, 0.3);
    outline: none;
}

.container .btn-calc {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    background: #f0b90b;
    color: #000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

.container .btn-calc:hover {
    background: #ffd84d;
    transform: translateY(-2px);
}

/* ===================================== */
/* ========== TOOL RESULT BOX ========== */
/* ===================================== */

.result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
    background: #0f1725;
    border: 1px solid #1f2a40;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    font-size: 15px;
}

.result p {
    margin: 8px 0;
}

.result span {
    font-weight: 600;
}

/* ===================================== */
/* ========== CONTENT BELOW TOOL ======= */
/* ===================================== */

.seo-content {
    margin-top: 50px;
    line-height: 1.8;
    color: #ddd;
}

.seo-content h2 {
    margin-top: 40px;
    font-size: 24px;
}

.seo-content h3 {
    margin-top: 20px;
    font-size: 18px;
}

.seo-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.seo-content p {
    margin: 12px 0;
}

.seo-content strong {
    color: #f0b90b;
}

/* ===================================== */
/* ========== FUTURES NOTE ============= */
/* ===================================== */

.input-note {
    display: block;
    font-size: 12px;
    font-style: italic;
    color: #888;
    margin-top: 6px;
    opacity: 0.85;
}

/* ===================================== */
/* ========== BINANCE / FORM STYLE ===== */
/* ===================================== */

.form-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.form-group {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 6px;
    font-size: 14px;
    color: #aaa;
}

.form-group input,
.form-group select {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #1e293b;
    background: #0f172a;
    color: #fff;
    font-size: 14px;
}

/* ===================================== */
/* ========== BREAK-EVEN STYLE ========= */
/* ===================================== */

.break-even-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    font-family: Arial, Helvetica, sans-serif;
}

.break-even-card {
    background: #111827;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.break-even-card input,
.break-even-card select {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #374151;
    background: #1f2937;
    color: #ffffff;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.break-even-card input:focus,
.break-even-card select:focus {
    outline: none;
    border-color: #facc15;
    box-shadow: 0 0 8px rgba(250,204,21,0.4);
}

.break-even-card button {
    grid-column: span 2;
    padding: 16px;
    background: #facc15;
    color: #111827;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.break-even-card button:hover {
    background: #eab308;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.break-even-card button:active {
    transform: translateY(0px);
    box-shadow: none;
}

.break-even-result {
    margin-top: 25px;
    background: #0f172a;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #1e293b;
}

.break-even-result p {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    font-size: 15px;
    color: #e5e7eb;
}

/* ===================================== */
/* ========== PROFIT / LOSS COLORS ===== */
/* ===================================== */

.profit {
    color: #00e676;
    font-weight: 600;
}

.loss {
    color: #ff5252;
    font-weight: 600;
}

/* ===================================== */
/* ========== POSITION SIZE STYLE ====== */
/* ===================================== */

.position-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.btn-primary {
    margin-top: 25px;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    background: #facc15;
    color: #000;
    cursor: pointer;
}

.btn-primary:hover {
    background: #eab308;
}

.result-box {
    margin-top: 25px;
    padding: 20px;
    border-radius: 10px;
    background: #0b1220;
    border: 1px solid #1e293b;
    color: #00ffae;
}

.result-box:empty {
    display: none;
}

/* ===================================== */
/* ========== COMPOUND INTEREST STYLE == */
/* ===================================== */

.compound-card {
    background: #0f1b2d;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.compound-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.compound-form .form-group {
    display: flex;
    flex-direction: column;
}

.compound-form label {
    margin-bottom: 8px;
    font-size: 14px;
    color: #cfd8e3;
}

.compound-form input,
.compound-form select {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #1f2f46;
    background: #0c1625;
    color: #ffffff;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.compound-form input:focus,
.compound-form select:focus {
    border-color: #f5b800;
    outline: none;
}

.compound-btn {
    grid-column: span 2;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: #f5b800;
    color: #000;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.compound-btn:hover {
    background: #ffd84d;
}

#result-compoundCalc {
    margin-top: 25px;
    padding: 20px;
    background: #0c1625;
    border-radius: 12px;
    border: 1px solid #1f2f46;
    color: #ffffff;
}

#result-compoundCalc table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
}

#result-compoundCalc th,
#result-compoundCalc td {
    padding: 10px;
    border: 1px solid #1f2f46;
    text-align: center;
}

/* ============================= */
/* ===== MOBILE DROPDOWN MENU == */
/* ============================= */

.mobile-menu {
    position: absolute;
    top: 100%;
    right: 1px;
    width: 110px;
    margin-top: 2px;
    background: #e9e5dd;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: fadeIn 0.25s ease-in-out;
    z-index: 999;
}

.mobile-menu a {
    padding: 12px 16px;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-menu a:hover {
    background: rgba(0,0,0,0.05);
    color: #f7931a;
}

/* ===================================== */
/* ========== FEE TABLE ================ */
/* ===================================== */

.clean-fee-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 16px;
}

.clean-fee-table thead th {
    text-align: left;
    padding: 14px 12px;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.clean-fee-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e5e5;
}

.clean-fee-table tr:last-child td {
    border-bottom: 1px solid #ddd;
}

/* ===================================== */
/* ========== RESPONSIVE =============== */
/* ===================================== */

@media (max-width: 1100px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .container .form-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 55px;
        row-gap: 25px;
    }
}

@media (max-width: 900px) {
    .navbar {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .hero-section h2 {
        font-size: 26px;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 16px;
        padding: 0 10px;
    }

    .tools-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .tool-card {
        padding: 24px;
    }

    .tool-btn {
        width: auto;
        display: inline-block;
        padding: 14px 28px;
        text-align: center;
    }

    .about-section {
        padding: 25px;
        margin: 20px;
    }

    footer {
        font-size: 14px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .break-even-card {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .break-even-card button {
        grid-column: span 1;
    }

    .break-even-container {
        padding: 15px;
    }

    .break-even-result p {
        font-size: 14px;
    }

    .position-grid {
        grid-template-columns: 1fr;
    }

    .compound-form {
        grid-template-columns: 1fr;
    }

    .compound-btn {
        grid-column: span 1;
    }
    
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.result table th,
.result table td {
    text-align: center;
}

.positive {
    color: #2ecc71;
}

.negative {
    color: #e74c3c;
}

.muted {
    color: #aaa;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 6px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 6px;
}

.footer-links a:hover {
    color: #fff;
}

.contact-container{
max-width:800px;
margin:40px auto;
padding:20px;
line-height:1.7;
}

.contact-intro{
margin-bottom:25px;
}

.contact-form label{
display:block;
margin-top:15px;
font-weight:600;
}

.contact-form input,
.contact-form select,
.contact-form textarea{
width:100%;
padding:12px;
margin-top:6px;
border:1px solid #ccc;
border-radius:6px;
font-size:14px;
}

.contact-form button{
margin-top:20px;
background:#2c7be5;
color:white;
border:none;
padding:12px 25px;
border-radius:6px;
font-size:16px;
cursor:pointer;
}

.contact-form button:hover{
background:#1a5fd1;
}

.success{
color:#2ecc71;
margin-top:20px;
}

.error{
color:#e74c3c;
margin-top:20px;
}

.contact-info{
margin-top:20px;
font-size:15px;
}

.ad {
    margin: 30px 0;
    text-align: center;
    min-height: 120px;
}

.liq-warning {
    margin-top:12px;
    padding:10px;
    border-radius:6px;
    background:#f5f5f5;
    color:#333;
}

.liq-warning.high {
    background:#ff4d4f;
    color:#fff;
}

.risk-medium { color:#f59e0b; font-weight:600; }
.risk-high { color:#ff4d4f; font-weight:600; }
.risk-low { color:#10b981; font-weight:600; }
