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

    /* ===== DESIGN TOKENS ===== */
    :root {
      --bg:          #ffffff;
      --bg-card:     #f5f5f5;
      --bg-hover:    #ebebeb;
      --border:      #e5e5e5;
      --text:        #0a0a0a;
      --text-2:      #525252;
      --text-3:      #a3a3a3;
      --accent:      #0a0a0a;
      --accent-fg:   #ffffff;

      /* Method badges */
      --get:         #22c55e;
      --get-bg:      #0a2e1a;
      --get-border:  #16a34a;
      --post:        #60a5fa;
      --post-bg:     #0f1f3d;
      --post-border: #1d4ed8;
      --delete:      #f87171;
      --delete-bg:   #2d0a0a;
      --delete-border:#b91c1c;

      /* Status */
      --online:      #22c55e;
      --online-bg:   rgba(34,197,94,0.12);

      --code-bg:     #f0f0f0;
      --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
      --shadow:      0 4px 16px rgba(0,0,0,.08);
      --shadow-lg:   0 8px 32px rgba(0,0,0,.1);
      --radius:      0.625rem;
      --font:        'Inter', -apple-system, system-ui, sans-serif;
      --mono:        'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
      --transition:  0.15s ease;
    }

    .dark {
      --bg:          #080808;
      --bg-card:     #111111;
      --bg-hover:    #1a1a1a;
      --border:      #1f1f1f;
      --text:        #f5f5f5;
      --text-2:      #a3a3a3;
      --text-3:      #525252;
      --accent:      #f5f5f5;
      --accent-fg:   #0a0a0a;

      --get:         #22c55e;
      --get-bg:      #0a2e1a;
      --get-border:  #166534;
      --post:        #60a5fa;
      --post-bg:     #0f1f3d;
      --post-border: #1e40af;
      --delete:      #f87171;
      --delete-bg:   #2d0a0a;
      --delete-border:#991b1b;

      --code-bg:     #141414;
      --shadow-sm:   0 1px 3px rgba(0,0,0,.5);
      --shadow:      0 4px 16px rgba(0,0,0,.5);
      --shadow-lg:   0 8px 32px rgba(0,0,0,.6);
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: var(--font);
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
      font-size: 15px;
      transition: background 0.2s ease, color 0.2s ease;
      min-height: 100vh;
    }

    /* ===== SCROLLBAR ===== */
    ::-webkit-scrollbar { width: 6px; height: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

    /* ===== PARTICLES ===== */
    #particles-js {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      opacity: 0.5;
    }

    /* ===== HEADER ===== */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 100;
      height: 64px;
      padding: 0 2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid var(--border);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      background: color-mix(in srgb, var(--bg) 82%, transparent);
    }

    .logo-container {
      display: flex;
      align-items: center;
      gap: 0.625rem;
      font-weight: 800;
      font-size: 1.25rem;
      letter-spacing: -0.03em;
      color: var(--text);
      text-decoration: none;
    }

    .logo-icon { color: var(--get); font-size: 1.1rem; }

    .main-nav {
      display: flex;
      align-items: center;
      gap: 0.25rem;
    }

    .nav-btn {
      background: none;
      border: none;
      color: var(--text-2);
      cursor: pointer;
      width: 40px;
      height: 40px;
      border-radius: var(--radius);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      transition: background var(--transition), color var(--transition);
      position: relative;
    }

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

    .notification-badge {
      position: absolute;
      top: 5px; right: 5px;
      background: #ef4444;
      color: #fff;
      font-size: 9px;
      font-weight: 700;
      width: 15px; height: 15px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1.5px solid var(--bg);
      line-height: 1;
    }

    /* ===== NOTIFICATION POPUP ===== */
    .notification-popup {
      display: none;
      position: fixed;
      top: 72px; right: 16px;
      width: 340px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow-lg);
      z-index: 200;
      overflow: hidden;
      animation: popIn 0.15s ease;
    }

    @keyframes popIn {
      from { opacity: 0; transform: translateY(-10px) scale(0.97); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    .popup-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.875rem 1.125rem;
      border-bottom: 1px solid var(--border);
      background: var(--bg);
    }

    .popup-avatar {
      width: 32px; height: 32px;
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
      border: 1px solid var(--border);
    }

    .popup-title {
      font-size: 0.875rem;
      font-weight: 700;
      color: var(--text);
      flex: 1;
    }

    .close-popup-btn {
      background: none;
      border: none;
      cursor: pointer;
      color: var(--text-3);
      font-size: 1.25rem;
      line-height: 1;
      padding: 0.2rem;
      border-radius: 4px;
      transition: color var(--transition);
    }
    .close-popup-btn:hover { color: var(--text); }

    .popup-body {
      padding: 0.875rem 1.125rem;
      display: flex;
      flex-direction: column;
      gap: 0.625rem;
    }

    .message-box {
      background: var(--bg-hover);
      border: 1px solid var(--border);
      border-radius: 0.5rem;
      padding: 0.75rem;
    }

    .message-box p {
      font-size: 0.8rem;
      color: var(--text-2);
      margin: 0;
      line-height: 1.55;
    }

    .message-timestamp {
      font-size: 0.7rem;
      color: var(--text-3);
      margin-top: 0.375rem;
      text-align: right;
      font-family: var(--mono);
    }

    .popup-footer {
      padding: 0.625rem 1.125rem;
      border-top: 1px solid var(--border);
      background: var(--bg);
    }

    .popup-timestamp {
      font-size: 0.7rem;
      color: var(--text-3);
      font-family: var(--mono);
    }

    /* ===== HERO ===== */
    .hero-section {
      position: relative;
      z-index: 1;
      padding: 5rem 2rem 4rem;
      text-align: center;
      border-bottom: 1px solid var(--border);
    }

    .hero-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
      font-family: var(--mono);
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--get);
      background: var(--get-bg);
      border: 1px solid var(--get-border);
      padding: 0.3rem 0.875rem;
      border-radius: 999px;
      margin-bottom: 1.5rem;
      letter-spacing: 0.04em;
    }

    .hero-section h1 {
      font-size: clamp(2.5rem, 6vw, 3.5rem);
      font-weight: 800;
      letter-spacing: -0.05em;
      color: var(--text);
      line-height: 1.1;
      margin-bottom: 1rem;
    }

    .hero-text {
      font-size: 1.125rem;
      color: var(--text-2);
      max-width: 520px;
      margin: 0 auto 2.5rem;
      line-height: 1.65;
    }

    /* Hero stats row */
    .hero-stats {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 2rem;
      flex-wrap: wrap;
      margin-bottom: 2.5rem;
    }

    .hero-stat {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.2rem;
    }

    .hero-stat-value {
      font-size: 2rem;
      font-weight: 800;
      font-family: var(--mono);
      letter-spacing: -0.04em;
      color: var(--text);
      line-height: 1;
    }

    .hero-stat-label {
      font-size: 0.75rem;
      color: var(--text-3);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      font-weight: 600;
    }

    .hero-stat-divider {
      width: 1px;
      height: 40px;
      background: var(--border);
    }

    .hero-status {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--get);
      background: var(--get-bg);
      border: 1px solid var(--get-border);
      padding: 0.35rem 0.875rem;
      border-radius: 999px;
      font-family: var(--mono);
    }

    /* Search bar */
    .search-bar {
      max-width: 640px;
      margin: 0 auto;
      position: relative;
    }

    .search-icon {
      position: absolute;
      left: 1.125rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-3);
      font-size: 0.875rem;
      pointer-events: none;
    }

    .search-bar input {
      width: 100%;
      height: 52px;
      padding: 0 1.25rem 0 3rem;
      background: var(--bg-card);
      border: 1.5px solid var(--border);
      border-radius: var(--radius);
      color: var(--text);
      font-family: var(--font);
      font-size: 1rem;
      outline: none;
      transition: border-color var(--transition), box-shadow var(--transition);
    }

    .search-bar input::placeholder { color: var(--text-3); }

    .search-bar input:focus {
      border-color: var(--get-border);
      box-shadow: 0 0 0 3px rgba(34,197,94,0.12);
    }

    /* ===== CONTAINER ===== */
    .container {
      max-width: 1100px;
      margin: 0 auto;
      padding: 2.5rem 2rem;
      position: relative;
      z-index: 1;
    }

    /* ===== NO RESULTS ===== */
    .no-results {
      text-align: center;
      padding: 4rem 0;
      color: var(--text-3);
    }

    .no-results i { font-size: 2.5rem; display: block; margin-bottom: 1rem; }
    .no-results p { font-size: 1rem; color: var(--text-3); }
    .hidden { display: none !important; }

    /* ===== CATEGORY BLOCK ===== */
    .api-category {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      margin-bottom: 1.25rem;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeUp 0.5s ease forwards;
    }

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

    .api-category:nth-child(1)  { animation-delay: 0.05s; }
    .api-category:nth-child(2)  { animation-delay: 0.10s; }
    .api-category:nth-child(3)  { animation-delay: 0.15s; }
    .api-category:nth-child(4)  { animation-delay: 0.20s; }
    .api-category:nth-child(5)  { animation-delay: 0.25s; }
    .api-category:nth-child(6)  { animation-delay: 0.30s; }
    .api-category:nth-child(7)  { animation-delay: 0.35s; }

    .category-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.25rem 1.75rem;
      border-bottom: 1px solid var(--border);
      background: var(--bg);
    }

    .category-header h2 {
      font-size: 1.125rem;
      font-weight: 700;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 0.625rem;
      margin: 0;
      letter-spacing: -0.02em;
    }

    .category-header h2 img {
      width: 24px; height: 24px;
      object-fit: contain;
    }

    .category-count {
      font-family: var(--mono);
      font-size: 0.725rem;
      font-weight: 600;
      color: var(--text-3);
      background: var(--bg-hover);
      border: 1px solid var(--border);
      padding: 0.2rem 0.625rem;
      border-radius: 999px;
    }

    /* ===== API LIST ===== */
    .api-list { display: flex; flex-direction: column; }

    .api-item {
      border-bottom: 1px solid var(--border);
      transition: background var(--transition);
    }

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

    .api-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 1.75rem;
      min-height: 64px;
      cursor: pointer;
      transition: background var(--transition), border-left var(--transition);
      gap: 1rem;
      border-left: 3px solid transparent;
    }

    .api-header:hover {
      background: var(--bg-hover);
      border-left-color: var(--get);
    }

    .api-title-wrapper {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex: 1;
      min-width: 0;
    }

    /* Method badges */
    .api-method {
      display: inline-flex;
      align-items: center;
      font-family: var(--mono);
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      padding: 0.25rem 0.6rem;
      border-radius: 0.375rem;
      flex-shrink: 0;
      text-transform: uppercase;
      border: 1px solid;
    }

    .api-method.get, .api-method:not(.post):not(.delete) {
      color: var(--get);
      background: var(--get-bg);
      border-color: var(--get-border);
    }

    .api-method.post {
      color: var(--post);
      background: var(--post-bg);
      border-color: var(--post-border);
    }

    .api-method.delete {
      color: var(--delete);
      background: var(--delete-bg);
      border-color: var(--delete-border);
    }

    .api-title {
      font-size: 1rem;
      font-weight: 600;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .api-actions {
      display: flex;
      align-items: center;
      gap: 0.875rem;
      flex-shrink: 0;
    }

    /* Status badge */
    .api-status-badge {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      font-family: var(--mono);
    }

    .api-status-badge.online { color: var(--get); }
    .api-status-badge.offline { color: var(--delete); }

    /* Pulse dot animation */
    .pulse-dot {
      display: inline-block;
      width: 7px; height: 7px;
      border-radius: 50%;
      background: var(--get);
      position: relative;
      flex-shrink: 0;
    }

    .pulse-dot::after {
      content: '';
      position: absolute;
      inset: -3px;
      border-radius: 50%;
      background: var(--get);
      opacity: 0;
      animation: pulseDot 2s ease-in-out infinite;
    }

    @keyframes pulseDot {
      0%   { transform: scale(0.8); opacity: 0.6; }
      70%  { transform: scale(1.8); opacity: 0; }
      100% { opacity: 0; }
    }

    .lock-icon {
      color: var(--get);
      font-size: 0.7rem;
    }

    /* Toggle button */
    .toggle-btn {
      background: none;
      border: none;
      color: var(--text-3);
      cursor: pointer;
      width: 32px; height: 32px;
      border-radius: 0.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.8rem;
      transition: background var(--transition), color var(--transition), transform var(--transition);
      flex-shrink: 0;
    }

    .toggle-btn:hover { background: var(--bg-card); color: var(--text); }
    .toggle-btn.active { transform: rotate(180deg); color: var(--text); }

    /* ===== ACCORDION ===== */
    .api-description {
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1);
    }

    .api-description.active { max-height: 2400px; transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1); }

    .desc-inner {
      padding: 1.5rem 1.75rem;
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }

    .desc-inner > p {
      font-size: 0.9rem;
      color: var(--text-2);
      line-height: 1.65;
      margin: 0;
    }

    /* Details */
    .api-details {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      padding-top: 1rem;
      border-top: 1px solid var(--border);
    }

    .api-endpoint {
      background: var(--code-bg);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 0.75rem 1rem;
      overflow-x: auto;
    }

    .api-endpoint code {
      font-family: var(--mono);
      font-size: 0.85rem;
      color: var(--text);
      background: none;
      padding: 0;
      white-space: nowrap;
    }

    .param { color: var(--get); }

    .api-params h4, .api-response h4 {
      font-size: 0.7rem;
      font-weight: 700;
      color: var(--text-3);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 0.625rem;
    }

    .api-params ul {
      padding-left: 1.25rem;
      display: flex;
      flex-direction: column;
      gap: 0.375rem;
    }

    .api-params ul li {
      font-size: 0.85rem;
      color: var(--text-2);
    }

    .api-params ul li code {
      font-family: var(--mono);
      font-size: 0.78rem;
      background: var(--code-bg);
      border: 1px solid var(--border);
      padding: 0.1rem 0.4rem;
      border-radius: 0.3rem;
      color: var(--text);
    }

    .api-response pre {
      background: var(--code-bg);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1rem;
      overflow-x: auto;
      max-height: 220px;
      overflow-y: auto;
      margin: 0;
    }

    .api-response pre code {
      font-family: var(--mono);
      font-size: 0.8rem;
      color: var(--text-2);
      background: none;
      padding: 0;
      line-height: 1.65;
    }

    /* Actions footer */
    .api-actions-footer {
      display: flex;
      gap: 0.625rem;
      flex-wrap: wrap;
    }

    .action-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.5rem 1.125rem;
      font-size: 0.85rem;
      font-weight: 600;
      font-family: var(--font);
      border-radius: var(--radius);
      border: 1px solid var(--border);
      cursor: pointer;
      transition: background var(--transition), box-shadow var(--transition), opacity var(--transition);
      outline: none;
    }

    .try-btn {
      background: var(--accent);
      color: var(--accent-fg);
      border-color: var(--accent);
    }

    .try-btn:hover {
      opacity: 0.85;
      box-shadow: 0 2px 12px color-mix(in srgb, var(--accent) 30%, transparent);
    }

    .copy-btn {
      background: transparent;
      color: var(--text-2);
      border-color: var(--border);
    }

    .copy-btn:hover {
      background: var(--bg-hover);
      color: var(--text);
      border-color: var(--text-3);
    }

    /* Example curl */
    .api-example { display: flex; flex-direction: column; gap: 0.5rem; }

    .api-example h4 {
      font-size: 0.7rem;
      font-weight: 700;
      color: var(--text-3);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .api-example pre {
      background: var(--code-bg);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 0.875rem 1rem;
      overflow-x: auto;
      margin: 0;
    }

    .api-example code {
      font-family: var(--mono);
      font-size: 0.8rem;
      color: var(--text-2);
      background: none;
      padding: 0;
      white-space: pre;
    }

    /* Try forms */
    .try-form {
      padding: 1.25rem;
      background: var(--bg-hover);
      border: 1px solid var(--border);
      border-radius: var(--radius);
    }

    .try-form label {
      display: block;
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--text-2);
      margin-bottom: 0.35rem;
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }

    .try-form input[type="email"],
    .try-form input[type="text"],
    .try-form textarea,
    .try-form select {
      width: 100%;
      padding: 0.55rem 0.875rem;
      margin-bottom: 0.875rem;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 0.5rem;
      font-family: var(--mono);
      font-size: 0.85rem;
      color: var(--text);
      outline: none;
      transition: border-color var(--transition);
    }

    .try-form input:focus,
    .try-form textarea:focus,
    .try-form select:focus { border-color: var(--get-border); }

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

    /* Upload */
    .upload-box {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 1.5rem;
      border: 1.5px dashed var(--border);
      border-radius: var(--radius);
      cursor: pointer;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text-2);
      background: var(--bg-card);
      transition: border-color var(--transition), background var(--transition);
      margin-bottom: 0.875rem;
    }

    .upload-box:hover { border-color: var(--get-border); background: var(--bg-hover); }
    .upload-box input[type="file"] { display: none; }

    .submit-btn {
      background: var(--accent);
      color: var(--accent-fg);
      border: none;
      padding: 0.65rem 1.25rem;
      border-radius: var(--radius);
      cursor: pointer;
      font-weight: 700;
      font-size: 0.9rem;
      width: 100%;
      font-family: var(--font);
      transition: opacity var(--transition);
    }
    .submit-btn:hover { opacity: 0.85; }
    .submit-btn:disabled { opacity: 0.45; cursor: not-allowed; }

    #outputImage {
      max-width: 100%;
      border-radius: var(--radius);
      border: 1px solid var(--border);
      display: block;
      margin-top: 0.875rem;
    }

    #downloadLink {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: var(--accent);
      color: var(--accent-fg);
      padding: 0.5rem 1.125rem;
      border-radius: var(--radius);
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 600;
      margin-top: 0.875rem;
      transition: opacity var(--transition);
    }
    #downloadLink:hover { opacity: 0.85; }

    #fileNameDisplay {
      font-family: var(--mono);
      font-size: 0.75rem;
      color: var(--text-3);
    }

    #resultPreview {
      background: var(--bg-hover);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 0.875rem;
      margin-top: 0.875rem;
    }

    #fileUrl {
      font-family: var(--mono);
      font-size: 0.7rem;
      color: var(--text-3);
      word-break: break-all;
      margin-top: 0.5rem;
      display: block;
    }

    /* Scale box */
    .scale-box {
      display: flex;
      gap: 0.5rem;
      margin: 0.75rem 0;
      flex-wrap: wrap;
    }

    .scale-option { position: relative; cursor: pointer; }
    .scale-option input[type="radio"] { display: none; }
    .scale-option span {
      display: inline-block;
      border: 1px solid var(--border);
      padding: 0.45rem 1rem;
      border-radius: var(--radius);
      font-size: 0.85rem;
      font-weight: 700;
      font-family: var(--mono);
      color: var(--text-2);
      background: var(--bg-card);
      transition: all var(--transition);
    }

    .scale-option:hover span { border-color: var(--get-border); }

    .scale-option input[type="radio"]:checked + span {
      background: var(--get-bg);
      color: var(--get);
      border-color: var(--get-border);
    }

    /* Image preview container */
    .image-preview-container {
      max-width: 100%;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 0.875rem;
      background: var(--bg-card);
      margin-bottom: 0.875rem;
    }

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

    .preview-label {
      font-size: 0.7rem;
      font-weight: 700;
      color: var(--text-2);
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    .remove-preview-btn {
      background: var(--delete-bg);
      color: var(--delete);
      border: 1px solid var(--delete-border);
      width: 24px; height: 24px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 14px;
      font-weight: bold;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: opacity var(--transition);
    }
    .remove-preview-btn:hover { opacity: 0.75; }

    #upscalePreview {
      width: 100%;
      max-width: 280px;
      max-height: 140px;
      object-fit: contain;
      border-radius: 4px;
      display: block;
      margin: 0 auto;
    }

    #upscaleImageInfo {
      font-size: 0.7rem;
      color: var(--text-3);
      text-align: center;
      margin-top: 0.5rem;
      font-family: var(--mono);
    }

    /* ===== TOAST ===== */
    .toast {
      position: fixed;
      bottom: 2rem; right: 2rem;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow-lg);
      padding: 1rem 1.25rem;
      display: flex;
      flex-direction: column;
      min-width: 280px;
      max-width: 360px;
      transform: translateY(calc(100% + 2.5rem));
      opacity: 0;
      transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.28s ease;
      z-index: 500;
    }

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

    .toast-content {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .toast-icon { font-size: 1.1rem; color: var(--get); }

    .toast-message {
      font-size: 0.875rem;
      font-weight: 600;
      color: var(--text);
    }

    .toast-progress {
      height: 2px;
      background: var(--border);
      margin-top: 0.75rem;
      border-radius: 1px;
      position: relative;
      overflow: hidden;
    }

    .toast-progress::after {
      content: '';
      position: absolute;
      inset: 0;
      background: var(--get);
      animation: progress 3s linear forwards;
    }

    @keyframes progress {
      from { transform: scaleX(1); transform-origin: left; }
      to   { transform: scaleX(0); transform-origin: left; }
    }

    /* ===== FOOTER ===== */
    .site-footer {
      background: var(--bg-card);
      border-top: 1px solid var(--border);
      padding: 3rem 2rem;
      margin-top: 3rem;
      position: relative;
      z-index: 1;
    }

    .footer-content {
      max-width: 1100px;
      margin: 0 auto;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: flex-start;
      gap: 2rem;
    }

    .footer-info { flex: 1; min-width: 200px; }

    .footer-logo {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-weight: 800;
      font-size: 1rem;
      color: var(--text);
      margin-bottom: 0.5rem;
      text-decoration: none;
      letter-spacing: -0.02em;
    }

    .footer-logo i { color: var(--get); }

    .footer-info p {
      font-size: 0.8rem;
      color: var(--text-3);
      margin: 0;
      line-height: 1.6;
    }

    .footer-links {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem 1.75rem;
      align-items: center;
    }

    .footer-links a {
      font-size: 0.85rem;
      font-weight: 500;
      color: var(--text-2);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 0.4rem;
      transition: color var(--transition);
    }

    .footer-links a:hover { color: var(--text); }

    .copyright {
      max-width: 1100px;
      margin: 2rem auto 0;
      padding-top: 1.5rem;
      border-top: 1px solid var(--border);
      font-size: 0.75rem;
      color: var(--text-3);
      text-align: center;
      font-family: var(--mono);
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
      .site-header { padding: 0 1.25rem; }
      .hero-section { padding: 3.5rem 1.25rem 3rem; }
      .hero-section h1 { font-size: 2.25rem; }
      .hero-text { font-size: 1rem; }
      .hero-stats { gap: 1.25rem; }
      .hero-stat-divider { display: none; }
      .container { padding: 1.5rem 1.25rem; }
      .category-header { padding: 1rem 1.25rem; }
      .api-header { padding: 0 1.25rem; }
      .desc-inner { padding: 1.25rem; }
      .api-status-badge { display: none; }
      .api-actions-footer { flex-direction: column; }
      .action-btn { width: 100%; justify-content: center; }
      .toast { left: 1.25rem; right: 1.25rem; min-width: 0; }
      .notification-popup { left: 12px; right: 12px; width: auto; }
    }

    @media (max-width: 480px) {
      .hero-section h1 { font-size: 1.875rem; }
      .hero-stat-value { font-size: 1.5rem; }
    }
  
    /* Premium Badge */
.premium-badge {
  display: inline-block;
  background: orange;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7em;
  font-weight: 600;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}