




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


:root {

  --bg-primary: #050507;
  --bg-secondary: #0a0a10;
  --bg-tertiary: #111118;
  --bg-surface: #16161f;


  --glass-bg: rgba(255, 255, 255, 0.035);
  --glass-bg-hover: rgba(255, 255, 255, 0.07);
  --glass-bg-active: rgba(255, 255, 255, 0.1);
  --glass-bg-solid: rgba(18, 18, 28, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.16);
  --glass-border-active: rgba(255, 255, 255, 0.24);
  --glass-specular: rgba(255, 255, 255, 0.25);
  --glass-blur: 40px;
  --glass-blur-heavy: 80px;
  --glass-saturate: saturate(180%);


  --accent-primary: #ffffff;
  --accent-secondary: #e0e0e0;
  --accent-tertiary: #a0a0a0;
  --accent-glow: rgba(255, 255, 255, 0.1);
  --accent-glow-strong: rgba(255, 255, 255, 0.2);
  --accent-gradient: linear-gradient(135deg, #ffffff 0%, #e0e0e0 50%, #c0c0c0 100%);


  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-tertiary: rgba(255, 255, 255, 0.3);
  --text-muted: rgba(255, 255, 255, 0.25);
  --text-accent: #ffffff;


  --status-pending: #f1c40f;
  --status-accepted: #2ecc71;
  --status-rejected: #e74c3c;
  --status-open: #3498db;
  --status-closed: #95a5a6;
  --status-active: #2ecc71;
  --status-inactive: #64748B;
  --status-active-bg: rgba(46, 204, 113, 0.1);
  --status-active-border: rgba(46, 204, 113, 0.2);
  --status-inactive-bg: rgba(100, 116, 139, 0.1);
  --status-inactive-border: rgba(100, 116, 139, 0.2);
  --status-error: #e74c3c;
  --status-warning: #f1c40f;


  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;


  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.6s;
}


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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}


body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 85% 85%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
}


.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  animation: orbDrift 25s ease-in-out infinite;
}

.bg-orb--1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(123, 108, 246, 0.15), transparent 70%);
  top: -250px;
  left: -200px;
  animation-duration: 30s;
}

.bg-orb--2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(130, 207, 255, 0.1), transparent 70%);
  bottom: -200px;
  right: -150px;
  animation-duration: 35s;
  animation-delay: -7s;
}

.bg-orb--3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.06), transparent 70%);
  top: 40%;
  left: 60%;
  animation-duration: 40s;
  animation-delay: -15s;
}

@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -50px) scale(1.08); }
  50% { transform: translate(-30px, 30px) scale(0.94); }
  75% { transform: translate(50px, 40px) scale(1.04); }
}


.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 32px;
  background: rgba(5, 5, 7, 0.88);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: all var(--duration-slow) var(--ease-out);
}

.header.scrolled {
  padding: 10px 32px;
  background: rgba(5, 5, 7, 0.88);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}


.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  transition: all var(--duration-normal) var(--ease-out);
}

.header-logo:hover {
  transform: none;
}

.header-logo img {
  height: 38px;
  width: auto;
  transition: all var(--duration-slow) var(--ease-out);
}

.header-logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
}


.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 4px;
  backdrop-filter: blur(20px) var(--glass-saturate);
  -webkit-backdrop-filter: blur(20px) var(--glass-saturate);
}

.nav-link {
  position: relative;
  padding: 8px 20px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  letter-spacing: 0.01em;
  white-space: nowrap;
  background: transparent;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-link.active {
  color: var(--text-primary);
  background: var(--glass-bg-active);
  border-color: var(--glass-border-active);
  box-shadow: inset 0 1px 0 var(--glass-specular);
}

.nav-link--cta {
  background: #5865F2 !important;
  color: white !important;
  font-weight: 600;
  padding: 8px 22px;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link--cta:hover {
  background: #4752C4 !important;
  box-shadow: none;
  transform: none;
}


.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--duration-fast) ease;
  margin-left: 8px;
  cursor: pointer;
}

.nav-user:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-user img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}


.nav-dropdown, .nav-user-wrap {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  letter-spacing: 0.01em;
  white-space: nowrap;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}

