/*
Theme Name: KHmix 3D Farm - Final V19
Theme URI: https://example.com/
Author: KHmix DevTeam
Description: KHmix Farm Pricing with Live Bakong, Stripe (Card), and PayPal UI. Restored old UI layout.
Version: 19.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: transparent; padding: 25px 40px; 
    display: flex; justify-content: space-between; align-items: center; 
    margin: 0 auto; max-width: 1200px; position: relative; z-index: 100;
}
.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: #fff; }
.khmix-menu svg { width: 16px; height: 16px; }

/* Auth Buttons */
.khmix-auth { display: flex; align-items: center; gap: 15px; }
.user-greeting { font-size: 0.9rem; color: #B0B3B8; font-weight: 600; }
.khmix-sign-in { 
    display: flex; align-items: center; gap: 8px;
    background: #3A3B3C; color: #E4E6EB; padding: 8px 24px; 
    border-radius: 20px; font-weight: 600; font-size: 0.9rem; 
    cursor: pointer; transition: 0.3s; text-decoration: none; border: 1px solid transparent;
}
.khmix-sign-in:hover { background: #4E4F50; }
.btn-google { background: #ffffff; color: #3c4043; border: 1px solid #dadce0; }
.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(60,64,67,0.3); }

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

/* Toggle */
.khmix-toggle-container { text-align: center; margin-bottom: 50px; position: relative; z-index: 1; }
.khmix-toggle { display: inline-flex; background: #242526; border-radius: 30px; padding: 4px; border: 1px solid #3A3B3C; }
.khmix-toggle button { background: transparent; border: none; color: #B0B3B8; padding: 10px 35px; border-radius: 25px; font-size: 0.95rem; 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: 1100px; margin: 0 auto 100px; position: relative; z-index: 1; perspective: 1000px; }

/* Tilt Card Base */
.tilt-card { background: #242526; border: 1px solid #3A3B3C; border-radius: 16px; flex: 1; min-width: 280px; max-width: 340px; padding: 30px 25px; 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.2rem; font-weight: 700; margin: 0 0 10px 0; color: #E4E6EB; }
.price { font-size: 2.5rem; 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: 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: 14px; color: #B0B3B8; display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.icon-check { width: 16px; height: 16px; 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: 8px; height: 8px; stroke: #1877F2; stroke-width: 3; }

/* Buttons inside Pricing */
.btn-base { width: 100%; padding: 12px; border-radius: 8px; border: none; font-weight: 600; font-size: 0.95rem; 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; }
.btn-dark { background: #3A3B3C; color: #E4E6EB; }
.btn-dark:hover { background: #4E4F50; }
.btn-blue { background: #1877F2; color: #fff; }
.btn-blue:hover { background: #145dbf; }
.btn-locked { background: #333; color: #888; cursor: not-allowed; }

.popular { background: #242526; 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 14px; border-radius: 12px; font-size: 0.8rem; 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: 2.2rem; font-weight: 700; margin: 0 0 10px 0; color: #E4E6EB; }
.setup-header p { color: #B0B3B8; font-size: 1rem; 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: #242526; border: 1px solid #3A3B3C; border-radius: 16px; flex: 1; min-width: 280px; max-width: 320px; padding: 30px 25px; text-align: left; position: relative; display: flex; flex-direction: column; }
.step-number { position: absolute; top: -12px; left: 25px; width: 26px; height: 26px; background: #1877F2; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.setup-icon { margin-bottom: 15px; color: #1877F2; }
.setup-icon svg { width: 30px; height: 30px; }
.setup-card h3 { font-size: 1.1rem; margin: 0 0 8px 0; color: #E4E6EB; }
.setup-card p { color: #B0B3B8; font-size: 0.85rem; 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.85rem; 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 #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: 10px; color: #E4E6EB; margin-bottom: 12px; font-size: 0.85rem; }
.setup-list-icon { color: #1877F2; display: flex; }
.setup-list-icon svg { width: 16px; height: 16px; }

/* Footer Section */
.khmix-footer { background-color: rgba(0,0,0,0.3); padding: 30px 40px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; border-top: 1px solid #242526; }
.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: #3A3B3C; }
.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: 10px; 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; }
.pay-aba { background: #005575; }
.pay-khqr { background: #e31837; }
.pay-binance { background: #fcc918; color: #000 !important; }
.pay-usdt { background: #26a17b; }

/* -------------------------------------------
   NEW PAYMENT MODAL WITH CARD & PAYPAL (DARK)
------------------------------------------- */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px);
    z-index: 1000; align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }

.modal-wrapper {
    max-width: 950px; width: 95%; color: #E4E6EB;
    animation: modalPop 0.3s ease-out;
}
@keyframes modalPop { 0% { transform: scale(0.95); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.modal-header-top { margin-bottom: 30px; }
.modal-back-btn { 
    background: none; border: none; color: #fff; font-size: 1.4rem; font-weight: 700; 
    cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 0;
}
.modal-back-btn svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.modal-body-split { display: flex; gap: 50px; align-items: flex-start; }

/* Left Side: Payment Selection */
.modal-left-pay { flex: 1.3; }
.modal-left-pay h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 20px 0; color: #fff; }

/* TABS for Card, PayPal, Bakong */
.pm-tabs { display: flex; gap: 15px; margin-bottom: 25px; }
.pm-tab {
    flex: 1; padding: 16px 10px; background: #242526; border: 1px solid #3A3B3C;
    border-radius: 12px; color: #B0B3B8; font-weight: 600; font-size: 0.95rem;
    cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pm-tab:hover { background: #2A2B2D; border-color: #666; }
.pm-tab.active { border-color: #1877F2; background: rgba(24,119,242,0.1); color: #fff; }
.pm-tab svg { width: 20px; height: 20px; }

/* Tab Content */
.pm-content { display: none; }
.pm-content.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }

/* Card Inputs UI */
.card-inputs { display: flex; flex-direction: column; gap: 15px; background: #242526; padding: 20px; border-radius: 12px; border: 1px solid #3A3B3C; }
.card-input-wrapper { position: relative; }
.card-input-wrapper svg { position: absolute; right: 15px; top: 14px; width: 24px; opacity: 0.7; }
.dark-input { 
    width: 100%; background: #18191A; border: 1px solid #3A3B3C; color: #fff; 
    padding: 14px 16px; border-radius: 8px; font-family: inherit; font-size: 0.95rem; box-sizing: border-box;
}
.dark-input:focus { outline: none; border-color: #1877F2; }
.card-row { display: flex; gap: 15px; }

.dark-checkbox { display: flex; gap: 12px; align-items: center; color: #B0B3B8; font-size: 0.9rem; margin: 20px 0; cursor: pointer; }
.dark-checkbox input[type="checkbox"] { width: 18px; height: 18px; accent-color: #fff; cursor: pointer; }

/* PayPal / Bakong UI */
.paypal-container { background: #242526; padding: 40px 20px; border-radius: 12px; border: 1px solid #3A3B3C; text-align: center; }
.btn-paypal { background: #FFC439; color: #111; width: 100%; padding: 16px; border-radius: 30px; font-weight: 700; font-size: 1.1rem; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-paypal:hover { background: #F4B829; }
.btn-paypal svg { width: 80px; height: 20px; }

.bakong-container { background: #242526; padding: 30px 20px; border-radius: 12px; border: 1px solid #3A3B3C; text-align: center; }
#qr-container-dark h4 { color: #fff; margin-top: 0; font-size: 1.2rem; margin-bottom: 20px; }
#qr-container-dark .qr-bg { background: #fff; padding: 15px; display: inline-block; border-radius: 12px; }
#qr-container-dark img { width: 200px; height: 200px; display: block; }
#qr-container-dark p { font-size: 13px; color: #B0B3B8; margin-top: 20px; }

/* Right Side: Summary Card */
.modal-right-summary { flex: 1; max-width: 400px; }
.summary-card { background: #242526; border-radius: 16px; padding: 30px; color: #E4E6EB; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid #3A3B3C; }
.summary-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 5px 0; color: #fff; }
.summary-plan { font-size: 1rem; color: #B0B3B8; margin: 0 0 25px 0; }
.summary-features p { font-size: 0.9rem; color: #E4E6EB; font-weight: 600; margin: 0 0 15px 0; }
.summary-features ul { list-style: none; padding: 0; margin: 0; }
.summary-features li { display: flex; gap: 10px; font-size: 0.85rem; color: #B0B3B8; margin-bottom: 12px; line-height: 1.4; align-items: flex-start; }
.summary-features svg { flex-shrink: 0; margin-top: 2px; }
.summary-divider { height: 1px; background: #3A3B3C; margin: 25px 0; }
.summary-price-row { display: flex; justify-content: space-between; font-size: 0.9rem; color: #B0B3B8; margin-bottom: 10px; }
.summary-price-row.total { font-size: 1.1rem; font-weight: 700; color: #fff; margin-top: 20px; }
.btn-pay-now-dark { background: #fff; color: #000; width: 100%; padding: 14px; border-radius: 30px; font-weight: 700; font-size: 1rem; border: none; cursor: pointer; transition: 0.2s; margin-top: 25px; }
.btn-pay-now-dark:hover { background: #f0f0f0; }
.btn-pay-now-dark:disabled { background: #555; color: #888; cursor: not-allowed; }
.summary-terms { font-size: 0.75rem; color: #888; margin-top: 20px; line-height: 1.5; }
.summary-terms a { color: #B0B3B8; text-decoration: underline; }

@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; }
    .modal-body-split { flex-direction: column; gap: 30px; }
    .modal-left-pay, .modal-right-summary { width: 100%; max-width: none; }
    .pm-tabs { flex-direction: column; }
    .khmix-nav-bar { flex-direction: column; gap: 20px; }
    .khmix-menu { flex-wrap: wrap; justify-content: center; }
    .khmix-footer { flex-direction: column; gap: 30px; text-align: center; }
    .khmix-footer-right { align-items: center; }
}
