/*
Theme Name: KHmix 3D Farm - Final V8
Theme URI: https://example.com/
Author: KHmix DevTeam
Description: KHmix Farm Pricing with Setup Guide, single row pricing, FB Colors, and Popup Payment Modal.
Version: 8.0
*/
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background-color: #18191A; color: #E4E6EB; margin: 0; padding: 0; overflow-x: hidden; position: relative; scroll-behavior: smooth; }
.orb-1 { position: absolute; top: -20%; left: 10%; width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(24,119,242,0.15) 0%, rgba(0,0,0,0) 70%); border-radius: 50%; z-index: 0; pointer-events: none; }
.orb-2 { position: absolute; top: 60%; right: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(24,119,242,0.1) 0%, rgba(0,0,0,0) 70%); border-radius: 50%; z-index: 0; pointer-events: none; }

/* Navbar */
.khmix-nav-bar { 
    background: #242526; border-bottom: 1px solid #3A3B3C; padding: 15px 40px; 
    display: flex; justify-content: space-between; align-items: center; 
    border-radius: 40px; margin: 20px auto; max-width: 1200px; position: sticky; top: 20px; z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.khmix-logo-area { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: 0.5px; color: #E4E6EB; text-decoration: none; }
.khmix-logo-area img { height: 28px; border-radius: 4px; object-fit: contain; }
.khmix-menu { display: flex; gap: 30px; font-size: 0.9rem; font-weight: 500; color: #B0B3B8; }
.khmix-menu a { display: flex; align-items: center; gap: 6px; cursor: pointer; transition: 0.2s; text-decoration: none; color: inherit; }
.khmix-menu a:hover { color: #1877F2; }
.khmix-menu svg { width: 16px; height: 16px; }
.khmix-sign-in { background: #1877F2; color: #fff; padding: 8px 24px; border-radius: 20px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: 0.3s; text-decoration: none; }
.khmix-sign-in:hover { background: #145dbf; }

/* Header section */
.khmix-header { text-align: center; margin-top: 60px; margin-bottom: 40px; position: relative; z-index: 1; }
.khmix-header h1 { font-size: 3.5rem; font-weight: 700; margin: 0 0 15px 0; color: #E4E6EB; }
.khmix-header p { color: #B0B3B8; font-size: 1.1rem; max-width: 600px; margin: 0 auto; line-height: 1.5; }

/* Toggle */
.khmix-toggle-container { text-align: center; margin-bottom: 60px; position: relative; z-index: 1; }
.khmix-toggle { display: inline-flex; background: #242526; border-radius: 30px; padding: 6px; border: 1px solid #3A3B3C; }
.khmix-toggle button { background: transparent; border: none; color: #B0B3B8; padding: 12px 35px; border-radius: 25px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: 0.3s ease; }
.khmix-toggle button.active { background: #1877F2; color: #ffffff; }

/* Center Layout Grid (Single Row Pricing) */
.centered-grid { display: flex; flex-direction: row; justify-content: center; align-items: stretch; gap: 25px; max-width: 1200px; margin: 0 auto 100px; position: relative; z-index: 1; perspective: 1000px; }

/* Tilt Card Base */
.tilt-card { background: #242526; border: 1px solid #3A3B3C; border-radius: 20px; flex: 1; min-width: 300px; max-width: 380px; padding: 35px 30px; text-align: left; display: flex; flex-direction: column; transform-style: preserve-3d; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.tilt-card-content { transform: translateZ(30px); display: flex; flex-direction: column; height: 100%; }
.tilt-card h3 { font-size: 1.3rem; font-weight: 700; margin: 0 0 10px 0; color: #E4E6EB; }
.price { font-size: 2.8rem; font-weight: 800; margin: 0 0 30px 0; display: flex; align-items: baseline; gap: 5px; color: #E4E6EB; transition: all 0.3s ease; }
.price span { font-size: 1.1rem; color: #B0B3B8; font-weight: 500; }
.tilt-list { list-style: none; padding: 0; margin: 0 0 35px 0; flex-grow: 1; }
.tilt-list li { margin-bottom: 16px; color: #B0B3B8; display: flex; align-items: center; gap: 12px; font-size: 0.95rem; }
.icon-check { width: 18px; height: 18px; background: rgba(24, 119, 242, 0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-check svg { width: 10px; height: 10px; stroke: #1877F2; stroke-width: 3; }

/* Buttons inside Pricing */
.btn-base { width: 100%; padding: 14px; border-radius: 10px; border: none; font-weight: 700; font-size: 1rem; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: 0.3s; box-sizing: border-box; text-decoration: none; margin-top: auto; }
.btn-dark { background: #3A3B3C; color: #E4E6EB; }
.btn-dark:hover { background: #4E4F50; }
.btn-blue { background: #1877F2; color: #fff; }
.btn-blue:hover { background: #145dbf; }

.popular { background: linear-gradient(180deg, #1c2e4a 0%, #242526 100%); border: 2px solid #1877F2; }
.popular-badge { position: absolute; top: -16px; left: 50%; transform: translateX(-50%) translateZ(40px); background: #1877F2; color: #ffffff; padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }

/* Setup Guide Section */
#setup-guide { padding: 60px 20px; text-align: center; position: relative; z-index: 1; margin-bottom: 60px; }
.setup-header h2 { font-size: 2.5rem; font-weight: 700; margin: 0 0 10px 0; color: #E4E6EB; }
.setup-header p { color: #B0B3B8; font-size: 1.1rem; margin-bottom: 50px; }
.setup-grid { display: flex; flex-direction: row; justify-content: center; align-items: stretch; gap: 25px; max-width: 1200px; margin: 0 auto; }
.setup-card { background: #242526; border: 1px solid #3A3B3C; border-radius: 20px; flex: 1; min-width: 300px; max-width: 380px; padding: 40px 30px; text-align: left; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: transform 0.3s; display: flex; flex-direction: column; }
.setup-card:hover { transform: translateY(-5px); border-color: #1877F2; }
.step-number { position: absolute; top: -15px; left: 30px; width: 30px; height: 30px; background: #1877F2; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; box-shadow: 0 4px 10px rgba(24, 119, 242, 0.4); }
.setup-icon { margin-bottom: 20px; color: #1877F2; }
.setup-icon svg { width: 36px; height: 36px; }
.setup-card h3 { font-size: 1.3rem; margin: 0 0 10px 0; color: #E4E6EB; }
.setup-card p { color: #B0B3B8; font-size: 0.95rem; margin: 0 0 25px 0; line-height: 1.5; }
.setup-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: 0.3s; text-decoration: none; margin-bottom: 12px; box-sizing: border-box; }
.setup-btn:last-child { margin-bottom: 0; }
.setup-btn-blue { background: #1877F2; color: #fff; border: none; }
.setup-btn-blue:hover { background: #145dbf; }
.setup-btn-outline { background: transparent; color: #1877F2; border: 1px solid #3A3B3C; }
.setup-btn-outline:hover { background: rgba(24, 119, 242, 0.1); border-color: #1877F2; }
.setup-row-btns { display: flex; gap: 10px; }
.setup-row-btns .setup-btn { flex: 1; margin-bottom: 0; }
.setup-list { list-style: none; padding: 0; margin: 0; }
.setup-list li { display: flex; align-items: center; gap: 12px; color: #E4E6EB; margin-bottom: 15px; font-size: 0.95rem; }
.setup-list-icon { color: #1877F2; display: flex; }
.setup-list-icon svg { width: 18px; height: 18px; }

/* Footer Section */
.khmix-footer { background-color: #111214; padding: 40px 50px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; border-top: 1px solid #242526; }
.khmix-footer-left { display: flex; flex-direction: column; gap: 15px; }
.khmix-footer-links { color: #8b949e; }
.khmix-footer-links a { color: #ffffff; text-decoration: none; font-weight: 600; transition: 0.2s; }
.khmix-footer-links a:hover { color: #1877F2; }
.khmix-footer-copy { color: #8b949e; }
.khmix-footer-copy strong { color: #ffffff; font-weight: 700; }
.khmix-footer-right { text-align: right; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.khmix-footer-we-accept { color: #8b949e; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 2px; }
.khmix-payment-icons { display: flex; gap: 8px; align-items: center; }
.khmix-payment-icons span { display: inline-flex; justify-content: center; align-items: center; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 800; color: white; height: 16px; }
.pay-aba { background: #005575; }
.pay-khqr { background: #e31837; }
.pay-binance { background: #fcc918; color: #000 !important; }
.pay-usdt { background: #26a17b; }

/* -------------------------------------------
   Payment Modal (Popup Overlay)
------------------------------------------- */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    width: 90%; max-width: 800px;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.3s ease-out;
}
@keyframes modalPop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute; top: 15px; right: 15px;
    background: transparent; border: none;
    font-size: 1.5rem; color: #888;
    cursor: pointer; z-index: 10;
}
.modal-close:hover { color: #333; }

/* Left Side: Product Info */
.modal-left {
    background: #f8f9fa; padding: 40px 30px;
    width: 45%; border-right: 1px solid #e0e0e0;
    display: flex; flex-direction: column;
}
.modal-product-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.modal-product-title { display: flex; align-items: center; gap: 15px; }
.modal-product-icon { width: 50px; height: 50px; background: #000; border-radius: 10px; display: flex; align-items: center; justify-content: center; color:#7ED957;}
.modal-product-icon svg { width: 30px; height: 30px; }
.modal-product-name { font-weight: 700; font-size: 1.2rem; color: #111; margin:0;}
.modal-product-period { color: #666; font-size: 0.9rem; margin:0;}
.modal-product-price { font-size: 1.8rem; font-weight: 800; color: #111; }

.modal-form-group { margin-bottom: 20px; }
.modal-form-group p { font-size: 0.9rem; color: #555; margin: 0 0 10px 0; line-height: 1.4; }
.modal-checkbox { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; color: #333; margin-bottom: 10px; cursor: pointer; }
.modal-input { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px; font-family: inherit; font-size: 0.95rem; box-sizing: border-box; background: #fff;}
.modal-input:disabled { background: #e9ecef; cursor: not-allowed; }

.modal-warning { background: #fff8e1; border: 1px solid #ffe082; padding: 15px; border-radius: 6px; font-size: 0.85rem; color: #665c00; margin-top: auto; }
.modal-warning a { color: #665c00; font-weight: 700; }

/* Right Side: Payment Methods */
.modal-right {
    background: #ffffff; padding: 40px 30px;
    width: 55%; display: flex; flex-direction: column;
}
.modal-right-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-right-header h4 { margin: 0; color: #888; font-weight: 500; font-size: 0.95rem; }
.modal-right-header a { color: #1877F2; text-decoration: none; font-size: 0.9rem; }

.payment-method {
    border: 1px solid #e0e0e0; border-radius: 8px; padding: 15px;
    margin-bottom: 10px; display: flex; align-items: center; gap: 15px;
    cursor: pointer; transition: 0.2s;
}
.payment-method:hover { border-color: #1877F2; }
.payment-method.active { border: 2px solid #1877F2; background: #f0f7ff; }
.payment-method input[type="radio"] { margin: 0; transform: scale(1.2); accent-color: #1877F2; }

.pay-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight:bold; font-size:12px;}
.pi-aba { background: #005575; color: white; }
.pi-binance { background: #fcc918; color: black; }
.pi-usdt-bsc { background: #f3ba2f; color: white; }
.pi-usdt-tron { background: #eb1e25; color: white; }

.pay-details h5 { margin: 0 0 2px 0; font-size: 1rem; color: #111; }
.pay-details p { margin: 0; font-size: 0.85rem; color: #666; }

.btn-pay-now {
    background: #1877F2; color: #fff; border: none; border-radius: 6px;
    padding: 16px; font-size: 1.1rem; font-weight: 700; width: 100%;
    margin-top: 20px; cursor: pointer; transition: 0.2s;
}
.btn-pay-now:hover { background: #145dbf; }

@media (max-width: 1150px) { .centered-grid { flex-wrap: wrap; } .setup-grid { flex-wrap: wrap; } }
@media (max-width: 800px) {
    .centered-grid { flex-direction: column; align-items: center; }
    .setup-grid { flex-direction: column; align-items: center; }
    .khmix-nav-bar { flex-direction: column; gap: 20px; position: relative; top: 0; }
    .khmix-menu { flex-wrap: wrap; justify-content: center; }
    .khmix-footer { flex-direction: column; gap: 30px; text-align: center; }
    .khmix-footer-right { align-items: center; }
    
    .modal-content { flex-direction: column; height: 90vh; overflow-y: auto; }
    .modal-left, .modal-right { width: 100%; border-right: none; }
    .modal-left { border-bottom: 1px solid #e0e0e0; }
}