.nav-dropdown-trigger:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-dropdown.open .nav-dropdown-trigger {
  color: var(--text-primary);
  background: var(--glass-bg-active);
  border-color: var(--glass-border-active);
}

.nav-dropdown-menu, .nav-user-tooltip {
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-out);
}

.nav-dropdown:hover .nav-dropdown-menu, 
.nav-dropdown.open .nav-dropdown-menu,
.nav-user-wrap:hover .nav-user-tooltip,
.nav-user-wrap.open .nav-user-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu-inner, .nav-user-tooltip-inner {
  background: rgba(18, 18, 28, 0.95);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  min-width: 220px;
  padding: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--duration-fast) ease;
}

.nav-dropdown-item:hover {
  background: var(--glass-bg-hover);
  color: #fff;
}

.nav-user-tooltip-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--glass-border);
}

.nav-user-tooltip-header img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.nav-user-tooltip-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-user-tooltip-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.nav-user-tooltip-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--duration-fast) ease;
}

.nav-user-tooltip-action:hover {
  background: var(--glass-bg-hover);
  color: #fff;
}


.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  z-index: 1001;
}

.mobile-toggle:hover {
  background: var(--glass-bg-hover);
}

.mobile-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}


.liquid-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur)) var(--glass-saturate);
  -webkit-backdrop-filter: blur(var(--glass-blur)) var(--glass-saturate);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 var(--glass-specular);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.liquid-glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 var(--glass-specular);
  transform: none;
}


.liquid-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.2) 30%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.2) 70%,
    transparent
  );
  z-index: 1;
}


.page-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
}

.page-container--narrow {
  max-width: 800px;
}

.page-header {
  text-align: center;
  margin-bottom: 56px;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.page-header h1 span {
  color: white;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}


.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.13);
  color: white;
  box-shadow: none;
}

.btn-primary:hover {
  transform: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.18);
}

.btn-primary:active {
  transform: none;
}

.btn-glass {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: none;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-danger {
  background: rgba(248, 113, 113, 0.12);
  color: var(--status-error);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(248, 113, 113, 0.3);
  transform: none;
}

.btn-discord {
  background: #5865F2;
  color: white;
  box-shadow: none;
}

.btn-discord:hover {
  background: #4752C4;
  transform: none;
  box-shadow: none;
}

.btn i {
  font-size: 0.95rem;
  flex-shrink: 0;
}


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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--duration-fast) var(--ease-out);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-tertiary);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}


.role-select-wrap {
  position: relative;
}

.role-select-wrap select {
  width: 100%;
  appearance: none;
  padding-right: 32px;
}

.select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.65rem;
  opacity: 0.5;
}


.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

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

.status-badge--pending .status-dot {
  background: var(--status-pending);
  box-shadow: 0 0 10px var(--status-pending);
}

.status-badge--accepted .status-dot {
  background: var(--status-accepted);
  box-shadow: 0 0 10px var(--status-accepted);
}

.status-badge--rejected .status-dot {
  background: var(--status-rejected);
  box-shadow: 0 0 10px var(--status-rejected);
}

.status-badge--open .status-dot {
  background: var(--status-open);
  box-shadow: 0 0 10px var(--status-open);
}

.status-badge--closed .status-dot {
  background: var(--status-closed);
  box-shadow: 0 0 10px var(--status-closed);
}


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

.item-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}

.item-row.liquid-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.item-row:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: none;
}

.item-row-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0.6;
  flex-shrink: 0;
}

.item-row-body {
  flex: 1;
}

.item-row-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.item-row-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.item-row-status {
  flex-shrink: 0;
}


.team-container {
  max-width: 900px;
  margin: 0 auto;
}

.team-add-form {
  padding: 28px;
  margin-bottom: 28px;
}

.team-add-form h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.team-add-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.team-add-row .form-group {
  flex: 1;
  min-width: 180px;
  margin-bottom: 0;
}

.team-members-list {
  padding: 28px;
}

.team-members-list h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.team-member-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  margin-bottom: 10px;
  transition: all var(--duration-fast) ease;
}

.team-member-row:hover {
  background: var(--glass-bg-hover);
}

