
    /* ================================================================ */
    /* RESET & BASE */
    /* ================================================================ */
    * { margin: 0; padding: 0; box-sizing: border-box; }
    input, button, select, textarea { font-family: inherit; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
    input[type="checkbox"], input[type="radio"] { -webkit-appearance: auto; -moz-appearance: auto; appearance: auto; }
    input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
    input[type="number"] { -moz-appearance: textfield; }
    html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
    body { overflow: hidden; font-family: 'Vazirmatn', sans-serif; direction: rtl; background: #E6E6E6; height: 100vh; -webkit-font-smoothing: antialiased; }
    
    /* ================================================================ */
    /* HEADER */
    /* ================================================================ */
    #global-header {
      height: 64px;
      background: rgba(30,30,40,0.95);
      backdrop-filter: blur(12px);
      display: flex;
      align-items: center;
      padding: 0 20px;
      gap: 12px;
      color: #eee;
      font-size: 15px;
      font-weight: 600;
      z-index: 100;
      position: relative;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      flex-shrink: 0;
      flex-wrap: nowrap;
    }
    #global-header .header-left { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
    #global-header .header-center { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; }
    #global-header .header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
    

/* Header optical centering: nudge logo toward the purchase side. */
#global-header .header-center{
  transform:translateX(18px);
}
@media(max-width:800px){
  #global-header .header-center{transform:none}
}

    #global-header .app-name { font-size: 20px; font-weight: 700; letter-spacing: 0.5px; background: linear-gradient(135deg, #fff 60%, #888); -webkit-background-clip: text; -webkit-text-fill-color: transparent; white-space: nowrap; }
    #global-header .version { font-size: 11px; color: #888; font-weight: 400; -webkit-text-fill-color: #888; vertical-align: super; position: relative; top: -4px; margin-left: 2px; font-weight: 300; opacity: 0.7; }
    body.night-mode #global-header .version { color: #666; -webkit-text-fill-color: #666; opacity: 0.6; }

    .header-btn { padding: 6px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); color: #ddd; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
    .header-btn:hover { background: rgba(255,255,255,0.12); }
    
    .user-info {
      display: flex;
      align-items: center;
      gap: 10px;
      background: rgba(255,255,255,0.06);
      padding: 4px 14px 4px 12px;
      border-radius: 30px;
      border: 1px solid rgba(255,255,255,0.06);
      font-size: 13px;
      white-space: nowrap;
    }
    .user-info .user-name { color: #eee; font-weight: 600; max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
    .user-info .user-renders { background: rgba(100,120,255,0.15); padding: 2px 12px; border-radius: 20px; color: #b8c4ff; font-weight: 700; font-size: 12px; display: flex; align-items: center; gap: 4px; }
    .user-info .user-renders i { font-size: 11px; }
    .user-info .user-status { font-size: 10px; white-space: nowrap; padding: 2px 10px; border-radius: 20px; font-weight: 600; }
    .user-info .user-status.free { background: rgba(46,204,113,0.15); color: #5dbb7a; }
    .user-info .user-status.blocked { background: rgba(231,76,60,0.15); color: #e74c3c; }
    .user-info .user-status.unlimited { background: rgba(155,89,182,0.15); color: #af7ac5; }
    .user-info .user-status.package { background: rgba(247,151,30,0.15); color: #f7971e; }
    .user-info .user-status.guest { background: rgba(52,152,219,0.15); color: #5dade2; }
    
    .daynight-toggle { display: flex; align-items: center; background: #1a1a2e; border-radius: 30px; padding: 3px; border: 1px solid rgba(255,255,255,0.08); cursor: pointer; transition: all 0.4s ease; position: relative; height: 32px; width: 85px; flex-shrink: 0; user-select: none; overflow: hidden; }
    .daynight-toggle .dn-track { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
    .daynight-toggle .dn-icon-bg { font-size: 15px; transition: all 0.4s ease; display: flex; align-items: center; justify-content: center; line-height: 1; z-index: 1; width: 22px; height: 22px; flex-shrink: 0; }
    .daynight-toggle .dn-icon-bg.moon-bg { color: #8e9eb5; opacity: 0.5; }
    .daynight-toggle .dn-icon-bg.sun-bg { color: #f1c40f; opacity: 1; }
    .daynight-toggle .dn-thumb { position: absolute; top: 50%; left: 3px; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s ease; box-shadow: 0 2px 12px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; font-size: 14px; color: #f1c40f; z-index: 2; }
    .daynight-toggle .dn-thumb.night { left: calc(100% - 29px); background: #fff; color: #8e9eb5; }
    .daynight-toggle.day-mode { background: #1a1a2e; border-color: rgba(255,255,255,0.08); }
    .daynight-toggle.night-mode { background: #f0f0f5; border-color: rgba(0,0,0,0.08); }

    .subscribe-btn {
      padding: 6px 16px;
      border: none;
      border-radius: 30px;
      background: linear-gradient(135deg, #f7d875, #f5b342);
      color: #7a5a1a;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      gap: 6px;
      box-shadow: 0 2px 16px rgba(245, 179, 66, 0.35);
      white-space: nowrap;
    }
    .subscribe-btn:hover { transform: scale(1.05) translateY(-1px); box-shadow: 0 4px 24px rgba(245, 179, 66, 0.5); }
    .subscribe-btn.has-active-plan {
      background: linear-gradient(135deg,#dedede,#c9c9c9);
      color:#666;
      box-shadow:none;
    }
    .subscribe-btn.has-active-plan:hover {
      transform:none;
      box-shadow:none;
      background:linear-gradient(135deg,#dedede,#c9c9c9);
    }
    .subscribe-btn .diamond-icon { font-size: 15px; }

