/*
Theme Name: KHmix 3D Farm - Final V31
Theme URI: https://example.com/
Author: KHmix DevTeam
Description: Dark UI with Tilt Effect and ABA PayWay KHQR Styled Popup Modal.
Version: 31.0
*/
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background-color: #121417; 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.08) 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.05) 0%, rgba(0,0,0,0) 70%); border-radius: 50%; z-index: 0; pointer-events: none; }

/* Navbar */
.khmix-nav-bar { background: #1c1e21; border: 1px solid #2e3035; padding: 12px 30px; display: flex; justify-content: space-between; align-items: center; border-radius: 30px; margin: 20px auto; max-width: 1000px; position: sticky; top: 20px; z-index: 100; }
.khmix-logo-area { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1rem; letter-spacing: 0.5px; color: #E4E6EB; text-decoration: none; text-transform: uppercase; }
.khmix-logo-area img { height: 24px; border-radius: 4px; object-fit: contain; }
.khmix-menu { display: flex; gap: 25px; font-size: 0.85rem; font-weight: 500; color: #8b949e; }
.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: #fff; }
.khmix-menu svg { width: 14px; height: 14px; }
.khmix-auth { display: flex; align-items: center; gap: 15px; }
.user-greeting { font-size: 0.85rem; color: #8b949e; font-weight: 500; }
.khmix-sign-in { display: flex; align-items: center; gap: 8px; background: #2e3035; color: #E4E6EB; padding: 8px 20px; border-radius: 20px; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: 0.3s; text-decoration: none; border: 1px solid transparent; }
.khmix-sign-in:hover { background: #3a3b3c; }

/* Header section */
.khmix-header { text-align: center; margin-top: 60px; margin-bottom: 30px; position: relative; z-index: 1; }
.khmix-header h1 { font-size: 3rem; font-weight: 700; margin: 0 0 10px 0; color: #E4E6EB; }
.khmix-header p { color: #8b949e; font-size: 1rem; max-width: 500px; margin: 0 auto; line-height: 1.5; }

/* Custom Toggle */
.khmix-toggle-container { text-align: center; margin-bottom: 50px; position: relative; z-index: 1; }
.khmix-toggle { display: inline-flex; background: #1c1e21; border-radius: 30px; padding: 4px; border: 1px solid #2e3035; }
.khmix-toggle button { background: transparent; border: none; color: #8b949e; padding: 10px 30px; border-radius: 25px; font-size: 0.9rem; 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: 20px; max-width: 1200px; margin: 0 auto 100px; position: relative; z-index: 1; perspective: 1000px; padding: 0 20px; flex-wrap: wrap; }

/* Tilt Card Base (RESTORED TILT) */
.tilt-card { background: #1c1e21; border: 1px solid #2e3035; border-radius: 12px; flex: 1; min-width: 240px; max-width: 300px; padding: 30px 20px; text-align: left; display: flex; flex-direction: column; transform-style: preserve-3d; }
.tilt-card-content { transform: translateZ(20px); display: flex; flex-direction: column; height: 100%; }
.tilt-card h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 10px 0; color: #E4E6EB; }
.price { font-size: 2.2rem; font-weight: 800; margin: 0 0 25px 0; display: flex; align-items: baseline; gap: 5px; color: #E4E6EB; transition: all 0.3s ease; }
.price span { font-size: 0.9rem; color: #8b949e; font-weight: 500; }
.tilt-list { list-style: none; padding: 0; margin: 0 0 35px 0; flex-grow: 1; }
.tilt-list li { margin-bottom: 12px; color: #8b949e; display: flex; align-items: center; gap: 10px; font-size: 0.85rem; }
.icon-check { width: 14px; height: 14px; background: #1877F2; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-check svg { width: 8px; height: 8px; stroke: #fff; stroke-width: 3; }

/* Buttons inside Pricing */
.btn-base { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #3A3B3C; font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: 0.3s; box-sizing: border-box; text-decoration: none; margin-top: auto; background: transparent; color: #8b949e; }
.btn-base:hover { border-color: #555; color: #E4E6EB; }
.btn-blue { background: #1877F2; color: #fff; border: none; }
.btn-blue:hover { background: #145dbf; color: #fff; }
.btn-locked { background: transparent; color: #555; border: 1px solid #2e3035; cursor: not-allowed; }

.popular { background: #1a1e28; border: 2px solid #1877F2; position: relative; }
.popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%) translateZ(30px); background: #1877F2; color: #ffffff; padding: 4px 12px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; gap: 4px; }

/* Setup Guide Section */
#setup-guide { padding: 40px 20px 80px; text-align: center; position: relative; z-index: 1; }
.setup-header h2 { font-size: 1.8rem; font-weight: 700; margin: 0 0 10px 0; color: #E4E6EB; }
.setup-header p { color: #8b949e; font-size: 0.95rem; margin-bottom: 40px; }
.setup-grid { display: flex; flex-direction: row; justify-content: center; align-items: stretch; gap: 20px; max-width: 1000px; margin: 0 auto; }
.setup-card { background: #1c1e21; border: 1px solid #2e3035; border-radius: 12px; flex: 1; min-width: 260px; max-width: 300px; padding: 40px 25px 30px; text-align: left; position: relative; display: flex; flex-direction: column; }
.step-number { position: absolute; top: -12px; left: 25px; width: 24px; height: 24px; background: #1877F2; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; }
.setup-icon { margin-bottom: 15px; color: #1877F2; display: flex; align-items: center; justify-content: flex-start; }
.setup-icon svg { width: 20px; height: 20px; }
.setup-card h3 { font-size: 1.05rem; margin: 0 0 8px 0; color: #E4E6EB; }
.setup-card p { color: #8b949e; font-size: 0.8rem; margin: 0 0 20px 0; line-height: 1.4; }
.setup-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px; border-radius: 6px; font-weight: 600; font-size: 0.8rem; cursor: pointer; transition: 0.3s; text-decoration: none; margin-bottom: 10px; 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 #2e3035; }
.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; color: #8b949e; }
.setup-row-btns .setup-btn:hover { color: #1877F2; }
.setup-list { list-style: none; padding: 0; margin: 0; }
.setup-list li { display: flex; align-items: center; gap: 10px; color: #E4E6EB; margin-bottom: 12px; font-size: 0.85rem; }
.setup-list-icon { color: #1877F2; display: flex; }
.setup-list-icon svg { width: 14px; height: 14px; }

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

/* ==========================================
   NEW ABA PAYWAY KHQR MODAL (White UI)
========================================== */
.aba-overlay { 
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(5, 14, 23, 0.9); backdrop-filter: blur(5px); z-index: 2000; 
    align-items: center; justify-content: center; flex-direction: column; 
}
.aba-overlay.active { display: flex; }
.aba-logo-top { 
    position: absolute; top: 30px; right: 40px; color: #fff; 
    font-weight: 900; font-size: 1.5rem; font-style: italic; letter-spacing: 1px; 
}
.aba-logo-top span { color: #00BCD4; }

.aba-modal { 
    background: #fff; width: 360px; border-radius: 12px; padding: 25px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.5); position: relative; 
    animation: popUp 0.3s ease-out; 
}
@keyframes popUp { 0% { transform: scale(0.95); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.aba-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.aba-modal-header h3 { margin: 0; color: #003366; font-size: 1.3rem; font-weight: 600; font-family: 'Inter', sans-serif; }
.aba-close { background: none; border: none; font-size: 1.6rem; color: #00BCD4; cursor: pointer; padding:0; line-height: 1; }

.khqr-card { 
    background: #fff; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
    overflow: hidden; border: 1px solid #eaeaea; margin-bottom: 20px; 
}
.khqr-head { 
    background: #E31837; height: 50px; display: flex; align-items: center; justify-content: center; position: relative; 
}
.khqr-head span { color: #fff; font-weight: 900; font-size: 1.3rem; letter-spacing: 1px; font-style: italic; }
.khqr-head::after { 
    content: ''; position: absolute; bottom: -1px; right: -1px; width: 24px; height: 24px; 
    background: #fff; clip-path: polygon(100% 0, 0% 100%, 100% 100%); 
}

.khqr-body { padding: 20px; text-align: center; }
.khqr-merchant { font-size: 0.8rem; color: #003366; text-align: left; margin: 0 0 5px 0; font-weight: 600; }
.khqr-amount-row { text-align: left; margin-bottom: 15px; }
.khqr-amount { font-size: 2.2rem; font-weight: 800; color: #003366; }
.khqr-currency { font-size: 0.9rem; color: #003366; font-weight: 600; margin-left: 5px; }
.khqr-dashed { border: none; border-top: 2px dashed #ddd; margin: 15px 0; }

.qr-wrapper { display: inline-block; padding: 10px; position: relative; }
.qr-wrapper img { width: 220px; height: 220px; display: block; }
.qr-center-logo { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); 
    width: 36px; height: 36px; background: #fff; border-radius: 50%; padding: 4px; 
    display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.qr-center-logo div { 
    width: 100%; height: 100%; background: #E31837; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
}
.qr-center-logo svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2; fill:none; }

.scan-hint { font-size: 0.8rem; color: #888; text-align: center; line-height: 1.4; margin: 0; }

.btn-check-aba { 
    background: #005575; color: #fff; width: 100%; border: none; padding: 14px; 
    border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: 0.2s; margin-top: 5px; 
}
.btn-check-aba:hover { background: #003366; }
.btn-check-aba:disabled { background: #999; cursor: not-allowed; }

/* Success Box inside ABA Modal */
.aba-success-box { display: none; text-align: center; padding: 20px 0; }
.aba-success-box h3 { color: #28a745; margin: 10px 0; font-size: 1.5rem; }
.aba-license-key { background: #f8f9fa; border: 1px solid #ddd; padding: 15px; border-radius: 8px; font-family: monospace; font-size: 18px; font-weight: bold; color: #333; margin: 20px 0; word-break: break-all; user-select: all; }

/* Existing dark inputs for optional email/checkbox inside ABA modal */
.aba-inputs { margin-top: 15px; text-align: left; }
.aba-input { width: 100%; background: #f8f9fa; border: 1px solid #ddd; color: #333; padding: 10px 12px; border-radius: 6px; font-family: inherit; font-size: 0.9rem; box-sizing: border-box; margin-bottom: 10px; }
.aba-checkbox { display: flex; gap: 8px; align-items: center; color: #555; font-size: 0.85rem; margin-bottom: 10px; cursor: pointer; }

@media (max-width: 800px) {
    .centered-grid, .setup-grid { flex-direction: column; align-items: center; }
    .aba-logo-top { display: none; }
}

/* Trial Specific Styles */
.trial-card { border: 1px solid #7ED957; background: linear-gradient(180deg, rgba(126, 217, 87, 0.05) 0%, rgba(28, 30, 33, 1) 100%); }
.icon-check.trial-icon { background: #7ED957; }
.btn-trial { background: #7ED957; color: #121417; border: none; font-weight: 700; }
.btn-trial:hover { background: #68c045; }
