/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root,
[data-theme="dark"] {
  --clr-bg: #0f1117;
  --clr-surface: #1a1d27;
  --clr-surface-2: #22263a;
  --clr-accent: #6c63ff;
  --clr-accent-hover: #8a83ff;
  --clr-text: #e2e8f0;
  --clr-text-muted: #8892a4;
  --clr-border: #2d3250;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --transition: 0.25s ease;
  --nav-height: 68px;
  --clr-navbar: rgba(15, 17, 23, 0.85);
  --clr-navbar-scrolled: rgba(15, 17, 23, 0.97);
  --sidebar-w: 220px;
  --bottom-bar-h: 60px;
}

[data-theme="light"] {
  --clr-bg: #f4f6fb;
  --clr-surface: #ffffff;
  --clr-surface-2: #eef0f7;
  --clr-accent: #6c63ff;
  --clr-accent-hover: #5a52e0;
  --clr-text: #1a1d27;
  --clr-text-muted: #5a6178;
  --clr-border: #dde1ef;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --clr-navbar: rgba(244, 246, 251, 0.85);
  --clr-navbar-scrolled: rgba(244, 246, 251, 0.97);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: opacity 0.22s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--clr-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--clr-accent-hover);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--clr-text);
  border: 2px solid var(--clr-border);
}

.btn--outline:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

.btn--full {
  width: 100%;
}

/* ===== SECTION TITLES ===== */
.section__title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section__subtitle {
  color: var(--clr-text-muted);
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--clr-navbar);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  z-index: 1000;
  transition: background var(--transition);
}

.navbar--scrolled {
  background: var(--clr-navbar-scrolled) !important;
}

.navbar__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#navbar__logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 40%, var(--clr-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar__menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar__links {
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: color var(--transition), background var(--transition);
}

.navbar__links:hover,
.navbar__links--active {
  color: var(--clr-text);
  background: var(--clr-surface);
}

.navbar__links--cta {
  background: var(--clr-accent);
  color: #fff !important;
  margin-left: 0.5rem;
}

.navbar__links--cta:hover {
  background: var(--clr-accent-hover);
}

/* Hamburger */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background var(--transition);
}

.navbar__toggle:hover {
  background: var(--clr-surface);
}

.bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.navbar__toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
  position: relative;
}

.hero__content {
  max-width: 700px;
}

