/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
@layer properties;
.relative {
  position: relative;
}
.block {
  display: block;
}
.hidden {
  display: none;
}
.inline {
  display: inline;
}
.inline-block {
  display: inline-block;
}
.overflow-hidden {
  overflow: hidden;
}
.border {
  border-style: var(--tw-border-style);
  border-width: 1px;
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@layer base {
  :root {
    --background: 240 10% 4%;
    --foreground: 0 0% 98%;
    --card: 240 10% 6%;
    --card-foreground: 0 0% 98%;
    --popover: 240 10% 6%;
    --popover-foreground: 0 0% 98%;
    --primary: 235 86% 65%;
    --primary-foreground: 0 0% 100%;
    --secondary: 240 5% 15%;
    --secondary-foreground: 0 0% 98%;
    --muted: 240 5% 18%;
    --muted-foreground: 240 5% 65%;
    --accent: 235 86% 65%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 72% 51%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 5% 18%;
    --input: 240 5% 12%;
    --ring: 235 86% 65%;
    --radius: 0.75rem;
    --gradient-primary: linear-gradient(135deg, hsl(235 86% 65%) 0%, hsl(280 70% 55%) 100%);
    --gradient-surface: linear-gradient(180deg, hsl(240 10% 8%) 0%, hsl(240 10% 5%) 100%);
    --gradient-glow: radial-gradient(ellipse at 50% 0%, hsl(235 86% 65% / 0.15) 0%, transparent 60%);
    --shadow-glow: 0 0 40px hsl(235 86% 65% / 0.2);
    --shadow-card: 0 4px 24px hsl(0 0% 0% / 0.3), 0 1px 2px hsl(0 0% 0% / 0.2);
  }
  *, ::before, ::after {
    box-sizing: border-box;
  }
  hr {
    border-color: hsl(var(--border));
  }
  body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: hsl(var(--foreground));
    background: hsl(var(--background));
  }
  svg {
    width: 1em;
    height: 1em;
    flex: none;
  }
  button svg {
    width: 1rem;
    height: 1rem;
  }
  img, svg, video, canvas {
    max-width: 100%;
    height: auto;
  }
}
@layer components {
  .glass-card {
    background: hsl(var(--card) / 0.8);
    border: 1px solid hsl(var(--border) / 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--shadow-card);
  }
  .input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--input));
    color: hsl(var(--foreground));
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    outline: none;
  }
  .input-field::placeholder {
    color: hsl(var(--muted-foreground));
  }
  .input-field:focus {
    border-color: hsl(var(--primary) / 0.5);
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.5);
  }
  .btn-primary {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    color: hsl(var(--primary-foreground));
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  }
  .btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
  }
  .btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.5), var(--shadow-glow);
  }
  .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  .error-alert {
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--destructive) / 0.3);
    background: hsl(var(--destructive) / 0.1);
    color: rgb(254 202 202);
  }
  .glow-effect {
    position: relative;
  }
  .glow-effect::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--gradient-primary);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(8px);
  }
  .glow-effect:focus-within::before {
    opacity: 0.4;
  }
  .setup-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: hsl(var(--background));
  }
  .setup-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    position: relative;
    z-index: 10;
  }
  .setup-header {
    text-align: center;
    margin-bottom: 2rem;
  }
  .setup-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: hsl(var(--primary) / 0.10);
    border: 1px solid hsl(var(--primary) / 0.20);
  }
  .setup-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
  }
  .setup-subtitle {
    color: hsl(var(--muted-foreground));
    max-width: 520px;
    margin: 0 auto;
    font-size: 0.95rem;
  }
  .setup-card {
    width: 100%;
    max-width: 640px;
    border-radius: 16px;
    padding: 2rem;
  }
  .setup-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    background: hsl(var(--primary) / 0.10);
    border: 1px solid hsl(var(--primary) / 0.20);
    color: hsl(var(--primary));
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
  }
  .setup-form {
    display: grid;
    gap: 1.25rem;
  }
  .setup-field {
    display: grid;
    gap: 0.5rem;
  }
  .setup-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
  }
  .setup-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  @media (min-width: 768px) {
    .setup-row {
      grid-template-columns: 1fr 1fr;
    }
  }
  .setup-note {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border));
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
  }
  .setup-footer {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
  }
  .bg-glow-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center, hsl(235 86% 65% / 0.12), transparent 70%);
    pointer-events: none;
  }
  .bg-glow-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse at center, hsl(280 70% 55% / 0.08), transparent 70%);
    pointer-events: none;
  }
  .icon-14 {
    width: 14px;
    height: 14px;
  }
  .icon-16 {
    width: 16px;
    height: 16px;
  }
  .icon-20 {
    width: 20px;
    height: 20px;
  }
  .dash-shell {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  .dash-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  .dash-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
  }
  .dash-subtitle {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
  }
  .dash-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  @media (min-width: 900px) {
    .dash-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
  .card-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
  }
  .pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card) / 0.35);
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    font-weight: 600;
  }
  .status-pill {
    color: hsl(var(--foreground));
    border-color: hsl(var(--border) / 0.8);
  }
  .status-online {
    background: hsl(142 71% 45% / 0.15);
    border-color: hsl(142 71% 45% / 0.35);
  }
  .status-offline {
    background: hsl(0 72% 51% / 0.12);
    border-color: hsl(0 72% 51% / 0.30);
  }
  .warn-box {
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid hsl(45 93% 47% / 0.35);
    background: hsl(45 93% 47% / 0.10);
    color: hsl(48 96% 89%);
  }
  .btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
  }
  .btn-secondary {
    padding: 0.75rem 1.1rem;
    border-radius: 0.75rem;
    font-weight: 700;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card) / 0.35);
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  }
  .btn-secondary:hover {
    background: hsl(var(--card) / 0.55);
    transform: translateY(-1px);
  }
  .btn-danger {
    padding: 0.75rem 1.1rem;
    border-radius: 0.75rem;
    font-weight: 700;
    border: 1px solid hsl(0 72% 51% / 0.35);
    background: hsl(0 72% 51% / 0.12);
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  }
  .btn-danger:hover {
    background: hsl(0 72% 51% / 0.18);
    transform: translateY(-1px);
  }
  .list {
    margin: 0;
    padding-left: 1.25rem;
    color: hsl(var(--foreground));
  }
  .list li {
    margin: 0.5rem 0;
    color: hsl(var(--muted-foreground));
  }
  .app-frame {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: hsl(var(--background));
  }
  .app-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1rem;
  }
  .topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: hsl(var(--card) / 0.6);
    border: 1px solid hsl(var(--border) / 0.5);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 220px;
  }
  .brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: hsl(var(--primary) / 0.10);
    border: 1px solid hsl(var(--primary) / 0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
  }
  .brand-title {
    font-weight: 800;
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.1;
  }
  .brand-sub {
    font-size: 0.78rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.2rem;
  }
  .nav-pills {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card) / 0.35);
    color: hsl(var(--foreground));
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  }
  .nav-pill:hover {
    background: hsl(var(--card) / 0.55);
    transform: translateY(-1px);
  }
  .nav-pill.active {
    border-color: hsl(var(--primary) / 0.35);
    background: hsl(var(--primary) / 0.12);
    box-shadow: var(--shadow-glow);
  }
  .nav-pill.logout {
    border-color: hsl(0 72% 51% / 0.30);
    background: hsl(0 72% 51% / 0.10);
  }
  .nav-pill.logout:hover {
    background: hsl(0 72% 51% / 0.16);
  }
  .app-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2.5rem;
    position: relative;
    z-index: 10;
  }
  .app-footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem 1.5rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.8rem;
  }
  .page-head {
    margin-bottom: 1.25rem;
  }
  .page-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
  }
  .page-desc {
    margin-top: 0.35rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.9rem;
  }
  .form-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  @media (min-width: 900px) {
    .form-grid-3 {
      grid-template-columns: 1fr 1fr 1fr;
    }
  }
  .hint {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: hsl(var(--muted-foreground));
  }
  .toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card) / 0.35);
  }
  .toggle-meta {
    display: grid;
    gap: 0.15rem;
  }
  .toggle-title {
    font-weight: 800;
    font-size: 0.95rem;
  }
  .toggle-sub {
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
  }
  .switch {
    position: relative;
    width: 52px;
    height: 30px;
    display: inline-block;
  }
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: hsl(var(--border));
    border-radius: 999px;
    transition: 0.2s ease;
  }
  .slider:before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 4px;
    top: 4px;
    background: hsl(var(--foreground));
    border-radius: 999px;
    transition: 0.2s ease;
  }
  .switch input:checked+.slider {
    background: hsl(var(--primary) / 0.55);
    box-shadow: var(--shadow-glow);
  }
  .switch input:checked+.slider:before {
    transform: translateX(22px);
  }
  .form-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
  }
  .success-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid hsl(142 71% 45% / 0.35);
    background: hsl(142 71% 45% / 0.12);
    color: hsl(var(--foreground));
    font-size: 0.8rem;
    font-weight: 700;
  }
  .page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
  }
  .page-header {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }
  .page-title {
    font-size: 28px;
    font-weight: 800;
  }
  .page-subtitle {
    color: hsl(var(--muted-foreground));
    margin-top: 6px;
  }
  .page-actions {
    display: flex;
    gap: 10px;
  }
  .card {
    padding: 18px;
    border-radius: 16px;
  }
  .btn-secondary {
    padding: 10px 14px;
    border-radius: 12px;
    background: hsl(var(--secondary));
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .btn-secondary:hover {
    filter: brightness(1.1);
  }
  .form-row {
    display: flex;
    gap: 14px;
    align-items: end;
  }
  .field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
  }
  .label {
    font-size: 13px;
    font-weight: 600;
    color: hsl(var(--foreground));
  }
  .hint {
    font-size: 12px;
    color: hsl(var(--muted-foreground));
  }
  .roles-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .roles-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  @media (min-width: 900px) {
    .roles-list {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  .role-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card) / 0.45);
  }
  .role-item input {
    width: 16px;
    height: 16px;
  }
  .role-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
  }
  .role-name {
    font-size: 13px;
    font-weight: 600;
  }
  .actions {
    display: flex;
    justify-content: flex-end;
  }
  .divider {
    height: 1px;
    background: hsl(var(--border));
    margin: 16px 0;
    opacity: 0.6;
  }
  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .chip {
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card) / 0.55);
    color: hsl(var(--foreground));
    padding: 8px 10px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .chip:hover {
    filter: brightness(1.1);
  }
  .chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
  }
  .table {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .table-head, .table-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 2fr;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
  }
  .table-head {
    background: hsl(var(--card) / 0.4);
    font-weight: 700;
  }
  .table-row {
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card) / 0.25);
  }
  .mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
  }
  .dash-top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
  }
  .nav-pill {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card) / 0.35);
    color: hsl(var(--foreground));
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: filter .15s ease, transform .15s ease;
  }
  .nav-pill:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
  }
  .nav-pill-active {
    border-color: hsl(var(--primary) / 0.55);
    background: hsl(var(--primary) / 0.12);
  }
  .nav-pill-danger {
    border-color: hsl(0 72% 51% / 0.45);
    background: hsl(0 72% 51% / 0.10);
  }
  .module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
  }
  @media (min-width: 900px) {
    .module-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  .module-card {
    display: block;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card) / 0.28);
    text-decoration: none;
    color: hsl(var(--foreground));
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
  }
  .module-card:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
  }
  .module-card-title {
    font-weight: 800;
    font-size: 13px;
  }
  .module-card-sub {
    margin-top: 6px;
    font-size: 12px;
    color: hsl(var(--muted-foreground));
  }
  .module-card-danger {
    border-color: hsl(0 72% 51% / 0.35);
    background: hsl(0 72% 51% / 0.07);
  }
  .module-card-muted {
    opacity: 0.75;
  }
  .form-label {
    display: block;
    font-size: 0.78rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.35rem;
  }
  .form-input, .form-select, .form-textarea {
    width: 100%;
    background: hsl(var(--background) / 0.35);
    border: 1px solid hsl(var(--border) / 0.45);
    color: hsl(var(--foreground));
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
    box-shadow: 0 0 0 1px hsl(var(--border) / 0.05);
  }
  .form-input::placeholder, .form-textarea::placeholder {
    color: hsl(var(--muted-foreground) / 0.75);
  }
  .form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: hsl(var(--primary) / 0.65);
    background: hsl(var(--background) / 0.55);
    box-shadow: 0 0 0 4px hsl(var(--primary) / 0.18);
  }
  .form-input:disabled, .form-select:disabled, .form-textarea:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }
  .form-input.sm, .form-select.sm {
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    font-size: 0.9rem;
  }
  .form-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    user-select: none;
    margin-top: 0.35rem;
  }
  .form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    accent-color: hsl(var(--primary));
  }
  .form-input[type="password"] {
    letter-spacing: 0.08em;
  }
  .form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  @media (min-width: 920px) {
    .form-grid {
      grid-template-columns: 1fr;
    }
  }
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .form-label {
    display: block;
    font-size: 0.78rem;
    color: hsl(var(--muted-foreground));
  }
  .form-input, .form-select, .form-textarea {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid hsl(var(--border) / 0.55);
    background: linear-gradient(180deg, hsl(var(--background) / 0.55), hsl(var(--background) / 0.35));
    color: hsl(var(--foreground));
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease, background 160ms ease;
    box-shadow: 0 0 0 1px hsl(var(--border) / 0.06), 0 10px 30px hsl(0 0% 0% / 0.22);
  }
  .form-textarea {
    min-height: 110px;
    padding: 10px 12px;
  }
  .form-input::placeholder, .form-textarea::placeholder {
    color: hsl(var(--muted-foreground) / 0.72);
  }
  .form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: hsl(var(--primary) / 0.75);
    box-shadow: 0 0 0 4px hsl(var(--primary) / 0.18), 0 10px 30px hsl(0 0% 0% / 0.22);
    background: linear-gradient(180deg, hsl(var(--background) / 0.65), hsl(var(--background) / 0.40));
  }
  .form-input:active {
    transform: translateY(0.5px);
  }
  .form-input[type="password"] {
    letter-spacing: 0.08em;
  }
  .form-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    user-select: none;
    margin-top: 4px;
  }
  .table-modern {
    display: grid;
    gap: 10px;
  }
  .table-modern-head {
    display: grid;
    grid-template-columns: 1.4fr 0.55fr 0.55fr 0.9fr;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: hsl(var(--muted-foreground));
    font-size: 0.85rem;
  }
  .table-modern-head .th-actions {
    text-align: right;
  }
  .table-modern-row {
    display: grid;
    grid-template-columns: 1.4fr 0.55fr 0.55fr 0.9fr;
    gap: 10px;
    align-items: center;
    padding: 14px 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
  }
  .table-modern-row:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.34);
  }
  .td-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
  }
  .td-streamer .streamer-title {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
  }
  .streamer-name {
    font-weight: 800;
    letter-spacing: 0.2px;
  }
  .streamer-sub {
    margin-top: 4px;
  }
  .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    color: hsl(var(--foreground));
  }
  .chip-muted {
    background: rgba(255, 255, 255, 0.03);
    color: hsl(var(--muted-foreground));
  }
  .chip-platform {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.6px;
  }
  .chip-role {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.25);
  }
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
  .badge-on {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.25);
  }
  .badge-off {
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.22);
  }
  .btn-sm {
    padding: 0.55rem 0.9rem !important;
    font-size: 0.9rem !important;
    border-radius: 12px !important;
  }
  .roles-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
  }
  .dbonly-row {
    grid-template-columns: 1.25fr 0.8fr 1.2fr;
  }
  .dbonly-row .td-actions {
    display: none;
  }
  @media (max-width: 900px) {
    .table-modern-head {
      display: none;
    }
    .table-modern-row {
      grid-template-columns: 1fr;
      gap: 12px;
    }
    .td-actions {
      justify-content: flex-start;
    }
    .dbonly-row {
      grid-template-columns: 1fr;
    }
  }
  .form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    accent-color: hsl(var(--primary));
  }
  .role-chip-form {
    display: inline-block;
    margin: 0;
  }
  .chip-role-btn {
    cursor: pointer;
    gap: 10px;
    padding-right: 10px;
  }
  .chip-role-btn .role-remove {
    opacity: 0.7;
    font-weight: 900;
  }
  .chip-role-btn:hover {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.10);
  }
  .chip-role-btn:hover .role-remove {
    opacity: 1;
  }
}
@layer utilities {
  .animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
  }
  .animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
  }
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .bg-grid-pattern {
    background-image: linear-gradient(hsl(var(--border) / 0.3) 1px, transparent 1px), linear-gradient(90deg, hsl(var(--border) / 0.3) 1px, transparent 1px);
    background-size: 40px 40px;
  }
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-border-style: solid;
    }
  }
}