.team-member-row--owner {
  border-color: rgba(255, 215, 0, 0.2);
  background: rgba(255, 215, 0, 0.05);
}

.team-member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

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

.team-member-name {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.team-member-id {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.team-member-perms {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.perm-badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.perm-badge--active {
  background: var(--status-active-bg);
  color: var(--status-active);
  border: 1px solid var(--status-active-border);
}

.perm-badge--inactive {
  background: var(--status-inactive-bg);
  color: var(--status-inactive);
  border: 1px solid var(--status-inactive-border);
}

.perm-badge--owner {
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.team-member-actions {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
}


.toggle-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.toggle-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--glass-bg-active);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-spring);
}

.toggle-switch input:checked + .toggle-slider {
  background: rgba(46, 204, 113, 0.3);
  border-color: var(--status-active);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: var(--status-active);
}

.perms-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-top: 20px;
  margin-bottom: 12px;
  grid-column: 1 / -1;
}

.team-perms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  margin-top: 20px;
}


.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-tertiary);
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 0.9rem;
  font-weight: 500;
}


.footer {
  padding: 60px 24px;
  background: var(--bg-primary);
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.85rem;
}


.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 0.6s forwards var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.5s var(--ease-out);
}

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.04s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.12s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.16s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.20s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.24s; }


.toast-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 3000;
  display: grid;
  gap: 12px;
}

.toast {
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: var(--glass-bg-solid);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: toastIn 0.4s var(--ease-out);
  transform: translateX(0);
  opacity: 1;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

@keyframes toastIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}


.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

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

.modal {
  width: 100%;
  max-width: 500px;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transform: scale(0.9);
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--duration-fast) ease;
}

.modal-close:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}


.particle {
  position: fixed;
  width: 2px;
  height: 2px;
  background: rgba(165, 160, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: particleDrift linear infinite;
}

@keyframes particleDrift {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}


::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}


@media (max-width: 768px) {
  .header {
    padding: 12px 16px;
  }

  .header.scrolled {
    padding: 12px 16px;
  }

  .header-nav {
    display: none;
  }

  .header-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 7, 0.9);
    backdrop-filter: blur(var(--glass-blur-heavy)) var(--glass-saturate);
    -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) var(--glass-saturate);
    border-radius: 0;
    padding: 80px 24px 24px;
    z-index: 999;
    gap: 8px;
    align-items: stretch;
  }

  .header-nav.mobile-open .nav-link {
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
  }

  .header-nav.mobile-open .nav-user {
    justify-content: center;
    margin-left: 0;
    margin-top: 12px;
  }

  .mobile-toggle {
    display: flex;
  }

  .page-container {
    padding: 100px 16px 60px;
  }

  .team-add-row {
    flex-direction: column;
    align-items: stretch;
  }

  .team-member-row {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .team-member-perms {
    justify-content: center;
  }

  .team-perms-grid {
    grid-template-columns: 1fr;
  }

  .item-row {
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 1.65rem;
  }
}


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

.login-card {
  padding: 48px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.login-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}

.login-card h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.login-card p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}


.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.p-32 { padding: 32px; }
.p-36 { padding: 36px; }
.text-center { text-align: center; }


.section-title { margin-top: 0; font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; }
.section-desc { font-size: 0.85rem; opacity: 0.55; margin: 0 0 24px; line-height: 1.6; }
.form-actions-border { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--glass-border); }
.mt-28 { margin-top: 28px; }
.mb-14 { margin-bottom: 14px; }

