/* ═══════════════════════════════════════════════════
   COMPONENTS — Buttons, Cards, Forms, Chat, Leads, Payment
   ═══════════════════════════════════════════════════ */

/* ── BUTTONS ── */
.btn-primary { font-size: 15px; font-weight: 600; padding: 14px 28px; background: var(--accent); color: #fff; border: none; border-radius: 8px; cursor: pointer; transition: background 0.2s, box-shadow 0.2s, transform 0.15s; box-shadow: 0 2px 8px rgba(37,99,235,0.3); clip-path: none; }
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.4); }
.btn-ghost { font-size: 15px; font-weight: 600; padding: 14px 28px; background: transparent; color: var(--text); border: 1.5px solid var(--border); border-radius: 8px; cursor: pointer; transition: border-color 0.2s, background 0.2s; letter-spacing: 0; }
.btn-ghost:hover { border-color: var(--accent); background: #eff6ff; color: var(--accent); }

/* ── HERO BUTTONS & TAG ── */
.hero-tag { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: #eff6ff; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border2); margin-bottom: 28px; }
.hero-tag::before { content: none; }
.hero-h1 { font-size: clamp(44px, 7vw, 88px); font-weight: 800; line-height: 1.0; color: var(--text); letter-spacing: -0.03em; margin-bottom: 0; }
.hero-h1 .accent { color: var(--accent); }
.hero-h1 .line2 { display: block; color: var(--muted); font-weight: 400; font-size: 0.38em; letter-spacing: 0.02em; text-transform: none; margin-top: 14px; line-height: 1.5; }
.hero-sub { font-size: 18px; font-weight: 400; color: var(--sub); max-width: 520px; line-height: 1.7; margin: 32px 0 44px; }
.hero-btns { display: flex; gap: 12px; }

/* ── SERVICE CARDS ── */
#services { background: var(--bg2); border-top: 1px solid var(--border); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.service-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 36px 28px; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; cursor: default; }
.service-card::before { display: none; }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--border2); }
.service-icon { font-size: 28px; margin-bottom: 20px; display: block; }
.service-num { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; }
.service-title { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 12px; letter-spacing: -0.01em; }
.service-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── CONTACT ── */
#contact { background: var(--bg); border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-info p { font-size: 15px; color: var(--sub); line-height: 1.8; margin-bottom: 36px; }
.contact-detail { display: flex; flex-direction: column; gap: 14px; }
.contact-detail-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--sub); }
.contact-detail-item span:first-child { color: var(--accent); }
.form-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 40px; box-shadow: var(--shadow); position: relative; }
.form-panel::before { content: 'Secure Form'; position: absolute; top: -12px; right: 20px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: #fff; background: var(--green); padding: 3px 12px; border-radius: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea { width: 100%; background: var(--bg2); border: 1.5px solid var(--border); color: var(--text); font-family: var(--font); font-size: 15px; font-weight: 400; padding: 10px 14px; border-radius: 8px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; cursor: text; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.form-select { appearance: none; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 110px; }
.form-submit { width: 100%; font-size: 15px; font-weight: 700; padding: 14px; background: var(--accent); color: #fff; border: none; border-radius: 8px; cursor: pointer; transition: background 0.2s, box-shadow 0.2s, transform 0.15s; margin-top: 6px; box-shadow: 0 2px 8px rgba(37,99,235,0.25); }
.form-submit:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.35); }
.form-success { display: none; text-align: center; padding: 32px; font-size: 15px; color: var(--green); font-weight: 600; }

