/*
Theme Name: KHmix 3D Farm - Final V24
Theme URI: https://example.com/
Author: KHmix DevTeam
Description: Exact old dark UI with Cryptomus API Integration & KeyAuth delivery.
Version: 24.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; }

.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; }
.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-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; }

.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; }

.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; }

.centered-grid { display: flex; flex-direction: row; justify-content: center; align-items: stretch; gap: 20px; max-width: 1000px; margin: 0 auto 100px; position: relative; z-index: 1; perspective: 1000px; }
.tilt-card { background: #1c1e21; border: 1px solid #2e3035; border-radius: 12px; flex: 1; min-width: 260px; max-width: 320px; 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.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; }

.btn-base { width: 100%; padding: 12px; border-radius: 8px; border: none; 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; }
.btn-dark { background: #2e3035; color: #E4E6EB; }
.btn-dark:hover { background: #3a3b3c; }
.btn-blue { background: #1877F2; color: #fff; }
.btn-blue:hover { background: #145dbf; }
.btn-locked { background: #1c1e21; color: #555; border: 1px solid #2e3035; cursor: not-allowed; }

.popular { background: #1a1e28; border: 2px solid #1877F2; position: relative; }
.popular-badge { position: absolute; top: -12px; 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 { 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: 30px 25px; 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; }
.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-blue { background: #1877F2; color: #fff; border: none; }
.setup-btn-outline { background: transparent; color: #1877F2; border: 1px solid #2e3035; }
.setup-row-btns { display: flex; gap: 10px; }
.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; }

.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-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; }

/* Modal Styles */
.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-body-split { display: flex; gap: 50px; align-items: flex-start; }
.modal-left-pay { flex: 1.3; }
.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; }
.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; }

@media (max-width: 800px) {
    .centered-grid, .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; }
}