.role-config-card { padding: 22px 24px; margin-bottom: 14px; border-radius: 14px; }
.role-config-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.role-config-header h4 { margin: 0; font-size: 0.95em; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.btn-text-danger { color: #ff4444; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; margin-bottom: 14px; }
.form-label-sm { font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.55; display: block; margin-bottom: 8px; }
.questions-textarea { resize: vertical; min-height: 88px; font-family: monospace; }

.role-config-footer { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 16px; border-top: 1px solid var(--glass-border); margin-top: 4px; }
.toggle-group-inline { display: flex; align-items: center; gap: 10px; }
.toggle-text { font-size: 0.85em; opacity: 0.8; }


.wiki-breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-size: 0.85rem; color: var(--text-secondary); }
.wiki-breadcrumb-link { text-decoration: none; color: inherit; transition: color 0.2s; }
.wiki-breadcrumb-link:hover { color: var(--text-primary); }
.wiki-breadcrumb-sep { font-size: 0.7rem; opacity: 0.3; }
.wiki-breadcrumb-current { color: var(--text-primary); font-weight: 600; }

.wiki-page-header { text-align: left; align-items: flex-start; padding-top: 0; margin-bottom: 40px; }
.wiki-editor-layout { display: grid; grid-template-columns: 1fr 350px; gap: 32px; align-items: start; }

.form-label-hint { opacity: 0.4; font-size: 0.78em; }
.wiki-editor-toolbar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; background: var(--glass-bg); padding: 8px; border-radius: 8px; border: 1px solid var(--glass-border); }
.nav-dropdown-sep { width: 100%; height: 1px; background: var(--glass-border); margin: 4px 0; }i-textarea { width: 100%; min-height: 450px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); border-radius: 12px; color: var(--text-primary); font-family: monospace; padding: 20px; resize: vertical; outline: none; line-height: 1.6; }
.wiki-sidebar-textarea { resize: vertical; font-family: monospace; font-size: 0.85rem; }

.flex-gap-12 { display: flex; gap: 12px; }
.flex-1-center { flex: 1; justify-content: center; }
.flex-04-center { flex: 0.4; justify-content: center; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }


.footer {
  background: rgba(5, 5, 7, 0.95);
  border-top: 1px solid var(--glass-border);
  padding: 64px 32px 32px;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
}

.footer-logo img {
  height: 42px;
  width: auto;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.footer-col-title {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-link {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-link:hover {
  color: var(--text-secondary);
}

.footer-bottom-sep {
  opacity: 0.3;
}


.hero--home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80vh;
  padding: 120px 24px;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 32px;
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.1));
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
}


.team-container { max-width: 900px; margin: 0 auto; }
.team-add-form { padding: 32px; margin-bottom: 28px; }
.team-add-form h3 { font-size: 1rem; font-weight: 700; margin-bottom: 20px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.team-add-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.team-add-row .form-group { flex: 1; min-width: 180px; }
.form-group-flex-auto { flex: 0 0 auto; }
.role-custom-hidden { display: none; margin-top: 12px; }

.team-members-list { padding: 32px; }
.team-members-list h3 { font-size: 1rem; font-weight: 700; margin-bottom: 20px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }

.team-member-row { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius-md); background: var(--glass-bg); border: 1px solid var(--glass-border); margin-bottom: 10px; transition: all var(--duration-fast) ease; }
.team-member-row:hover { background: var(--glass-bg-hover); border-color: var(--glass-border-hover); }
.team-member-row--owner { border-color: rgba(255, 215, 0, 0.2); background: rgba(255, 215, 0, 0.05); }

