:root {
  --bg: #0d1117;
  --card-bg: #161b22;
  --card-border: #30363d;
  --card-hover: #1f242c;
  --text-main: #c9d1d9;
  --text-bright: #f0f6fc;
  --text-muted: #8b949e;
  --accent-primary: #58a6ff;
  --accent-green: #238636;
  --accent-green-hover: #2ea043;
  --accent-red: #da3633;
  --accent-red-hover: #f85149;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  padding: 24px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  body {
    padding: 14px;
  }
}

/* Screen-reader only utility for a11y labels */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--card-border);
}

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

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

.stats-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 13px;
}

.stat-chip .label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-chip .value {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-bright);
}

.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}

.search-box {
  flex: 1;
  min-width: 240px;
}

input[type="text"],
select,
textarea {
  width: 100%;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-bright);
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.3);
}

select {
  width: auto;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #21262d;
  border: 1px solid var(--card-border);
  color: var(--text-bright);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, transform 0.1s ease-in-out;
  white-space: nowrap;
}

.btn:hover {
  background-color: #30363d;
  border-color: #8b949e;
}

.btn-primary {
  background-color: var(--accent-green);
  border-color: rgba(240, 246, 252, 0.1);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-green-hover);
  border-color: transparent;
}

.btn-tg-header {
  background-color: #24A1DE;
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 600;
}

.btn-tg-header:hover {
  background-color: #1f8ec4;
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(36, 161, 222, 0.45);
}

.btn-danger {
  background-color: var(--accent-red);
  color: #ffffff;
  border-color: transparent;
}

.btn-danger:hover {
  background-color: var(--accent-red-hover);
}

.btn-sm {
  padding: 4px 8px;
  font-size: 12px;
}

/* Artist List Container & Uniform Rows */
.artists-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #21262d;
  border: 1px solid var(--card-border);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-bright);
}

.user-chip.admin-badge {
  border-color: #f1e05a;
  color: #f1e05a;
}

.sub-bell-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1;
  transition: transform 0.15s ease;
  user-select: none;
}

.sub-bell-btn:hover {
  transform: scale(1.25);
  z-index: 50;
}

.sub-bell-btn.tooltip:before {
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 8px);
  white-space: nowrap;
  max-width: 360px;
  z-index: 100;
  pointer-events: none;
}

.uniform-row {
  position: relative;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: visible;
  transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.uniform-row:hover,
.uniform-row:focus-within {
  border-color: rgba(88, 166, 255, 0.45);
  background-color: var(--card-hover);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  z-index: 20;
}

.row-banner {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 52%;
  pointer-events: none;
  border-radius: 7px;
  overflow: hidden;
  z-index: 1;
  mask-image: linear-gradient(to right, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0.15) 70%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0.15) 70%, rgba(0,0,0,0) 100%);
  transition: opacity 0.25s ease;
  opacity: 0.72;
}

.row-banner .banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

.uniform-row:hover .row-banner {
  opacity: 0.95;
}

.uniform-row.row-disabled .row-banner {
  opacity: 0.22;
  filter: grayscale(80%);
}

@media (min-width: 640px) {
  .uniform-row {
    height: 56px;
  }
  .row-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    gap: 16px;
    position: relative;
    z-index: 2;
  }
  .row-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 220px;
    max-width: 320px;
    flex-shrink: 0;
  }
  .row-center {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: visible;
    padding: 6px 2px;
  }
  .row-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
}

/* Mobile Responsive Card Format (<640px) */
@media (max-width: 639px) {
  .uniform-row {
    padding: 12px 14px;
  }
  .row-banner {
    width: 100%;
    height: 48px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0) 100%);
  }
  .row-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 2;
  }
  .row-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .row-center {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--card-border);
  }
  .row-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }
}

/* Disabled row state */
.uniform-row.row-disabled {
  opacity: 0.6;
}

/* Status toggle pill button */
.status-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-toggle-btn:hover {
  transform: scale(1.05);
}

.status-enabled {
  background-color: rgba(35, 134, 54, 0.25);
  border-color: rgba(35, 134, 54, 0.55);
  color: #7ee787;
}

.status-disabled {
  background-color: #21262d;
  border-color: #30363d;
  color: #8b949e;
}

.health-badge.is-error {
  color: #ef4444;
  border-color: #ef4444;
}

.health-badge {
  font-size: 11px;
  line-height: 1;
  color: #f59e0b;
  border: 1px solid #f59e0b;
  border-radius: 4px;
  padding: 2px 5px;
  margin-left: 6px;
  cursor: help;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
}

