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

:root {
  color-scheme: dark;
  --font: 'DM Sans', sans-serif;
  --heading-font: 'Manrope', sans-serif;
  --background: #0b0d12;
  --surface: #11131a;
  --surface-raised: #181b24;
  --surface-soft: #20232d;
  --sidebar: #0f1117;
  --border: #252934;
  --border-strong: #353a48;
  --muted: #b5bac1;
  --muted-strong: #d5d7dc;
  --text: #f2f3f5;
  --pink: #f00072;
  --blurple: #5865f2;
  --blurple-hover: #4752c4;
  --blurple-soft: #5865f226;
  --light-blurple: #e0e3ff;
  --status-blue: #b9c0ff;
  --green-border: #23a55980;
  --yellow: #f0b232;
  --danger: #da373c;
  --danger-hover: #a12828;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; overflow-x: hidden; scrollbar-gutter: stable; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--light-blurple); outline-offset: 4px; }
svg { width: 22px; height: 22px; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading-font); }
h1 { font-size: clamp(32px, 3vw, 42px); line-height: 1.18; letter-spacing: -2px; font-weight: 800; }
h2 { font-size: 24px; line-height: 1.3; letter-spacing: -1px; font-weight: 800; }
h3 { font-size: 19px; line-height: 1.5; letter-spacing: -.6px; font-weight: 800; }
::selection { background: var(--blurple); color: white; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 80px;
  border-bottom: 1px solid #ffffff0d;
  background: #0f1117ed;
  backdrop-filter: blur(18px);
}
.topbar-inner { display: flex; align-items: center; gap: 32px; height: 100%; max-width: 1640px; margin: auto; padding: 0 36px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-symbol { width: 42px; height: 42px; object-fit: contain; }
.brand-wordmark { width: 113px; height: 30px; object-fit: contain; }
.premium-nav-link { flex-shrink: 0; padding: 8px 12px; border: 1px solid #5865f280; border-radius: 7px; background: var(--blurple-soft); color: var(--light-blurple); font-size: 13px; font-weight: 700; }
.premium-nav-link:hover { background: #5865f240; }
.premium-nav-link.is-active { border-color: #f0007280; background: #f000721f; color: #ffc0da; }
.premium-nav-link.is-active:hover { background: #f0007233; }
.premium-nav-link:focus-visible { outline: 2px solid var(--light-blurple); outline-offset: 2px; }
.user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-left: auto;
}
.user::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 76px;
  transform: translate(-50%, -50%);
  width: 62rem;
  height: 62rem;
  background: radial-gradient(circle, #5865f20f 0, transparent 31rem);
  pointer-events: none;
  z-index: -1;
}
.user img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-link { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 3px 8px 3px 3px; border-radius: 999px; }
.user-link:hover, .user-link[aria-current] { background: var(--surface-soft); }
.user-link:focus-visible { outline: 2px solid var(--light-blurple); outline-offset: 2px; }
.user-link > span { max-width: 160px; overflow: hidden; color: var(--muted-strong); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.user form { margin-left: 10px; }
.user button { padding: 7px 11px; border: 1px solid var(--border-strong); border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.user button:hover { border-color: #5865f280; background: var(--blurple-soft); color: var(--light-blurple); }

.dashboard-shell { --side-space: max(0px, calc((100% - 1640px) / 2)); display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: calc(100vh - 80px); padding: 0 var(--side-space); background: linear-gradient(to right, var(--sidebar) 0 calc(var(--side-space) + 270px), transparent calc(var(--side-space) + 270px)); }
.sidebar { position: sticky; top: 80px; align-self: start; display: flex; flex-direction: column; height: calc(100vh - 80px); overflow: hidden; padding: 22px 18px; border-right: 1px solid var(--border); background: var(--sidebar); }
.sidebar nav { position: relative; flex: 1; min-height: 0; overflow-y: auto; margin: -5px; padding: 5px; scrollbar-width: none; -ms-overflow-style: none; }
.sidebar nav::-webkit-scrollbar { display: none; }
.guild-switcher { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-bottom: 22px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #11131a; transition: border-color .2s, background .2s; }
.guild-switcher:hover { border-color: #5865f280; background: var(--surface-raised); }
.guild-switcher > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.guild-switcher strong { overflow: hidden; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.guild-switcher small { color: var(--muted); font-size: 12px; }
.guild-switcher-chevron { display: grid; flex: 0 0 24px; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--muted); transition: background .2s, color .2s; }
.guild-switcher-chevron svg { width: 16px; height: 16px; }
.guild-switcher:hover .guild-switcher-chevron { background: var(--blurple-soft); color: var(--light-blurple); }
.guild-switcher > .server-icon { flex-basis: 34px; width: 34px; height: 34px; border-radius: 9px; font-size: 14px; }
.server-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; overflow: hidden; border-radius: 14px; background: #5865f226; color: var(--light-blurple); font-size: 22px; }
.server-icon img { width: 100%; height: 100%; object-fit: cover; }
.nav-overview, .nav-feature { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 7px; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.45; transition: color .16s, background .16s; }
.nav-overview svg, .nav-feature svg { width: 18px; height: 18px; }
.nav-overview { margin-bottom: 24px; }
.nav-feature > span:nth-child(2) { flex: 1; }
.nav-overview:hover, .nav-feature:hover { background: #ffffff0b; color: var(--text); }
.nav-overview.current, .nav-feature.current { background: var(--blurple-soft); color: var(--light-blurple); }
.nav-group { margin-bottom: 24px; }
.nav-group > p { margin: 0 12px 9px; color: #949ba4; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.nav-dot, .status-dot { display: inline-block; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nav-dot.status-active { color: var(--status-blue); box-shadow: 0 0 10px #b9c0ff99; }
.nav-dot.status-inactive { color: #626975; }
.nav-dot.status-info { color: var(--status-blue); }
.nav-dot.status-unknown { color: var(--yellow); }
.sidebar-help { display: flex; align-items: flex-start; gap: 10px; flex-shrink: 0; margin-top: 18px; padding: 17px 10px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; line-height: 1.6; }
.sidebar-help svg { width: 18px; color: var(--light-blurple); }
.sidebar-help strong { display: block; margin-top: 4px; color: var(--muted-strong); font-size: 12px; font-weight: 600; }
.sidebar-help:hover strong { color: var(--light-blurple); }

.panel-main { width: 100%; max-width: 1370px; min-width: 0; margin: 0 auto; padding: 42px 44px 0; }
.page-heading { margin: 0 0 30px; }
.category-nav { display: flex; gap: 28px; overflow-x: auto; margin-bottom: 32px; border-bottom: 1px solid var(--border); }
.category-nav a { padding: 0 0 14px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.category-nav a:hover, .category-nav a:focus-visible { border-bottom-color: var(--blurple); color: var(--light-blurple); }
.feature-group { margin-bottom: 34px; }
.group-heading { margin-bottom: 18px; }
.group-heading h2 { font-size: 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); transition: transform .2s, border-color .2s, background .2s; }
.feature-card:hover { border-color: #5865f280; background: var(--surface-raised); transform: translateY(-3px); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 20px; }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #5865f24d; border-radius: 11px; background: var(--blurple-soft); color: var(--light-blurple); }
.feature-icon svg { width: 23px; height: 23px; }
.feature-card p { margin-top: 11px; margin-bottom: 22px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.status { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 9px; border-radius: 6px; background: var(--surface-soft); color: var(--muted-strong); font-size: 11px; font-weight: 700; line-height: 1.4; }
.status-active { background: var(--blurple-soft); color: var(--status-blue); }
.status-inactive { background: #ffffff08; color: #aeb5bd; }
.status-info { background: var(--blurple-soft); color: var(--status-blue); }
.status-unknown { background: #f0b2321a; color: #f6c77d; }
.nav-dot { background: currentColor; }
.card-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; color: #b9c0ff; font-size: 14px; font-weight: 600; }
.card-link svg { width: 16px; height: 16px; }
.feature-card:hover .card-link { color: var(--light-blurple); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 30px; color: #949ba4; font-size: 14px; font-weight: 600; }
.breadcrumb a:hover { color: var(--light-blurple); }
.feature-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; }
.feature-icon.large { width: 68px; height: 68px; border-radius: 17px; }
.feature-icon.large svg { width: 34px; height: 34px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.detail-content, .detail-aside { min-width: 0; }
.info-panel { margin-bottom: 22px; padding: 28px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.guide-panel { --guide-gutter: 28px; overflow: hidden; }
.info-panel p { color: var(--muted); font-size: 14px; line-height: 1.85; }
.info-panel .lead { margin-top: 16px; color: var(--muted-strong); font-size: 16px; }
.guide-sections { display: grid; gap: 24px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.guide-sections h3 { margin-bottom: 8px; }
.settings-panel { padding: 22px; border-top-color: #5865f280; background: linear-gradient(145deg, #1a1d38, var(--surface) 65%); }
.settings-panel.status-active { border-top-color: var(--status-blue); background: linear-gradient(145deg, #1a1d38, var(--surface) 65%); box-shadow: 0 0 28px #b9c0ff12; }
.settings-panel.status-unknown { border-top-color: var(--yellow); }
.settings-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.settings-title h2 { font-size: 20px; }
.setting-list { margin: 24px 0 0; }
.setting-list > div { padding: 14px 0; border-top: 1px solid var(--border); }
.setting-list dt { color: #949ba4; font-size: 12px; font-weight: 700; letter-spacing: .2px; }
.setting-list dd { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--muted-strong); font-size: 14px; }
.feature-preview { min-width: 0; margin: 28px 0 22px; }
.guide-panel > .feature-preview { margin: 28px calc(-1 * var(--guide-gutter)) calc(-1 * var(--guide-gutter)); }
.feature-preview-window { overflow: hidden; border-radius: 12px 12px 0 0; background: #1b1d25; }
.feature-preview-layout { display: flex; min-width: 0; }
.feature-preview-chat { flex: 1; min-width: 0; }
.feature-preview-rooms { width: clamp(145px, 31%, 190px); flex: 0 0 auto; padding: 17px 9px; border-right: 1px solid #111216; background: #202127; }
.feature-preview-rooms > strong { display: block; margin: 0 8px 12px; color: #aeb4c0; font-size: 10px; letter-spacing: .5px; }
.preview-voice-room { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 7px; padding: 7px 8px; border-radius: 4px; color: #c7cad1; font-size: 11px; font-weight: 700; }
.preview-voice-room span:last-child { min-width: 0; overflow-wrap: anywhere; }
.preview-voice-room.is-selected { background: #3c3e47; color: #fff; }
.preview-voice-member { display: flex; align-items: center; gap: 7px; margin: 3px 0 3px 23px; color: #aeb4c0; font-size: 10px; }
.preview-voice-member > span { color: #43b581; font-size: 13px; }
.feature-preview-channel { display: flex; align-items: center; padding: 12px 18px; border-bottom: 1px solid #ffffff12; background: #20222b; }
.feature-preview-channel strong { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.feature-preview-channel strong span { margin-right: 5px; color: #9298a5; font-size: 19px; }
.feature-preview-body { display: grid; align-content: center; gap: 17px; min-height: 230px; padding: 21px; }
.preview-message { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.preview-message-ghost { padding: 8px 10px; border: 1px dashed #65707d99; border-radius: 6px; background: #272a3280; }
.preview-message-ghost + .preview-message-ghost { margin-top: -10px; }
.preview-message-ghost .preview-avatar { filter: grayscale(1); opacity: .5; }
.preview-message-ghost .preview-author { color: #9ba1aa; }
.preview-message.preview-message-ghost p { color: #848b95; text-decoration: line-through; text-decoration-color: #b3bac3; }
.preview-ghost-status { padding: 1px 5px; border-radius: 3px; background: #56606b55; color: #b9c0c8; font-size: 10px; font-weight: 600; }
.preview-message-content { flex: 1; min-width: 0; }
.preview-avatar, .preview-bot-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; }
.preview-avatar { background: #5865f236; color: var(--light-blurple); font-weight: 800; text-transform: lowercase; }
.preview-bot-avatar { object-fit: cover; }
.preview-author { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; color: var(--text); font-size: 12px; font-weight: 800; }
.preview-author small { color: #9298a5; font-size: 10px; font-weight: 500; }
.preview-author .preview-message-status { padding: 1px 5px; border-radius: 4px; background: #f0b23220; color: #f6c77d; font-weight: 700; }
.preview-author b { padding: 1px 5px; border-radius: 3px; background: var(--blurple); color: white; font-size: 9px; letter-spacing: .3px; }
.preview-message p { color: #d8d9df; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.preview-command { display: inline-block; padding: 2px 7px; border-radius: 4px; background: #5865f22b; color: var(--light-blurple) !important; }
.preview-embed { max-width: 510px; margin-top: 5px; padding: 10px 13px; border-left: 4px solid var(--preview-embed-color, #eb1c5a); border-radius: 4px; background: #272a35; }
.preview-embed-author { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--text); font-size: 12px; font-weight: 700; }
.preview-embed-icon { display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; background: #5865f2; color: white; }
.preview-embed-icon img, .preview-embed-footer img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.preview-embed-title { margin-bottom: 6px; color: var(--text); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.preview-embed-description { color: #c7c9d0; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.preview-embed-description code, .preview-embed-title code, .preview-embed-rows code { padding: 1px 3px; border-radius: 3px; background: #15171d; font-family: inherit; }
.preview-mention { padding: 1px 2px; border-radius: 3px; background: #5865f244; color: #c9ceff; }
.preview-embed-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 11px 0 0; }
.preview-embed-rows div { min-width: 0; }
.preview-embed-rows dt { color: #999eab; font-size: 10px; font-weight: 700; }
.preview-embed-rows dd { margin: 2px 0 0; overflow-wrap: anywhere; color: var(--text); font-size: 12px; font-weight: 700; }
.preview-embed-footer { display: flex; align-items: center; gap: 5px; margin-top: 12px; color: #aeb4c0; font-size: 10px; }
.preview-embed-footer img { width: 17px; height: 17px; }
.preview-reply { margin: 0 0 5px; padding-left: 7px; border-left: 2px solid #9298a5; color: #aeb4c0; font-size: 11px; }
.preview-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.preview-button { padding: 6px 10px; border-radius: 4px; background: #5865f2; color: white; font-size: 11px; font-weight: 700; }
.preview-button.is-danger { background: #da373c; }
.preview-automod { max-width: 490px; padding: 11px 13px; border-left: 4px solid #e74c3c; border-radius: 4px; background: #272a35; }
.preview-automod strong { color: #f2f3f5; font-size: 12px; }
.preview-automod p { margin-top: 5px; color: #c7c9d0; font-size: 12px; }
.preview-campaign-banner { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 5px; overflow: hidden; max-width: 410px; min-height: 150px; margin-top: 9px; padding: 20px 24px; border-radius: 5px; background: linear-gradient(120deg, #1c3343, #196f86 58%, #52afad); color: #fff; }
.preview-campaign-banner::after { position: absolute; top: -54px; right: -65px; width: 210px; height: 210px; border: 22px solid #ffffff26; border-radius: 50%; content: ''; }
.preview-campaign-banner span, .preview-campaign-banner strong, .preview-campaign-banner small { position: relative; z-index: 1; }
.preview-campaign-banner span { font-size: 12px; font-weight: 900; letter-spacing: .5px; }
.preview-campaign-banner strong { max-width: 260px; font-size: 23px; line-height: 1.15; }
.preview-campaign-banner small { font-size: 11px; color: #e7fbfd; }
.preview-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.preview-chips span { padding: 5px 9px; border: 1px solid #6d76d4; border-radius: 5px; background: #5865f22b; color: #dfe2ff; font-size: 11px; font-weight: 700; }
.preview-progress { overflow: hidden; height: 7px; margin-top: 13px; border-radius: 9px; background: #3c404e; }
.preview-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5865f2, #f00072); }
.preview-event { display: flex; align-items: center; gap: 9px; color: #aeb4c0; font-size: 12px; line-height: 1.5; }
.preview-event span { display: grid; place-items: center; width: 34px; height: 24px; color: #aeb7ff; }
.preview-profile { padding: 12px 14px; border: 1px solid #3a3f50; border-radius: 8px; background: #252833; }
.preview-profile-after { border-color: #23a5598c; background: #1e302b; }
.preview-profile-label { display: block; margin-bottom: 8px; color: #aeb4c0; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.preview-profile-after .preview-profile-label { color: #89dbaf; }
.preview-profile > div { display: flex; align-items: center; gap: 11px; }
.preview-profile-avatar { background: #5865f2; color: white; font-weight: 800; text-transform: uppercase; }
.preview-profile > div > span:nth-child(2) { display: grid; min-width: 0; }
.preview-profile strong { overflow-wrap: anywhere; font-size: 14px; }
.preview-profile small { color: #aeb4c0; font-size: 11px; }
.preview-profile-state { margin-left: auto; color: #86e1ab; font-size: 20px; }
.preview-profile-before .preview-profile-state { color: #f6c77d; }
.preview-channels { display: grid; gap: 5px; padding: 15px; border: 1px solid #3a3f50; border-radius: 8px; background: #22252e; }
.preview-channels > strong { margin-bottom: 5px; color: #aeb4c0; font-size: 11px; letter-spacing: .6px; }
.preview-channel { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 5px; color: #d8d9df; font-size: 13px; }
.preview-channel span:first-child { width: 19px; color: #aeb4c0; }
.preview-channel small { margin-left: auto; color: #aeb4c0; font-size: 10px; }
.preview-channel.is-new { background: #5865f23b; color: #e0e3ff; }
.preview-channel.is-member { padding-left: 30px; color: #aeb4c0; font-size: 12px; }
.preview-rule { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid #f0b23270; border-radius: 8px; background: #f0b23212; }
.preview-rule-icon { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border-radius: 50%; background: #f0b2322b; color: #f6c77d; font-weight: 900; }
.preview-rule > div { flex: 1; min-width: 0; }
.preview-rule strong { color: #f9dcad; font-size: 13px; }
.preview-rule p { margin-top: 3px; color: #d8c7a9; font-size: 12px; line-height: 1.5; }
.preview-rule-badge { flex-shrink: 0; color: #f6c77d; font-size: 10px; font-weight: 800; }
.feature-preview-input { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 16px 16px; padding: 9px 12px; border-radius: 6px; background: #12141a; color: #898f9b; font-size: 11px; }
.feature-preview-input span { font-size: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .feature-preview-body > * { animation: preview-appear .55s both; animation-delay: calc(var(--preview-order) * 120ms); }
  @keyframes preview-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
.giveaway-panel { border-top-color: #5865f280; }
.giveaway-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.giveaway-panel-head h2 { font-size: 21px; }
.giveaway-panel-head > span { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 9px; border-radius: 8px; background: var(--blurple-soft); color: var(--light-blurple); font-size: 14px; font-weight: 800; }
.giveaway-retention { margin: 12px 0 0; }
.giveaway-records { display: grid; gap: 22px; margin-top: 20px; }
.giveaway-record { min-width: 0; }
.giveaway-record .preview-embed { max-width: 550px; margin-top: 0; }
.giveaway-record.is-ended .discord-ui-reaction-row { display: none; }
.giveaway-message-link { margin-top: 7px; }
.giveaway-message-link a { color: var(--light-blurple); font-size: 12px; font-weight: 700; }
.giveaway-message-link a:hover { text-decoration: underline; }
.giveaway-empty { margin: 18px 0 0 !important; padding: 22px; border: 1px dashed var(--border-strong); border-radius: 8px; text-align: center; }
.nav-audit { margin-top: -18px; }
.audit-panel > p:first-child { margin-top: 0; }
.audit-entries { display: grid; gap: 14px; margin: 20px 0 0; padding: 0; list-style: none; }
.audit-entry { padding: 16px 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised); }
.audit-entry-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; }
.audit-feature { font-weight: 700; }
.audit-feature a { color: var(--light-blurple); }
.audit-action { padding: 1px 8px; border-radius: 6px; background: var(--blurple-soft); color: var(--status-blue); font-size: 12px; font-weight: 700; }
.audit-entry-head time { margin-left: auto; color: var(--muted); font-size: 13px; }
.info-panel .audit-user { margin: 6px 0 10px; color: var(--muted-strong); font-size: 14px; line-height: 1.5; }
.audit-user span { color: #949ba4; font-size: 12px; }
.audit-changes { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.audit-changes li { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 4px 12px; overflow-wrap: anywhere; }
.audit-field { color: var(--muted); }
.audit-values { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.audit-before { color: #f6a5a7; text-decoration: line-through; text-decoration-color: #da373c99; }
.audit-arrow { color: #949ba4; }
.audit-after { color: #8fe0ad; }
.audit-more { margin-top: 18px; }
@media (max-width: 640px) { .audit-changes li { grid-template-columns: 1fr; } .audit-entry-head time { margin-left: 0; width: 100%; } }
.back-link { display: inline-block; color: #b9c0ff; font-size: 14px; font-weight: 600; }
.back-link:hover { color: var(--light-blurple); }
.notice { margin: 16px 0 24px; padding: 14px 18px; border: 1px solid #f0b23266; border-radius: 8px; background: #f0b2320d; color: #f6c77d; font-size: 14px; line-height: 1.7; }
.warn-panel .notice { margin-bottom: 0; }
.warn-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.warn-stats > div { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised); }
.warn-stats strong { font-family: var(--heading-font); font-size: 24px; }
.warn-stats span { color: var(--muted); font-size: 12px; font-weight: 600; }
.warn-empty { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 18px; border: 1px dashed #23a55966; border-radius: 10px; background: #23a5590d; }
.warn-empty > span { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #23a55933; color: #7ee2a8; font-weight: 800; }
.warn-empty p { margin: 0; }
.warn-members { display: grid; gap: 8px; margin-top: 18px; }
.warn-member { border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised); }
.warn-member[open] { border-color: var(--border-strong); }
.warn-member summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.warn-member summary::-webkit-details-marker { display: none; }
.warn-toggle { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface); color: var(--muted); transition: background .2s, border-color .2s, color .2s; }
.warn-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
.warn-member summary:hover .warn-toggle { border-color: #5865f280; background: var(--blurple-soft); color: var(--light-blurple); }
.warn-member[open] .warn-toggle { border-color: #5865f280; background: var(--blurple-soft); color: var(--light-blurple); }
.warn-member[open] .warn-toggle svg { transform: rotate(180deg); }
.warn-member summary:focus-visible { outline: 2px solid var(--light-blurple); outline-offset: 2px; border-radius: 10px; }
.warn-avatar { flex: 0 0 36px; width: 36px; height: 36px; overflow: hidden; border-radius: 50%; }
.warn-avatar img { width: 100%; height: 100%; object-fit: cover; }
.warn-avatar-fallback { display: grid; place-items: center; width: 100%; height: 100%; background: #2a2e45; color: var(--light-blurple); font-weight: 700; }
.warn-member-text { display: grid; flex: 1; min-width: 0; }
.warn-member-text strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.warn-member-text small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.warn-id { color: var(--muted); font-size: 12px; font-weight: 500; }
.warn-count { flex: 0 0 auto; padding: 3px 10px; border-radius: 999px; background: var(--surface-soft); color: var(--muted-strong); font-size: 12px; font-weight: 800; }
.warn-count.is-mid { background: #f0b23226; color: #f6c77d; }
.warn-count.is-high { background: #e74c3c2e; color: #f08a8a; }
.warn-items { display: grid; margin: 0; padding: 0 14px 6px 62px; list-style: none; }
.warn-items li { padding: 10px 0; border-top: 1px solid var(--border); }
.warn-item-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; }
.warn-item-head time { color: var(--muted-strong); font-weight: 700; }
.warn-item-head > span { color: var(--muted); }
.warn-item-head a { margin-left: auto; color: #b9c0ff; font-weight: 700; }
.warn-items p { margin-top: 4px; color: var(--muted-strong) !important; font-size: 14px !important; line-height: 1.6 !important; overflow-wrap: anywhere; }
.warn-note { margin-top: 14px; font-size: 12px !important; line-height: 1.7 !important; }
.warn-panel code { color: var(--light-blurple); }
.premium-hint { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 22px; padding: 11px 14px; border: 1px solid #f0007240; border-radius: 9px; background: #f000720d; color: var(--muted-strong); font-size: 13px; line-height: 1.6; }
.premium-hint-mark { color: #ff8fbd; font-size: 15px; line-height: 1; }
.premium-hint > span:nth-child(2) { flex: 1 1 260px; min-width: 0; }
.premium-hint strong { color: var(--text); }
.premium-hint a { flex: 0 0 auto; color: #ffadd0; font-size: 12px; font-weight: 800; }
.premium-hint a:hover { color: #ffd1e4; }
.giveaway-panel .premium-hint { margin: 16px 0 18px; }
.panel-footer { display: flex; justify-content: flex-end; margin-top: 24px; padding: 25px 0; border-top: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.panel-footer a { color: #b9c0ff; }
.panel-footer a:hover { color: var(--light-blurple); }

.guild-picker { max-width: 1060px; margin: auto; padding: 64px 30px; }
.profile-page { max-width: 1060px; margin: auto; padding: 40px 30px 56px; }
.profile-back { margin-bottom: 22px; font-size: 13px; }
.profile-header { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.profile-avatar { position: relative; flex: 0 0 auto; padding: 3px; border-radius: 50%; }
.profile-avatar img { display: block; width: 64px; height: 64px; border: 3px solid var(--background); border-radius: 50%; object-fit: cover; }
.profile-avatar.is-locked { padding: 1px; border: 2px dashed #ff8fbd66; }
.profile-avatar.is-premium { background: conic-gradient(from 210deg, #ff3d8f, #ffc2dc, #9b8cff, #ff3d8f); box-shadow: 0 0 26px #f0007247; }
.profile-avatar-socket { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 800; line-height: 1; }
.profile-avatar.is-locked .profile-avatar-socket { border: 1.5px dashed #ff8fbd; background: var(--background); color: #ff8fbd; }
.profile-avatar.is-premium .profile-avatar-socket { border: 2px solid var(--background); background: linear-gradient(135deg, #ff3d8f, #9b8cff); color: #fff; }
.profile-avatar:focus-visible { outline: 2px solid var(--light-blurple); outline-offset: 3px; }
.profile-header > div:first-of-type { flex: 1; min-width: 0; }
.profile-header h1 { overflow-wrap: anywhere; }
.profile-header p { margin-top: 3px; color: var(--muted); font-size: 14px; }
.profile-card { min-width: 0; margin-bottom: 18px; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.profile-card h2 { font-size: 17px; }
.profile-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.profile-card strong { color: var(--text); }
.profile-card code, .profile-page .notice code { color: var(--light-blurple); }
.profile-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-top: 18px; font-size: 13px; font-weight: 700; }
.profile-actions a { color: #ffadd0; }
.profile-actions a:hover { color: #ffd1e4; }
.profile-actions .profile-primary { padding: 9px 13px; border-radius: 7px; background: var(--pink); color: #fff; }
.profile-actions .profile-primary:hover { background: #d90067; color: #fff; }
.profile-progress { display: block; width: 100%; height: 5px; margin-top: 4px; }
.profile-progress-track { fill: var(--surface-soft); }
.profile-progress-fill { fill: var(--blurple); }

/* Premium kartı: kilitliyken boş yuvalar, aktifken parlayan üyelik kartı. */
.profile-premium { position: relative; overflow: hidden; isolation: isolate; }
.premium-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-card .premium-eyebrow { color: #ff8fbd; font-size: 11px; font-weight: 800; letter-spacing: 1.6px; }
.premium-state { padding: 4px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .4px; white-space: nowrap; }
.premium-headline { margin-top: 14px; color: var(--text) !important; font-family: var(--heading-font); font-size: 24px !important; font-weight: 800; line-height: 1.25 !important; letter-spacing: -.6px; }
.premium-lead { margin-top: 6px; }
.profile-premium.is-locked, .profile-premium.is-active { display: grid; grid-template-columns: minmax(250px, .85fr) minmax(0, 1.4fr); align-items: center; gap: 22px 32px; padding: 28px; }
.premium-main { min-width: 0; }
.profile-premium .profile-actions { margin-top: 20px; }
.premium-boost { margin-top: 10px; font-size: 13px !important; }
.premium-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.premium-slot { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "icon state" "title title"; gap: 12px 8px; min-width: 0; padding: 12px 14px; border-radius: 10px; }
.premium-slot > strong { grid-area: title; min-width: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.premium-slot-icon { grid-area: icon; justify-self: start; }
.premium-slot-state { grid-area: state; align-self: start; }
.premium-countdown { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.profile-wallet { display: grid; grid-template-columns: minmax(200px, .85fr) minmax(0, 1.4fr); align-items: center; gap: 12px 32px; }
.profile-wallet .profile-rewards { margin: 0; }
.profile-wallet .profile-reward:first-child { border-top: 0; }
.premium-slot-icon { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 9px; }
.premium-slot-icon svg { width: 18px; height: 18px; }
.premium-slot-state { display: grid; flex: 0 0 auto; place-items: center; }
.premium-slot-state svg { width: 15px; height: 15px; }

.profile-premium.is-locked { border: 1px dashed #ff8fbd4d; background: repeating-linear-gradient(135deg, #ffffff03 0 12px, transparent 12px 24px), radial-gradient(90% 70% at 100% 0, #f000720f, transparent 60%), var(--surface); }
.profile-premium.is-locked .premium-state { color: #ff8fbdb3; }
.is-locked .premium-slot { border: 1px dashed #ff8fbd40; background: #0b0d1299; }
.is-locked .premium-slot-icon { border: 1px dashed #ff8fbd59; color: #ff8fbd8c; }
.is-locked .premium-slot > strong { color: var(--muted-strong); }
.is-locked .premium-slot-state { color: #ff8fbd80; }
.premium-cta { position: relative; overflow: hidden; padding: 11px 16px; border-radius: 9px; background: linear-gradient(110deg, #f00072, #c2179b 55%, #7c5cff); box-shadow: 0 10px 28px #f0007240; color: #fff !important; font-size: 14px; }
.premium-cta::after { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, #ffffff40 50%, transparent 65%); content: ''; transform: translateX(-120%); }
.premium-cta:hover { box-shadow: 0 12px 34px #f0007266; }
.premium-cta:focus-visible { outline: 2px solid #ffd1e4; outline-offset: 3px; }

.profile-premium.is-active { border-color: #ff8bbb66; background: radial-gradient(120% 90% at 100% 0, #f0007240, transparent 55%), radial-gradient(90% 80% at 0 100%, #6c5cff2b, transparent 60%), linear-gradient(150deg, #2a1526, #15121b 70%); box-shadow: 0 24px 50px #0006, inset 0 1px #ffffff26; }
.profile-premium.is-active::before { position: absolute; z-index: -1; top: -90px; right: -90px; width: 250px; height: 250px; border: 1px solid #ffafd22e; border-radius: 50%; box-shadow: 0 0 0 40px #ffafd20a, 0 0 0 80px #ffafd207; content: ''; }
.profile-premium.is-active::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(115deg, transparent 38%, #ffffff12 48%, transparent 58%); content: ''; transform: translateX(-100%); }
.profile-premium.is-active .premium-state { border-color: #ffb3d266; background: #ff3d8f26; color: #ffd1e4; }
.premium-countdown strong { background: linear-gradient(120deg, #ffd1e4, #ff4f9a 45%, #b9a8ff); -webkit-background-clip: text; background-clip: text; color: transparent !important; font-family: var(--heading-font); font-size: 58px; font-weight: 800; line-height: 1; letter-spacing: -2px; }
.premium-countdown > span { display: grid; color: var(--text); font-size: 16px; font-weight: 700; }
.premium-countdown small { color: #ffc5da; font-size: 12px; font-weight: 500; }
.is-active .premium-slot { border: 1px solid #ff8bbb33; background: #ffffff0a; }
.is-active .premium-slot-icon { background: linear-gradient(135deg, #ff3d8f40, #9b8cff33); color: #ffc0da; }
.is-active .premium-slot-state { color: #ff8fbd; }

@media (prefers-reduced-motion: no-preference) {
  .is-locked .premium-slot { animation: premium-slot-wait 3.2s ease-in-out infinite; }
  .is-locked .premium-slot:nth-child(2) { animation-delay: .25s; }
  .is-locked .premium-slot:nth-child(3) { animation-delay: .5s; }
  .is-locked .premium-slot:nth-child(4) { animation-delay: .75s; }
  .is-locked .premium-slot:nth-child(5) { animation-delay: 1s; }
  .is-locked .premium-slot:nth-child(6) { animation-delay: 1.25s; }
  .premium-cta::after { animation: premium-sheen 3.6s ease-in-out infinite; }
  .profile-premium.is-active::after { animation: premium-sheen 7s ease-in-out infinite; }
  .profile-avatar.is-premium { animation: premium-glow 4s ease-in-out infinite; }
}
@keyframes premium-slot-wait { 0%, 100% { border-color: #ff8fbd33; } 50% { border-color: #ff8fbd8c; } }
@keyframes premium-sheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes premium-glow { 0%, 100% { box-shadow: 0 0 18px #f0007233; } 50% { box-shadow: 0 0 30px #f0007266; } }

.profile-balance { margin-top: 10px; }
.profile-balance strong { margin-right: 6px; font-family: var(--heading-font); font-size: 32px; }
.profile-rewards { display: grid; margin: 14px 0 0; padding: 0; list-style: none; }
.profile-reward { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--border); }
.profile-reward > div { display: grid; min-width: 0; }
.profile-reward strong { font-size: 14px; }
.profile-reward small { color: var(--muted); font-size: 12px; }
.profile-reward-state { flex: 0 0 auto; padding: 4px 9px; border-radius: 999px; background: var(--surface-raised); color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.profile-reward.is-ready .profile-reward-state { background: #2ecc711f; color: #7ee2a8; }
.profile-reward.is-ready .profile-reward-state code { color: inherit; }
.profile-reward-state a { color: inherit; }
.profile-card-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; }
.profile-card-head p { font-size: 13px; }
.profile-field { padding: 16px 0; border-bottom: 1px solid var(--border); }
.profile-field:last-child { padding-bottom: 0; border-bottom: 0; }
.profile-field h3 { margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.profile-field > small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.profile-field > p { color: var(--muted-strong); }
.profile-about { white-space: pre-line; overflow-wrap: anywhere; }
.profile-empty { color: var(--muted) !important; font-style: italic; }
.profile-muted { color: var(--muted); font-size: 12px; }
.profile-count { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--surface-soft); color: var(--muted-strong); letter-spacing: 0; }
.profile-comments { display: grid; margin: 0; padding: 0; list-style: none; }
.profile-comments li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.profile-comments li:first-child { padding-top: 0; }
.profile-comments li:last-child { border-bottom: 0; }
.profile-comments li > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; font-size: 14px; }
.profile-comments time { color: var(--muted); font-size: 12px; }
.profile-comments p { margin-top: 2px; color: var(--muted-strong); overflow-wrap: anywhere; }
.achievement { margin-top: 14px; }
.achievement-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; }
.achievement-head h3 { font-size: 15px; }
.achievement-current { padding: 4px 10px; border: 1px solid #5865f266; border-radius: 999px; background: var(--blurple-soft); color: var(--light-blurple); font-size: 12px; font-weight: 800; }
.achievement > p { margin-top: 6px; }
.achievement-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0 12px; padding: 0; list-style: none; }
.achievement-step { display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 14px 8px 12px; border: 1px dashed var(--border-strong); border-radius: 10px; text-align: center; }
.achievement-emoji { margin-bottom: 4px; font-size: 26px; line-height: 1; filter: grayscale(1); opacity: .35; }
.achievement-step strong { max-width: 100%; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.achievement-step small { color: var(--muted); font-size: 11px; }
.achievement-step.is-earned, .achievement-step.is-current { border-style: solid; background: var(--surface-raised); }
.achievement-step.is-earned .achievement-emoji, .achievement-step.is-current .achievement-emoji { filter: none; opacity: 1; }
.achievement-step.is-earned strong, .achievement-step.is-current strong { color: var(--text); }
.achievement-step.is-current { border-color: #5865f2b3; background: linear-gradient(180deg, #5865f22e, var(--surface-raised)); box-shadow: 0 0 0 3px #5865f21f; }
.profile-achievements .profile-progress { height: 6px; }
.profile-stat-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 28px; margin-top: 10px; }
.profile-stat-groups h3 { margin: 6px 0 2px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.profile-stat-groups dl { margin: 0; }
.profile-stat-groups dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.profile-stat-groups dl > div:last-child { border-bottom: 0; }
.profile-stat-groups dt { color: var(--muted); }
.profile-stat-groups dd { margin: 0; font-weight: 700; }
.profile-stat-groups dd.is-up { color: #7ee2a8; }
.profile-stat-groups dd.is-down { color: #f08a8a; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.picker-hero { position: relative; display: flex; align-items: center; gap: 18px; margin-bottom: 34px; padding: 28px 30px; overflow: hidden; border: 1px solid #5865f24d; border-radius: 18px; background: radial-gradient(120% 140% at 100% 0, #5865f238, transparent 55%), radial-gradient(90% 120% at 0 100%, #f000721f, transparent 60%), var(--surface); isolation: isolate; }
.picker-hero::after { position: absolute; z-index: -1; top: -110px; right: -60px; width: 280px; height: 280px; border: 1px solid #b9c0ff26; border-radius: 50%; box-shadow: 0 0 0 46px #b9c0ff08, 0 0 0 92px #b9c0ff05; content: ''; }
.picker-avatar { flex: 0 0 56px; width: 56px; height: 56px; border: 3px solid #5865f266; border-radius: 50%; object-fit: cover; }
.picker-hero-text { flex: 1; min-width: 0; }
.picker-hero h1 { overflow-wrap: anywhere; font-size: 30px; }
.picker-hero p { margin-top: 4px; color: var(--muted-strong); font-size: 15px; }
.picker-profile { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid #5865f280; border-radius: 999px; background: #0b0d12b3; color: var(--light-blurple); font-size: 13px; font-weight: 700; transition: background .2s, border-color .2s; }
.picker-profile:hover { background: var(--blurple-soft); }
.picker-profile.is-premium { border-color: #ff8bbb80; color: #ffc0da; }
.picker-profile.is-premium:hover { background: #f000721f; }
.server-search { position: relative; display: flex; align-items: center; max-width: 420px; margin: 0 0 26px; }
.server-search svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.server-search input { width: 100%; padding: 12px 14px 12px 42px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.server-search input:focus { border-color: #5865f2b3; outline: none; box-shadow: 0 0 0 3px #5865f233; }
.server-search[hidden], .server-search-empty[hidden], .server-section[hidden], .server-card[hidden] { display: none; }
.server-search-empty { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.server-section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.server-section-head h2 { font-size: 18px; }
.server-count { padding: 2px 9px; border-radius: 999px; background: var(--surface-soft); color: var(--muted-strong); font-size: 12px; font-weight: 800; }
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.server-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: transform .2s, border-color .2s, box-shadow .2s; }
.server-card:hover { border-color: #5865f280; box-shadow: 0 16px 36px #0006; transform: translateY(-3px); }
.server-card:focus-visible { outline: 2px solid var(--light-blurple); outline-offset: 3px; }
.server-banner { position: relative; display: block; height: 76px; overflow: hidden; background: #1c1f29; }
.server-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.server-banner.has-icon img { inset: -30%; width: 160%; height: 160%; filter: blur(22px) saturate(1.4); opacity: .7; }
.server-banner::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, #11131ab3); content: ''; }
.server-banner.tone-0 { background: linear-gradient(120deg, #5865f2, #9b8cff); }
.server-banner.tone-1 { background: linear-gradient(120deg, #f00072, #ff8fbd); }
.server-banner.tone-2 { background: linear-gradient(120deg, #1f9d6b, #6fe0a8); }
.server-banner.tone-3 { background: linear-gradient(120deg, #e08a1f, #ffd27a); }
.server-banner.tone-4 { background: linear-gradient(120deg, #2b8ad8, #7fd0ff); }
.server-banner.tone-5 { background: linear-gradient(120deg, #8a3fd1, #d59bff); }
.server-card-body { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.server-card .server-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: #2a2e45; font-size: 18px; font-weight: 700; }
.server-card-body strong { flex: 1; min-width: 0; overflow: hidden; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.server-card-body > svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--muted); transition: color .2s, transform .2s; }
.server-card:hover .server-card-body > svg { color: var(--light-blurple); transform: translateX(3px); }
.server-add { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; background: #f000721f; color: #ffadd0; font-size: 12px; font-weight: 800; transition: background .2s, color .2s; }
.server-section-mark { display: grid; flex: 0 0 auto; place-items: center; }
.server-section.is-joined .server-section-mark { width: 10px; height: 10px; border-radius: 50%; background: #23a559; box-shadow: 0 0 0 4px #23a55929, 0 0 14px #23a55999; }
.server-section.is-addable { margin-top: 48px; padding-top: 28px; border-top: 1px dashed var(--border-strong); }
.server-section.is-addable .server-section-mark { width: 22px; height: 22px; border: 1.5px dashed #ff8fbd99; border-radius: 50%; color: #ff8fbd; font-size: 14px; font-weight: 800; line-height: 1; }
.server-section.is-addable h2 { color: var(--muted-strong); font-size: 16px; }
.server-section.is-addable .server-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.server-row { flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; border-color: var(--border-strong); border-style: dashed; border-radius: 12px; background: #ffffff05; }
.server-row .server-icon { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; background: #2a2e45; font-size: 14px; filter: grayscale(.85); opacity: .7; transition: filter .2s, opacity .2s; }
.server-row strong { flex: 1; min-width: 0; overflow: hidden; color: var(--muted-strong); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.server-row:hover { border-color: #ff8bbb80; border-style: solid; background: #f000720a; box-shadow: none; transform: none; }
.server-row:hover .server-icon { filter: none; opacity: 1; }
.server-row:hover strong { color: var(--text); }
.server-row:hover .server-add { background: var(--pink); color: #fff; }
.picker-empty { margin-top: 8px; }
.empty { grid-column: 1 / -1; padding: 30px; border: 1px dashed var(--border-strong); border-radius: 12px; }
.empty p { margin: 12px 0; color: var(--muted); }
.empty a { color: #b9c0ff; }
.mobile-nav { display: none; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 30; padding: 12px 14px; border-radius: 7px; background: var(--blurple); color: white; }
.skip-link:focus { top: 10px; }

@media (min-width: 1550px) { .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1200px) {
  .panel-main { padding: 32px 26px 0; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-aside { grid-row: 1; }
  .setting-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .detail-aside .back-link { display: none; }
  .detail-aside .settings-panel { margin-bottom: 0; }
}
@media (max-width: 880px) {
  .topbar { height: 72px; }
  .topbar-inner { gap: 18px; padding: 0 22px; }
  .dashboard-shell { display: block; }
  .mobile-nav { display: flex; position: sticky; top: 72px; z-index: 10; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 22px; border-bottom: 1px solid var(--border); background: var(--sidebar); }
  .mobile-nav > span { overflow: hidden; color: var(--muted); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-nav button { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #5865f280; border-radius: 6px; background: var(--blurple-soft); color: var(--light-blurple); font-size: 14px; font-weight: 600; }
  .mobile-nav button svg { width: 16px; height: 16px; }
  .menu-toggle-chevron { display: grid; place-items: center; margin-left: 2px; }
  .mobile-nav button .menu-toggle-chevron svg { width: 14px; height: 14px; transition: transform .2s; }
  .mobile-nav button[aria-expanded="true"] .menu-toggle-chevron svg { transform: rotate(180deg); }
  .sidebar { display: none; position: fixed; top: 132px; z-index: 9; width: 290px; height: calc(100dvh - 132px); box-shadow: 18px 0 45px #00000099; }
  body.menu-open .sidebar { display: flex; }
  .panel-main { padding: 28px 22px 0; }
  html { scroll-padding-top: 155px; }
}
@media (max-width: 540px) {
  .warn-stats { gap: 6px; }
  .warn-stats > div { padding: 10px; }
  .warn-stats strong { font-size: 20px; }
  .warn-items { padding-left: 14px; }
  .achievement-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .premium-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .premium-slot { padding: 10px 12px; }
  .profile-premium.is-locked, .profile-premium.is-active { padding: 20px; }
  .topbar-inner { padding: 0 16px; }
  .brand-symbol { width: 34px; height: 34px; }
  .brand-wordmark { width: 98px; height: 27px; }
  .user { gap: 8px; }
  .user::before { left: 50%; width: 44rem; height: 44rem; background: radial-gradient(circle, #5865f20f 0, transparent 22rem); }
  .user-link > span { display: none; }
  .user-link { padding-right: 3px; }
  .user form { margin-left: 4px; }
  .premium-nav-link span { display: none; }
  .topbar-inner { gap: 12px; padding-inline: 14px; }
  .panel-main { padding: 25px 16px 0; }
  .page-heading { margin-bottom: 24px; }
  .category-nav { gap: 22px; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 20px; }
  .feature-card p { margin-bottom: 16px; }
  .card-top { margin-bottom: 16px; }
  .feature-heading { align-items: flex-start; gap: 14px; }
  .feature-icon.large { width: 48px; height: 48px; border-radius: 12px; }
  .feature-icon.large svg { width: 25px; height: 25px; }
  .feature-heading h1 { font-size: 30px; }
  .info-panel { padding: 20px; }
  .guide-panel { --guide-gutter: 20px; }
  .feature-preview-rooms { width: 128px; padding: 14px 5px; }
  .feature-preview-body { padding: 14px 11px; }
  .feature-preview-channel { padding: 10px 11px; }
  .feature-preview-rooms + .feature-preview-chat .preview-embed-rows { grid-template-columns: 1fr; }
  .setting-list { grid-template-columns: 1fr; }
  .guild-picker { padding: 40px 20px; }
  .picker-hero { flex-wrap: wrap; padding: 22px; }
  .picker-hero h1 { font-size: 24px; }
  .picker-profile { width: 100%; justify-content: center; }
  .server-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-page { padding: 28px 16px 40px; }
  .profile-header { flex-wrap: wrap; gap: 12px 14px; }
  .profile-avatar img { width: 52px; height: 52px; }
  .profile-premium.is-locked, .profile-premium.is-active, .profile-wallet { grid-template-columns: minmax(0, 1fr); }
  .premium-countdown strong { font-size: 48px; }
  .profile-card { padding: 20px; }
}
@media (max-width: 400px) { .topbar .brand-wordmark { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.edit-panel { margin-top: 0; }
.edit-panel { position: relative; }
.edit-panel.is-locked { min-height: 280px; }
.edit-panel.is-locked .edit-panel-content { filter: blur(5px); pointer-events: none; user-select: none; }
.edit-panel-lock { display: none; }
.edit-panel.is-locked .edit-panel-lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; border-radius: inherit; background: #0b0d1280; text-align: center; }
.edit-panel-lock button { padding: 12px 20px; border: 0; border-radius: 5px; background: var(--blurple); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.edit-panel-lock button:hover { background: var(--blurple-hover); }
.edit-panel-lock span { color: var(--muted-strong); font-size: 13px; }
.edit-panel h2 { margin-bottom: 12px; }
.edit-panel .stored-settings { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-strong); }
.edit-panel .stored-settings h3 { font-size: 15px; }
.edit-panel .stored-settings .setting-list { margin-top: 8px; }
.edit-panel .stored-settings .setting-list > div { padding: 10px 0; }
.usage-count { margin: 16px 0 4px !important; color: var(--text) !important; font-family: var(--heading-font); font-size: 27px !important; font-weight: 800; line-height: 1.25 !important; }
.setting-form { display: grid; gap: 12px; padding: 20px 0; border-top: 1px solid var(--border-strong); }
.setting-form label { display: grid; gap: 8px; color: #b5bac1; font-size: 13px; font-weight: 700; }
.setting-form label small { color: var(--muted); font-size: 12px; font-weight: 500; }
.setting-form select, .setting-form input:not([type="checkbox"]) { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #4e5058; border-radius: 6px; background: #1e1f22; color: #f2f3f5; font: inherit; font-size: 14px; font-weight: 500; }
.setting-form input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.setting-form input[type="number"]::-webkit-inner-spin-button, .setting-form input[type="number"]::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.setting-form select:hover, .setting-form input:not([type="checkbox"]):hover { border-color: #72767d; }
.setting-form select:focus-visible, .setting-form input:not([type="checkbox"]):focus-visible { outline: 2px solid var(--blurple); outline-offset: 2px; }
.setting-form button[type="submit"] { justify-self: start; cursor: pointer; min-height: 38px; padding: 9px 16px; border: 0; border-radius: 4px; background: var(--blurple); color: #fff; font: inherit; font-size: 14px; font-weight: 600; transition: background .15s; }
.setting-form button[type="submit"]:hover { background: var(--blurple-hover); }
.setting-form button[type="submit"]:focus-visible { outline: 2px solid var(--light-blurple); outline-offset: 2px; }
.setting-form button[type="submit"]:disabled { opacity: .55; cursor: wait; }
.setting-form .danger-button { background: var(--danger) !important; }
.setting-form .danger-button:hover { background: var(--danger-hover) !important; }
.setting-form.disable-form { margin-top: 4px; padding-bottom: 0; }
.button-role-choice-group { display: grid; gap: 9px; color: #b5bac1; font-size: 13px; font-weight: 700; }
.button-role-choice-group small { color: var(--muted); font-weight: 500; }
.button-role-choices { display: grid; gap: 4px; max-height: 225px; overflow-y: auto; padding: 6px; border: 1px solid #4e5058; border-radius: 6px; background: #1e1f22; }
.button-role-choices label { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 5px 8px; border-radius: 4px; cursor: pointer; }
.button-role-choices label:hover { background: #404249; }
.button-role-choices label[hidden] { display: none; }
.button-role-choices input { width: 17px; height: 17px; min-height: 0; accent-color: var(--blurple); }
.button-role-choices input:disabled + span { opacity: .5; }
.button-role-selection { justify-self: end; }
.button-role-messages { margin-top: 0; }
.button-role-heading, .button-role-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.button-role-heading { align-items: center; margin-bottom: 14px; }
.button-role-heading h2 { font-size: 20px; }
.button-role-heading > span { color: var(--muted); font-size: 13px; }
.button-role-card { margin-top: 12px; padding: 18px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface-soft); }
.button-role-card h4 { overflow-wrap: anywhere; font-size: 16px; }
.button-role-card-head p { margin-top: 5px; }
.button-role-card-head a { flex-shrink: 0; color: var(--light-blurple); font-size: 13px; font-weight: 700; }
.button-role-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.button-role-tags span { max-width: 100%; overflow-wrap: anywhere; padding: 5px 8px; border-radius: 5px; background: var(--blurple-soft); color: var(--light-blurple); font-size: 12px; }
.button-role-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.button-role-actions .setting-form { align-content: start; border-top-color: var(--border); }
.button-role-actions .setting-form button[type="submit"] { align-self: end; }
.button-role-empty { margin-top: 12px; }
@media (max-width: 650px) { .button-role-card-head { flex-direction: column; } }
.unsaved-bar { position: fixed; right: max(16px, calc((100vw - 900px) / 2)); bottom: 20px; left: max(16px, calc((100vw - 900px) / 2)); z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 10px 16px 10px 22px; border: 1px solid #59606b; border-radius: 8px; background: #232428; color: #fff; box-shadow: 0 12px 36px #0009; opacity: 0; pointer-events: none; transform: translateY(18px) scale(.98); transition: opacity .18s, transform .18s, background .18s; }
.unsaved-bar.visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.unsaved-flash { position: absolute; inset: 0; z-index: 0; border-radius: inherit; background: var(--danger); opacity: 0; pointer-events: none; }
.unsaved-bar strong { position: relative; z-index: 1; font-size: 14px; font-weight: 700; }
.unsaved-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.unsaved-actions button { min-height: 36px; padding: 7px 12px; border: 0; border-radius: 4px; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.unsaved-reset { background: transparent; }
.unsaved-reset:hover { text-decoration: underline; }
.unsaved-save { background: #248046; }
.unsaved-save:hover { background: #1a6334; }
.unsaved-save:disabled { opacity: .55; cursor: wait; }
@media (max-width: 650px) { .unsaved-bar { flex-direction: column; align-items: stretch; bottom: 10px; padding: 12px; text-align: center; } .unsaved-actions { justify-content: center; } }
.saving-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; padding: 24px; background: radial-gradient(circle at 50% 45%, #353b7673 0, #141829d9 38%, #090b13ed 75%); backdrop-filter: blur(12px) saturate(.8); -webkit-backdrop-filter: blur(12px) saturate(.8); color: #fff; opacity: 0; transition: opacity .28s ease; }
.saving-overlay[hidden] { display: none; }
.saving-overlay.visible { opacity: 1; }
.saving-overlay::before { position: absolute; inset: -30%; background: radial-gradient(circle at 25% 35%, #5865f238 0, transparent 27%), radial-gradient(circle at 72% 64%, #c774e52e 0, transparent 30%); content: ''; animation: savingAtmosphere 9s ease-in-out infinite alternate; pointer-events: none; }
.saving-overlay::after { position: absolute; inset: 0; background-image: radial-gradient(#e8eaff75 .8px, transparent 1px); background-size: 45px 45px; opacity: .2; mask-image: radial-gradient(circle, #000 8%, transparent 70%); content: ''; pointer-events: none; }
.saving-scene { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: min(100%, 560px); text-align: center; opacity: 0; transform: translateY(18px) scale(.96); transition: opacity .4s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.saving-overlay.visible .saving-scene { opacity: 1; transform: translateY(0) scale(1); }
.saving-portal { position: relative; width: clamp(200px, 35vw, 270px); aspect-ratio: 1; margin-bottom: 20px; filter: drop-shadow(0 0 30px #5865f270); }
.saving-ring { position: absolute; border-radius: 50%; transition: border-color .45s, box-shadow .45s; }
.saving-ring-outer { inset: 0; border: 1px dashed #b6baff91; box-shadow: inset 0 0 35px #5865f21c, 0 0 45px #5865f233; animation: savingTurn 16s linear infinite; }
.saving-ring-middle { inset: 12%; border: 3px solid #a9afff; border-right-color: transparent; border-bottom-color: #5865f242; box-shadow: 0 0 18px #8893ff55; animation: savingTurn 3.6s linear infinite reverse; }
.saving-ring-inner { inset: 27%; border: 2px solid #c995ff9c; border-top-color: transparent; border-left-color: #5865f23d; animation: savingTurn 2.4s linear infinite; }
.saving-orb { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #eef0ff; box-shadow: 0 0 12px 4px #8e9bff, 0 0 26px 8px #5865f275; animation: savingTwinkle 2.4s ease-in-out infinite alternate; }
.saving-orb-one { top: 4%; left: 51%; }
.saving-orb-two { right: 13%; bottom: 24%; width: 6px; height: 6px; animation-delay: -.9s; }
.saving-orb-three { bottom: 22%; left: 12%; width: 5px; height: 5px; animation-delay: -1.7s; }
.saving-core { position: absolute; inset: 36%; display: grid; place-items: center; border: 1px solid #d4c7ff; border-radius: 15px; background: linear-gradient(135deg, #8c76db, #5865f2 55%, #303caa); box-shadow: 0 0 22px #b49cffbb, 0 0 65px #5865f280, inset 0 0 20px #ffffff3d; transform: rotate(45deg); animation: savingCore 2s ease-in-out infinite; transition: background .45s, box-shadow .45s; }
.saving-core-logo { width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 0 5px #e40066aa); transform: rotate(-45deg); transition: opacity .25s, transform .4s; }
.saving-core-check { position: absolute; width: 38px; height: 38px; color: #fff; opacity: 0; transform: rotate(-45deg) scale(.45); transition: opacity .3s, transform .45s cubic-bezier(.2,1.7,.3,1); }
.saving-eyebrow { margin: 0 0 12px; color: #b8bfff; font-size: 11px; font-weight: 800; letter-spacing: .32em; }
.saving-eyebrow span { margin: 0 8px; color: #e7b9ff; }
.saving-title { margin: 0; background: linear-gradient(100deg, #fff 20%, #bfc5ff 45%, #fff 70%); background-clip: text; -webkit-background-clip: text; background-size: 220% 100%; color: transparent; font-family: var(--heading-font); font-size: clamp(25px, 5vw, 38px); font-weight: 800; line-height: 1.16; animation: savingShine 4s linear infinite; }
.saving-description { margin: 12px 0 26px; color: #c7c9dd; font-size: 15px; }
.saving-progress { position: relative; width: min(280px, 70vw); height: 5px; overflow: hidden; border-radius: 8px; background: #b1b8ff30; box-shadow: 0 0 20px #5865f230; }
.saving-progress > span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #717cff, #e2b2ff); box-shadow: 0 0 18px #b9a4ff; transition: width .45s cubic-bezier(.2,.8,.2,1), background .4s; }
.saving-progress::after { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #ffffff69, transparent); content: ''; animation: savingSweep 1.8s ease-in-out infinite; }
.saving-count { margin: 12px 0 0; color: #aeb5e9; font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .18em; }
.saving-overlay.is-complete .saving-ring { border-color: #75e2b3; box-shadow: 0 0 26px #39bd7d55; animation-duration: 4s; }
.saving-overlay.is-complete .saving-core { border-color: #c6ffe2; border-radius: 50%; background: linear-gradient(135deg, #49d59b, #248046); box-shadow: 0 0 35px #45e6a6b3, 0 0 80px #2dbb7b88; animation: savingComplete .55s cubic-bezier(.2,1.7,.3,1) forwards; }
.saving-overlay.is-complete .saving-core-logo { opacity: 0; transform: rotate(-45deg) scale(.2); }
.saving-overlay.is-complete .saving-core-check { opacity: 1; transform: rotate(0) scale(1); }
.saving-overlay.is-complete .saving-progress > span { background: linear-gradient(90deg, #37c88e, #a6ffd0); }
.saving-overlay.is-error .saving-ring { border-color: #ed6b74; box-shadow: 0 0 26px #ed6b7455; }
.saving-overlay.is-error .saving-core { background: linear-gradient(135deg, #ed6b74, #b63845); box-shadow: 0 0 35px #ed6b7488; }
@keyframes savingTurn { to { transform: rotate(360deg); } }
@keyframes savingTwinkle { to { opacity: .35; transform: scale(.65); } }
@keyframes savingCore { 50% { transform: rotate(45deg) scale(1.12); } }
@keyframes savingComplete { to { transform: rotate(0) scale(1.14); } }
@keyframes savingAtmosphere { to { transform: translate3d(5%, -3%, 0) scale(1.15); } }
@keyframes savingShine { to { background-position: -220% 0; } }
@keyframes savingSweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .saving-overlay *, .saving-overlay::before, .saving-overlay::after { animation: none !important; transition: none !important; } .saving-scene { opacity: 1; transform: none; } }
.edit-feedback { min-height: 1.4em; }
.resource-field-group { display: grid; min-width: 0; }
.resource-field-enhanced label select { display: none; }
.resource-picker { position: relative; min-width: 0; }
.setting-form .resource-trigger { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #4e5058; border-radius: 6px; background: #2b2d31; color: #b5bac1; font-size: 14px; font-weight: 600; text-align: left; }
.setting-form .resource-trigger:hover { border-color: #72767d; background: #313338; }
.setting-form .resource-trigger:focus-visible, .setting-form .resource-option:focus-visible, .setting-form .resource-search:focus-visible { outline: 2px solid var(--blurple); outline-offset: 2px; }
.resource-picker.has-value .resource-trigger { color: #f2f3f5; }
.resource-glyph { display: inline-grid; place-items: center; flex: 0 0 20px; width: 20px; color: #949ba4; font-size: 20px; font-weight: 500; line-height: 1; }
.resource-glyph svg { width: 18px; height: 18px; }
.resource-trigger-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-chevron { display: grid; flex: 0 0 auto; place-items: center; margin-left: auto; color: #949ba4; }
.resource-chevron svg { width: 16px; height: 16px; transition: transform .2s; }
[aria-expanded="true"] > .resource-chevron svg { transform: rotate(180deg); }
.resource-popover { position: fixed; z-index: 50; display: flex; flex-direction: column; min-height: 0; padding: 8px; border: 1px solid #4e5058; border-radius: 8px; background: #2b2d31; box-shadow: 0 12px 30px #0008; }
.resource-popover[hidden], .resource-option[hidden], .resource-empty[hidden] { display: none; }
.setting-form .resource-search, .multi-resource-field .resource-search { width: 100%; margin-bottom: 10px; padding: 9px 10px; border: 0; border-radius: 4px; background: #1e1f22; color: #f2f3f5; font-size: 14px; }
.setting-form .resource-search::placeholder, .multi-resource-field .resource-search::placeholder { color: #949ba4; }
.resource-list-heading { margin: 3px 8px 6px; color: #949ba4 !important; font-size: 11px !important; font-weight: 800; letter-spacing: .5px; }
.resource-options { min-height: 0; max-height: 248px; overflow-y: auto; overscroll-behavior: contain; }
.setting-form .resource-option, .multi-resource-field .resource-option { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 8px; border: 0; border-radius: 4px; background: transparent; color: #b5bac1; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.setting-form .resource-option:hover, .setting-form .resource-option:focus-visible, .multi-resource-field .resource-option:hover, .multi-resource-field .resource-option:focus-visible { background: #404249; color: #f2f3f5; }
.setting-form .resource-option[aria-selected="true"] { background: #404249; color: #f2f3f5; }
.resource-empty { margin: 8px !important; color: #b5bac1 !important; font-size: 13px !important; }
.multi-resource-field { display: grid; gap: 8px; padding: 20px 0; border-top: 1px solid var(--border-strong); }
.multi-resource-label { color: #b5bac1; font-size: 13px; font-weight: 700; }
.multi-resource-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 6px; border: 1px solid #4e5058; border-radius: 6px; background: #2b2d31; }
.multi-resource-box:hover { border-color: #72767d; }
.multi-resource-box:focus-within { border-color: var(--blurple); }
.multi-resource-chips { display: contents; }
.multi-resource-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 28px; padding: 2px 4px 2px 9px; border-radius: 4px; background: #404249; color: #f2f3f5; font-size: 13px; font-weight: 600; }
.multi-resource-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-resource-chip button { display: grid; place-items: center; flex: 0 0 23px; width: 23px; height: 23px; padding: 0; border: 0; border-radius: 3px; background: transparent; color: #b5bac1; font: inherit; font-size: 19px; line-height: 1; cursor: pointer; }
.multi-resource-chip button:hover { background: #555861; color: white; }
.multi-resource-trigger { min-height: 28px; padding: 2px 7px; border: 0; border-radius: 4px; background: transparent; color: #b5bac1; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.multi-resource-trigger:hover { background: #404249; color: white; }
.multi-resource-field button:focus-visible, .multi-resource-field input:focus-visible { outline: 2px solid var(--blurple); outline-offset: 2px; }
.setting-form .toggle-field { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.toggle-control { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: #f2f3f5; }
.toggle-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.toggle-track { position: relative; display: flex; align-items: center; justify-content: space-between; flex: 0 0 40px; width: 40px; height: 24px; padding: 0 5px; border-radius: 12px; background: #80848e; color: white; font-size: 15px; line-height: 1; transition: background .15s; }
.toggle-track::after { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: white; content: ''; transition: transform .15s; }
.toggle-on { visibility: hidden; }
.toggle-control input:checked + .toggle-track { background: var(--blurple); }
.toggle-control input:checked + .toggle-track::after { transform: translateX(16px); }
.toggle-control input:checked + .toggle-track .toggle-on { visibility: visible; }
.toggle-control input:checked + .toggle-track .toggle-off { visibility: hidden; }
.toggle-control input:focus-visible + .toggle-track { outline: 2px solid var(--light-blurple); outline-offset: 2px; }
.toggle-state { min-width: 42px; font-size: 14px; }
.dashboard-legal-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; padding: 24px; border-top: 1px solid #252934; }
.dashboard-legal-footer a { color: #b5bac1; font-size: 13px; }
.dashboard-legal-footer a:hover { color: #e0e3ff; }

/* Yetki durumları: komutlardaki memberPermissions/botPermissions karşılığı */
.card-access { display: inline-flex; align-items: center; gap: 6px; margin: -10px 0 18px; color: var(--yellow); font-size: 12px; font-weight: 600; line-height: 1.5; }
.card-access svg { width: 14px; height: 14px; flex-shrink: 0; }
.edit-panel.is-readonly .edit-panel-content { opacity: .5; pointer-events: none; user-select: none; }
.permission-notices { display: grid; gap: 10px; margin-bottom: 18px; }
.info-panel .permission-notice { margin: 0; color: #f6c77d; }
.info-panel .permission-notice-bot { border-color: #da373c66; background: #da373c12; color: #f5a3a5; }
.permission-panel { margin-top: 16px; }
.permission-panel h3 { margin: 16px 0 8px; color: var(--muted-strong); font-size: 13px; font-weight: 700; }
.permission-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.permission-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted-strong); font-size: 13px; line-height: 1.5; }
.permission-state { flex-shrink: 0; padding: 2px 7px; border-radius: 5px; font-size: 11px; font-weight: 700; }
.permission-ok .permission-state { background: #23a55926; color: #7ee2a8; }
.permission-missing .permission-state { background: #da373c26; color: #f5a3a5; }
.permission-unknown .permission-state { background: #f0b2321f; color: var(--yellow); }
.info-panel .permission-note { margin-top: 14px; font-size: 12px; line-height: 1.6; }
.nav-feature.is-locked > span:first-of-type { opacity: .7; }
.nav-lock { display: inline-flex; margin-left: auto; color: var(--yellow); }
.nav-lock svg { width: 14px; height: 14px; }
.nav-lock + .nav-dot { margin-left: 8px; }
.info-panel .permission-reinvite { display: inline-block; margin-top: 4px; color: #b9c0ff; font-weight: 700; text-decoration: underline; }
.save-warnings { margin-bottom: 18px; }
