:root {
  --bg-primary: #0b0b0b;
  --bg-secondary: #111111;
  --surface-1: #181818;
  --surface-2: #1f1f1f;
  --surface-3: #242424;
  --text-main: #dadada;
  --text-muted: #bababa;
  --text-subtle: #999999;
  --accent-h: 254;
  --accent-s: 80%;
  --accent-l: 68%;
  --accent-primary: hsl(var(--accent-h) var(--accent-s) var(--accent-l));
  --accent-secondary: hsl(var(--accent-h) var(--accent-s) var(--accent-l));
  --accent-strong: hsl(var(--accent-h) var(--accent-s) var(--accent-l));
  --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-primary));
  --accent-glow: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.35);
  --icon-color: var(--accent-primary);
  --icon-filter: invert(69%) sepia(17%) saturate(4277%) hue-rotate(228deg) brightness(101%) contrast(98%);
  --border-subtle: #3f3f3f;
  --border-strong: #363636;
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 30px 70px rgba(0, 0, 0, 0.65);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --container-width: 1180px;
  --font-sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Microsoft YaHei Light", sans-serif;
  --font-display: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Microsoft YaHei Light", sans-serif;
  --danger: #ef4444;
  --ai-color: var(--accent-primary);
  --user-color: #ababab;
}

body.light-mode {
  --bg-primary: #ffffff;
  --bg-secondary: #fcfcfc;
  --surface-1: #fafafa;
  --surface-2: #f6f6f6;
  --surface-3: #e3e3e3;
  --text-main: #222222;
  --text-muted: #5a5a5a;
  --text-subtle: #707070;
  --border-subtle: #d4d4d4;
  --border-strong: #e0e0e0;
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 24px 48px rgba(15, 23, 42, 0.12);
  --accent-glow: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(800px 400px at 15% 10%, hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.18), transparent 60%),
    radial-gradient(700px 500px at 85% 15%, hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.12), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

body.light-mode::before {
  background:
    radial-gradient(700px 380px at 10% 5%, hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.08), transparent 60%),
    radial-gradient(600px 420px at 90% 0%, hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.06), transparent 65%);
}

body.light-mode::after {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  opacity: 0.2;
}

body.light-mode .navbar {
  background: var(--bg-secondary);
}

body.light-mode .footer {
  background: var(--bg-secondary);
}

body.light-mode .profile-dropdown {
  background: var(--surface-1);
}

body.light-mode .demo-card {
  background: var(--surface-1);
}

body.light-mode .demo-header {
  background: var(--surface-2);
}

body.light-mode .demo-content,
body.light-mode .demo-sidebar {
  background: var(--surface-1);
}

body.light-mode .note-item {
  background: var(--surface-2);
}

body.light-mode .cta-card {
  background: linear-gradient(135deg, hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.16), var(--bg-primary));
}

body > * {
  position: relative;
  z-index: 1;
}

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

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

a:hover {
  color: var(--accent-secondary);
}

button,
input,
textarea {
  font-family: inherit;
}

svg {
  display: block;
}

.lucide {
  color: var(--icon-color);
  stroke: currentColor;
}

button {
  background: none;
  border: none;
}

:focus-visible {
  outline: 2px solid hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.55);
  outline-offset: 2px;
}

.main-content {
  flex: 1;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

.footer {
  margin-top: auto;
  padding: 20px 32px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.footer-content p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-subtle);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.01em;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}


.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.highlights,
.workflow,
.trust {
  padding: 96px 0;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.highlight-copy h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.checklist svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
}

.highlight-panel {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  gap: 20px;
  box-shadow: var(--shadow-soft);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.panel-heading h4 {
  margin: 0;
  font-size: 1.1rem;
}

.pill {
  background: var(--surface-2);
  color: var(--text-subtle);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
}

.panel-list {
  display: grid;
  gap: 14px;
}

.panel-list strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 4px;
}

.panel-list span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.workflow-step {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--surface-1);
  display: grid;
  gap: 12px;
}