.hero__greeting {
  font-size: 1.1rem;
  color: var(--clr-accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.hero__name {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 30%, var(--clr-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.hero__title {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 400;
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-hint span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid var(--clr-border);
  border-radius: 20px;
  position: relative;
}

.hero__scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--clr-accent);
  border-radius: 4px;
  animation: scroll-hint 1.5s infinite;
}

@keyframes scroll-hint {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(8px); }
}

/* ===== ABOUT ===== */
.about {
  padding: 7rem 0;
  background: var(--clr-surface);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.about__text p {
  color: var(--clr-text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
}

.stat__number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--clr-accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat__label {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== PROJECTS ===== */
.projects {
  padding: 7rem 0;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  border-color: var(--clr-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.project-card__icon {
  font-size: 2rem;
}

.project-card__links {
  display: flex;
  gap: 0.75rem;
}

.project-card__link {
  color: var(--clr-text-muted);
  transition: color var(--transition);
}

.project-card__link:hover {
  color: var(--clr-accent);
}

.project-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.project-card__desc {
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-weight: 500;
}

/* ===== CONTACT ===== */
.contact {
  padding: 7rem 0;
  background: var(--clr-surface);
}

.contact__form {
  max-width: 640px;
  margin: 0 auto;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form__group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-text-muted);
}

.form__group input,
.form__group textarea {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  resize: vertical;
}

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: var(--clr-text-muted);
  opacity: 0.6;
}

.form__status {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form__status--success { color: #4ade80; }
.form__status--error   { color: #f87171; }

/* ===== FOOTER ===== */
.footer {
  background: var(--clr-bg);
  border-top: 1px solid var(--clr-border);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__name {
  font-weight: 700;
  font-size: 1.1rem;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  color: var(--clr-text-muted);
  transition: color var(--transition);
}

.footer__social-link:hover {
  color: var(--clr-accent);
}

.footer__copy {
  color: var(--clr-text-muted);
  font-size: 0.85rem;
}

/* ===== PAGE HERO (tech.html) ===== */
.page-hero {
  padding: calc(var(--nav-height) + 4rem) 1.5rem 3rem;
  text-align: center;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
}

.page-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

.page-hero__subtitle {
  color: var(--clr-text-muted);
  font-size: 1.1rem;
}

/* ===== TECH SECTION ===== */
.tech-section {
  padding: 4rem 0 7rem;
}

.tech-category {
  margin-bottom: 4rem;
}

.tech-category__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}

.tech-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}

.tech-card:hover {
  border-color: var(--clr-accent);
  transform: translateY(-3px);
}

.tech-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

.tech-card__name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.tech-card__desc {
  color: var(--clr-text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.tech-card__level {
  height: 4px;
  background: var(--clr-surface-2);
  border-radius: 4px;
  overflow: hidden;
}

.level-bar {
  height: 100%;
  width: var(--level);
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-hover));
  border-radius: 4px;
  animation: grow-bar 1s ease forwards;
  transform-origin: left;
}

@keyframes grow-bar {
  from { width: 0; }
  to   { width: var(--level); }
}

.tech-cta {
  text-align: center;
  margin-top: 2rem;
  padding: 3rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
}

.tech-cta p {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--clr-text-muted);
}

/* ===== APP SHELL — sidebar + bottom tab bar ===== */
.app-sidebar {
  display: none;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--clr-surface);
  border-right: 1px solid var(--clr-border);
  padding: 1.75rem 1rem;
  z-index: 200;
}
.app-sidebar__logo {
  font-size: 1.15rem; font-weight: 900; letter-spacing: -0.5px;
  text-transform: uppercase; color: var(--clr-text);
  text-decoration: none; padding: 0.5rem 0.75rem;
  margin-bottom: 2rem; display: block;
}
.app-sidebar__nav { display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.app-sidebar__link {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.75rem 0.75rem; border-radius: 12px;
  color: var(--clr-text); text-decoration: none;
  font-size: 0.95rem; font-weight: 600;
  transition: background 0.15s;
}
.app-sidebar__link svg {
  width: 22px; height: 22px; flex-shrink: 0;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.app-sidebar__link:hover { background: var(--clr-surface-2); }
.app-sidebar__link--active { background: var(--clr-surface-2); font-weight: 800; }
.app-sidebar__bottom {
  padding-top: 1rem;
  border-top: 1px solid var(--clr-border);
  margin-top: auto;
}
.app-sidebar__logout {
  display: flex; align-items: center; gap: 0.9rem;
  width: 100%; padding: 0.75rem 0.75rem; border-radius: 12px;
  color: var(--clr-text-muted); background: none; border: none;
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  font-family: var(--font-sans); text-align: left;
  transition: background 0.15s, color 0.15s;
}
.app-sidebar__logout:hover { background: var(--clr-surface-2); color: var(--clr-text); }

/* Guest browse banner */
.guest-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: 12px; padding: 0.7rem 1rem; margin-bottom: 1rem;
  font-size: 0.85rem; color: var(--clr-text-muted);
}
.guest-banner a { color: var(--clr-accent); font-weight: 700; text-decoration: none; }
.guest-banner a:hover { text-decoration: underline; }
.guest-banner__close {
  background: none; border: none; cursor: pointer;
  color: var(--clr-text-muted); font-size: 1.1rem; padding: 0; line-height: 1; flex-shrink: 0;
}
.app-sidebar__logout svg {
  width: 20px; height: 20px; flex-shrink: 0;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.app-bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottom-bar-h);
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  display: flex; align-items: center; justify-content: space-around;
  z-index: 200;
}
.app-bottom-bar__item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--clr-text-muted); text-decoration: none;
  font-size: 0.55rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 0.5rem 0.6rem;
  flex: 1; justify-content: center;
  transition: color 0.15s;
}
.app-bottom-bar__item svg {
  width: 24px; height: 24px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.app-bottom-bar__item--active,
.app-bottom-bar__item:hover { color: var(--clr-text); }

/* Cart badge */
.cart-badge {
  position: absolute; top: -5px; right: -8px;
  background: var(--clr-accent); color: #fff;
  font-size: 0.5rem; font-weight: 900;
  min-width: 15px; height: 15px; border-radius: 99px;
  display: none; align-items: center; justify-content: center;
  padding: 0 3px; line-height: 1; pointer-events: none;
}
.cart-badge.visible { display: flex; }

.app-main {
  min-height: 100vh;
  padding-bottom: var(--bottom-bar-h);
  animation: pageFadeIn 0.28s ease forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 769px) {
  .app-sidebar  { display: flex; }
  .app-bottom-bar { display: none !important; }
  .app-main { margin-left: var(--sidebar-w); padding-bottom: 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar__toggle {
    display: flex;
  }

  .navbar__menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
  }

  .navbar__menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .navbar__links {
    padding: 0.75rem 1rem;
    display: block;
  }

  .navbar__links--cta {
    margin-left: 0;
    text-align: center;
    margin-top: 0.25rem;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .about__stats {
    grid-template-columns: 1fr;
  }
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  background: none;
  border: 1px solid var(--clr-border);
  border-radius: 6px;
  color: var(--clr-text-muted);
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color var(--transition), border-color var(--transition);
}

.theme-toggle:hover {
  color: var(--clr-accent);
  border-color: var(--clr-accent);
}

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }

[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }

/* ===== NAVBAR LOGIN BUTTON ===== */
.navbar__login-btn {
  padding: 0.38rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--clr-border);
  background: transparent;
  color: var(--clr-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  white-space: nowrap;
  margin-left: 0.35rem;
}
.navbar__login-btn:hover {
  border-color: var(--clr-text);
  color: var(--clr-text);
}
.navbar__login-btn--active {
  background: var(--clr-text);
  border-color: var(--clr-text);
  color: #fff;
}
@media (max-width: 768px) {
  .navbar__login-btn {
    margin: 0.25rem 0 0;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 6px;
  }
}

/* ===== AUTH NAV ITEMS ===== */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-auth__email {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn--ghost {
  background: none;
  border: 1px solid var(--clr-border);
  border-radius: 6px;
  color: var(--clr-text-muted);
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color var(--transition), color var(--transition);
}

.btn--ghost:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

/* ===== SERVICES ===== */
.services {
  padding: 7rem 0;
  background: var(--clr-bg);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card--featured {
  border-color: var(--clr-accent);
}

.service-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  white-space: nowrap;
}

.service-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card__name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-card__desc {
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-card__price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--clr-accent);
  margin-bottom: 1.5rem;
  line-height: 1;
}

.service-card__price sub {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  vertical-align: baseline;
}

.service-card__features {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}

.service-card__features li {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.service-card__features li::before {
  content: '✓';
  color: var(--clr-accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.auth-card__title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.auth-card__subtitle {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.auth-card__switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--clr-text-muted);
}

.auth-card__switch a {
  color: var(--clr-accent);
  font-weight: 600;
}

.auth-card__switch a:hover {
  text-decoration: underline;
}

.auth__error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
}

.auth__error.visible { display: block; }

/* Disable submit button when form has empty required fields */
#signup-form:invalid #creatUserSubmitBtn {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== BLOG LISTING ===== */
.blog-hero {
  padding: calc(var(--nav-height) + 3rem) 1.5rem 3rem;
  text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(108,99,255,0.13) 0%, transparent 70%);
}
.blog-hero__name {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #fff 30%, var(--clr-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}
.blog-hero__sub {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.blog-hero__cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.cat-pill {
  padding: 0.35rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--clr-border);
  background: transparent;
  color: var(--clr-text-muted);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition);
}
.cat-pill:hover, .cat-pill.active {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
}

.blog-section { padding: 3rem 0 6rem; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.post-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--clr-accent); box-shadow: var(--shadow); }

.post-card__banner {
  height: 6px;
  background: var(--clr-accent);
}
.post-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card__cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.5rem;
}
.post-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.65rem;
}
.post-card__excerpt {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--clr-border);
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}
.post-card__stats { display: flex; gap: 0.85rem; align-items: center; }
.post-card__stat { display: flex; align-items: center; gap: 0.3rem; }