.artist-name-text {
  font-weight: 700;
  color: var(--text-bright);
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

/* Square Brand Icon Boxes */
.social-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  transition: transform 0.15s ease-in-out, filter 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  position: relative;
  flex-shrink: 0;
  text-decoration: none;
  z-index: 1;
}

.social-btn:hover {
  transform: translateY(-2px) scale(1.06);
  filter: brightness(1.2);
  z-index: 20;
}

.social-btn svg,
.social-btn img {
  width: 17px;
  height: 17px;
}

.social-btn svg {
  fill: currentColor;
}

/* Official Brand Colors */
.social-bsky {
  color: #1185fe;
  background: rgba(17, 133, 254, 0.14);
  border: 1px solid rgba(17, 133, 254, 0.35);
}
.social-bsky:hover {
  background: #1185fe;
  color: #ffffff;
  border-color: #1185fe;
  box-shadow: 0 0 10px rgba(17, 133, 254, 0.4);
}

.social-fa {
  color: #faaf3a;
  background: rgba(250, 175, 58, 0.14);
  border: 1px solid rgba(250, 175, 58, 0.35);
}
.social-fa:hover {
  background: rgba(250, 175, 58, 0.28);
  border-color: #faaf3a;
  box-shadow: 0 0 10px rgba(250, 175, 58, 0.4);
}

.social-x {
  color: #e7e9ea;
  background: rgba(231, 233, 234, 0.1);
  border: 1px solid rgba(231, 233, 234, 0.3);
}
.social-x:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.social-da {
  color: #05cc47;
  background: rgba(5, 204, 71, 0.14);
  border: 1px solid rgba(5, 204, 71, 0.35);
}
.social-da:hover {
  background: #05cc47;
  color: #0d1e13;
  border-color: #05cc47;
  box-shadow: 0 0 10px rgba(5, 204, 71, 0.4);
}

.social-ib {
  color: #ff6e26;
  background: rgba(255, 110, 38, 0.14);
  border: 1px solid rgba(255, 110, 38, 0.35);
}
.social-ib:hover {
  background: #ff6e26;
  color: #ffffff;
  border-color: #ff6e26;
  box-shadow: 0 0 10px rgba(255, 110, 38, 0.4);
}

.social-tg {
  color: #24a1de;
  background: rgba(36, 161, 222, 0.14);
  border: 1px solid rgba(36, 161, 222, 0.35);
}
.social-tg:hover {
  background: #24a1de;
  color: #ffffff;
  border-color: #24a1de;
  box-shadow: 0 0 10px rgba(36, 161, 222, 0.4);
}

.social-patreon {
  color: #ff424d;
  background: rgba(255, 66, 77, 0.14);
  border: 1px solid rgba(255, 66, 77, 0.35);
}
.social-patreon:hover {
  background: #ff424d;
  color: #ffffff;
  border-color: #ff424d;
  box-shadow: 0 0 10px rgba(255, 66, 77, 0.4);
}

.social-kofi {
  color: #ff5e5b;
  background: rgba(255, 94, 91, 0.14);
  border: 1px solid rgba(255, 94, 91, 0.35);
}
.social-kofi:hover {
  background: #ff5e5b;
  color: #ffffff;
  border-color: #ff5e5b;
  box-shadow: 0 0 10px rgba(255, 94, 91, 0.4);
}

