@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;700&display=swap');

/* CarExp.co — Shared Styles */

/* CSS Custom Properties */
:root {
  --bg-primary: #0a0c10;
  --bg-secondary: #12151c;
  --accent: #3df0c2;
  --text-primary: #e8eaf0;
  --text-secondary: #9ab0c8;
  --text-muted: #5a6080;
  --border: #252a38;
  --bg-card: #141824;
  --bg-input: #0a0c10;
  --accent-dim: rgba(61, 240, 194, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Scrollbar */
*::-webkit-scrollbar { width: 8px; display: block; }
*::-webkit-scrollbar-track { background: #12151c; }
*::-webkit-scrollbar-thumb { background: #3df0c2; border-radius: 3px; }
* { scrollbar-width: thin; scrollbar-color: #3df0c2 #12151c; }

/* Base */
html { width: 100%; }
body { width: 100%; overflow-y: scroll; }
body { background: #0a0c10; color: #e8eaf0; font-family: var(--font-body); min-height: 100vh; }
a { text-decoration: none; color: inherit; }

/* Nav */
.nav { background: #12151c; border-bottom: 1px solid #252a38; height: auto; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; position: sticky; top: 0; z-index: 200; width: 100%; }
.nav-inner { width: 100%; max-width: 860px; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.logo { font-size: 22px; font-weight: 900; flex-shrink: 0; white-space: nowrap; }
.logo span { color: #3df0c2; }
.nav-right { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav-right::-webkit-scrollbar { display: none; }

/* Nav Buttons */
.nbtn { padding: 4px 7px; border-radius: 6px; font-size: 10px; font-weight: 600; cursor: pointer; white-space: nowrap; display: inline-block; border: none; flex-shrink: 0; }
.nbtn-ghost { background: transparent; border: 1px solid #2a2f3f; color: #9ab0c8; }
.nbtn-ghost:hover { border-color: #3df0c2; color: #3df0c2; }
.nbtn-primary { background: #3df0c2; color: #0a0c10; }
.nbtn-primary:hover { background: #2dd4a8; }
.nbtn-danger { background: #1a0a10; border: 1px solid #f03d7a; color: #f03d7a; }
.credits-badge { background: rgba(61,240,194,0.08); border: 1px solid rgba(61,240,194,0.25); color: #3df0c2; padding: 3px 6px; border-radius: 20px; font-size: 10px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }

/* Lang Selector */
.lang-wrap { position: relative; flex-shrink: 0; }
.lang-btn { background: rgba(255,255,255,0.05); border: 1px solid #2a2f3f; color: #9ab0c8; padding: 4px 7px; border-radius: 6px; font-size: 10px; font-weight: 600; cursor: pointer; white-space: nowrap; font-family: inherit; }
.lang-btn:hover { border-color: #3df0c2; color: #e8eaf0; }
.lang-dropdown { display: none; position: fixed; top: 58px; right: 8px; background: #12151c; border: 1px solid #252a38; border-radius: 12px; padding: 6px; min-width: 160px; z-index: 9999; box-shadow: 0 12px 40px rgba(0,0,0,0.85); }
.lang-dropdown.open { display: block; }
.ld-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 7px; font-size: 13px; color: #9ab0c8; cursor: pointer; white-space: nowrap; }
.ld-item:hover { background: rgba(61,240,194,0.08); color: #e8eaf0; }
.ld-active { color: #3df0c2; background: rgba(61,240,194,0.06); font-weight: 600; }
.price-cents { font-size: 0.65em; vertical-align: super; line-height: 1; color: #9ab0c8; margin-left: 1px; font-weight: 500; }
.page-wrap { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 16px; }

/* Footer */
footer { border-top: 1px solid #1a1e28; padding: 16px; font-size: 11px; text-align: center; }
.footer-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 14px; max-width: 860px; margin: 0 auto 8px; }
.footer-left { display: contents; }
.footer-right { display: contents; }
.footer-links a { color: #5a6080; font-size: 11px; }
.footer-links a:hover { color: #3df0c2; }
.footer-email { text-align: center; color: #5a6080; font-size: 11px; margin-bottom: 6px; }
.footer-social { text-align: center; margin: 8px 0; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer-social a { color: #5a6080; font-size: 11px; text-decoration: none; display: flex; align-items: center; gap: 5px; }
.footer-social a:hover { color: #3df0c2; }
.footer-social a:hover svg { opacity: 0.8; }
.page-social { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 16px 8px; flex-wrap: nowrap; overflow: hidden; }
.page-social a { color: #5a6080; font-size: 10px; text-decoration: none; display: flex; align-items: center; gap: 4px; }
.page-social a:hover { color: #3df0c2; }
.page-social svg { flex-shrink: 0; }
.footer-bottom { text-align: center; color: #3a4060; font-size: 11px; width: 100%; margin-top: 6px; }
.footer-bottom span { color: #3df0c2; }

/* PWA Install Button */
.pwa-install { text-align: center; margin-top: 8px; }
.pwa-install-btn { background: none; border: 1px solid #2a2e3e; border-radius: 6px; color: #5a6080; font-size: 11px; cursor: pointer; padding: 5px 10px; display: inline-block; transition: color 0.2s, border-color 0.2s; }
.pwa-install-btn:hover { color: #3df0c2; border-color: #3df0c2; }
.pwa-ios-tip { color: #5a6080; font-size: 10px; margin-top: 4px; }

/* Spinner */
.spinner { width: 38px; height: 38px; border: 3px solid #1a1e28; border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto 14px; }
.spinner-lg { width: 52px; height: 52px; border-width: 4px; border-color: rgba(61,240,194,0.15); border-top-color: var(--accent); animation-duration: 0.9s; margin-bottom: 24px; margin-top: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Form Components */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 11px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; }
.form-input { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text-primary); font-size: 14px; outline: none; font-family: var(--font-body); width: 100%; }
.form-input:focus { border-color: var(--accent); }
select.form-input { cursor: pointer; }
textarea.form-input { resize: none; height: 70px; line-height: 1.5; }
.form-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 8px; flex-wrap: wrap; }
.form-hint { font-size: 11px; color: #3a4060; }

/* Primary Button */
.submit-btn { background: var(--accent); color: var(--bg-primary); border: none; border-radius: var(--radius-sm); padding: 11px 24px; font-size: 14px; font-weight: 800; cursor: pointer; white-space: nowrap; font-family: var(--font-body); }
.submit-btn:hover { background: #2dd4a8; }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Verdict Badges */
.vbadge { padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 800; }
.vbuy { background: rgba(46,204,113,0.15); color: #2ecc71; border: 1px solid rgba(46,204,113,0.3); }
.vneg { background: rgba(240,194,61,0.15); color: #f0c23d; border: 1px solid rgba(240,194,61,0.3); }
.vavd { background: rgba(240,61,122,0.15); color: #f03d7a; border: 1px solid rgba(240,61,122,0.3); }

/* Trust Chips */
.trust-row { display: flex; gap: 6px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.tc { background: var(--bg-secondary); border: 1px solid #1a1e28; border-radius: var(--radius-sm); padding: 6px 10px; font-size: 10px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.tc strong { color: var(--text-secondary); }