.team-member-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.team-member-info { flex: 1; min-width: 0; }
.team-member-name { font-weight: 600; font-size: 0.9rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.team-member-id { font-size: 0.75rem; color: var(--text-tertiary); font-family: 'SF Mono', 'Fira Code', monospace; }

.team-member-perms { display: flex; gap: 8px; flex-wrap: wrap; }
.perm-badge { padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 4px; }
.perm-badge--active { background: var(--status-active-bg); color: var(--status-active); border: 1px solid var(--status-active-border); }
.perm-badge--inactive { background: var(--status-inactive-bg); color: var(--status-inactive); border: 1px solid var(--status-inactive-border); }
.perm-badge--owner { background: rgba(255, 215, 0, 0.1); color: #ffd700; border: 1px solid rgba(255, 215, 0, 0.2); }
.perm-badge-ml { margin-left: 8px; }

.team-member-actions { flex-shrink: 0; display: flex; gap: 8px; }


.p-48 { padding: 48px 24px; }
.item-row-id { opacity: 0.4; font-weight: 400; }
.item-row-meta { font-size: 0.85rem; opacity: 0.5; margin-top: 4px; }


.admin-filter-bar { display: flex; align-items: center; gap: 12px; padding: 12px 20px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-btn { padding: 7px 18px; border-radius: var(--radius-full); background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-secondary); font-family: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all var(--duration-fast) ease; white-space: nowrap; }
.filter-btn:hover { background: var(--glass-bg-hover); color: var(--text-primary); }
.filter-btn.active { background: var(--glass-bg-active); border-color: var(--accent-primary); color: var(--text-primary); }
.tab-count { opacity: 0.5; font-size: 0.75rem; margin-left: 4px; }

.filter-search { margin-left: auto; position: relative; display: flex; align-items: center; }
.filter-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: 0.4; font-size: 0.8rem; pointer-events: none; }
.filter-search .form-input { padding: 8px 14px 8px 34px; font-size: 0.85rem; width: 220px; }


.wiki-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; max-width: 1280px; margin: 0 auto; padding: 120px 24px 80px; position: relative; z-index: 1; }
.wiki-main { position: relative; z-index: 1; }
.wiki-empty-state { padding: 60px 24px; text-align: center; }
.wiki-empty-icon { font-size: 3rem; opacity: 0.2; margin-bottom: 20px; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.category-card { padding: 32px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 16px; transition: all var(--duration-normal) ease; }
.category-card:hover { transform: none; }

.category-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--glass-bg); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.category-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.category-desc { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.category-meta { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; opacity: 0.4; }

.category-preview { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--glass-border); display: flex; flex-direction: column; gap: 6px; }
.category-page-item { font-size: 0.8rem; opacity: 0.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.category-page-item i { opacity: 0.4; margin-right: 6px; }
.category-more { font-size: 0.75rem; opacity: 0.3; margin-top: 2px; }

@media (max-width: 1024px) {
  .wiki-layout { grid-template-columns: 1fr; }
}


.wiki-sidebar { padding: 24px; border-radius: var(--radius-lg); position: sticky; top: 100px; height: fit-content; max-height: calc(100vh - 120px); overflow-y: auto; }
.wiki-sidebar-inner { display: flex; flex-direction: column; gap: 20px; }
.wiki-sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--glass-border); }
.wiki-sidebar-home { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-primary); font-weight: 600; font-size: 0.9rem; transition: all var(--duration-fast) ease; }
.wiki-sidebar-home:hover { color: white; }

.wiki-sidebar-list { display: flex; flex-direction: column; gap: 8px; }
.wiki-sidebar-cat-group { }
.wiki-sidebar-cat-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wiki-sidebar-cat-title-wrap { flex: 1; cursor: grab; }
.wiki-sidebar-cat-title { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: all var(--duration-fast) ease; }
.wiki-sidebar-cat-title:hover { background: var(--glass-bg-hover); color: var(--text-primary); }
.wiki-sidebar-cat-title.active { background: var(--glass-bg-active); color: white; }

.wiki-sidebar-cat-actions { display: flex; gap: 4px; }
.sidebar-action-btn { width: 28px; height: 28px; border: none; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; transition: all var(--duration-fast) ease; }
.sidebar-action-btn:hover { background: var(--glass-bg-hover); color: var(--text-primary); }

.wiki-sidebar-pages { display: flex; flex-direction: column; gap: 4px; min-height: 10px; margin-left: 12px; }
.wiki-sidebar-page { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text-tertiary); font-size: 0.85rem; transition: all var(--duration-fast) ease; cursor: grab; }
.wiki-sidebar-page:hover { background: var(--glass-bg); color: var(--text-secondary); }
.wiki-sidebar-page.active { background: var(--glass-bg-active); color: white; }


.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; visibility: hidden; transition: all var(--duration-normal) ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal { max-width: 450px; padding: 32px; border-radius: var(--radius-lg); }
.wiki-modal { max-width: 450px; }
.modal-header { margin-bottom: 24px; }
.modal-header h2 { font-size: 1.25rem; font-weight: 700; }
.modal-actions { display: flex; gap: 12px; margin-top: 24px; }
.modal-actions .btn { flex: 1; justify-content: center; }
.modal-delete-container { margin-top: 12px; display: none; }
.modal-delete-container .btn { width: 100%; }

