
    :root {
      --bg: #050810;
      --surface: #0c1020;
      --surface-2: #111828;
      --border: rgba(255,255,255,0.07);
      --border-bright: rgba(255,255,255,0.15);
      --ink: #e8eeff;
      --ink-2: #7a8ab8;
      --ink-3: #4a5580;
      --brand: #4f8eff;
      --brand-glow: rgba(79,142,255,0.25);
      --green: #22d3a0;
      --green-glow: rgba(34,211,160,0.2);
      --purple: #a78bfa;
      --red: #f87171;
      --radius-sm: 8px;
      --radius: 14px;
      --radius-lg: 20px;
    }

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

    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--bg);
      color: var(--ink);
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* Ambient background */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background:
        radial-gradient(ellipse 900px 600px at 10% 0%, rgba(79,142,255,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 700px 500px at 90% 10%, rgba(167,139,250,0.08) 0%, transparent 55%),
        radial-gradient(ellipse 800px 400px at 50% 100%, rgba(34,211,160,0.07) 0%, transparent 60%);
      pointer-events: none;
      z-index: 0;
    }

    .shell {
      position: relative;
      z-index: 1;
      max-width: 1300px;
      margin: 0 auto;
      padding: 24px 20px 40px;
    }

    /* -- TOP BAR -- */
    .topbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      padding: 0 0 28px;
      border-bottom: 1px solid var(--border);
      margin-bottom: 28px;
    }

    .logo-area {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .logo-icon {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: linear-gradient(135deg, var(--brand), #7c5fe6);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      box-shadow: 0 0 20px var(--brand-glow);
      flex-shrink: 0;
      overflow: hidden;
      color: #fff;
      font-weight: 700;
    }
    .logo-icon img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .topbar h1 {
      font-family: 'Syne', sans-serif;
      font-size: 20px;
      font-weight: 800;
      letter-spacing: -0.3px;
      color: var(--ink);
    }

    .topbar p {
      font-size: 13px;
      color: var(--ink-3);
      margin-top: 1px;
    }

    .topbar-right {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    /* -- BUTTONS -- */
    .btn {
      border: none;
      border-radius: var(--radius-sm);
      padding: 9px 16px;
      font-family: 'DM Sans', sans-serif;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
    }

    .btn-primary {
      background: var(--brand);
      color: #fff;
      box-shadow: 0 0 0 1px rgba(79,142,255,0.3), 0 4px 14px rgba(79,142,255,0.3);
    }
    .btn-primary:hover { background: #6ba3ff; box-shadow: 0 0 0 1px rgba(107,163,255,0.4), 0 6px 20px rgba(79,142,255,0.4); transform: translateY(-1px); }

    .btn-ghost {
      background: var(--surface-2);
      color: var(--ink-2);
      border: 1px solid var(--border);
    }
    .btn-ghost:hover { border-color: var(--border-bright); color: var(--ink); }

    .btn-danger {
      background: rgba(248,113,113,0.1);
      color: var(--red);
      border: 1px solid rgba(248,113,113,0.2);
    }
    .btn-danger:hover { background: rgba(248,113,113,0.2); }

    .btn-sm {
      padding: 6px 10px;
      font-size: 12px;
      border-radius: 6px;
    }

    /* -- USER TAG -- */
    .user-tag {
      display: flex;
      align-items: center;
      gap: 8px;
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 5px 12px 5px 6px;
      font-size: 13px;
      font-weight: 500;
    }

    .user-avatar {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--brand), var(--purple));
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 700;
      color: white;
      overflow: hidden;
      flex-shrink: 0;
    }
    .user-avatar img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }

    /* -- STATS -- */
    .stats-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-bottom: 28px;
    }

    .stat-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 18px 20px;
      position: relative;
      overflow: hidden;
      transition: border-color 0.2s ease;
    }

    .stat-card:hover { border-color: var(--border-bright); }

    .stat-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent);
      pointer-events: none;
    }

    .stat-card:nth-child(1) .stat-glow { background: var(--brand-glow); }
    .stat-card:nth-child(2) .stat-glow { background: rgba(167,139,250,0.2); }
    .stat-card:nth-child(3) .stat-glow { background: var(--green-glow); }

    .stat-glow {
      position: absolute;
      width: 80px;
      height: 80px;
      border-radius: 50%;
      right: 16px;
      top: 50%;
      transform: translateY(-50%);
      filter: blur(30px);
      pointer-events: none;
    }

    .stat-label {
      font-size: 12px;
      color: var(--ink-3);
      text-transform: uppercase;
      letter-spacing: 0.8px;
      font-weight: 500;
      margin-bottom: 10px;
    }

    .stat-value {
      font-family: 'Syne', sans-serif;
      font-size: 38px;
      font-weight: 800;
      line-height: 1;
      color: var(--ink);
    }

    .stat-card:nth-child(1) .stat-value { color: #7ab4ff; }
    .stat-card:nth-child(2) .stat-value { color: #c4b5fd; }
    .stat-card:nth-child(3) .stat-value { color: #6ee7c7; }

    /* -- LAYOUT -- */
    .layout {
      display: grid;
      grid-template-columns: 200px 1fr;
      gap: 16px;
    }

    /* -- NAV -- */
    .nav-panel {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 10px;
      align-self: start;
      position: sticky;
      top: 24px;
    }

    .nav-label {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--ink-3);
      padding: 4px 10px 10px;
      font-weight: 500;
    }

    .nav-btn {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      text-align: left;
      border: none;
      border-radius: var(--radius-sm);
      background: transparent;
      color: var(--ink-2);
      font-family: 'DM Sans', sans-serif;
      font-size: 13.5px;
      font-weight: 500;
      padding: 10px 12px;
      cursor: pointer;
      transition: all 0.15s ease;
      margin-bottom: 2px;
    }

    .nav-btn .nav-icon {
      width: 28px;
      height: 28px;
      border-radius: 6px;
      background: var(--surface-2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      flex-shrink: 0;
      transition: all 0.15s ease;
    }

    .nav-btn:hover { color: var(--ink); background: rgba(255,255,255,0.04); }
    .nav-btn:hover .nav-icon { background: rgba(79,142,255,0.15); }

    .nav-btn.active {
      color: var(--ink);
      background: rgba(79,142,255,0.1);
      border: 1px solid rgba(79,142,255,0.15);
    }

    .nav-btn.active .nav-icon {
      background: rgba(79,142,255,0.2);
    }

    /* -- MAIN PANEL -- */
    .main-panel {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 24px;
    }

    .section { display: none; }
    .section.active { display: block; }

    .section-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }

    .section-head h2 {
      font-family: 'Syne', sans-serif;
      font-size: 18px;
      font-weight: 700;
      letter-spacing: -0.2px;
    }

    /* -- ITEM LIST -- */
    .item-list {
      display: grid;
      gap: 8px;
      max-height: 420px;
      overflow-y: auto;
      padding-right: 2px;
      margin-bottom: 16px;
    }

    .item-list::-webkit-scrollbar { width: 4px; }
    .item-list::-webkit-scrollbar-track { background: transparent; }
    .item-list::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 999px; }

    .item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      transition: all 0.15s ease;
    }

    .item:hover { border-color: var(--border-bright); background: #141d30; }

    .item-name {
      font-size: 14px;
      font-weight: 500;
      color: var(--ink);
    }

    .item-meta {
      font-size: 12px;
      color: var(--ink-3);
      margin-top: 3px;
    }

    .item-actions {
      display: flex;
      gap: 6px;
      flex-shrink: 0;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      font-weight: 500;
      padding: 3px 8px;
      border-radius: 999px;
    }

    .badge-green { background: rgba(34,211,160,0.1); color: var(--green); border: 1px solid rgba(34,211,160,0.2); }
    .badge-red { background: rgba(248,113,113,0.1); color: var(--red); border: 1px solid rgba(248,113,113,0.2); }

    /* -- HINT -- */
    .hint {
      font-size: 12.5px;
      color: var(--ink-3);
      background: rgba(255,255,255,0.02);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 10px 14px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .hint::before { content: ''; font-size: 14px; flex-shrink: 0; }

    /* -- SUBMISSION ROW -- */
    .submission-row {
      padding: 14px 16px;
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      margin-bottom: 8px;
      transition: border-color 0.15s ease;
    }
    .command-guild-block {
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      background: rgba(255,255,255,0.02);
      padding: 12px;
      margin-bottom: 12px;
    }
    .command-guild-title {
      font-family: 'Syne', sans-serif;
      font-size: 14px;
      margin-bottom: 8px;
      color: var(--ink);
    }

    .submission-row:hover { border-color: var(--border-bright); }

    .embed-builder {
      display: grid;
      grid-template-columns: 1fr 360px;
      gap: 16px;
    }
    .embed-editor {
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 14px;
    }
    .embed-preview {
      background: #202225;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 12px;
      padding: 14px;
    }
    .discord-embed {
      background: #2f3136;
      border-left: 4px solid #5865f2;
      border-radius: 4px;
      padding: 12px;
      color: #dcddde;
      font-size: 14px;
      line-height: 1.4;
      min-height: 90px;
    }
    .discord-embed-title {
      color: #fff;
      font-weight: 700;
      margin-bottom: 8px;
    }
    .discord-embed-author {
      color: #fff;
      font-size: 12px;
      font-weight: 600;
      margin-bottom: 8px;
      opacity: 0.95;
    }
    .discord-embed-description {
      white-space: pre-wrap;
      word-break: break-word;
    }
    .discord-embed-media {
      margin-top: 10px;
      display: grid;
      grid-template-columns: 1fr 70px;
      gap: 8px;
      align-items: start;
    }
    .discord-embed-media img {
      width: 100%;
      border-radius: 6px;
      border: 1px solid rgba(255,255,255,0.1);
      display: block;
      object-fit: cover;
      background: rgba(255,255,255,0.03);
    }
    .discord-embed-media .thumb {
      width: 70px;
      height: 70px;
    }
    .discord-embed-footer {
      margin-top: 10px;
      color: #b9bbbe;
      font-size: 12px;
    }
    .embed-actions-row {
      margin-top: 12px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    /* -- LOGIN BOX -- */
    .login-box {
      max-width: 480px;
      margin: 100px auto;
      text-align: center;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 40px 36px;
      position: relative;
      z-index: 1;
    }

    .login-box::before {
      content: '';
      position: absolute;
      inset: -1px;
      border-radius: var(--radius-lg);
      background: linear-gradient(135deg, rgba(79,142,255,0.2), rgba(167,139,250,0.1), transparent);
      z-index: -1;
      pointer-events: none;
    }

    .login-logo {
      width: 60px;
      height: 60px;
      border-radius: 16px;
      background: linear-gradient(135deg, var(--brand), #7c5fe6);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      margin: 0 auto 20px;
      box-shadow: 0 0 40px var(--brand-glow);
      overflow: hidden;
      color: #fff;
      font-weight: 700;
    }
    .login-logo img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }

    .login-box h2 {
      font-family: 'Syne', sans-serif;
      font-size: 24px;
      font-weight: 800;
      margin-bottom: 8px;
    }

    .login-box p {
      color: var(--ink-2);
      font-size: 14px;
      margin-bottom: 28px;
      line-height: 1.6;
    }

    .guild-picker {
      max-width: 960px;
      margin: 36px auto;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 28px;
      position: relative;
      z-index: 1;
    }
    .guild-picker-topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 18px;
    }
    .guild-picker h2 {
      font-family: 'Syne', sans-serif;
      font-size: 22px;
      margin-bottom: 8px;
    }
    .guild-picker p {
      color: var(--ink-2);
      margin-bottom: 16px;
      font-size: 14px;
    }
    .guild-picker-notice {
      margin-bottom: 14px;
      border: 1px solid rgba(245, 158, 11, 0.28);
      background: rgba(245, 158, 11, 0.08);
      color: #f8d58b;
      border-radius: 12px;
      padding: 12px 14px;
      font-size: 14px;
      line-height: 1.45;
    }
    .guild-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 10px;
      margin-top: 12px;
    }
    .guild-card {
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      height: 100%;
      min-height: 120px;
      max-height: 120px;
      cursor: pointer;
      transition: all 0.15s ease;
      color: #fff;
      font-weight: 600;
    }
    .guild-card:hover {
      border-color: var(--border-bright);
      transform: translateY(-1px);
    }
    .guild-card.active {
      border-color: rgba(79,142,255,0.45);
      box-shadow: 0 0 0 2px rgba(79,142,255,0.15);
    }
    .guild-card.unavailable {
      border-color: rgba(160, 167, 184, 0.35);
      background: rgba(148, 163, 184, 0.12);
      color: #c7cfdf;
      filter: grayscale(0.35);
    }
    .guild-card.unavailable:hover {
      border-color: rgba(160, 167, 184, 0.45);
      transform: none;
    }
    .guild-card.no-admin {
      border-color: rgba(245, 158, 11, 0.28);
      background: rgba(245, 158, 11, 0.08);
      color: #f8d58b;
    }
    .guild-card.no-admin:hover {
      border-color: rgba(245, 158, 11, 0.4);
      transform: none;
    }
    .guild-meta {
      display: grid;
      gap: 2px;
      flex: 1;
      min-width: 0;
    }
    .guild-name {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: 100%;
    }
    .guild-card-main {
      padding: 12px;
      display: grid;
      grid-template-columns: 34px 1fr;
      align-items: start;
      column-gap: 10px;
      flex: 1;
    }
    .guild-status {
      font-size: 11px;
      color: var(--ink-3);
      font-weight: 500;
    }
    .guild-card.unavailable .guild-status {
      color: #fca5a5;
    }
    .guild-card.no-admin .guild-status {
      color: #f8d58b;
    }
    .guild-actions {
      display: flex;
      width: 100%;
      border-top: 1px solid var(--border);
      align-items: stretch;
      min-height: 44px;
      height: 44px;
    }
    .guild-actions .btn {
      display: flex;
      align-items: center;
      width: 100%;
      justify-content: center;
      border-radius: 0;
      border: 0 !important;
      min-height: 44px;
      height: 44px;
      margin: 0;
      box-shadow: none;
      transform: none;
      padding: 0 12px;
      line-height: 1;
      transition: background 0.15s ease, color 0.15s ease;
    }
    .guild-actions .btn:hover {
      transform: none;
      box-shadow: none;
    }
    .guild-actions .btn.btn-primary {
      background: rgba(79,142,255,0.95);
      color: #fff;
    }
    .guild-actions .btn.btn-primary:hover {
      background: #6ba3ff;
    }
    .guild-actions .btn.btn-ghost {
      background: rgba(148, 163, 184, 0.22);
      color: #d7dcea;
    }
    .guild-actions .btn.btn-ghost:hover {
      background: rgba(148, 163, 184, 0.28);
      color: #eef2ff;
    }
    .guild-avatar {
      width: 34px;
      height: 34px;
      border-radius: 8px;
      overflow: hidden;
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, var(--brand), #7c5fe6);
      color: #fff;
      font-weight: 700;
      font-size: 13px;
    }
    .guild-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    /* -- MODAL -- */
    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(5,8,16,0.8);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      z-index: 100;
      backdrop-filter: blur(8px);
    }

    .modal {
      width: min(780px, 100%);
      max-height: 90vh;
      overflow-y: auto;
      background: var(--surface);
      border: 1px solid var(--border-bright);
      border-radius: var(--radius-lg);
      box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
      padding: 24px;
    }

    .modal::-webkit-scrollbar { width: 4px; }
    .modal::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 999px; }

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

    .modal-head h2 {
      font-family: 'Syne', sans-serif;
      font-size: 17px;
      font-weight: 700;
    }

    .modal-head-actions {
      display: flex;
      gap: 8px;
    }

    /* -- FORM ELEMENTS -- */
    .form-section {
      padding: 20px 0;
      border-top: 1px solid var(--border);
    }

    .form-section:first-child { border-top: none; padding-top: 0; }

    .form-section-title {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--ink-3);
      font-weight: 600;
      margin-bottom: 14px;
    }

    .grid-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    label {
      display: grid;
      gap: 6px;
      font-size: 12.5px;
      color: var(--ink-2);
      font-weight: 500;
    }

    input, textarea, select {
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      background: var(--surface-2);
      color: var(--ink);
      padding: 10px 12px;
      font-family: 'DM Sans', sans-serif;
      font-size: 13.5px;
      width: 100%;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
      appearance: none;
    }

    input:focus, textarea:focus, select:focus {
      outline: none;
      border-color: rgba(79,142,255,0.5);
      box-shadow: 0 0 0 3px rgba(79,142,255,0.1);
    }

    input::placeholder, textarea::placeholder { color: var(--ink-3); }
    textarea { min-height: 88px; resize: vertical; }

    select {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8ab8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      padding-right: 36px;
    }

    /* -- QUESTION CARD -- */
    .question-card {
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 14px;
      margin-bottom: 8px;
    }

    .question-card-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
    }

    .question-num {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      color: var(--ink-3);
      font-weight: 600;
    }

    /* -- CHIPS -- */
    .selected-list {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 6px;
    }

    .selected-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(79,142,255,0.1);
      border: 1px solid rgba(79,142,255,0.2);
      border-radius: 999px;
      padding: 5px 10px 5px 10px;
      font-size: 12px;
      color: #90b8ff;
      font-weight: 500;
    }

    .chip-remove {
      border: none;
      background: transparent;
      cursor: pointer;
      color: #90b8ff;
      font-size: 14px;
      line-height: 1;
      opacity: 0.6;
      transition: opacity 0.15s;
      padding: 0;
      display: flex;
      align-items: center;
    }

    .chip-remove:hover { opacity: 1; }

    /* -- RESPONSIVE -- */
    @media (max-width: 900px) {
      .layout { grid-template-columns: 1fr; }
      .nav-panel { position: static; }
      .nav-btn { display: inline-flex; width: auto; }
      .stats-row { grid-template-columns: 1fr; }
      .grid-2 { grid-template-columns: 1fr; }
      .embed-builder { grid-template-columns: 1fr; }
    }

    /* Animations */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(12px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .stats-row, .layout {
      animation: fadeUp 0.4s ease both;
    }

    .layout { animation-delay: 0.05s; }

    .item {
      animation: fadeUp 0.3s ease both;
    }
    .site-footer-note {
      margin-top: 16px;
      text-align: center;
      color: var(--ink-3);
      font-size: 12px;
      letter-spacing: 0.4px;
    }
  
