@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Manrope:wght@500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #09090b;
  --panel: rgba(20, 20, 23, 0.78);
  --panel-hover: rgba(27, 27, 31, 0.9);
  --line: rgba(255, 255, 255, 0.09);
  --muted: #909097;
  --text: #f3f3f1;
  --accent: #b7f36b;
  --accent-dark: #17220d;
  --blue: #80bfff;
  --purple: #a993ff;
  --orange: #ffae6d;
  --red: #ff747c;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 56px 56px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.ambient {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.09;
  pointer-events: none;
}

.ambient-one { top: -260px; left: 10%; background: var(--accent); }
.ambient-two { right: -260px; bottom: -300px; background: #7867ff; }

.shell { position: relative; width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font: 600 15px 'Manrope', sans-serif; letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; transform: rotate(-5deg); }
.brand-mark span { border: 1px solid rgba(183, 243, 107, .65); border-radius: 3px; background: rgba(183, 243, 107, .12); }
.brand-mark span:first-child { background: var(--accent); }
.top-actions { display: flex; align-items: center; gap: 22px; }
.clock { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

.add-button, .primary-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: #10140b;
  font-weight: 600;
  padding: 11px 15px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.add-button:hover, .primary-button:hover { background: #c8ff82; transform: translateY(-1px); }
.add-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

.hero { padding: 76px 0 68px; }
.eyebrow { margin: 0 0 13px; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { font-family: 'Manrope', sans-serif; }
h1 { max-width: 720px; margin: 0; font-size: clamp(44px, 6vw, 76px); line-height: .98; letter-spacing: -.06em; }

.search-wrap {
  display: flex;
  align-items: center;
  width: min(530px, 100%);
  margin-top: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(18, 18, 21, .8);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}
.search-wrap:focus-within { border-color: rgba(183, 243, 107, .45); box-shadow: 0 0 0 3px rgba(183, 243, 107, .07); }
.search-wrap svg { width: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search-wrap input { flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: transparent; color: var(--text); padding: 0 12px; }
.search-wrap input::placeholder { color: #6d6d74; }
kbd { border: 1px solid var(--line); border-radius: 5px; background: rgba(255,255,255,.04); color: #85858c; font: 11px 'DM Sans', sans-serif; padding: 3px 7px; }

.dashboard-section { padding: 0 0 70px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.section-heading .eyebrow { margin-bottom: 7px; }
.section-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.count { margin: 0; color: var(--muted); font-size: 13px; }

.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dashboard-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  backdrop-filter: blur(16px);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  animation: card-in .45s both;
}
.dashboard-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .16); background: var(--panel-hover); }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.card-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--card-color) 12%, transparent); color: var(--card-color); font: 700 13px 'Manrope', sans-serif; letter-spacing: -.04em; }
.card-icon svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-actions { display: flex; align-items: center; gap: 7px; }
.status { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); padding: 5px 8px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.status i { width: 5px; height: 5px; border-radius: 50%; background: var(--card-color); box-shadow: 0 0 7px var(--card-color); }
.remove-button { display: none; width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.remove-button:hover { border-color: rgba(255,116,124,.45); color: var(--red); }
.dashboard-card.custom .remove-button { display: grid; place-items: center; }
.card-copy { margin: 34px 0 24px; }
.card-category { margin: 0 0 7px; color: var(--card-color); font-size: 10px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.card-copy h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.035em; }
.card-description { min-height: 42px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.launch-button { display: flex; align-items: center; justify-content: space-between; margin-top: auto; border-top: 1px solid var(--line); color: #d8d8d5; padding-top: 17px; text-decoration: none; font-size: 13px; font-weight: 500; }
.launch-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; transition: transform .18s ease; }
.dashboard-card:hover .launch-button svg { transform: translateX(4px); color: var(--card-color); }

.empty-state { text-align: center; color: var(--muted); padding: 70px 20px; border: 1px dashed var(--line); border-radius: 14px; }
.empty-state button { border: 0; background: none; color: var(--accent); cursor: pointer; }
footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: #5e5e64; padding: 24px 0 38px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

dialog { width: min(460px, calc(100% - 28px)); border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: #151518; color: var(--text); padding: 0; box-shadow: 0 24px 100px rgba(0,0,0,.7); }
dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(5px); }
dialog form { padding: 25px; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.dialog-head h2 { margin: 0; font-size: 24px; }
.dialog-head .eyebrow { margin-bottom: 6px; }
.icon-button { border: 0; background: transparent; color: var(--muted); font-size: 27px; line-height: 1; cursor: pointer; }
label { display: grid; gap: 8px; margin-top: 16px; color: #b7b7bb; font-size: 12px; }
label input, label select { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: #0f0f12; color: var(--text); padding: 0 12px; }
label input:focus, label select:focus { border-color: rgba(183,243,107,.5); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.secondary-button { border: 1px solid var(--line); border-radius: 9px; background: transparent; color: #b8b8bc; padding: 10px 15px; cursor: pointer; }

@media (max-width: 850px) { .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 570px) {
  .shell { width: min(100% - 28px, 1180px); }
  .topbar { min-height: 72px; }
  .clock { display: none; }
  .add-button { padding: 10px; font-size: 0; }
  .add-button svg { width: 18px; }
  .hero { padding: 56px 0 52px; }
  h1 { font-size: 45px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-card { min-height: 270px; }
  footer span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