.empty-state {
  text-align: center;
  color: var(--clr-text-muted);
  padding: 4rem 1rem;
  font-size: 0.95rem;
  grid-column: 1 / -1;
}

/* ===== POST PAGE ===== */
.post-page {
  padding: calc(var(--nav-height) + 2.5rem) 1.5rem 5rem;
  max-width: 760px;
  margin: 0 auto;
}
.post-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--clr-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: color var(--transition);
}
.post-page__back:hover { color: var(--clr-accent); }

.post-page__cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.6rem;
}
.post-page__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.post-page__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--clr-text-muted);
  font-size: 0.85rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.post-page__meta span { display: flex; align-items: center; gap: 0.3rem; }

.post-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--clr-text);
}
.post-body p { margin-bottom: 1.4rem; }
.post-body h2 { font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 1rem; }
.post-body h3 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.post-body blockquote {
  border-left: 3px solid var(--clr-accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--clr-surface);
  border-radius: 0 8px 8px 0;
  color: var(--clr-text-muted);
  font-style: italic;
}

/* ===== VOTE BAR ===== */
.vote-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  margin: 2.5rem 0;
}
.vote-bar__label {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  font-weight: 600;
  margin-right: auto;
}
.vote-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--clr-border);
  background: var(--clr-surface-2);
  color: var(--clr-text-muted);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition);
}
.vote-btn:hover { border-color: var(--clr-accent); color: var(--clr-accent); }
.vote-btn.voted-up   { background: rgba(108,99,255,0.15); border-color: var(--clr-accent); color: var(--clr-accent); }
.vote-btn.voted-down { background: rgba(248,113,113,0.1); border-color: #f87171; color: #f87171; }
.vote-btn__icon { font-size: 1.1rem; }
.vote-bar__track {
  flex: 1;
  height: 6px;
  background: var(--clr-surface-2);
  border-radius: 6px;
  overflow: hidden;
  max-width: 200px;
}
.vote-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-accent), #a78bfa);
  border-radius: 6px;
  transition: width 0.4s ease;
}

