/* Extracted from account.html. Loaded in the same position the inline
   <style> occupied, so the cascade is unchanged. */
    * { margin: 0; padding: 0; box-sizing: border-box; }
    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background: #000;
      color: #fff;
      min-height: 100vh;
    }
    .page-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      max-width: none;
      margin: 80px 0 40px;
    }

    #accountContent {
      width: 100%;
      max-width: 800px;
      padding: 0 20px;
    }
    .page-title {
      font-size: 28px;
      color: #87CEEB;
      margin-bottom: 32px;
    }

    .card {
      background: rgba(135,206,235,0.03);
      border: 1px solid rgba(135,206,235,0.15);
      border-radius: 16px;
      padding: 24px;
      margin-bottom: 24px;
    }
    .card-title {
      font-size: 18px;
      color: #87CEEB;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .card-title svg { width: 22px; height: 22px; fill: #87CEEB; }

    .profile-header {
      display: flex;
      align-items: center;
      gap: 20px;
    }
    .profile-avatar {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      border: 3px solid rgba(135,206,235,0.3);
      object-fit: cover;
      background: rgba(135,206,235,0.1);
    }
    .profile-avatar-placeholder {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      border: 3px solid rgba(135,206,235,0.3);
      background: rgba(135,206,235,0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 32px;
      color: #87CEEB;
    }
    .profile-details h3 {
      font-size: 20px;
      color: #fff;
      margin-bottom: 4px;
    }
    .profile-details .discord-tag {
      color: rgba(135,206,235,0.6);
      font-size: 14px;
    }

    .membership-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 13px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-top: 8px;
    }
    .badge-free {
      background: rgba(100,100,100,0.2);
      border: 1px solid rgba(100,100,100,0.4);
      color: #999;
    }
    .badge-ad-free {
      background: rgba(74,222,128,0.15);
      border: 1px solid rgba(74,222,128,0.4);
      color: #4ade80;
    }
    .badge-basic {
      background: rgba(88,101,242,0.15);
      border: 1px solid rgba(88,101,242,0.4);
      color: #5865F2;
    }
    .badge-premium {
      background: rgba(255,185,0,0.15);
      border: 1px solid rgba(255,185,0,0.4);
      color: #FFB900;
    }
    /* Unlisted tiers. Not offered anywhere — you either hold the role or you
       never see these. */
    .badge-developer {
      background: rgba(167,139,250,0.15);
      border: 1px solid rgba(167,139,250,0.45);
      color: #a78bfa;
    }
    .badge-owner {
      background: linear-gradient(135deg, rgba(244,114,182,0.18), rgba(167,139,250,0.18));
      border: 1px solid rgba(244,114,182,0.5);
      color: #f472b6;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 16px;
    }
    .stat-box {
      background: rgba(135,206,235,0.05);
      border: 1px solid rgba(135,206,235,0.1);
      border-radius: 12px;
      padding: 16px;
      text-align: center;
    }
    .stat-value {
      font-size: 28px;
      font-weight: 700;
      color: #87CEEB;
      margin-bottom: 4px;
    }
    .stat-label {
      font-size: 12px;
      color: rgba(135,206,235,0.6);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .plans-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 16px;
    }
    .plan-card {
      background: rgba(135,206,235,0.03);
      border: 1px solid rgba(135,206,235,0.15);
      border-radius: 12px;
      padding: 28px 24px 24px;
      text-align: center;
      transition: all 0.2s ease;
      position: relative;
      overflow: visible;
    }
    .plan-card .plan-overlay {
      position: absolute;
      inset: 0;
      background: rgba(5, 5, 15, 0.88);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s ease, visibility 0.2s ease;
      border-radius: 12px;
    }
    .plan-card:hover .plan-overlay {
      opacity: 1;
      visibility: visible;
    }
    .plan-card .plan-overlay .overlay-btn {
      padding: 10px 24px;
      background: linear-gradient(135deg, rgba(88,101,242,0.35), rgba(34,211,238,0.2));
      border: 1px solid rgba(88,101,242,0.5);
      border-radius: 10px;
      color: #a5b4fc;
      font-size: 14px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.2s ease;
      text-decoration: none;
      display: inline-block;
      min-width: 160px;
      text-align: center;
    }
    .plan-card .plan-overlay .overlay-btn:hover {
      background: linear-gradient(135deg, rgba(88,101,242,0.55), rgba(34,211,238,0.35));
      transform: translateY(-1px);
      box-shadow: 0 4px 16px rgba(88,101,242,0.25);
    }
    .plan-card .plan-overlay .overlay-label {
      color: rgba(135,206,235,0.6);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }
    .plan-card.current {
      border-color: rgba(135,206,235,0.5);
      background: rgba(135,206,235,0.08);
    }
    .plan-card.current::after {
      content: "CURRENT";
      position: absolute;
      top: -10px;
      left: 50%;
      transform: translateX(-50%);
      background: #87CEEB;
      color: #000;
      padding: 2px 12px;
      border-radius: 10px;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.5px;
    }
    .plan-name {
      font-size: 20px;
      font-weight: 700;
      margin-bottom: 8px;
    }
    .plan-name.free { color: #999; }
    .plan-name.ad-free { color: #4ade80; }
    .plan-name.basic { color: #5865F2; }
    .plan-name.premium { color: #FFB900; }
    .plan-perks {
      list-style: none;
      margin: 16px 0;
      text-align: left;
    }
    .plan-perks li {
      padding: 6px 0;
      font-size: 13px;
      color: rgba(255,255,255,0.7);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .plan-perks li .check {
      color: #4ade80;
      font-weight: bold;
    }
    .plan-perks li .cross {
      color: #f87171;
      font-weight: bold;
    }

    .sync-btn {
      background: rgba(135,206,235,0.15);
      border: 1px solid rgba(135,206,235,0.3);
      color: #87CEEB;
      padding: 10px 20px;
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
      font-family: inherit;
      transition: all 0.2s ease;
      margin-top: 12px;
    }
    .sync-btn:hover {
      background: rgba(135,206,235,0.25);
      border-color: rgba(135,206,235,0.5);
    }
    .sync-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
    .sync-msg {
      font-size: 13px;
      margin-top: 8px;
      min-height: 20px;
    }
    .sync-msg.success { color: #4ade80; }
    .sync-msg.error { color: #f87171; }

    .logout-btn-page {
      background: rgba(255,100,100,0.15);
      border: 1px solid rgba(255,100,100,0.3);
      color: #ff8888;
      padding: 10px 20px;
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
      font-family: inherit;
      transition: all 0.2s ease;
      width: 100%;
    }
    .logout-btn-page:hover {
      background: rgba(255,100,100,0.25);
    }

    .not-logged-in {
      text-align: center;
      padding: 80px 20px;
      color: rgba(135,206,235,0.6);
    }
    .not-logged-in h2 {
      color: #87CEEB;
      margin-bottom: 12px;
    }
    .not-logged-in a {
      color: #87CEEB;
      text-decoration: underline;
    }

    .progress-bar-bg {
      width: 100%;
      height: 8px;
      background: rgba(135,206,235,0.1);
      border-radius: 4px;
      overflow: hidden;
      margin-top: 8px;
    }
    .progress-bar-fill {
      height: 100%;
      border-radius: 4px;
      transition: width 0.3s ease;
    }
    .fill-green { background: #4ade80; }
    .fill-yellow { background: #facc15; }
    .fill-red { background: #f87171; }

    /* Login Modal */
    @keyframes modalFadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }
    @keyframes modalSlideUp {
      from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
    .auth-modal-overlay {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,8,32,0.92);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      z-index: 99999;
      align-items: center;
      justify-content: center;
    }
    .auth-modal-overlay.active {
      display: flex;
      animation: modalFadeIn 0.3s ease;
    }
    .auth-modal-overlay.active .auth-modal {
      animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .auth-modal {
      background: linear-gradient(160deg, #0d1117 0%, #0a0e1a 100%);
      border-radius: 20px;
      padding: 36px 32px 28px;
      width: 90%;
      max-width: 380px;
      border: 1px solid rgba(135,206,235,0.15);
      box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(135,206,235,0.05);
      position: relative;
    }
    .auth-modal h2 {
      color: #87CEEB;
      margin-bottom: 24px;
      text-align: center;
      font-size: 22px;
      font-weight: 600;
    }
    /* Appearance comes from .ol-input in ui.css; only spacing is local. */
    .auth-modal .auth-field { margin-bottom: 12px; }
    .auth-error {
      color: #ff6b6b;
      font-size: 13px;
      margin-bottom: 12px;
      text-align: center;
      min-height: 18px;
    }
    .auth-submit {
      width: 100%;
      padding: 13px;
      background: linear-gradient(135deg, rgba(135,206,235,0.2), rgba(88,101,242,0.15));
      border: 1px solid rgba(135,206,235,0.25);
      border-radius: 10px;
      color: #87CEEB;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      font-family: inherit;
      transition: all 0.2s ease;
      margin-bottom: 12px;
    }
    .auth-submit:hover {
      background: linear-gradient(135deg, rgba(135,206,235,0.3), rgba(88,101,242,0.25));
      transform: translateY(-1px);
      box-shadow: 0 4px 16px rgba(135,206,235,0.15);
    }
    .auth-submit:active {
      transform: translateY(0);
    }
    .discord-info {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      color: rgba(135,206,235,0.7);
      font-size: 13px;
      margin-bottom: 20px;
      padding: 14px 16px;
      background: rgba(88,101,242,0.08);
      border-radius: 10px;
      border: 1px solid rgba(88,101,242,0.18);
    }
    .discord-info svg {
      flex-shrink: 0;
    }
    .existing-user-toggle {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: rgba(135,206,235,0.5);
      font-size: 13px;
      margin-top: 14px;
    }
    .existing-user-toggle .toggle-link {
      color: #87CEEB;
      cursor: pointer;
      text-decoration: underline;
      transition: color 0.15s ease;
    }
    .existing-user-toggle .toggle-link:hover { color: #fff; }
    .auth-toggle {
      text-align: center;
      color: rgba(135,206,235,0.5);
      font-size: 13px;
      cursor: pointer;
      margin-top: 8px;
      transition: color 0.15s ease;
    }
    .auth-toggle:hover { color: #87CEEB; }
    .auth-skip {
      text-align: center;
      color: rgba(135,206,235,0.35);
      font-size: 12px;
      cursor: pointer;
      margin-top: 6px;
      text-decoration: underline;
      transition: color 0.15s ease;
    }
    .auth-skip:hover { color: rgba(135,206,235,0.6); }
    .auth-close {
      position: absolute;
      top: 14px;
      right: 14px;
      background: rgba(135,206,235,0.06);
      border: 1px solid rgba(135,206,235,0.1);
      border-radius: 8px;
      color: rgba(135,206,235,0.4);
      font-size: 20px;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.15s ease;
      line-height: 1;
    }
    .auth-close:hover {
      color: #87CEEB;
      background: rgba(135,206,235,0.12);
      border-color: rgba(135,206,235,0.25);
    }
  