.icon-input-wrap { display: flex; gap: 12px; align-items: center; }
.icon-input-wrap .form-input { flex: 1; }
.icon-input-wrap span { font-size: 1.4rem; width: 36px; text-align: center; opacity: 0.7; }


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}


.btn-primary {
  background: rgba(255, 255, 255, 0.13);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
  background: rgba(255, 255, 255, 0.1);
}


.btn-glass {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}


.btn-danger {
  background: rgba(248, 113, 113, 0.12);
  color: var(--status-error);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(248, 113, 113, 0.3);
}


.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}


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


.nav-link--cta {
  background: #5865F2 !important;
  color: white !important;
  font-weight: 600;
  padding: 8px 22px;
  border: none !important;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link--cta:hover {
  background: #4752C4 !important;
  box-shadow: none;
}


.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }


.nav-dropdown-sep { width: 100%; height: 1px; background: var(--glass-border); margin: 4px 0; }


.nav-dropdown-trigger i, .nav-user i {
  font-size: 0.65rem;
  opacity: 0.5;
  margin-left: 2px;
  transition: all var(--duration-fast) ease;
}

.nav-dropdown-trigger:hover i, .nav-user:hover i {
  opacity: 0.7;
}

.nav-dropdown.open .nav-dropdown-trigger i, .nav-user-wrap.open .nav-user i {
  opacity: 0.9;
}


.ticket-form-container { max-width: 900px; margin: 0 auto; }
.ticket-reasons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 600px; margin: 0 auto; }
.ticket-reason-card { padding: 20px 16px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 12px; transition: all var(--duration-normal) ease; border: 2px solid transparent; }
.ticket-reason-card:hover { background: var(--glass-bg-hover); border-color: var(--glass-border-hover); }
.ticket-reason-card.selected { background: var(--glass-bg-active); border-color: var(--accent-primary); box-shadow: inset 0 1px 0 var(--glass-specular), 0 0 20px rgba(255, 255, 255, 0.1); }

.ticket-reason-icon { font-size: 2rem; opacity: 0.8; }
.ticket-reason-name { font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em; }

.p-36 { padding: 36px; }
.btn-submit { margin-top: 24px; }


.ticket-form-container .form-group { text-align: center; }
.ticket-form-container .form-label { justify-content: center; display: flex; }


@media (max-width: 768px) {
  .page-container {
    padding: 100px 16px 60px;
    max-width: 100%;
  }

  .page-container--narrow {
    max-width: 100%;
    padding: 100px 16px 60px;
  }

  .liquid-glass {
    margin: 0 auto;
    width: calc(100% - 32px);
    max-width: 100%;
    box-sizing: border-box;
  }

  .ticket-form-container {
    max-width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .ticket-reasons-grid {
    max-width: 100%;
    width: 100%;
  }

  .modal {
    width: calc(100% - 32px);
    max-width: 100%;
    margin: 16px;
    box-sizing: border-box;
  }

  .header {
    padding: 12px 16px;
  }

  .header-inner {
    gap: 12px;
  }

  .header-nav {
    gap: 2px;
    padding: 2px;
  }

  .nav-link {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .nav-link--cta {
    padding: 6px 16px !important;
  }

  .footer {
    padding: 40px 16px 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-container {
    padding: 80px 12px 40px;
  }

  .liquid-glass {
    width: calc(100% - 24px);
    margin: 0 auto;
  }

  .ticket-reasons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .header {
    padding: 10px 12px;
  }

  .nav-link {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .page-header h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
  }

  .page-header p {
    font-size: 0.9rem;
  }
}


.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}

.login-card {
  max-width: 400px;
  width: 100%;
  padding: 48px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.login-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  object-fit: contain;
}

.login-card h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.login-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .login-container {
    padding: 30px 16px;
    min-height: calc(100vh - 150px);
  }

  .login-card {
    max-width: 100%;
    padding: 32px 24px;
  }

  .login-card h1 {
    font-size: 1.5rem;
  }

  .login-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 20px 12px;
  }

  .login-card {
    padding: 24px 16px;
    gap: 16px;
  }

  .login-logo {
    width: 60px;
    height: 60px;
  }

  .login-card h1 {
    font-size: 1.3rem;
  }

  .login-card p {
    font-size: 0.85rem;
  }
}


