@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #07070a;
  --bg-secondary: rgba(20, 20, 27, 0.85);
  --bg-tertiary: #191921;
  --bg-hover: #24242f;
  --bg-active: #2c2c3a;
  --border: #26262f;
  --border-glow: rgba(129, 110, 255, 0.28);
  --text-primary: #f2f2f6;
  --text-secondary: #b6b6c2;
  --text-muted: #7c7c8a;
  --accent: #8169ff;
  --accent-2: #5a8cff;
  --accent-hover: #937dff;
  --green: #3ee6a1;
  --red: #ff5c68;
  --yellow: #ffd166;
  --online: #3ee6a1;
  --offline: #ff5c68;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 2px 12px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.55);
  --glow: 0 0 24px rgba(129, 105, 255, 0.35);
  --grad: linear-gradient(135deg, #8b5cf6 0%, #5a8cff 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(90, 140, 255, 0.16));
  --transition: 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(1000px 500px at -10% 110%, rgba(90, 140, 255, 0.12), transparent 60%),
    var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2a2a36, #383846);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #454553; }

/* ---- Animated aurora background ---- */
.bg-aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 18s ease-in-out infinite;
}
.orb-1 { width: 480px; height: 480px; top: -140px; right: -100px; background: radial-gradient(circle, rgba(139,92,246,0.38), transparent 70%); }
.orb-2 { width: 420px; height: 420px; bottom: -120px; left: -80px; background: radial-gradient(circle, rgba(90,140,255,0.30), transparent 70%); animation-delay: -6s; }
.orb-3 { width: 300px; height: 300px; top: 40%; left: 30%; background: radial-gradient(circle, rgba(59,199,255,0.18), transparent 70%); animation-delay: -12s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.06); }
  66% { transform: translate(-30px, 26px) scale(0.96); }
}