.step-count {
  font-weight: 700;
  color: var(--accent-primary);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.trust {
  padding-top: 80px;
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 0;
}

.trust-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.trust-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.trust-item svg {
  width: 22px;
  height: 22px;
  color: var(--accent-primary);
}

.trust-item h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.trust-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
  }
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  text-align: left;
}

.section-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-secondary);
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--text-main);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 640px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.12);
  border: 1px solid hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.35);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.6);
}

.btn {
  padding: 12px 26px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    background 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: none;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--text-main);
  box-shadow: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-secondary);
  box-shadow: none;
  color: var(--bg-primary);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  border-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.45);
  box-shadow: 0 0 0 1px hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.2);
  color: var(--accent-primary);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-cancel {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-cancel:hover {
  color: var(--accent-primary);
  border-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.45);
}

.navbar {
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  backdrop-filter: blur(18px) saturate(160%);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.navbar h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.logo {
  height: 34px;
  width: 34px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

body.light-mode .logo {
  box-shadow: none;
}

.profile-btn,
.dashboard-btn,
.theme-toggle-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  color: var(--icon-color);
  background: var(--surface-2);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.profile-btn:hover,
.dashboard-btn:hover,
.theme-toggle-btn:hover {
  transform: translateY(-1px);
  border-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.45);
  background: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.08);
}

.profile-btn svg,
.dashboard-btn svg,
.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-wrapper {
  position: relative;
  display: inline-block;
}

.profile-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  width: 220px;
  background: var(--surface-1);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-strong);
  display: none;
  flex-direction: column;
  z-index: 1001;
  overflow: hidden;
}

.profile-dropdown.show {
  display: flex;
}

.dropdown-item {
  padding: 12px 16px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  font-size: 0.9rem;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.dropdown-item svg {
  width: 18px;
  height: 18px;
}

.dropdown-item:hover {
  background: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.12);
  color: var(--accent-secondary);
}

.dropdown-guest-info {
  padding: 12px 16px;
  background: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.12);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--accent-secondary);
  font-size: 0.8rem;
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  padding: 96px 0 120px;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-main);
  margin-bottom: 24px;
}

.hero-title .highlight {
  color: var(--accent-secondary);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}

.metric {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
}

.metric-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.demo-card {
  background-color: var(--surface-1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-strong);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  width: 100%;
  max-width: 520px;
}

.demo-card:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) scale(1.01);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
}

.demo-header {
  background: var(--surface-2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.demo-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background-color: #ff5f57;
}

.dot.yellow {
  background-color: #ffbd2e;
}

.dot.green {
  background-color: #28ca42;
}

.browser-bar {
  flex: 1;
  background: var(--surface-3);
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.browser-bar span {
  font-size: 10px;
  color: var(--text-subtle);
}

.demo-content {
  display: grid;
  grid-template-columns: 150px 1fr;
  height: 320px;
  background: var(--surface-1);
}

.demo-sidebar {
  background: var(--surface-2);
  border-right: 1px solid var(--border-subtle);
  padding: 20px;
}

.sidebar-line {
  background: var(--border-strong);
  border-radius: 4px;
  margin-bottom: 12px;
  height: 8px;
}

.sidebar-line.primary {
  background: var(--border-subtle);
  height: 12px;
  margin-bottom: 20px;
}

.demo-main {
  padding: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.note-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background-color: var(--surface-2);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.note-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-width: 0;
}

.timestamp {
  background: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.2);
  color: var(--accent-secondary);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.features,
.how-it-works,
.faq-section,
.cta {
  padding: 96px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.3);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  padding: 12px;
  background: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.12);
  color: var(--icon-color);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--surface-1);
  position: relative;
  overflow: hidden;
}

.step-number {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 1.8rem;
  font-weight: 700;
  color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.2);
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.12);
  color: var(--icon-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-icon svg {
  width: 22px;
  height: 22px;
}

.step-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.faq-item {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
}

.faq-item h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cta {
  padding-bottom: 120px;
}

.cta-card {
  background: linear-gradient(135deg, hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.18), var(--bg-primary));
  border: 1px solid hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.25);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.cta-content h2 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  margin-bottom: 16px;
}