/* ── LEADS ── */
#leads { background: var(--bg2); border-top: 1px solid var(--border); }
.leads-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.leads-count { font-size: 14px; font-weight: 600; color: var(--sub); }
.leads-count span { color: var(--accent); }
.leads-table-wrap { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.leads-table { width: 100%; border-collapse: collapse; }
.leads-table th { background: var(--bg3); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; color: var(--muted); text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--border); text-transform: uppercase; }
.leads-table td { padding: 13px 18px; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--border); }
.leads-table tr:last-child td { border-bottom: none; }
.leads-table tr:hover td { background: #f8fafc; }
.leads-table .empty-row td { text-align: center; color: var(--muted); font-size: 14px; padding: 40px; }
.lead-status { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; padding: 3px 10px; border-radius: 20px; }
.status-new { background: #dcfce7; color: #166534; }
.status-viewed { background: #dbeafe; color: #1e40af; }
.admin-gate { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 48px 40px; text-align: center; max-width: 380px; margin: 0 auto; box-shadow: var(--shadow); }
.admin-gate p { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.admin-pin-row { display: flex; gap: 10px; justify-content: center; }
.pin-input { width: 52px; height: 60px; background: var(--bg2); border: 2px solid var(--border); color: var(--text); font-size: 26px; font-weight: 700; text-align: center; border-radius: 10px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; cursor: text; }
.pin-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.pin-error { color: var(--red); font-size: 13px; font-weight: 600; margin-top: 14px; display: none; }

/* ── PAYMENT ── */
#payment { background: var(--bg); border-top: 1px solid var(--border); }
.payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; }
.payment-plans { display: flex; flex-direction: column; gap: 14px; }
.plan-card { background: var(--panel); border: 1.5px solid var(--border); border-radius: 12px; padding: 24px 26px; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; position: relative; }
.plan-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.plan-card:hover { border-color: var(--border2); box-shadow: var(--shadow); }
.plan-card.featured::after { content: 'Popular'; position: absolute; top: -10px; right: 16px; font-size: 11px; font-weight: 700; background: var(--amber); color: #fff; padding: 3px 12px; border-radius: 20px; }
.plan-top { display: flex; justify-content: space-between; align-items: flex-start; }
.plan-name { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.plan-price { font-size: 21px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.plan-price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.plan-desc { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.plan-features { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.plan-features li { font-size: 13px; color: var(--sub); }
.plan-features li::before { content: '✓  '; color: var(--green); font-weight: 700; }
.payment-form-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 36px; box-shadow: var(--shadow); }
.selected-plan-display { background: #eff6ff; border: 1.5px solid var(--border2); border-radius: 8px; padding: 14px 18px; margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; }
.selected-plan-display .name { font-size: 15px; font-weight: 600; color: var(--text); }
.selected-plan-display .price { font-size: 18px; font-weight: 800; color: var(--accent); }
.card-field-wrap { position: relative; }
.card-icons { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 18px; }
.pay-btn { width: 100%; font-size: 15px; font-weight: 700; padding: 16px; background: var(--accent); color: #fff; border: none; border-radius: 8px; cursor: pointer; transition: background 0.2s, transform 0.15s, box-shadow 0.2s; margin-top: 20px; box-shadow: 0 2px 8px rgba(37,99,235,0.3); }
.pay-btn:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.4); }
.pay-btn::after { display: none; }
.secure-badge { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: var(--muted); margin-top: 12px; }
.secure-badge::before { content: '🔒'; font-size: 12px; }
.payment-success { display: none; text-align: center; padding: 40px; }
.payment-success .check { font-size: 48px; margin-bottom: 12px; }
.payment-success h3 { font-size: 22px; font-weight: 700; color: var(--green); margin-bottom: 8px; }
.payment-success p { font-size: 14px; color: var(--muted); }

/* ── CHATBOT ── */
#chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 600; }
#chat-toggle { width: 56px; height: 56px; background: var(--accent); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 4px 16px rgba(37,99,235,0.4); transition: transform 0.2s, box-shadow 0.2s; }
#chat-toggle:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,99,235,0.5); }
#chat-toggle .pulse { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); animation: pulse 2s infinite; }
#chat-box { position: absolute; bottom: 70px; right: 0; width: 340px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden; }
#chat-box.open { display: flex; }
.chat-header { background: var(--accent); padding: 16px 20px; display: flex; align-items: center; gap: 10px; }
.chat-avatar { width: 32px; height: 32px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.chat-header-info { flex: 1; }
.chat-name { font-size: 14px; font-weight: 700; color: #fff; }
.chat-status { font-size: 11px; color: rgba(255,255,255,0.75); }
.chat-close { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 18px; cursor: pointer; padding: 4px; transition: color 0.2s; }
.chat-close:hover { color: #fff; }
#chat-messages { flex: 1; overflow-y: auto; padding: 16px; max-height: 300px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.msg { max-width: 82%; padding: 10px 14px; font-size: 14px; line-height: 1.5; animation: fadeUp 0.3s ease; border-radius: 12px; }
.msg.bot { background: var(--bg2); border: 1px solid var(--border); border-radius: 4px 12px 12px 12px; color: var(--text); align-self: flex-start; }
.msg.user { background: var(--accent); color: #fff; border-radius: 12px 4px 12px 12px; align-self: flex-end; font-weight: 500; }
.msg-time { font-size: 10px; color: var(--muted); margin-top: 4px; }
.typing { display: flex; gap: 4px; align-items: center; padding: 10px 14px; background: var(--bg2); border: 1px solid var(--border); border-radius: 4px 12px 12px 12px; width: fit-content; align-self: flex-start; }
.typing span { width: 6px; height: 6px; background: var(--muted); border-radius: 50%; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
.chat-input-row { display: flex; border-top: 1px solid var(--border); }
#chat-input { flex: 1; background: var(--bg); border: none; color: var(--text); font-family: var(--font); font-size: 14px; padding: 14px 16px; outline: none; border-radius: 0 0 0 16px; }
#chat-input::placeholder { color: var(--muted); }
#chat-send { background: var(--accent); border: none; color: #fff; padding: 14px 18px; font-size: 14px; cursor: pointer; transition: background 0.2s; border-radius: 0 0 16px 0; }
#chat-send:hover { background: var(--accent2); }

/* ── TOAST ── */
#toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--text); color: #fff; font-size: 13px; font-weight: 600; padding: 12px 24px; border-radius: 8px; z-index: 700; opacity: 0; transition: opacity 0.3s, transform 0.3s; pointer-events: none; box-shadow: var(--shadow-lg); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