.footer {
  position: relative;
  z-index: 0;
  margin-top: auto;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 48px 32px 32px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: all var(--duration-normal) ease;
  width: fit-content;
}

.footer-logo:hover {
  opacity: 0.8;
}

.footer-logo img {
  display: none;
}

.footer-tagline {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
  max-width: 280px;
  text-align: left;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  align-items: flex-start;
  justify-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer-col-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all var(--duration-fast) ease;
  display: inline-block;
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-align: left;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom-sep {
  opacity: 0.4;
}

.footer-bottom-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--duration-fast) ease;
  display: inline-block;
}

.footer-bottom-link:hover {
  color: white;
}


@media (max-width: 768px) {
  .footer {
    padding: 36px 24px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px 32px;
  }

  .footer-link {
    font-size: 0.8rem;
  }

  .footer-bottom {
    gap: 6px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 28px 16px 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 16px 24px;
  }

  .footer-link {
    font-size: 0.75rem;
  }

  .footer-bottom {
    font-size: 0.7rem;
    gap: 4px;
  }
}


.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 300px);
  padding: 40px 24px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.error-container h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  margin: 0 0 16px;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.4) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.04em;
  line-height: 1;
}

.error-container p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .error-container {
    padding: 30px 20px;
    min-height: calc(100vh - 250px);
  }

  .error-container h1 {
    font-size: 4rem;
  }

  .error-container p {
    font-size: 1rem;
  }
}

.error-container h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: white;
}


#toastContainer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 400px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(15, 15, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  transform: translateX(400px);
  opacity: 0;
  transition: all var(--duration-normal) var(--ease-out);
  animation: slideInRight var(--duration-normal) var(--ease-out);
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toast--success i {
  color: #22c55e;
}

.toast--error i {
  color: #ef4444;
}

@media (max-width: 768px) {
  #toastContainer {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }

  .toast {
    width: 100%;
  }
}


.role-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.role-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 12px 16px;
  padding-right: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  backdrop-filter: blur(10px);
}

.role-select-wrap select:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.role-select-wrap select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.role-select-wrap select option {
  background: #0a0a10;
  color: white;
  padding: 8px;
}

.role-select-wrap .select-chevron {
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.role-custom-input {
  display: none;
  margin-top: 12px;
}

.role-custom-input.show {
  display: block;
}


.confirm-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.confirm-modal.show {
  display: flex;
}

.confirm-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: -1;
}

.confirm-modal-content {
  max-width: 420px;
  width: 90%;
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalSlideIn var(--duration-normal) var(--ease-out);
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.95) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.confirm-modal-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  color: white;
}

.confirm-modal-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.confirm-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.confirm-modal-actions .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@media (max-width: 480px) {
  .confirm-modal-content {
    padding: 24px;
  }

  .confirm-modal-content h2 {
    font-size: 1.2rem;
  }

  .confirm-modal-actions {
    flex-direction: column;
  }
}


.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.role-tile {
  position: relative;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.role-tile:hover {
  transform: translateY(-8px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--glass-border-hover);
}

.role-tile--inactive {
  opacity: 0.6;
  cursor: not-allowed;
}

.role-tile--inactive:hover {
  transform: none;
}

.role-tile--pending {
  border-color: var(--status-pending);
  box-shadow: 0 0 20px rgba(241, 196, 15, 0.1);
}

.role-icon {
  width: 64px;
  height: 64px;
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent-primary);
  margin-bottom: 8px;
  transition: all var(--duration-normal) var(--ease-out);
}

.role-tile:hover .role-icon {
  background: var(--accent-primary);
  color: var(--bg-primary);
  transform: scale(1.1) rotate(5deg);
}

.role-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.role-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.role-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.role-status--active {
  background: var(--status-active-bg);
  color: var(--status-active);
  border: 1px solid var(--status-active-border);
}

.role-status--inactive {
  background: var(--status-inactive-bg);
  color: var(--status-inactive);
  border: 1px solid var(--status-inactive-border);
}

.role-status--pending {
  background: rgba(241, 196, 15, 0.1);
  color: var(--status-pending);
  border: 1px solid rgba(241, 196, 15, 0.2);
}

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