.cta-content p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.dashboard-main {
  padding-top: 48px;
  padding-bottom: 80px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.page-title-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-title-group h2 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

.panel {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
}

.search-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.search-wrapper {
  position: relative;
  width: min(720px, 100%);
  flex: 1;
}

.search-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-wrapper input[type="text"] {
  width: 100%;
  padding: 14px 46px 14px 18px;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-2);
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-wrapper input[type="text"]:focus {
  outline: none;
  border-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.6);
  box-shadow: 0 0 0 3px hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.15);
}

.search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--icon-color);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.search-btn svg {
  width: 18px;
  height: 18px;
}

.search-btn:hover {
  color: var(--accent-secondary);
}

.labels-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.labels-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.labels-scroll-area {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.label {
  border-radius: var(--radius-md);
  background: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.08);
  border: 1px solid hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.35);
  color: var(--accent-secondary);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.label:hover {
  transform: translateY(-1px);
  background: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.16);
}

.label.active {
  background: var(--accent-primary);
  color: var(--text-main);
  border-color: transparent;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-main);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.filter-chip:hover {
  border-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.45);
  color: var(--accent-secondary);
}

.filter-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.filter-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-section {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px;
}

.filter-section-title {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 10px;
}

.filter-field label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-subtle);
  font-weight: 600;
  margin-bottom: 6px;
}

.filter-field input,
.filter-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-3);
  color: var(--text-main);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.filter-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
  padding: 4px 0;
}

.filter-labels .label {
  margin: 0;
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: 999px;
}

.add-label-btn,
.filter-icon-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--icon-color);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.add-label-btn:hover,
.filter-icon-btn:hover {
  transform: translateY(-1px);
  border-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.4);
  background: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.08);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.dashboard-main .cards {
  grid-template-columns: 1fr;
}

  .dashboard-main .card {
    padding: 16px 20px;
  }

  .dashboard-main .card-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

.dashboard-main .card-main {
  flex: 1;
  min-width: 0;
}

.dashboard-main .card-thumbnail {
  width: 220px;
  height: 124px;
  flex-shrink: 0;
}

.dashboard-main .card-header {
  align-items: center;
}

.dashboard-main .card-header h3 {
  font-size: 1.05rem;
}

  .dashboard-main .card-actions {
    display: flex;
    align-items: center;
  }

  .dashboard-main .view-note-btn {
    min-height: 44px;
    padding: 12px 22px;
  }

.card {
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card:hover {
  transform: translateY(-3px);
  border-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.35);
  box-shadow: var(--shadow-strong);
}

.card-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-thumbnail {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.card-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fav-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: block;
}

.fav-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.empty-icon {
  margin-bottom: 16px;
  display: inline-flex;
  padding: 18px;
  background: var(--surface-2);
  border-radius: 50%;
}

.yt-link {
  color: var(--accent-secondary);
  font-weight: 600;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.pagination-btn {
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface-2);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.12);
  border-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.4);
  transform: translateY(-1px);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#page-indicator {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.notes-card {
  background: var(--surface-1);
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-strong);
  margin: 24px auto;
  grid-column: 1 / -1;
  width: min(1040px, 100%);
  height: auto;
}

.note-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.video-thumbnail-wrapper {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
}

.video-title:hover {
  color: var(--accent-secondary);
}

.video-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-icon {
  width: 18px;
  height: 18px;
  color: var(--icon-color);
}

.note-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 0;
}

.note-entry {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px 18px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  height: auto;
  min-height: 96px;
  overflow: hidden;
}

.note-entry:hover {
  transform: translateY(-1px);
  border-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.35);
  box-shadow: var(--shadow-soft);
}

.note-entry.ai-note {
  border-left: 3px solid var(--ai-color);
}

.note-entry.user-note {
  border-left: 3px solid var(--user-color);
}

.note-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  align-self: center;
}

.note-copy {
  margin: 0;
  color: var(--text-muted);
  word-break: break-word;
  min-width: 0;
  line-height: 1.55;
}