/* ===== COMMENTS ===== */
.comments-section { margin-top: 3rem; }
.comments-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.comments-section__title { font-size: 1.2rem; font-weight: 700; }
.comments-section__sort {
  display: flex;
  gap: 0.4rem;
}
.sort-btn {
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--clr-border);
  background: transparent;
  color: var(--clr-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition);
}
.sort-btn.active, .sort-btn:hover { border-color: var(--clr-accent); color: var(--clr-accent); }

.comment-form {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 2rem;
}
.comment-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.comment-form textarea {
  width: 100%;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  resize: vertical;
  min-height: 90px;
  transition: border-color var(--transition);
  margin-bottom: 0.75rem;
}
.comment-form textarea:focus { outline: none; border-color: var(--clr-accent); }
.comment-form input {
  width: 100%;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
.comment-form input:focus { outline: none; border-color: var(--clr-accent); }
.comment-form input::placeholder,
.comment-form textarea::placeholder { color: var(--clr-text-muted); opacity: 0.6; }
.comment-form__actions { display: flex; justify-content: flex-end; gap: 0.75rem; align-items: center; }
.comment-form__note { font-size: 0.78rem; color: var(--clr-text-muted); }

.comment-list { display: flex; flex-direction: column; gap: 1rem; }
.comment {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.comment__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.comment__name { font-size: 0.88rem; font-weight: 700; }
.comment__time { font-size: 0.75rem; color: var(--clr-text-muted); }
.comment__body { font-size: 0.9rem; color: var(--clr-text); line-height: 1.65; margin-bottom: 0.75rem; }
.comment__footer { display: flex; align-items: center; gap: 0.5rem; }
.c-vote-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--clr-border);
  background: transparent;
  color: var(--clr-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition);
}
.c-vote-btn:hover { border-color: var(--clr-accent); color: var(--clr-accent); }
.c-vote-btn.voted-up   { background: rgba(108,99,255,0.12); border-color: var(--clr-accent); color: var(--clr-accent); }
.c-vote-btn.voted-down { background: rgba(248,113,113,0.08); border-color: #f87171; color: #f87171; }
.comment--hidden { display: none; }

/* ===== SURVEY PAGE ===== */
.survey-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(108,99,255,0.1) 0%, transparent 70%);
}
.survey-card {
  width: 100%;
  max-width: 580px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.survey-card__head {
  background: var(--clr-accent);
  padding: 1.75rem 2rem;
}
.survey-card__head h1 { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 0.3rem; }
.survey-card__head p  { font-size: 0.88rem; color: rgba(255,255,255,0.75); }
.survey-card__body { padding: 2rem; }

.survey-question { margin-bottom: 1.75rem; }
.survey-question__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.survey-question__label span {
  color: var(--clr-accent);
  margin-right: 0.35rem;
}
.survey-q-input {
  width: 100%;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  transition: border-color var(--transition);
  resize: vertical;
}
.survey-q-input:focus { outline: none; border-color: var(--clr-accent); }

.rating-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.rating-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--clr-border);
  background: var(--clr-surface-2);
  color: var(--clr-text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition);
}
.rating-btn:hover, .rating-btn.selected {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
}

