    code {
      color: #004085;
      font-weight: bold;
    }
    :root {
      --primary: #3b865d;
      --bg: #ffffff;
      --text: #2d2d2d;
      --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Vazirmatn', sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.7;
      overflow-x: hidden;
    }

    /* Header */
    header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000;
      background: var(--bg);
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      transition: var(--transition);
      padding: 1rem 5%;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    header.scrolled {
      padding: 0.5rem 5%;
      box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    }

    .logo {
      height: 90px;
      transition: var(--transition);
    }

    header.scrolled .logo {
      height: 50px;
    }

    /* Sliding Title */
    .slide-title {
      position: fixed;
      top: 50%;
      right: -100%;
      transform: translateY(-50%);
      font-size: 3.5rem;
      font-weight: 800;
      color: var(--primary);
      white-space: nowrap;
      z-index: 900;
      opacity: 0;
      transition: all 0.8s ease-out;
      text-shadow: 0 4px 10px rgba(59, 134, 93, 0.2);
    }

    .slide-title.show {
      right: 5%;
      opacity: 1;
    }

    .slide-title.hide {
      right: 100%;
      opacity: 0;
    }

    /* Main Content */
    .container {
      max-width: 1100px;
      margin: 0 auto;
      padding: 120px 5% 80px;
    }

    h1, h2 {
      color: var(--primary);
      margin-bottom: 1rem;
      margin-top: 22px;
      text-align: center;
    }

    .api-docs {
      background: #f8f9fa;
      border-radius: 12px;
      padding: 2rem;
      margin: 2rem 0;
      border-right: 5px solid var(--primary);
    }

    .endpoint {
      background: white;
      padding: 1rem;
      margin: 1rem 0;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
      font-family: monospace;
      direction: ltr;
      text-align: left;
      cursor: pointer;
      transition: var(--transition);
      border: 2px solid transparent;
    }

    .endpoint:hover {
      box-shadow: 0 4px 16px rgba(59, 134, 93, 0.15);
      border-color: var(--primary);
      transform: translateY(-2px);
    }

    .method {
      display: inline-block;
      padding: 0.25rem 0.5rem;
      border-radius: 4px;
      font-weight: bold;
      font-size: 0.8rem;
      margin-left: 0.5rem;
    }
    .post { background: #cce5ff; color: #004085; }

    /* Modal Overlay */
    .modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 2000;
      animation: fadeIn 0.3s ease-out;
    }

    .modal-overlay.show {
      display: flex;
      justify-content: center;
      align-items: center;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    /* Modal */
    .modal {
      background: var(--bg);
      border-radius: 15px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
      max-width: 500px;
      width: 90%;
      padding: 2.5rem;
      position: relative;
      animation: slideUp 0.4s ease-out;
      z-index: 2001;
    }

    @keyframes slideUp {
      from { transform: translateY(30px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }

    .modal-close {
      position: absolute;
      top: 1.5rem;
      left: 1.5rem;
      background: none;
      border: none;
      font-size: 1.8rem;
      color: var(--text);
      cursor: pointer;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: var(--transition);
    }

    .modal-close:hover {
      background: #f0f0f0;
      color: var(--primary);
    }

    .modal-title {
      color: var(--primary);
      font-size: 1.5rem;
      margin-bottom: 1rem;
      font-weight: 700;
      padding-left: 2rem;
    }

    .modal-description {
      color: var(--text);
      font-size: 0.95rem;
      line-height: 1.6;
      margin-bottom: 1.5rem;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .modal-urls {
      margin: 1.5rem 0;
      padding: 1.5rem;
      background: #f8f9fa;
      border-radius: 10px;
      border-right: 4px solid var(--primary);
    }

    .modal-urls-title {
      font-weight: 700;
      color: var(--primary);
      margin-bottom: 0.8rem;
      font-size: 0.9rem;
    }

    .url-item {
      font-weight: bold;
      margin: 0.5rem 0;
      padding: 0.5rem;
      background: white;
      border-radius: 6px;
      font-size: 0.86rem;
      word-break: break-all;
      color: #000000ff;
      font-family: monospace;
      direction: ltr;
      text-align: left;
    }

    .modal-button {
      width: 100%;
      padding: 0.8rem 1.5rem;
      background: var(--primary);
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
      margin-top: 1rem;
      font-family: 'Vazirmatn', sans-serif;
    }

    .modal-button:hover {
      background: #2d6a48;
      box-shadow: 0 4px 12px rgba(59, 134, 93, 0.3);
    }

    .modal-button:active {
      transform: scale(0.98);
    }

    /* Footer */
    footer {
      background: var(--primary);
      color: white;
      text-align: center;
      padding: 1rem 0;
      font-size: 0.9rem;
      margin-top: 3rem;
    }

    footer a {
      color: #a8e6cf;
      text-decoration: none;
    }

    @media (max-width: 768px) {
      .slide-title { font-size: 2.2rem; }
      .container { padding: 100px 5% 60px; }
      .modal { padding: 2rem; width: 95%; }
    }

    /* Download App Box */
    .download-app-box {
      background: var(--primary);
      border-radius: 12px;
      margin: 2rem 0 0;
      overflow: hidden;
      color: white;
      direction: rtl;
    }

    .download-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.5rem;
      flex-wrap: wrap;
      gap: 1.5rem;
    }

    .download-text {
      flex: 1;
      min-width: 200px;
    }

    .download-text h3 {
      font-size: 1.5rem;
      margin-bottom: 0.8rem;
      color: white;
    }

    .google-play-badge {
      height: 50px;
      transition: transform 0.3s ease;
    }

    .google-play-badge:hover {
      transform: scale(1.05);
    }

    .download-poster {
      flex: 0 0 150px;
    }

    .app-poster-img {
      width: 150px;
      height: 150px;
      object-fit: cover;
      border-radius: 12px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    @media (max-width: 768px) {
      .download-content { flex-direction: column; text-align: center; }
      .download-poster { order: -1; }
      .app-poster-img { width: 120px; height: 120px; }
      .download-text h3 { font-size: 1.3rem; }
    }

    @media (max-width: 480px) {
      .download-content { padding: 1.2rem; }
      .app-poster-img { width: 100px; height: 100px; }
    }

        /* Example Boxes */
    .example-box {
      background: white;
      border-radius: 10px;
      padding: 1.5rem;
      margin: 1.5rem 0;
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
      border-right: 4px solid var(--primary);
    }

    .example-header {
      margin-bottom: 1rem;
      text-align: right;
    }

    .example-title {
      color: var(--primary);
      font-size: 1.2rem;
      font-weight: 700;
    }

    .example-content {
      direction: rtl;
    }

    .example-row {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 0.8rem;
      flex-wrap: wrap;
    }

    .example-label {
      font-weight: 600;
      color: #444;
      min-width: 80px;
    }

    .example-code {
      background: #f1f3f5;
      padding: 0.4rem 0.6rem;
      border-radius: 6px;
      font-family: monospace;
      font-size: 0.9rem;
      direction: ltr;
      text-align: left;
      flex: 1;
      margin-right: 1rem;
    }

    .inputs-list {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }

    .input-item {
      font-size: 0.88rem;
    }

    .input-item em {
      color: #e74c3c;
      font-size: 0.8rem;
      font-style: normal;
    }

    .show-json-btn {
      background: var(--primary);
      color: white;
      border: none;
      padding: 0.7rem 1.2rem;
      border-radius: 8px;
      font-size: 0.95rem;
      cursor: pointer;
      margin-top: 1rem;
      font-family: 'Vazirmatn', sans-serif;
      transition: var(--transition);
    }

    .show-json-btn:hover {
      background: #2d6a48;
    }

    .json-output-container {
      margin-top: 1.5rem;
      border: 1px solid #dee2e6;
      border-radius: 8px;
      overflow: hidden;
    }

    .json-header {
      background: #f8f9fa;
      padding: 0.6rem 1rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: 600;
      color: #495057;
      font-size: 0.9rem;
      border-bottom: 1px solid #dee2e6;
    }

    .copy-json-btn {
      background: var(--primary);
      color: white;
      border: none;
      padding: 0.3rem 0.7rem;
      border-radius: 4px;
      font-size: 0.8rem;
      cursor: pointer;
    }

    .copy-json-btn:hover {
      background: #2d6a48;
    }

    .json-pre {
      background: #1e1e1e;
      color: #d4d4d4;
      padding: 1rem;
      margin: 0;
      font-family: 'Courier New', monospace;
      font-size: 0.84rem;
      max-height: 280px;
      overflow-y: auto;
      direction: ltr;
      text-align: left;
    }

    .json-pre code {
      background: none;
      padding: 0;
    }