*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DARK THEME ── */
body.dark-theme {
  --bg:        #262626;
  --bg-card:   #333333;
  --bg-white:  #2d2d2d;
  --text:      #FFFFFF;
  --text-muted:#cdcdcd;
  --text-sub:  #8c8c8c;
  --text-light:#666666;
  --accent:    #e95420;
  --border:    #3c3c3c;
  --shadow:    rgba(0, 0, 0, 0.45);
}

/* ── LIGHT THEME ── */
:root {
  --bg:        #faf9f7;
  --bg-card:   #eceae6;
  --bg-white:  #ffffff;
  --text:      #1e1e1e;
  --text-muted:#666666;
  --text-sub:  #888888;
  --text-light:#aaaaaa;
  --accent:    #e95420;
  --border:    #e0dedd;
  --shadow:    rgba(0, 0, 0, 0.08);
}

/* ── THEME TOGGLE ── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--bg-card); }
.theme-toggle i { font-size: 18px; pointer-events: none; }
.theme-toggle .icon-sun { display: none; }
body.dark-theme .theme-toggle .icon-moon { display: none; }
body.dark-theme .theme-toggle .icon-sun { display: block; }

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ── LOGO ── */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
}
.logo-text { line-height: 1.25; display: flex; flex-direction: column; }
.logo-main { display: block; font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; }
.logo-sub  { display: block; font-size: 9px; font-weight: 500; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }

/* ── NAV ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: var(--bg);
  border-bottom: 0.667px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
  gap: 16px;
}

.nav h1 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  flex: 1;
}

/* ── FOOTER ── */
.footer {
  background: var(--bg);
  padding: 20px 32px;
  border-top: 0.667px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  transition: background 0.3s, border-color 0.3s;
}
.footer a { color: var(--text-muted); text-decoration: none; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.footer-logo .logo-icon { width: 24px; height: 24px; font-size: 9px; border-width: 1.5px; }
.footer-logo .logo-main { font-size: 11px; }
.footer-logo .logo-sub { font-size: 7px; }

/* ── MAIN CONTAINER ── */
.container {
  flex: 1;
  padding: 40px 32px;
  max-width: 848px;
  margin: 0 auto;
  width: 100%;
}

/* ── CARD ── */
.card {
  background: var(--bg-white);
  border: 0.667px solid var(--border);
  padding: 32px;
  transition: background 0.3s, border-color 0.3s;
}

.card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 300;
}

/* ── FORM GROUPS ── */
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text-sub);
  font-weight: 500;
  margin-bottom: 8px;
}
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 0.667px solid var(--border);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-select:focus {
  border-color: var(--accent);
}

/* ── RESULTS GRID ── */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mount-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    transition: transform 0.2s;
}

.mount-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.mount-card h4 {
    margin: 0 0 10px 0;
    color: var(--text);
}

.mount-card p {
    margin: 5px 0;
    color: var(--text-muted);
    font-size: 13px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav { padding: 14px 18px; flex-direction: row; flex-wrap: wrap; }
  .nav h1 { font-size: 16px; order: 2; flex: none; }
  .container { padding: 24px 18px; }
  .card { padding: 24px 18px; }
  .footer { flex-direction: column; gap: 12px; padding: 20px 18px; text-align: center; }
}