.yn-row { display: flex; gap: 0.75rem; }
.yn-btn {
  flex: 1;
  padding: 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--clr-border);
  background: var(--clr-surface-2);
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition);
  text-align: center;
}
.yn-btn:hover, .yn-btn.selected { background: var(--clr-accent); border-color: var(--clr-accent); color: #fff; }

.mc-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--clr-border);
  background: var(--clr-surface-2);
  cursor: pointer;
  margin-bottom: 0.5rem;
  transition: all var(--transition);
  font-size: 0.9rem;
}
.mc-option:hover { border-color: var(--clr-accent); }
.mc-option.selected { border-color: var(--clr-accent); background: rgba(108,99,255,0.1); color: var(--clr-accent); }
.mc-option input[type="radio"] { accent-color: var(--clr-accent); }

.survey-card__footer {
  padding: 0 2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.survey-progress {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}

.survey-thanks {
  text-align: center;
  padding: 3rem 2rem;
}
.survey-thanks__icon { font-size: 3rem; margin-bottom: 1rem; }
.survey-thanks__title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.survey-thanks__sub { color: var(--clr-text-muted); font-size: 0.95rem; }

/* ===== ADMIN PANEL ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 230px;
  background: var(--clr-surface);
  border-right: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  flex-shrink: 0;
}
.admin-sidebar__brand {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--clr-border);
  font-size: 1rem;
  font-weight: 800;
}
.admin-sidebar__brand span { color: var(--clr-accent); }
.admin-nav { flex: 1; padding: 1rem 0.75rem; display: flex; flex-direction: column; gap: 0.25rem; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  font-family: var(--font-sans);
  transition: all var(--transition);
  text-align: left;
}
.admin-nav-item:hover { background: var(--clr-surface-2); color: var(--clr-text); }
.admin-nav-item.active { background: rgba(108,99,255,0.15); color: var(--clr-accent); }
.admin-sidebar__bottom {
  padding: 1rem 0.75rem;
  border-top: 1px solid var(--clr-border);
  display: flex; gap: 0.5rem;
}
.admin-sidebar__bottom a {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: color var(--transition);
}
.admin-sidebar__bottom a:hover { color: var(--clr-accent); }

.admin-main {
  margin-left: 230px;
  flex: 1;
  padding: 2rem 2rem 4rem;
  max-width: 900px;
}
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-panel__title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--clr-border);
}

.form-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.form-card__title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-text-muted);
  margin-bottom: 1.1rem;
}
.fg { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.fg label { font-size: 0.8rem; font-weight: 600; color: var(--clr-text-muted); }
.fg input, .fg select, .fg textarea {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  resize: vertical;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { outline: none; border-color: var(--clr-accent); }
.fg select option { background: var(--clr-surface-2); }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.admin-list { display: flex; flex-direction: column; gap: 0.6rem; }
.admin-item {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.admin-item__main { flex: 1; min-width: 0; }
.admin-item__title { font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-item__sub { font-size: 0.75rem; color: var(--clr-text-muted); margin-top: 0.15rem; }
.admin-item__actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
.btn-sm {
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background var(--transition);
}
.btn-sm--accent { background: rgba(108,99,255,0.15); color: var(--clr-accent); }
.btn-sm--accent:hover { background: rgba(108,99,255,0.3); }
.btn-sm--red { background: rgba(248,113,113,0.12); color: #f87171; }
.btn-sm--red:hover { background: rgba(248,113,113,0.25); }
.btn-sm--green { background: rgba(74,222,128,0.12); color: #4ade80; }
.btn-sm--green:hover { background: rgba(74,222,128,0.25); }

.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.badge--published { background: rgba(74,222,128,0.15); color: #4ade80; }
.badge--draft { background: rgba(148,163,184,0.15); color: #94a3b8; }

.q-builder { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
.q-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}
.q-row input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
}
.q-row select {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 6px;
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.copy-link-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}
.copy-link-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--clr-text-muted);
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}

.response-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.response-card__head {
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--clr-border);
}
.response-q { margin-bottom: 0.65rem; }
.response-q__label { font-size: 0.78rem; font-weight: 700; color: var(--clr-text-muted); margin-bottom: 0.15rem; }
.response-q__ans { font-size: 0.88rem; }

.admin-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-accent);
  color: var(--clr-text);
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 9999;
  pointer-events: none;
}
.admin-toast.show { opacity: 1; }

/* ===== ADMIN LOGIN ===== */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(108,99,255,0.1) 0%, transparent 70%);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .comment-form__row { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; padding: 1.25rem; }
  .fg-row { grid-template-columns: 1fr; }
  .vote-bar { flex-wrap: wrap; gap: 0.75rem; }
  .vote-bar__track { display: none; }
}

