:root {
  --bg: #0b1220;
  --panel: rgba(255, 255, 255, 0.08);
  --panel2: rgba(255, 255, 255, 0.06);
  --border: rgba(148, 163, 184, 0.22);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --muted2: rgba(255, 255, 255, 0.55);
  --accent: #22c55e;
  --accent2: #38bdf8;
  --danger: #ef4444;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(900px 520px at 15% 0%, rgba(34, 197, 94, 0.18), transparent 60%),
    radial-gradient(820px 540px at 90% 20%, rgba(56, 189, 248, 0.18), transparent 62%),
    var(--bg);
}

.container {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 18, 32, 0.74);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  flex-wrap: wrap;
}

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

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 197, 94, 1), rgba(56, 189, 248, 0.92));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  font-weight: 900;
}

.avatar span {
  transform: translateY(-1px);
}

h1 {
  margin: 0;
  font-size: 18px;
}

.sub {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

main {
  padding: 18px 0 26px;
}

.card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.06));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

h2 {
  margin: 0;
  font-size: 18px;
}

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

input[type='search'] {
  width: min(420px, 100%);
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.25);
  color: var(--text);
  outline: none;
}

input[type='search']::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.btn {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.22);
  color: var(--text);
}

.btn:hover {
  filter: brightness(1.08);
}

.btn-primary {
  border-color: rgba(34, 197, 94, 0.4);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(56, 189, 248, 0.85));
  color: rgba(255, 255, 255, 0.98);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
}

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

.tile {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  padding: 12px;
  align-items: center;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.tile:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 25%, rgba(34, 197, 94, 0.18), transparent 58%),
    radial-gradient(circle at 80% 75%, rgba(56, 189, 248, 0.18), transparent 58%),
    rgba(2, 6, 23, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.icon svg {
  width: 30px;
  height: 30px;
}

.meta {
  display: grid;
  gap: 3px;
}

.name {
  font-weight: 900;
}

.url {
  color: var(--muted2);
  font-size: 12px;
  direction: ltr;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.small {
  padding: 9px 10px;
  border-radius: 12px;
  font-weight: 900;
}

.small.copy {
  border-color: rgba(56, 189, 248, 0.35);
}

.small.open {
  border-color: rgba(34, 197, 94, 0.35);
}

.toast {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 50;
  max-width: min(520px, calc(100% - 28px));
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.7);
  padding: 12px 14px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.4);
}

.footer {
  margin-top: 14px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

@media (min-width: 740px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