/* ---- Loader ---- */
.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 14px;
}
.loader-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Login page ---- */
.login-page {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-secondary);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.04);
  animation: cardIn 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.brand-badge {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--grad);
  box-shadow: var(--glow);
}
.brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.login-logo {
  font-family: 'Unbounded', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff, #d9d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-hero { display: flex; flex-direction: column; gap: 8px; }

.login-title {
  font-size: 24px;
  font-weight: 700;
}

.login-text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.btn-block {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.login-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}

.login-links .btn { justify-content: center; }

.login-agreement {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.login-staff {
  color: var(--text-muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

/* ---- Public pages (rules / status) ---- */
.public-page {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.public-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}

.public-header h1 {
  font-family: 'Unbounded', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.public-card {
  background: var(--bg-secondary);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.public-status-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 14px;
}
.rule-title-red { color: var(--red); }
.rule-title:not(.rule-title-red):last-of-type { color: var(--yellow); }

.rule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rule-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.rule-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  box-shadow: 0 0 8px var(--accent);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.status-online { border-color: rgba(62, 230, 161, 0.25); }
.status-offline { border-color: rgba(255, 92, 104, 0.25); }

.status-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.pulse-dot.on { background: var(--green); box-shadow: 0 0 0 4px rgba(62,230,161,0.15); animation: pulse 2s infinite; }
.pulse-dot.off { background: var(--red); box-shadow: 0 0 0 4px rgba(255,92,104,0.15); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(62,230,161,0.12), 0 0 0 0 rgba(62,230,161,0.3); }
  50% { box-shadow: 0 0 0 3px rgba(62,230,161,0.12), 0 0 0 7px rgba(62,230,161,0); }
}

.status-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.tag-on { background: rgba(62,230,161,0.12); color: var(--green); }
.tag-off { background: rgba(255,92,104,0.12); color: var(--red); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  user-select: none;
}

.btn-primary {
  background: var(--grad);
  color: white;
  box-shadow: 0 4px 16px rgba(129, 105, 255, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #9874ff 0%, #6f9dff 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(129, 105, 255, 0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-discord {
  background: linear-gradient(135deg, #5865f2 0%, #4a55c6 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
}
.btn-discord:hover {
  background: linear-gradient(135deg, #6a76f5 0%, #5865e0 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.5);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--grad-soft);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, #ff5c68, #e0443f);
  color: white;
}
.btn-danger:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #3ee6a1, #2fbf8a);
  color: #04150f;
}
.btn-success:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-small {
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 8px;
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.app-layout {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 280px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header h2 {
  font-size: 16px;
  font-weight: 600;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-user img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-info .name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-info .role {
  font-size: 11px;
  color: var(--text-muted);
}

.ticket-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.ticket-item {
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.ticket-item:hover {
  background: var(--bg-hover);
}

.ticket-item.active {
  background: var(--bg-active);
}

.ticket-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  overflow: hidden;
}

.ticket-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticket-info {
  flex: 1;
  min-width: 0;
}

.ticket-info .subject {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-info .meta {
  font-size: 11px;
  color: var(--text-muted);
}

.ticket-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ticket-status.open { background: var(--online); }
.ticket-status.accepted { background: var(--yellow); }
.ticket-status.closed { background: var(--text-muted); }
.ticket-status.waiting { background: var(--accent); }

.sidebar-actions {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.sidebar-actions .btn {
  flex: 1;
  justify-content: center;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-header {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-info h3 {
  font-size: 15px;
  font-weight: 600;
}

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

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.message {
  display: flex;
  gap: 12px;
  padding: 8px 0;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  overflow: hidden;
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-body {
  flex: 1;
  min-width: 0;
}

.message-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.message-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.message-time {
  font-size: 11px;
  color: var(--text-muted);
}

.message-source {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.message-content {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  word-wrap: break-word;
}

.message.system {
  justify-content: center;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  margin: 4px 0;
}

.message.system .message-content {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

.chat-input {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.chat-input-wrapper {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.chat-input textarea {
  flex: 1;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  resize: none;
  min-height: 42px;
  max-height: 120px;
  outline: none;
  transition: border-color var(--transition);
}

.chat-input textarea:focus {
  border-color: var(--accent);
}

.chat-input textarea::placeholder {
  color: var(--text-muted);
}

.info-panel {
  width: 280px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

.info-panel-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.info-panel-header .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-muted);
  overflow: hidden;
}

.info-panel-header .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-panel-header .username {
  font-size: 16px;
  font-weight: 600;
}

.info-panel-header .discriminator {
  font-size: 12px;
  color: var(--text-muted);
}

.info-section {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.info-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
}

.info-row .label {
  color: var(--text-muted);
}

.info-row .value {
  color: var(--text-primary);
  font-weight: 500;
}

.info-row .value.badge-green {
  color: var(--green);
}

.info-row .value.badge-red {
  color: var(--red);
}

.info-row .value.badge-yellow {
  color: var(--yellow);
}

.info-actions {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-actions .btn {
  width: 100%;
  justify-content: center;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 400px;
  max-width: 90vw;
  transform: translateY(10px);
  transition: transform var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

.form-group select:focus,
.form-group input:focus {
  border-color: var(--accent);
}

.empty-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 48px;
  opacity: 0.3;
}
.empty-state .icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 16px;
  filter: grayscale(0.5) brightness(1.2);
}

.empty-state p {
  font-size: 14px;
}

.status-page {
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
}

.status-page h1 {
  font-size: 24px;
  margin-bottom: 24px;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.status-item .name {
  font-size: 14px;
  font-weight: 500;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

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

.status-dot.online { background: var(--online); }
.status-dot.offline { background: var(--offline); }

.mod-page {
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.mod-header {
  margin-bottom: 24px;
}

.mod-header h1 {
  font-size: 24px;
  margin-top: 12px;
}

.mod-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.mod-search {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.mod-search input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
}

.mod-search input:focus {
  outline: none;
  border-color: var(--accent);
}

.mod-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mod-user-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.mod-user-avatar img,
.mod-user-avatar span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: var(--bg-elevated);
  color: var(--accent);
}

.mod-user-avatar img {
  background: transparent;
}

.mod-user-info {
  flex: 1;
  min-width: 0;
}

.mod-user-name {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mod-user-id {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
}

.mod-user-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.badge-red {
  background: rgba(237, 66, 69, 0.15);
  color: #ED4245;
}

.badge-green {
  background: rgba(87, 242, 135, 0.15);
  color: #57F287;
}

.badge-yellow {
  background: rgba(254, 231, 92, 0.15);
  color: #FEE75C;
}

.mod-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  max-width: 60%;
}

.mod-history-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.mod-history-section h3 {
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 12px;
}

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

.mod-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

.mod-history-item:last-child {
  border-bottom: none;
}

.mod-history-item b {
  color: var(--text);
}

.warn-active {
  border-left: 3px solid #FEE75C;
  padding-left: 10px;
}

.warn-cleared {
  opacity: 0.5;
}

.rules-page {
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
}

.rules-page h1 {
  font-size: 24px;
  margin-bottom: 24px;
}

.rules-section {
  margin-bottom: 24px;
}

.rules-section h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--accent);
}

.rules-section ul {
  list-style: none;
  padding: 0;
}

.rules-section li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.rules-section li::before {
  content: '•';
  color: var(--text-muted);
  flex-shrink: 0;
}

.rules-section li:last-child {
  border-bottom: none;
}

.nav-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.nav-tab {
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
  background: transparent;
  border: none;
  font-family: inherit;
}

.nav-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-tab.active {
  color: var(--text-primary);
  background: var(--bg-active);
}

@media (max-width: 900px) {
  .sidebar { width: 60px; }
  .sidebar-header h2, .sidebar-user-info, .ticket-info, .sidebar-actions span { display: none; }
  .ticket-item { justify-content: center; padding: 10px; }
  .info-panel { width: 240px; }
}

@media (max-width: 700px) {
  .info-panel { display: none; }
}

/* ---- Liquid glass buttons ---- */
.glass-panel {
  margin: 8px 0;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass-panel-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-align: center;
}

.glass-action-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.glass-action-row:last-child { margin-bottom: 0; }

.glass-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  box-shadow: 0 4px 14px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition);
  overflow: hidden;
  white-space: nowrap;
}
.glass-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s;
}
.glass-btn:hover::before { left: 120%; }
.glass-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.16);
}
.glass-btn:active { transform: translateY(0); }
.glass-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}
.glass-btn:disabled::before { display: none; }

.glass-icon { font-size: 14px; }

.glass-danger {
  background: linear-gradient(145deg, rgba(255,92,104,0.28), rgba(255,92,104,0.08));
  border-color: rgba(255,92,104,0.35);
}
.glass-warn {
  background: linear-gradient(145deg, rgba(255,209,102,0.26), rgba(255,209,102,0.07));
  border-color: rgba(255,209,102,0.35);
  color: #ffe9b8;
}
.glass-mute {
  background: linear-gradient(145deg, rgba(90,140,255,0.26), rgba(90,140,255,0.07));
  border-color: rgba(90,140,255,0.35);
  color: #cfe0ff;
}
.glass-success {
  background: linear-gradient(145deg, rgba(62,230,161,0.26), rgba(62,230,161,0.07));
  border-color: rgba(62,230,161,0.35);
  color: #c3ffe8;
}

/* ---- Liquid glass modal ---- */
.modal-overlay {
  background: rgba(5,5,9,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.glass-modal {
  position: relative;
  background: linear-gradient(150deg, rgba(28,28,38,0.75), rgba(16,16,24,0.85));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.10);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.glass-modal-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129,105,255,0.30), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}
.glass-modal-danger .glass-modal-glow { background: radial-gradient(circle, rgba(255,92,104,0.32), transparent 70%); }
.glass-modal-warn .glass-modal-glow { background: radial-gradient(circle, rgba(255,209,102,0.28), transparent 70%); }
.glass-modal-mute .glass-modal-glow { background: radial-gradient(circle, rgba(90,140,255,0.30), transparent 70%); }
.glass-modal-success .glass-modal-glow { background: radial-gradient(circle, rgba(62,230,161,0.28), transparent 70%); }

.glass-modal h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  margin-bottom: 14px;
}

.glass-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
  font-size: 17px;
}

.glass-modal-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
}

.glass-modal-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 0 16px rgba(129,105,255,0.4);
  flex-shrink: 0;
}

.glass-modal-username { font-weight: 600; font-size: 14px; }
.glass-modal-id { font-size: 11px; color: var(--text-muted); font-family: monospace; margin-top: 2px; }

.glass-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  transition: all var(--transition);
}
.glass-input:focus {
  outline: none;
  border-color: rgba(129,105,255,0.55);
  box-shadow: 0 0 0 3px rgba(129,105,255,0.15);
  background: rgba(255,255,255,0.07);
}
.glass-input::placeholder { color: var(--text-muted); }

.required-star { color: var(--red); }