/* ===== MOBILE — portrait phones ===== */
@media (max-width: 640px) {

  /* Nav */
  .navbar__menu { padding: 0.75rem 0; }
  .navbar__links, .navbar__login-btn { padding: 0.65rem 1rem; font-size: 0.9rem; min-height: 44px; }

  /* Hero (index.html) */
  .hero { padding: 1.5rem 1rem 2.5rem; }
  .hero__title { font-size: clamp(2.8rem, 14vw, 5rem) !important; }
  .hero__eyebrow { font-size: 0.68rem; }

  /* Blog hero */
  .blog-hero { padding: 1.25rem 1rem 1.75rem !important; }
  .blog-hero__name { font-size: clamp(3rem, 16vw, 6rem) !important; }
  .blog-hero__cats { gap: 0.4rem; }
  .cat-pill { padding: 0.45rem 0.85rem; font-size: 0.75rem; min-height: 36px; }

  /* Blog grid — single column */
  .blog-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .blog-card { border-radius: 12px; }

  /* Post page */
  .post-hero { padding: 1.25rem 1rem 1.5rem !important; }
  .post-title { font-size: clamp(1.6rem, 8vw, 2.5rem) !important; }
  .post-body { padding: 1.25rem 1rem; }
  .post-body p, .post-body li { font-size: 0.97rem; }

  /* Comments */
  .comments-section { padding: 1.25rem 1rem; }
  .comment-form__row { grid-template-columns: 1fr; }
  #cmtBody { font-size: 0.95rem; }
  .comment-form__actions { flex-wrap: wrap; gap: 0.5rem; }

  /* Profile */
  .profile-header { padding: 1.5rem 1rem; }
  .profile-stats { padding: 0.75rem 1rem; gap: 0; }
  .profile-stat { padding: 0.5rem 0.65rem; min-width: 70px; }
  .profile-stat__num { font-size: 1.3rem; }
  .profile-body { padding: 0.75rem 0; }
  .profile-card { margin: 0.5rem 0.75rem; border-radius: 14px; }
  .profile-card__body { padding: 0 1rem 1rem; }
  .profile-actions { gap: 0.5rem; }
  .profile-action-btn { padding: 0.6rem 1rem; font-size: 0.82rem; min-height: 40px; }
  .post-grid { gap: 2px; }

  /* Admin cards in profile */
  .adm-row { flex-direction: column; }
  .adm-row .adm-fg { flex: none; }

  /* Name / username edit card */
  .name-edit-row { flex-wrap: wrap; }
  .name-save-btn, .name-cancel-btn { flex: 1; min-height: 44px; }

  /* About, Cancer, About page */
  .about-hero { padding: calc(var(--nav-height) + 1rem) 1rem 1.75rem !important; }
  .about-content { padding: 0 1rem; }
  .cancer-hero { padding: calc(var(--nav-height) + 1rem) 1rem 1.75rem !important; }

  /* Marquee */
  .marquee-item { font-size: 0.65rem; padding: 0 1.5rem; }

  /* Listening card on home */
  .listening-card { margin: 0 0.75rem; }

  /* General containers */
  .container { padding: 0 1rem; }
  .section-header { padding: 0 0.25rem; }

  /* Footer */
  .footer__inner { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
}