.social-carrd {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.35);
}
.social-carrd:hover {
  background: #a855f7;
  color: #ffffff;
  border-color: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.social-youtube {
  color: #ff0000;
  background: rgba(255, 0, 0, 0.14);
  border: 1px solid rgba(255, 0, 0, 0.35);
}
.social-youtube:hover {
  background: #ff0000;
  color: #ffffff;
  border-color: #ff0000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

.social-linktree {
  color: #43E660;
  background: rgba(67, 230, 96, 0.14);
  border: 1px solid rgba(67, 230, 96, 0.35);
}
.social-linktree:hover {
  background: #43E660;
  color: #ffffff;
  border-color: #43E660;
  box-shadow: 0 0 10px rgba(67, 230, 96, 0.4);
}

.social-facebook {
  color: #1877F2;
  background: rgba(24, 119, 242, 0.14);
  border: 1px solid rgba(24, 119, 242, 0.35);
}
.social-facebook:hover {
  background: #1877F2;
  color: #ffffff;
  border-color: #1877F2;
  box-shadow: 0 0 10px rgba(24, 119, 242, 0.4);
}

.social-instagram {
  color: #E4405F;
  background: rgba(228, 64, 95, 0.14);
  border: 1px solid rgba(228, 64, 95, 0.35);
}
.social-instagram:hover {
  background: #E4405F;
  color: #ffffff;
  border-color: #E4405F;
  box-shadow: 0 0 10px rgba(228, 64, 95, 0.4);
}

.social-discord {
  color: #5865F2;
  background: rgba(88, 101, 242, 0.14);
  border: 1px solid rgba(88, 101, 242, 0.35);
}
.social-discord:hover {
  background: #5865F2;
  color: #ffffff;
  border-color: #5865F2;
  box-shadow: 0 0 10px rgba(88, 101, 242, 0.4);
}

.social-twitch {
  color: #9146FF;
  background: rgba(145, 70, 255, 0.14);
  border: 1px solid rgba(145, 70, 255, 0.35);
}
.social-twitch:hover {
  background: #9146FF;
  color: #ffffff;
  border-color: #9146FF;
  box-shadow: 0 0 10px rgba(145, 70, 255, 0.4);
}

.social-tiktok {
  color: #00f2fe;
  background: rgba(0, 242, 254, 0.14);
  border: 1px solid rgba(0, 242, 254, 0.35);
}
.social-tiktok:hover {
  background: #00f2fe;
  color: #ffffff;
  border-color: #00f2fe;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.social-artstation {
  color: #13AFF0;
  background: rgba(19, 175, 240, 0.14);
  border: 1px solid rgba(19, 175, 240, 0.35);
}
.social-artstation:hover {
  background: #13AFF0;
  color: #ffffff;
  border-color: #13AFF0;
  box-shadow: 0 0 10px rgba(19, 175, 240, 0.4);
}

.social-pixiv {
  color: #0096FA;
  background: rgba(0, 150, 250, 0.14);
  border: 1px solid rgba(0, 150, 250, 0.35);
}
.social-pixiv:hover {
  background: #0096FA;
  color: #ffffff;
  border-color: #0096FA;
  box-shadow: 0 0 10px rgba(0, 150, 250, 0.4);
}

.social-tumblr {
  color: #58a6ff;
  background: rgba(54, 70, 93, 0.3);
  border: 1px solid rgba(88, 166, 255, 0.35);
}
.social-tumblr:hover {
  background: #36465D;
  color: #ffffff;
  border-color: #58a6ff;
  box-shadow: 0 0 10px rgba(88, 166, 255, 0.4);
}

.social-vk {
  color: #0077FF;
  background: rgba(0, 119, 255, 0.14);
  border: 1px solid rgba(0, 119, 255, 0.35);
}
.social-vk:hover {
  background: #0077FF;
  color: #ffffff;
  border-color: #0077FF;
  box-shadow: 0 0 10px rgba(0, 119, 255, 0.4);
}

.social-gumroad {
  color: #FF90E8;
  background: rgba(255, 144, 232, 0.14);
  border: 1px solid rgba(255, 144, 232, 0.35);
}
.social-gumroad:hover {
  background: #FF90E8;
  color: #ffffff;
  border-color: #FF90E8;
  box-shadow: 0 0 10px rgba(255, 144, 232, 0.4);
}

.social-itchio {
  color: #FA5C5C;
  background: rgba(250, 92, 92, 0.14);
  border: 1px solid rgba(250, 92, 92, 0.35);
}
.social-itchio:hover {
  background: #FA5C5C;
  color: #ffffff;
  border-color: #FA5C5C;
  box-shadow: 0 0 10px rgba(250, 92, 92, 0.4);
}

.social-etsy {
  color: #F16521;
  background: rgba(241, 101, 33, 0.14);
  border: 1px solid rgba(241, 101, 33, 0.35);
}
.social-etsy:hover {
  background: #F16521;
  color: #ffffff;
  border-color: #F16521;
  box-shadow: 0 0 10px rgba(241, 101, 33, 0.4);
}

.social-trello {
  color: #0079BF;
  background: rgba(0, 121, 191, 0.14);
  border: 1px solid rgba(0, 121, 191, 0.35);
}
.social-trello:hover {
  background: #0079BF;
  color: #ffffff;
  border-color: #0079BF;
  box-shadow: 0 0 10px rgba(0, 121, 191, 0.4);
}

.social-newgrounds {
  color: #FFA800;
  background: rgba(255, 168, 0, 0.14);
  border: 1px solid rgba(255, 168, 0, 0.35);
}
.social-newgrounds:hover {
  background: #FFA800;
  color: #ffffff;
  border-color: #FFA800;
  box-shadow: 0 0 10px rgba(255, 168, 0, 0.4);
}

.social-weasyl {
  color: #ff3333;
  background: rgba(153, 0, 0, 0.18);
  border: 1px solid rgba(255, 51, 51, 0.35);
}
.social-weasyl:hover {
  background: #990000;
  color: #ffffff;
  border-color: #990000;
  box-shadow: 0 0 10px rgba(153, 0, 0, 0.4);
}

.social-boosty {
  color: #F15F2C;
  background: rgba(241, 95, 44, 0.14);
  border: 1px solid rgba(241, 95, 44, 0.35);
}
.social-boosty:hover {
  background: #F15F2C;
  color: #ffffff;
  border-color: #F15F2C;
  box-shadow: 0 0 10px rgba(241, 95, 44, 0.4);
}

.social-reddit {
  color: #FF4500;
  background: rgba(255, 69, 0, 0.14);
  border: 1px solid rgba(255, 69, 0, 0.35);
}
.social-reddit:hover {
  background: #FF4500;
  color: #ffffff;
  border-color: #FF4500;
  box-shadow: 0 0 10px rgba(255, 69, 0, 0.4);
}

.social-subscribestar {
  color: #2FA7DF;
  background: rgba(47, 167, 223, 0.14);
  border: 1px solid rgba(47, 167, 223, 0.35);
}
.social-subscribestar:hover {
  background: #2FA7DF;
  color: #ffffff;
  border-color: #2FA7DF;
  box-shadow: 0 0 10px rgba(47, 167, 223, 0.4);
}

.social-picarto {
  color: #1AB776;
  background: rgba(26, 183, 118, 0.14);
  border: 1px solid rgba(26, 183, 118, 0.35);
}
.social-picarto:hover {
  background: #1AB776;
  color: #ffffff;
  border-color: #1AB776;
  box-shadow: 0 0 10px rgba(26, 183, 118, 0.4);
}

.social-itaku {
  color: #A359EC;
  background: rgba(163, 89, 236, 0.14);
  border: 1px solid rgba(163, 89, 236, 0.35);
}
.social-itaku:hover {
  background: #A359EC;
  color: #ffffff;
  border-color: #A359EC;
  box-shadow: 0 0 10px rgba(163, 89, 236, 0.4);
}

.social-generic {
  color: #58a6ff;
  background: rgba(88, 166, 255, 0.14);
  border: 1px solid rgba(88, 166, 255, 0.35);
}
.social-generic:hover {
  background: #58a6ff;
  color: #0d1117;
  border-color: #58a6ff;
  box-shadow: 0 0 10px rgba(88, 166, 255, 0.4);
}

/* Custom CSS Tooltip */
.tooltip {
  position: relative;
}
.tooltip:before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 6px;
  background: #090d13;
  border: 1px solid #30363d;
  color: #f0f6fc;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease-in-out;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}
.tooltip:hover:before {
  opacity: 1;
  visibility: visible;
}

/* Modal dialog */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.modal {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h2 {
  font-size: 18px;
  color: var(--text-bright);
}
.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}
.close-btn:hover {
  color: var(--text-bright);
}
.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-bright);
}
.form-group .hint {
  font-size: 12px;
  color: var(--text-muted);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Dynamic URL rows with + / - buttons */
.url-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.url-btn-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  background-color: #21262d;
  color: var(--text-bright);
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease-in-out;
}
.url-btn-icon:hover {
  background-color: #30363d;
}
.url-btn-remove {
  color: #ff7b72;
  border-color: rgba(248, 81, 73, 0.4);
}
.url-btn-remove:hover {
  background-color: rgba(248, 81, 73, 0.2);
}

#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #1f242c;
  color: var(--text-bright);
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  display: none;
  align-items: center;
  gap: 10px;
  z-index: 2000;
}
.empty-state {
  padding: 48px;
  text-align: center;
  color: var(--text-muted);
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--card-border);
}

.btn-telegram {
  background-color: #24A1DE;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.btn-telegram:hover {
  background-color: #1f8ec4;
  color: #ffffff;
  transform: translateY(-1px);
}
.btn-telegram:active {
  transform: translateY(0);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(88, 166, 255, 0.2);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