.note-timestamp {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.note-source-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.note-source-indicator.ai {
  background: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.15);
  color: var(--icon-color);
  border-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.35);
}

.note-source-indicator.user {
  background: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.15);
  color: var(--icon-color);
  border-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.35);
}

.source-icon {
  width: 16px;
  height: 16px;
}

.action-items {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
  flex-shrink: 0;
}


.action-item-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-color);
}

.action-item-icon:hover {
  opacity: 1;
  transform: scale(1.08);
}

img.action-item-icon {
  filter: var(--icon-filter);
}

.action-btn {
  background: transparent;
  border: none;
  padding: 0;
}

.action-btn .lucide {
  width: 20px;
  height: 20px;
}

.action-btn.is-hidden {
  display: none;
}

.edit-textarea {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  resize: vertical;
  width: 100%;
  font-size: 1rem;
  color: var(--text-main);
  padding: 12px;
  outline: none;
  grid-column: 1 / -1;
  grid-row: 2;
  min-height: 96px;
}

.note-entry.is-editing {
  align-items: flex-start;
  grid-template-rows: auto auto;
  height: auto;
  overflow: visible;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-confirm {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 90%;
  max-width: 420px;
  box-shadow: var(--shadow-strong);
  text-align: center;
}

.modal-confirm h3 {
  margin-bottom: 16px;
}

.btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--surface-1);
  margin: 10% auto;
  padding: 32px;
  border: 1px solid var(--border-subtle);
  width: 90%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
}

.close-button {
  color: var(--text-subtle);
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-button:hover {
  color: var(--accent-secondary);
}

.label-dropdown {
  appearance: none;
  background: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.1);
  border: 1px solid hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.3);
  color: var(--accent-secondary);
  padding: 8px 32px 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b6cef' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.label-dropdown option {
  background: var(--surface-1);
  color: var(--text-main);
}

.label-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.remove-label-btn {
  color: var(--accent-secondary);
  cursor: pointer;
  font-size: 16px;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.remove-label-btn:hover {
  opacity: 1;
  background: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.15);
}

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px;
}

.login-page .theme-toggle-btn {
  position: absolute;
  top: 24px;
  right: 32px;
}

.login-container {
  background: var(--surface-1);
  color: var(--text-main);
  width: 90%;
  max-width: 420px;
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.login-container h2 {
  margin-bottom: 24px;
  font-size: 2rem;
}

.login-container input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--surface-2);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-container input:focus {
  outline: none;
  border-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.6);
  box-shadow: 0 0 0 3px hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.15);
}

.login-container button {
  width: 100%;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.secondary-btn:hover {
  border-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.4);
  transform: translateY(-1px);
}

.error-message {
  color: var(--danger);
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: none;
}

.password-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 18px;
}

.password-wrapper input {
  margin-bottom: 0;
}

.password-toggle-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent !important;
  border: none !important;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 0;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.password-toggle-btn:hover {
  color: var(--accent-secondary);
}

.login-logo-container {
  position: absolute;
  top: 24px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.login-logo-container span {
  font-weight: 700;
  font-size: 20px;
  color: var(--text-main);
}

.profile-container {
  max-width: 840px;
  padding-top: 48px;
  padding-bottom: 80px;
}

.profile-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  text-align: center;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent-secondary);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35),
    0 0 0 8px hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.12);
  position: relative;
  overflow: hidden;
}

.profile-avatar::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.35),
    transparent 60%
  );
  opacity: 0.9;
}

.profile-avatar svg,
.profile-avatar .lucide {
  width: 42px;
  height: 42px;
  color: var(--accent-secondary);
  z-index: 1;
}

#profile-username-display {
  margin: 0;
  font-size: 1.6rem;
}

.profile-header-center p {
  color: var(--text-muted);
}

.profile-section {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
}

.profile-section h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  margin-top: -8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.info-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.token-input-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.token-input-group input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: monospace;
  font-size: 0.85rem;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  border-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.4);
  transform: translateY(-1px);
}

.hint-text {
  display: block;
  margin-top: 8px;
  color: var(--text-subtle);
  font-size: 0.8rem;
}

.labels-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.loading-spinner {
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.label-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.label-list-item:hover {
  border-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.3);
  transform: translateY(-1px);
}

.label-actions {
  display: flex;
  gap: 8px;
}

.label-actions .icon-btn {
  width: 34px;
  height: 34px;
}

.delete-label-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
  }

  .hero-visual {
    order: 0;
  }

  .hero-content {
    order: 0;
  }

  .demo-card {
    transform: none;
  }

  .notes-card {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 14px 20px;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .main-content,
  .container {
    padding: 0 20px;
    padding-top: 16px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-box {
    flex-direction: column;
    align-items: stretch;
  }

  .search-actions {
    justify-content: flex-end;
  }

  .navbar-actions {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-content {
    order: 0;
  }

  .hero-visual {
    order: 1;
    width: 100%;
  }

  .demo-card {
    max-width: 100%;
  }

  .demo-content {
    grid-template-columns: 1fr;
    height: auto;
  }

  .demo-sidebar {
    display: none;
  }

  .demo-main {
    padding: 18px;
  }

  .note-item {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .note-item p {
    flex: 1 1 100%;
  }

  .notes-card {
    padding: 24px;
    height: auto;
  }

  .video-thumbnail-wrapper {
    height: 160px;
  }

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

  .dashboard-main .card-content-wrapper {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    align-items: center;
    gap: 10px;
  }

  .dashboard-main .card-thumbnail {
    width: 88px;
    height: 54px;
    border-radius: 12px;
  }

  .dashboard-main .card-actions {
    width: auto;
    position: static;
    justify-self: end;
    align-self: start;
  }

  .dashboard-main .card-actions .btn {
    width: auto;
    min-height: 28px;
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  .dashboard-main .card-header h3 {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .dashboard-main .card-main {
    padding-right: 0;
    min-width: 0;
  }

  .hero {
    padding: 72px 0 96px;
  }

  .cta-card {
    padding: 32px;
  }
}

@media (max-width: 480px) {
  .navbar h1 {
    font-size: 18px;
  }

  .logo {
    width: 30px;
    height: 30px;
  }

  .profile-btn,
  .dashboard-btn,
  .theme-toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .notes-card {
    padding: 18px;
    border-radius: 18px;
  }

  .video-title {
    font-size: 1.25rem;
  }

  .video-tag {
    flex-wrap: wrap;
  }

  .video-thumbnail-wrapper {
    height: 140px;
  }

  .modal-confirm {
    padding: 20px;
  }

  .filter-section {
    padding: 12px;
    border-radius: 12px;
  }

  .filter-section-title {
    font-size: 0.65rem;
  }

  .filter-labels {
    max-height: 140px;
  }

  .filter-labels .label {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    padding: 6px 8px;
    font-size: 0.74rem;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .note-entry {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: flex-start;
    height: auto;
    min-height: 88px;
    padding: 16px;
  }

  .note-meta {
    grid-column: 1 / 2;
    grid-row: 1;
    align-items: center;
    gap: 10px;
  }

  .action-items {
    grid-column: 2 / 3;
    grid-row: 1;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 0;
  }

  .note-copy {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 10px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-metrics {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
  }

  .metric {
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 16px;
    row-gap: 6px;
  }

  .metric + .metric {
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
  }

  .metric-value {
    font-size: 1.15rem;
    min-width: 60px;
    line-height: 1.1;
  }

  .metric-label {
    font-size: 0.85rem;
    line-height: 1.35;
    color: var(--text-muted);
  }

  .label {
    width: 100%;
  }

  .note-entry {
    grid-template-columns: 1fr auto;
  }

  .token-input-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .token-input-group input {
    grid-column: 1 / -1;
  }

  .token-input-group .icon-btn {
    width: 100%;
  }

  .login-logo-container {
    position: absolute;
    top: 16px;
    left: 16px;
    justify-content: flex-start;
    margin-bottom: 0;
  }
}
